7ff9b08d9d096fb1fd60d7c2269f55c93d3306e4
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.198.2.15.2.16 .
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-includes=DIR      Directory to look for OpenSSL include files
1498   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1499   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1500   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1501   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1502   --with-edir             Enable Novell eDirectory integration.  (default=no)
1503
1504 Some influential environment variables:
1505   CC          C compiler command
1506   CFLAGS      C compiler flags
1507   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508               nonstandard directory <lib dir>
1509   LIBS        libraries to pass to the linker, e.g. -l<library>
1510   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511               you have headers in a nonstandard directory <include dir>
1512   CPP         C preprocessor
1513   CXX         C++ compiler command
1514   CXXFLAGS    C++ compiler flags
1515   CXXCPP      C++ preprocessor
1516   F77         Fortran 77 compiler command
1517   FFLAGS      Fortran 77 compiler flags
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 _ACEOF
1523 ac_status=$?
1524 fi
1525
1526 if test "$ac_init_help" = "recursive"; then
1527   # If there are subdirs, report their specific --help.
1528   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529     test -d "$ac_dir" || continue
1530     ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1536   # A ".." for each directory in $ac_dir_suffix.
1537   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1538   case $ac_top_builddir_sub in
1539   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541   esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549   .)  # We are building in place.
1550     ac_srcdir=.
1551     ac_top_srcdir=$ac_top_builddir_sub
1552     ac_abs_top_srcdir=$ac_pwd ;;
1553   [\\/]* | ?:[\\/]* )  # Absolute name.
1554     ac_srcdir=$srcdir$ac_dir_suffix;
1555     ac_top_srcdir=$srcdir
1556     ac_abs_top_srcdir=$srcdir ;;
1557   *) # Relative name.
1558     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559     ac_top_srcdir=$ac_top_build_prefix$srcdir
1560     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564     cd "$ac_dir" || { ac_status=$?; continue; }
1565     # Check for guested configure.
1566     if test -f "$ac_srcdir/configure.gnu"; then
1567       echo &&
1568       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569     elif test -f "$ac_srcdir/configure"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure" --help=recursive
1572     else
1573       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574     fi || ac_status=$?
1575     cd "$ac_pwd" || { ac_status=$?; break; }
1576   done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581   cat <<\_ACEOF
1582 configure
1583 generated by GNU Autoconf 2.61
1584
1585 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590   exit
1591 fi
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1595
1596 It was created by $as_me, which was
1597 generated by GNU Autoconf 2.61.  Invocation command line was
1598
1599   $ $0 $@
1600
1601 _ACEOF
1602 exec 5>>config.log
1603 {
1604 cat <<_ASUNAME
1605 ## --------- ##
1606 ## Platform. ##
1607 ## --------- ##
1608
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1617
1618 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1619 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1622 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1623 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1624 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1625
1626 _ASUNAME
1627
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   echo "PATH: $as_dir"
1634 done
1635 IFS=$as_save_IFS
1636
1637 } >&5
1638
1639 cat >&5 <<_ACEOF
1640
1641
1642 ## ----------- ##
1643 ## Core tests. ##
1644 ## ----------- ##
1645
1646 _ACEOF
1647
1648
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1654 ac_configure_args=
1655 ac_configure_args0=
1656 ac_configure_args1=
1657 ac_must_keep_next=false
1658 for ac_pass in 1 2
1659 do
1660   for ac_arg
1661   do
1662     case $ac_arg in
1663     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665     | -silent | --silent | --silen | --sile | --sil)
1666       continue ;;
1667     *\'*)
1668       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669     esac
1670     case $ac_pass in
1671     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1672     2)
1673       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674       if test $ac_must_keep_next = true; then
1675         ac_must_keep_next=false # Got value, back to normal.
1676       else
1677         case $ac_arg in
1678           *=* | --config-cache | -C | -disable-* | --disable-* \
1679           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681           | -with-* | --with-* | -without-* | --without-* | --x)
1682             case "$ac_configure_args0 " in
1683               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684             esac
1685             ;;
1686           -* ) ac_must_keep_next=true ;;
1687         esac
1688       fi
1689       ac_configure_args="$ac_configure_args '$ac_arg'"
1690       ;;
1691     esac
1692   done
1693 done
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log.  We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703   # Save into config.log some information that might help in debugging.
1704   {
1705     echo
1706
1707     cat <<\_ASBOX
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1711 _ASBOX
1712     echo
1713     # The following way of writing the cache mishandles newlines in values,
1714 (
1715   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716     eval ac_val=\$$ac_var
1717     case $ac_val in #(
1718     *${as_nl}*)
1719       case $ac_var in #(
1720       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722       esac
1723       case $ac_var in #(
1724       _ | IFS | as_nl) ;; #(
1725       *) $as_unset $ac_var ;;
1726       esac ;;
1727     esac
1728   done
1729   (set) 2>&1 |
1730     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731     *${as_nl}ac_space=\ *)
1732       sed -n \
1733         "s/'\''/'\''\\\\'\'''\''/g;
1734           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735       ;; #(
1736     *)
1737       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1738       ;;
1739     esac |
1740     sort
1741 )
1742     echo
1743
1744     cat <<\_ASBOX
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1748 _ASBOX
1749     echo
1750     for ac_var in $ac_subst_vars
1751     do
1752       eval ac_val=\$$ac_var
1753       case $ac_val in
1754       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755       esac
1756       echo "$ac_var='\''$ac_val'\''"
1757     done | sort
1758     echo
1759
1760     if test -n "$ac_subst_files"; then
1761       cat <<\_ASBOX
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1765 _ASBOX
1766       echo
1767       for ac_var in $ac_subst_files
1768       do
1769         eval ac_val=\$$ac_var
1770         case $ac_val in
1771         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772         esac
1773         echo "$ac_var='\''$ac_val'\''"
1774       done | sort
1775       echo
1776     fi
1777
1778     if test -s confdefs.h; then
1779       cat <<\_ASBOX
1780 ## ----------- ##
1781 ## confdefs.h. ##
1782 ## ----------- ##
1783 _ASBOX
1784       echo
1785       cat confdefs.h
1786       echo
1787     fi
1788     test "$ac_signal" != 0 &&
1789       echo "$as_me: caught signal $ac_signal"
1790     echo "$as_me: exit $exit_status"
1791   } >&5
1792   rm -f core *.core core.conftest.* &&
1793     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794     exit $exit_status
1795 ' 0
1796 for ac_signal in 1 2 13 15; do
1797   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798 done
1799 ac_signal=0
1800
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1803
1804 # Predefined preprocessor variables.
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828 _ACEOF
1829
1830
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer explicitly selected file to automatically selected ones.
1833 if test -n "$CONFIG_SITE"; then
1834   set x "$CONFIG_SITE"
1835 elif test "x$prefix" != xNONE; then
1836   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1837 else
1838   set x "$ac_default_prefix/share/config.site" \
1839         "$ac_default_prefix/etc/config.site"
1840 fi
1841 shift
1842 for ac_site_file
1843 do
1844   if test -r "$ac_site_file"; then
1845     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 echo "$as_me: loading site script $ac_site_file" >&6;}
1847     sed 's/^/| /' "$ac_site_file" >&5
1848     . "$ac_site_file"
1849   fi
1850 done
1851
1852 if test -r "$cache_file"; then
1853   # Some versions of bash will fail to source /dev/null (special
1854   # files actually), so we avoid doing that.
1855   if test -f "$cache_file"; then
1856     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 echo "$as_me: loading cache $cache_file" >&6;}
1858     case $cache_file in
1859       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860       *)                      . "./$cache_file";;
1861     esac
1862   fi
1863 else
1864   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 echo "$as_me: creating cache $cache_file" >&6;}
1866   >$cache_file
1867 fi
1868
1869 # Check that the precious variables saved in the cache have kept the same
1870 # value.
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874   eval ac_new_set=\$ac_env_${ac_var}_set
1875   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876   eval ac_new_val=\$ac_env_${ac_var}_value
1877   case $ac_old_set,$ac_new_set in
1878     set,)
1879       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881       ac_cache_corrupted=: ;;
1882     ,set)
1883       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885       ac_cache_corrupted=: ;;
1886     ,);;
1887     *)
1888       if test "x$ac_old_val" != "x$ac_new_val"; then
1889         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1892 echo "$as_me:   former value:  $ac_old_val" >&2;}
1893         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1894 echo "$as_me:   current value: $ac_new_val" >&2;}
1895         ac_cache_corrupted=:
1896       fi;;
1897   esac
1898   # Pass precious variables to config.status.
1899   if test "$ac_new_set" = set; then
1900     case $ac_new_val in
1901     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902     *) ac_arg=$ac_var=$ac_new_val ;;
1903     esac
1904     case " $ac_configure_args " in
1905       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1906       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907     esac
1908   fi
1909 done
1910 if $ac_cache_corrupted; then
1911   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915    { (exit 1); exit 1; }; }
1916 fi
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934 ac_ext=c
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939
1940
1941 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1942
1943
1944
1945 RADIUSD_MAJOR_VERSION=1
1946 RADIUSD_MINOR_VERSION=1.7
1947 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1948
1949
1950 ac_ext=c
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955 if test -n "$ac_tool_prefix"; then
1956   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961   echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963   if test -n "$CC"; then
1964   ac_cv_prog_CC="$CC" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969   IFS=$as_save_IFS
1970   test -z "$as_dir" && as_dir=.
1971   for ac_exec_ext in '' $ac_executable_extensions; do
1972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975     break 2
1976   fi
1977 done
1978 done
1979 IFS=$as_save_IFS
1980
1981 fi
1982 fi
1983 CC=$ac_cv_prog_CC
1984 if test -n "$CC"; then
1985   { echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6; }
1987 else
1988   { echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6; }
1990 fi
1991
1992
1993 fi
1994 if test -z "$ac_cv_prog_CC"; then
1995   ac_ct_CC=$CC
1996   # Extract the first word of "gcc", so it can be a program name with args.
1997 set dummy gcc; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$ac_ct_CC"; then
2004   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009   IFS=$as_save_IFS
2010   test -z "$as_dir" && as_dir=.
2011   for ac_exec_ext in '' $ac_executable_extensions; do
2012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2013     ac_cv_prog_ac_ct_CC="gcc"
2014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015     break 2
2016   fi
2017 done
2018 done
2019 IFS=$as_save_IFS
2020
2021 fi
2022 fi
2023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024 if test -n "$ac_ct_CC"; then
2025   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026 echo "${ECHO_T}$ac_ct_CC" >&6; }
2027 else
2028   { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2030 fi
2031
2032   if test "x$ac_ct_CC" = x; then
2033     CC=""
2034   else
2035     case $cross_compiling:$ac_tool_warned in
2036 yes:)
2037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2038 whose name does not start with the host triplet.  If you think this
2039 configuration is useful to you, please write to autoconf@gnu.org." >&5
2040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2041 whose name does not start with the host triplet.  If you think this
2042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2043 ac_tool_warned=yes ;;
2044 esac
2045     CC=$ac_ct_CC
2046   fi
2047 else
2048   CC="$ac_cv_prog_CC"
2049 fi
2050
2051 if test -z "$CC"; then
2052           if test -n "$ac_tool_prefix"; then
2053     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2054 set dummy ${ac_tool_prefix}cc; ac_word=$2
2055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   if test -n "$CC"; then
2061   ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066   IFS=$as_save_IFS
2067   test -z "$as_dir" && as_dir=.
2068   for ac_exec_ext in '' $ac_executable_extensions; do
2069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2070     ac_cv_prog_CC="${ac_tool_prefix}cc"
2071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072     break 2
2073   fi
2074 done
2075 done
2076 IFS=$as_save_IFS
2077
2078 fi
2079 fi
2080 CC=$ac_cv_prog_CC
2081 if test -n "$CC"; then
2082   { echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6; }
2084 else
2085   { echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6; }
2087 fi
2088
2089
2090   fi
2091 fi
2092 if test -z "$CC"; then
2093   # Extract the first word of "cc", so it can be a program name with args.
2094 set dummy cc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   if test -n "$CC"; then
2101   ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103   ac_prog_rejected=no
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107   IFS=$as_save_IFS
2108   test -z "$as_dir" && as_dir=.
2109   for ac_exec_ext in '' $ac_executable_extensions; do
2110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2112        ac_prog_rejected=yes
2113        continue
2114      fi
2115     ac_cv_prog_CC="cc"
2116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117     break 2
2118   fi
2119 done
2120 done
2121 IFS=$as_save_IFS
2122
2123 if test $ac_prog_rejected = yes; then
2124   # We found a bogon in the path, so make sure we never use it.
2125   set dummy $ac_cv_prog_CC
2126   shift
2127   if test $# != 0; then
2128     # We chose a different compiler from the bogus one.
2129     # However, it has the same basename, so the bogon will be chosen
2130     # first if we set CC to just the basename; use the full file name.
2131     shift
2132     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2133   fi
2134 fi
2135 fi
2136 fi
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139   { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2141 else
2142   { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2144 fi
2145
2146
2147 fi
2148 if test -z "$CC"; then
2149   if test -n "$ac_tool_prefix"; then
2150   for ac_prog in cl.exe
2151   do
2152     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2156 if test "${ac_cv_prog_CC+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   if test -n "$CC"; then
2160   ac_cv_prog_CC="$CC" # Let the user override the test.
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_exec_ext in '' $ac_executable_extensions; do
2168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171     break 2
2172   fi
2173 done
2174 done
2175 IFS=$as_save_IFS
2176
2177 fi
2178 fi
2179 CC=$ac_cv_prog_CC
2180 if test -n "$CC"; then
2181   { echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6; }
2183 else
2184   { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2186 fi
2187
2188
2189     test -n "$CC" && break
2190   done
2191 fi
2192 if test -z "$CC"; then
2193   ac_ct_CC=$CC
2194   for ac_prog in cl.exe
2195 do
2196   # Extract the first word of "$ac_prog", so it can be a program name with args.
2197 set dummy $ac_prog; ac_word=$2
2198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   if test -n "$ac_ct_CC"; then
2204   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2205 else
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209   IFS=$as_save_IFS
2210   test -z "$as_dir" && as_dir=.
2211   for ac_exec_ext in '' $ac_executable_extensions; do
2212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213     ac_cv_prog_ac_ct_CC="$ac_prog"
2214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215     break 2
2216   fi
2217 done
2218 done
2219 IFS=$as_save_IFS
2220
2221 fi
2222 fi
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6; }
2227 else
2228   { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2230 fi
2231
2232
2233   test -n "$ac_ct_CC" && break
2234 done
2235
2236   if test "x$ac_ct_CC" = x; then
2237     CC=""
2238   else
2239     case $cross_compiling:$ac_tool_warned in
2240 yes:)
2241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2242 whose name does not start with the host triplet.  If you think this
2243 configuration is useful to you, please write to autoconf@gnu.org." >&5
2244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2245 whose name does not start with the host triplet.  If you think this
2246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2247 ac_tool_warned=yes ;;
2248 esac
2249     CC=$ac_ct_CC
2250   fi
2251 fi
2252
2253 fi
2254
2255
2256 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: no acceptable C compiler found in \$PATH
2259 See \`config.log' for more details." >&2;}
2260    { (exit 1); exit 1; }; }
2261
2262 # Provide some information about the compiler.
2263 echo "$as_me:$LINENO: checking for C compiler version" >&5
2264 ac_compiler=`set X $ac_compile; echo $2`
2265 { (ac_try="$ac_compiler --version >&5"
2266 case "(($ac_try" in
2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268   *) ac_try_echo=$ac_try;;
2269 esac
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271   (eval "$ac_compiler --version >&5") 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }
2275 { (ac_try="$ac_compiler -v >&5"
2276 case "(($ac_try" in
2277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278   *) ac_try_echo=$ac_try;;
2279 esac
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281   (eval "$ac_compiler -v >&5") 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }
2285 { (ac_try="$ac_compiler -V >&5"
2286 case "(($ac_try" in
2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288   *) ac_try_echo=$ac_try;;
2289 esac
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291   (eval "$ac_compiler -V >&5") 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }
2295
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302
2303 int
2304 main ()
2305 {
2306
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 ac_clean_files_save=$ac_clean_files
2312 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2313 # Try to create an executable without -o first, disregard a.out.
2314 # It will help us diagnose broken compilers, and finding out an intuition
2315 # of exeext.
2316 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2317 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2318 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319 #
2320 # List of possible output files, starting from the most likely.
2321 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2322 # only as a last resort.  b.out is created by i960 compilers.
2323 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2324 #
2325 # The IRIX 6 linker writes into existing files which may not be
2326 # executable, retaining their permissions.  Remove them first so a
2327 # subsequent execution test works.
2328 ac_rmfiles=
2329 for ac_file in $ac_files
2330 do
2331   case $ac_file in
2332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2333     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2334   esac
2335 done
2336 rm -f $ac_rmfiles
2337
2338 if { (ac_try="$ac_link_default"
2339 case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344   (eval "$ac_link_default") 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); }; then
2348   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2349 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2350 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2351 # so that the user can short-circuit this test for compilers unknown to
2352 # Autoconf.
2353 for ac_file in $ac_files ''
2354 do
2355   test -f "$ac_file" || continue
2356   case $ac_file in
2357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2358         ;;
2359     [ab].out )
2360         # We found the default executable, but exeext='' is most
2361         # certainly right.
2362         break;;
2363     *.* )
2364         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2365         then :; else
2366            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2367         fi
2368         # We set ac_cv_exeext here because the later test for it is not
2369         # safe: cross compilers may not add the suffix if given an `-o'
2370         # argument, so we may need to know it at that point already.
2371         # Even if this section looks crufty: it has the advantage of
2372         # actually working.
2373         break;;
2374     * )
2375         break;;
2376   esac
2377 done
2378 test "$ac_cv_exeext" = no && ac_cv_exeext=
2379
2380 else
2381   ac_file=''
2382 fi
2383
2384 { echo "$as_me:$LINENO: result: $ac_file" >&5
2385 echo "${ECHO_T}$ac_file" >&6; }
2386 if test -z "$ac_file"; then
2387   echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: C compiler cannot create executables
2393 See \`config.log' for more details." >&2;}
2394    { (exit 77); exit 77; }; }
2395 fi
2396
2397 ac_exeext=$ac_cv_exeext
2398
2399 # Check that the compiler produces executables we can run.  If not, either
2400 # the compiler is broken, or we cross compile.
2401 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2402 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2403 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2404 # If not cross compiling, check that we can run a simple program.
2405 if test "$cross_compiling" != yes; then
2406   if { ac_try='./$ac_file'
2407   { (case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_try") 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416     cross_compiling=no
2417   else
2418     if test "$cross_compiling" = maybe; then
2419         cross_compiling=yes
2420     else
2421         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&2;}
2427    { (exit 1); exit 1; }; }
2428     fi
2429   fi
2430 fi
2431 { echo "$as_me:$LINENO: result: yes" >&5
2432 echo "${ECHO_T}yes" >&6; }
2433
2434 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2435 ac_clean_files=$ac_clean_files_save
2436 # Check that the compiler produces executables we can run.  If not, either
2437 # the compiler is broken, or we cross compile.
2438 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2440 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441 echo "${ECHO_T}$cross_compiling" >&6; }
2442
2443 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2445 if { (ac_try="$ac_link"
2446 case "(($ac_try" in
2447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448   *) ac_try_echo=$ac_try;;
2449 esac
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451   (eval "$ac_link") 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }; then
2455   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2456 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2457 # work properly (i.e., refer to `conftest.exe'), while it won't with
2458 # `rm'.
2459 for ac_file in conftest.exe conftest conftest.*; do
2460   test -f "$ac_file" || continue
2461   case $ac_file in
2462     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2463     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2464           break;;
2465     * ) break;;
2466   esac
2467 done
2468 else
2469   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472 See \`config.log' for more details." >&2;}
2473    { (exit 1); exit 1; }; }
2474 fi
2475
2476 rm -f conftest$ac_cv_exeext
2477 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2479
2480 rm -f conftest.$ac_ext
2481 EXEEXT=$ac_cv_exeext
2482 ac_exeext=$EXEEXT
2483 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2485 if test "${ac_cv_objext+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h.  */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h.  */
2494
2495 int
2496 main ()
2497 {
2498
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 rm -f conftest.o conftest.obj
2504 if { (ac_try="$ac_compile"
2505 case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_compile") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; then
2514   for ac_file in conftest.o conftest.obj conftest.*; do
2515   test -f "$ac_file" || continue;
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2518     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519        break;;
2520   esac
2521 done
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530    { (exit 1); exit 1; }; }
2531 fi
2532
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 fi
2535 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6; }
2537 OBJEXT=$ac_cv_objext
2538 ac_objext=$OBJEXT
2539 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550
2551 int
2552 main ()
2553 {
2554 #ifndef __GNUC__
2555        choke me
2556 #endif
2557
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2564 case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_compile") 2>conftest.er1
2570   ac_status=$?
2571   grep -v '^ *+' conftest.er1 >conftest.err
2572   rm -f conftest.er1
2573   cat conftest.err >&5
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } && {
2576          test -z "$ac_c_werror_flag" ||
2577          test ! -s conftest.err
2578        } && test -s conftest.$ac_objext; then
2579   ac_compiler_gnu=yes
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584         ac_compiler_gnu=no
2585 fi
2586
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2589
2590 fi
2591 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2593 GCC=`test $ac_compiler_gnu = yes && echo yes`
2594 ac_test_CFLAGS=${CFLAGS+set}
2595 ac_save_CFLAGS=$CFLAGS
2596 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2597 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_cc_g+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   ac_save_c_werror_flag=$ac_c_werror_flag
2602    ac_c_werror_flag=yes
2603    ac_cv_prog_cc_g=no
2604    CFLAGS="-g"
2605    cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h.  */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h.  */
2611
2612 int
2613 main ()
2614 {
2615
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (ac_try="$ac_compile"
2622 case "(($ac_try" in
2623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624   *) ac_try_echo=$ac_try;;
2625 esac
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627   (eval "$ac_compile") 2>conftest.er1
2628   ac_status=$?
2629   grep -v '^ *+' conftest.er1 >conftest.err
2630   rm -f conftest.er1
2631   cat conftest.err >&5
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); } && {
2634          test -z "$ac_c_werror_flag" ||
2635          test ! -s conftest.err
2636        } && test -s conftest.$ac_objext; then
2637   ac_cv_prog_cc_g=yes
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642         CFLAGS=""
2643       cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649
2650 int
2651 main ()
2652 {
2653
2654   ;
2655   return 0;
2656 }
2657 _ACEOF
2658 rm -f conftest.$ac_objext
2659 if { (ac_try="$ac_compile"
2660 case "(($ac_try" in
2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662   *) ac_try_echo=$ac_try;;
2663 esac
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665   (eval "$ac_compile") 2>conftest.er1
2666   ac_status=$?
2667   grep -v '^ *+' conftest.er1 >conftest.err
2668   rm -f conftest.er1
2669   cat conftest.err >&5
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } && {
2672          test -z "$ac_c_werror_flag" ||
2673          test ! -s conftest.err
2674        } && test -s conftest.$ac_objext; then
2675   :
2676 else
2677   echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680         ac_c_werror_flag=$ac_save_c_werror_flag
2681          CFLAGS="-g"
2682          cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_compile") 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } && {
2711          test -z "$ac_c_werror_flag" ||
2712          test ! -s conftest.err
2713        } && test -s conftest.$ac_objext; then
2714   ac_cv_prog_cc_g=yes
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719
2720 fi
2721
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 fi
2724
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 fi
2727
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729    ac_c_werror_flag=$ac_save_c_werror_flag
2730 fi
2731 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2732 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2733 if test "$ac_test_CFLAGS" = set; then
2734   CFLAGS=$ac_save_CFLAGS
2735 elif test $ac_cv_prog_cc_g = yes; then
2736   if test "$GCC" = yes; then
2737     CFLAGS="-g -O2"
2738   else
2739     CFLAGS="-g"
2740   fi
2741 else
2742   if test "$GCC" = yes; then
2743     CFLAGS="-O2"
2744   else
2745     CFLAGS=
2746   fi
2747 fi
2748 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2749 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_cc_c89+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   ac_cv_prog_cc_c89=no
2754 ac_save_CC=$CC
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761 #include <stdarg.h>
2762 #include <stdio.h>
2763 #include <sys/types.h>
2764 #include <sys/stat.h>
2765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2766 struct buf { int x; };
2767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2768 static char *e (p, i)
2769      char **p;
2770      int i;
2771 {
2772   return p[i];
2773 }
2774 static char *f (char * (*g) (char **, int), char **p, ...)
2775 {
2776   char *s;
2777   va_list v;
2778   va_start (v,p);
2779   s = g (p, va_arg (v,int));
2780   va_end (v);
2781   return s;
2782 }
2783
2784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2785    function prototypes and stuff, but not '\xHH' hex character constants.
2786    These don't provoke an error unfortunately, instead are silently treated
2787    as 'x'.  The following induces an error, until -std is added to get
2788    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2789    array size at least.  It's necessary to write '\x00'==0 to get something
2790    that's true only with -std.  */
2791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2792
2793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2794    inside strings and character constants.  */
2795 #define FOO(x) 'x'
2796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2797
2798 int test (int i, double x);
2799 struct s1 {int (*f) (int a);};
2800 struct s2 {int (*f) (double a);};
2801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2802 int argc;
2803 char **argv;
2804 int
2805 main ()
2806 {
2807 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2808   ;
2809   return 0;
2810 }
2811 _ACEOF
2812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2813         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2814 do
2815   CC="$ac_save_CC $ac_arg"
2816   rm -f conftest.$ac_objext
2817 if { (ac_try="$ac_compile"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_compile") 2>conftest.er1
2824   ac_status=$?
2825   grep -v '^ *+' conftest.er1 >conftest.err
2826   rm -f conftest.er1
2827   cat conftest.err >&5
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); } && {
2830          test -z "$ac_c_werror_flag" ||
2831          test ! -s conftest.err
2832        } && test -s conftest.$ac_objext; then
2833   ac_cv_prog_cc_c89=$ac_arg
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2837
2838
2839 fi
2840
2841 rm -f core conftest.err conftest.$ac_objext
2842   test "x$ac_cv_prog_cc_c89" != "xno" && break
2843 done
2844 rm -f conftest.$ac_ext
2845 CC=$ac_save_CC
2846
2847 fi
2848 # AC_CACHE_VAL
2849 case "x$ac_cv_prog_cc_c89" in
2850   x)
2851     { echo "$as_me:$LINENO: result: none needed" >&5
2852 echo "${ECHO_T}none needed" >&6; } ;;
2853   xno)
2854     { echo "$as_me:$LINENO: result: unsupported" >&5
2855 echo "${ECHO_T}unsupported" >&6; } ;;
2856   *)
2857     CC="$CC $ac_cv_prog_cc_c89"
2858     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2860 esac
2861
2862
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868
2869
2870
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2878 # On Suns, sometimes $CPP names a directory.
2879 if test -n "$CPP" && test -d "$CPP"; then
2880   CPP=
2881 fi
2882 if test -z "$CPP"; then
2883   if test "${ac_cv_prog_CPP+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886       # Double quotes because CPP needs to be expanded
2887     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2888     do
2889       ac_preproc_ok=false
2890 for ac_c_preproc_warn_flag in '' yes
2891 do
2892   # Use a header file that comes with gcc, so configuring glibc
2893   # with a fresh cross-compiler works.
2894   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895   # <limits.h> exists even on freestanding compilers.
2896   # On the NeXT, cc -E runs the code through the compiler's parser,
2897   # not just through cpp. "Syntax error" is here to catch this case.
2898   cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h.  */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h.  */
2904 #ifdef __STDC__
2905 # include <limits.h>
2906 #else
2907 # include <assert.h>
2908 #endif
2909                      Syntax error
2910 _ACEOF
2911 if { (ac_try="$ac_cpp conftest.$ac_ext"
2912 case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2918   ac_status=$?
2919   grep -v '^ *+' conftest.er1 >conftest.err
2920   rm -f conftest.er1
2921   cat conftest.err >&5
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } >/dev/null && {
2924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2925          test ! -s conftest.err
2926        }; then
2927   :
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932   # Broken: fails on valid input.
2933 continue
2934 fi
2935
2936 rm -f conftest.err conftest.$ac_ext
2937
2938   # OK, works on sane cases.  Now check whether nonexistent headers
2939   # can be detected and how.
2940   cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946 #include <ac_nonexistent.h>
2947 _ACEOF
2948 if { (ac_try="$ac_cpp conftest.$ac_ext"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } >/dev/null && {
2961          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2962          test ! -s conftest.err
2963        }; then
2964   # Broken: success on invalid input.
2965 continue
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Passes both tests.
2971 ac_preproc_ok=:
2972 break
2973 fi
2974
2975 rm -f conftest.err conftest.$ac_ext
2976
2977 done
2978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2979 rm -f conftest.err conftest.$ac_ext
2980 if $ac_preproc_ok; then
2981   break
2982 fi
2983
2984     done
2985     ac_cv_prog_CPP=$CPP
2986
2987 fi
2988   CPP=$ac_cv_prog_CPP
2989 else
2990   ac_cv_prog_CPP=$CPP
2991 fi
2992 { echo "$as_me:$LINENO: result: $CPP" >&5
2993 echo "${ECHO_T}$CPP" >&6; }
2994 ac_preproc_ok=false
2995 for ac_c_preproc_warn_flag in '' yes
2996 do
2997   # Use a header file that comes with gcc, so configuring glibc
2998   # with a fresh cross-compiler works.
2999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3000   # <limits.h> exists even on freestanding compilers.
3001   # On the NeXT, cc -E runs the code through the compiler's parser,
3002   # not just through cpp. "Syntax error" is here to catch this case.
3003   cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009 #ifdef __STDC__
3010 # include <limits.h>
3011 #else
3012 # include <assert.h>
3013 #endif
3014                      Syntax error
3015 _ACEOF
3016 if { (ac_try="$ac_cpp conftest.$ac_ext"
3017 case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3023   ac_status=$?
3024   grep -v '^ *+' conftest.er1 >conftest.err
3025   rm -f conftest.er1
3026   cat conftest.err >&5
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); } >/dev/null && {
3029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3030          test ! -s conftest.err
3031        }; then
3032   :
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037   # Broken: fails on valid input.
3038 continue
3039 fi
3040
3041 rm -f conftest.err conftest.$ac_ext
3042
3043   # OK, works on sane cases.  Now check whether nonexistent headers
3044   # can be detected and how.
3045   cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051 #include <ac_nonexistent.h>
3052 _ACEOF
3053 if { (ac_try="$ac_cpp conftest.$ac_ext"
3054 case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3060   ac_status=$?
3061   grep -v '^ *+' conftest.er1 >conftest.err
3062   rm -f conftest.er1
3063   cat conftest.err >&5
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); } >/dev/null && {
3066          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3067          test ! -s conftest.err
3068        }; then
3069   # Broken: success on invalid input.
3070 continue
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075   # Passes both tests.
3076 ac_preproc_ok=:
3077 break
3078 fi
3079
3080 rm -f conftest.err conftest.$ac_ext
3081
3082 done
3083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084 rm -f conftest.err conftest.$ac_ext
3085 if $ac_preproc_ok; then
3086   :
3087 else
3088   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3091 See \`config.log' for more details." >&2;}
3092    { (exit 1); exit 1; }; }
3093 fi
3094
3095 ac_ext=c
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100
3101
3102 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3103 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3104 if test "${ac_cv_path_GREP+set}" = set; then
3105   echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107   # Extract the first word of "grep ggrep" to use in msg output
3108 if test -z "$GREP"; then
3109 set dummy grep ggrep; ac_prog_name=$2
3110 if test "${ac_cv_path_GREP+set}" = set; then
3111   echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113   ac_path_GREP_found=false
3114 # Loop through the user's path and test for each of PROGNAME-LIST
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3117 do
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120   for ac_prog in grep ggrep; do
3121   for ac_exec_ext in '' $ac_executable_extensions; do
3122     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3123     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3124     # Check for GNU ac_path_GREP and select it if it is found.
3125   # Check for GNU $ac_path_GREP
3126 case `"$ac_path_GREP" --version 2>&1` in
3127 *GNU*)
3128   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3129 *)
3130   ac_count=0
3131   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3132   while :
3133   do
3134     cat "conftest.in" "conftest.in" >"conftest.tmp"
3135     mv "conftest.tmp" "conftest.in"
3136     cp "conftest.in" "conftest.nl"
3137     echo 'GREP' >> "conftest.nl"
3138     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3139     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3140     ac_count=`expr $ac_count + 1`
3141     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3142       # Best one so far, save it but keep looking for a better one
3143       ac_cv_path_GREP="$ac_path_GREP"
3144       ac_path_GREP_max=$ac_count
3145     fi
3146     # 10*(2^10) chars as input seems more than enough
3147     test $ac_count -gt 10 && break
3148   done
3149   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3150 esac
3151
3152
3153     $ac_path_GREP_found && break 3
3154   done
3155 done
3156
3157 done
3158 IFS=$as_save_IFS
3159
3160
3161 fi
3162
3163 GREP="$ac_cv_path_GREP"
3164 if test -z "$GREP"; then
3165   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3166 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3167    { (exit 1); exit 1; }; }
3168 fi
3169
3170 else
3171   ac_cv_path_GREP=$GREP
3172 fi
3173
3174
3175 fi
3176 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3177 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3178  GREP="$ac_cv_path_GREP"
3179
3180
3181 { echo "$as_me:$LINENO: checking for egrep" >&5
3182 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3183 if test "${ac_cv_path_EGREP+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3187    then ac_cv_path_EGREP="$GREP -E"
3188    else
3189      # Extract the first word of "egrep" to use in msg output
3190 if test -z "$EGREP"; then
3191 set dummy egrep; ac_prog_name=$2
3192 if test "${ac_cv_path_EGREP+set}" = set; then
3193   echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195   ac_path_EGREP_found=false
3196 # Loop through the user's path and test for each of PROGNAME-LIST
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202   for ac_prog in egrep; do
3203   for ac_exec_ext in '' $ac_executable_extensions; do
3204     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3205     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3206     # Check for GNU ac_path_EGREP and select it if it is found.
3207   # Check for GNU $ac_path_EGREP
3208 case `"$ac_path_EGREP" --version 2>&1` in
3209 *GNU*)
3210   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3211 *)
3212   ac_count=0
3213   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3214   while :
3215   do
3216     cat "conftest.in" "conftest.in" >"conftest.tmp"
3217     mv "conftest.tmp" "conftest.in"
3218     cp "conftest.in" "conftest.nl"
3219     echo 'EGREP' >> "conftest.nl"
3220     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3221     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3222     ac_count=`expr $ac_count + 1`
3223     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3224       # Best one so far, save it but keep looking for a better one
3225       ac_cv_path_EGREP="$ac_path_EGREP"
3226       ac_path_EGREP_max=$ac_count
3227     fi
3228     # 10*(2^10) chars as input seems more than enough
3229     test $ac_count -gt 10 && break
3230   done
3231   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3232 esac
3233
3234
3235     $ac_path_EGREP_found && break 3
3236   done
3237 done
3238
3239 done
3240 IFS=$as_save_IFS
3241
3242
3243 fi
3244
3245 EGREP="$ac_cv_path_EGREP"
3246 if test -z "$EGREP"; then
3247   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3248 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3249    { (exit 1); exit 1; }; }
3250 fi
3251
3252 else
3253   ac_cv_path_EGREP=$EGREP
3254 fi
3255
3256
3257    fi
3258 fi
3259 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3260 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3261  EGREP="$ac_cv_path_EGREP"
3262
3263
3264
3265 { echo "$as_me:$LINENO: checking for AIX" >&5
3266 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3267 cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273 #ifdef _AIX
3274   yes
3275 #endif
3276
3277 _ACEOF
3278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3279   $EGREP "yes" >/dev/null 2>&1; then
3280   { echo "$as_me:$LINENO: result: yes" >&5
3281 echo "${ECHO_T}yes" >&6; }
3282 cat >>confdefs.h <<\_ACEOF
3283 #define _ALL_SOURCE 1
3284 _ACEOF
3285
3286 else
3287   { echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6; }
3289 fi
3290 rm -f conftest*
3291
3292
3293
3294 if test $ac_cv_c_compiler_gnu = yes; then
3295     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3296 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3297 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300     ac_pattern="Autoconf.*'x'"
3301   cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h.  */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h.  */
3307 #include <sgtty.h>
3308 Autoconf TIOCGETP
3309 _ACEOF
3310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3311   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3312   ac_cv_prog_gcc_traditional=yes
3313 else
3314   ac_cv_prog_gcc_traditional=no
3315 fi
3316 rm -f conftest*
3317
3318
3319   if test $ac_cv_prog_gcc_traditional = no; then
3320     cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326 #include <termio.h>
3327 Autoconf TCGETA
3328 _ACEOF
3329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3330   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3331   ac_cv_prog_gcc_traditional=yes
3332 fi
3333 rm -f conftest*
3334
3335   fi
3336 fi
3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3338 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3339   if test $ac_cv_prog_gcc_traditional = yes; then
3340     CC="$CC -traditional"
3341   fi
3342 fi
3343
3344 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3345 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3346 if test "${ac_cv_prog_suncc+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   cat > conftest.c <<EOF
3350 #ifdef __SUNPRO_C
3351   yes;
3352 #endif
3353 EOF
3354 if { ac_try='${CC-cc} -E conftest.c'
3355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356   (eval $ac_try) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3360   ac_cv_prog_suncc=yes
3361 else
3362   ac_cv_prog_suncc=no
3363 fi
3364 fi
3365 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3366 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3367 if test -n "$ac_tool_prefix"; then
3368   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3372 if test "${ac_cv_prog_RANLIB+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   if test -n "$RANLIB"; then
3376   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383   for ac_exec_ext in '' $ac_executable_extensions; do
3384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 RANLIB=$ac_cv_prog_RANLIB
3396 if test -n "$RANLIB"; then
3397   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3398 echo "${ECHO_T}$RANLIB" >&6; }
3399 else
3400   { echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6; }
3402 fi
3403
3404
3405 fi
3406 if test -z "$ac_cv_prog_RANLIB"; then
3407   ac_ct_RANLIB=$RANLIB
3408   # Extract the first word of "ranlib", so it can be a program name with args.
3409 set dummy ranlib; ac_word=$2
3410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   if test -n "$ac_ct_RANLIB"; then
3416   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423   for ac_exec_ext in '' $ac_executable_extensions; do
3424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425     ac_cv_prog_ac_ct_RANLIB="ranlib"
3426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3436 if test -n "$ac_ct_RANLIB"; then
3437   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3438 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3439 else
3440   { echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6; }
3442 fi
3443
3444   if test "x$ac_ct_RANLIB" = x; then
3445     RANLIB=":"
3446   else
3447     case $cross_compiling:$ac_tool_warned in
3448 yes:)
3449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3450 whose name does not start with the host triplet.  If you think this
3451 configuration is useful to you, please write to autoconf@gnu.org." >&5
3452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3453 whose name does not start with the host triplet.  If you think this
3454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3455 ac_tool_warned=yes ;;
3456 esac
3457     RANLIB=$ac_ct_RANLIB
3458   fi
3459 else
3460   RANLIB="$ac_cv_prog_RANLIB"
3461 fi
3462
3463
3464 abs_top_builddir=`pwd`
3465
3466
3467
3468 PACKAGE=freeradius
3469
3470 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3472 if test "${ac_cv_header_stdc+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 #include <stdlib.h>
3482 #include <stdarg.h>
3483 #include <string.h>
3484 #include <float.h>
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 rm -f conftest.$ac_objext
3495 if { (ac_try="$ac_compile"
3496 case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501   (eval "$ac_compile") 2>conftest.er1
3502   ac_status=$?
3503   grep -v '^ *+' conftest.er1 >conftest.err
3504   rm -f conftest.er1
3505   cat conftest.err >&5
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } && {
3508          test -z "$ac_c_werror_flag" ||
3509          test ! -s conftest.err
3510        } && test -s conftest.$ac_objext; then
3511   ac_cv_header_stdc=yes
3512 else
3513   echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516         ac_cv_header_stdc=no
3517 fi
3518
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520
3521 if test $ac_cv_header_stdc = yes; then
3522   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3523   cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3529 #include <string.h>
3530
3531 _ACEOF
3532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3533   $EGREP "memchr" >/dev/null 2>&1; then
3534   :
3535 else
3536   ac_cv_header_stdc=no
3537 fi
3538 rm -f conftest*
3539
3540 fi
3541
3542 if test $ac_cv_header_stdc = yes; then
3543   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3544   cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550 #include <stdlib.h>
3551
3552 _ACEOF
3553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554   $EGREP "free" >/dev/null 2>&1; then
3555   :
3556 else
3557   ac_cv_header_stdc=no
3558 fi
3559 rm -f conftest*
3560
3561 fi
3562
3563 if test $ac_cv_header_stdc = yes; then
3564   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3565   if test "$cross_compiling" = yes; then
3566   :
3567 else
3568   cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h.  */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h.  */
3574 #include <ctype.h>
3575 #include <stdlib.h>
3576 #if ((' ' & 0x0FF) == 0x020)
3577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3579 #else
3580 # define ISLOWER(c) \
3581                    (('a' <= (c) && (c) <= 'i') \
3582                      || ('j' <= (c) && (c) <= 'r') \
3583                      || ('s' <= (c) && (c) <= 'z'))
3584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3585 #endif
3586
3587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3588 int
3589 main ()
3590 {
3591   int i;
3592   for (i = 0; i < 256; i++)
3593     if (XOR (islower (i), ISLOWER (i))
3594         || toupper (i) != TOUPPER (i))
3595       return 2;
3596   return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest$ac_exeext
3600 if { (ac_try="$ac_link"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_link") 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3610   { (case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_try") 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; }; then
3619   :
3620 else
3621   echo "$as_me: program exited with status $ac_status" >&5
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 ( exit $ac_status )
3626 ac_cv_header_stdc=no
3627 fi
3628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3629 fi
3630
3631
3632 fi
3633 fi
3634 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3635 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3636 if test $ac_cv_header_stdc = yes; then
3637
3638 cat >>confdefs.h <<\_ACEOF
3639 #define STDC_HEADERS 1
3640 _ACEOF
3641
3642 fi
3643
3644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3655                   inttypes.h stdint.h unistd.h
3656 do
3657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 $ac_includes_default
3670
3671 #include <$ac_header>
3672 _ACEOF
3673 rm -f conftest.$ac_objext
3674 if { (ac_try="$ac_compile"
3675 case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_compile") 2>conftest.er1
3681   ac_status=$?
3682   grep -v '^ *+' conftest.er1 >conftest.err
3683   rm -f conftest.er1
3684   cat conftest.err >&5
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); } && {
3687          test -z "$ac_c_werror_flag" ||
3688          test ! -s conftest.err
3689        } && test -s conftest.$ac_objext; then
3690   eval "$as_ac_Header=yes"
3691 else
3692   echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695         eval "$as_ac_Header=no"
3696 fi
3697
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 fi
3700 ac_res=`eval echo '${'$as_ac_Header'}'`
3701                { echo "$as_me:$LINENO: result: $ac_res" >&5
3702 echo "${ECHO_T}$ac_res" >&6; }
3703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3704   cat >>confdefs.h <<_ACEOF
3705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3706 _ACEOF
3707
3708 fi
3709
3710 done
3711
3712
3713 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3714 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3715 if test "${ac_cv_c_bigendian+set}" = set; then
3716   echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718   # See if sys/param.h defines the BYTE_ORDER macro.
3719 cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 #include <sys/types.h>
3726 #include <sys/param.h>
3727
3728 int
3729 main ()
3730 {
3731 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3732         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3733  bogus endian macros
3734 #endif
3735
3736   ;
3737   return 0;
3738 }
3739 _ACEOF
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3742 case "(($ac_try" in
3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744   *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747   (eval "$ac_compile") 2>conftest.er1
3748   ac_status=$?
3749   grep -v '^ *+' conftest.er1 >conftest.err
3750   rm -f conftest.er1
3751   cat conftest.err >&5
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } && {
3754          test -z "$ac_c_werror_flag" ||
3755          test ! -s conftest.err
3756        } && test -s conftest.$ac_objext; then
3757   # It does; now see whether it defined to BIG_ENDIAN or not.
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 #include <sys/types.h>
3765 #include <sys/param.h>
3766
3767 int
3768 main ()
3769 {
3770 #if BYTE_ORDER != BIG_ENDIAN
3771  not big endian
3772 #endif
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3780 case "(($ac_try" in
3781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782   *) ac_try_echo=$ac_try;;
3783 esac
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785   (eval "$ac_compile") 2>conftest.er1
3786   ac_status=$?
3787   grep -v '^ *+' conftest.er1 >conftest.err
3788   rm -f conftest.er1
3789   cat conftest.err >&5
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); } && {
3792          test -z "$ac_c_werror_flag" ||
3793          test ! -s conftest.err
3794        } && test -s conftest.$ac_objext; then
3795   ac_cv_c_bigendian=yes
3796 else
3797   echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800         ac_cv_c_bigendian=no
3801 fi
3802
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 else
3805   echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808         # It does not; compile a test program.
3809 if test "$cross_compiling" = yes; then
3810   # try to guess the endianness by grepping values into an object file
3811   ac_cv_c_bigendian=unknown
3812   cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3819 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3820 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3821 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3822 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3823 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3824 int
3825 main ()
3826 {
3827  _ascii (); _ebcdic ();
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839   (eval "$ac_compile") 2>conftest.er1
3840   ac_status=$?
3841   grep -v '^ *+' conftest.er1 >conftest.err
3842   rm -f conftest.er1
3843   cat conftest.err >&5
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); } && {
3846          test -z "$ac_c_werror_flag" ||
3847          test ! -s conftest.err
3848        } && test -s conftest.$ac_objext; then
3849   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3850   ac_cv_c_bigendian=yes
3851 fi
3852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3853   if test "$ac_cv_c_bigendian" = unknown; then
3854     ac_cv_c_bigendian=no
3855   else
3856     # finding both strings is unlikely to happen, but who knows?
3857     ac_cv_c_bigendian=unknown
3858   fi
3859 fi
3860 else
3861   echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 else
3869   cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875 $ac_includes_default
3876 int
3877 main ()
3878 {
3879
3880   /* Are we little or big endian?  From Harbison&Steele.  */
3881   union
3882   {
3883     long int l;
3884     char c[sizeof (long int)];
3885   } u;
3886   u.l = 1;
3887   return u.c[sizeof (long int) - 1] == 1;
3888
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 rm -f conftest$ac_exeext
3894 if { (ac_try="$ac_link"
3895 case "(($ac_try" in
3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897   *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900   (eval "$ac_link") 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3904   { (case "(($ac_try" in
3905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906   *) ac_try_echo=$ac_try;;
3907 esac
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909   (eval "$ac_try") 2>&5
3910   ac_status=$?
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); }; }; then
3913   ac_cv_c_bigendian=no
3914 else
3915   echo "$as_me: program exited with status $ac_status" >&5
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 ( exit $ac_status )
3920 ac_cv_c_bigendian=yes
3921 fi
3922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3923 fi
3924
3925
3926 fi
3927
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3931 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3932 case $ac_cv_c_bigendian in
3933   yes)
3934
3935 cat >>confdefs.h <<\_ACEOF
3936 #define WORDS_BIGENDIAN 1
3937 _ACEOF
3938  ;;
3939   no)
3940      ;;
3941   *)
3942     { { echo "$as_me:$LINENO: error: unknown endianness
3943 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3944 echo "$as_me: error: unknown endianness
3945 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3946    { (exit 1); exit 1; }; } ;;
3947 esac
3948
3949
3950 # Extract the first word of "gmake", so it can be a program name with args.
3951 set dummy gmake; ac_word=$2
3952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3954 if test "${ac_cv_prog_GMAKE+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   if test -n "$GMAKE"; then
3958   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3959 else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3962 do
3963   IFS=$as_save_IFS
3964   test -z "$as_dir" && as_dir=.
3965   for ac_exec_ext in '' $ac_executable_extensions; do
3966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967     ac_cv_prog_GMAKE="yes"
3968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969     break 2
3970   fi
3971 done
3972 done
3973 IFS=$as_save_IFS
3974
3975   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3976 fi
3977 fi
3978 GMAKE=$ac_cv_prog_GMAKE
3979 if test -n "$GMAKE"; then
3980   { echo "$as_me:$LINENO: result: $GMAKE" >&5
3981 echo "${ECHO_T}$GMAKE" >&6; }
3982 else
3983   { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3985 fi
3986
3987
3988 if test $GMAKE = no; then
3989   # Extract the first word of "make", so it can be a program name with args.
3990 set dummy make; ac_word=$2
3991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993 if test "${ac_cv_path_MAKE+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   case $MAKE in
3997   [\\/]* | ?:[\\/]*)
3998   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3999   ;;
4000   *)
4001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014 IFS=$as_save_IFS
4015
4016   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4017   ;;
4018 esac
4019 fi
4020 MAKE=$ac_cv_path_MAKE
4021 if test -n "$MAKE"; then
4022   { echo "$as_me:$LINENO: result: $MAKE" >&5
4023 echo "${ECHO_T}$MAKE" >&6; }
4024 else
4025   { echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6; }
4027 fi
4028
4029
4030 else
4031   # Extract the first word of "gmake", so it can be a program name with args.
4032 set dummy gmake; ac_word=$2
4033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4035 if test "${ac_cv_path_MAKE+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   case $MAKE in
4039   [\\/]* | ?:[\\/]*)
4040   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4041   ;;
4042   *)
4043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046   IFS=$as_save_IFS
4047   test -z "$as_dir" && as_dir=.
4048   for ac_exec_ext in '' $ac_executable_extensions; do
4049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052     break 2
4053   fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4059   ;;
4060 esac
4061 fi
4062 MAKE=$ac_cv_path_MAKE
4063 if test -n "$MAKE"; then
4064   { echo "$as_me:$LINENO: result: $MAKE" >&5
4065 echo "${ECHO_T}$MAKE" >&6; }
4066 else
4067   { echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6; }
4069 fi
4070
4071
4072 fi
4073 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4074 if test -z "$makever"; then
4075   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4076                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4077 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4078                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4079    { (exit 1); exit 1; }; }
4080 fi
4081
4082   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4083 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4084 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   ac_check_lib_save_LIBS=$LIBS
4088 LIBS="-lltdl  $LIBS"
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095
4096 /* Override any GCC internal prototype to avoid an error.
4097    Use char because int might match the return type of a GCC
4098    builtin and then its argument prototype would still apply.  */
4099 #ifdef __cplusplus
4100 extern "C"
4101 #endif
4102 char lt_dlinit ();
4103 int
4104 main ()
4105 {
4106 return lt_dlinit ();
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext conftest$ac_exeext
4112 if { (ac_try="$ac_link"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118   (eval "$ac_link") 2>conftest.er1
4119   ac_status=$?
4120   grep -v '^ *+' conftest.er1 >conftest.err
4121   rm -f conftest.er1
4122   cat conftest.err >&5
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } && {
4125          test -z "$ac_c_werror_flag" ||
4126          test ! -s conftest.err
4127        } && test -s conftest$ac_exeext &&
4128        $as_test_x conftest$ac_exeext; then
4129   ac_cv_lib_ltdl_lt_dlinit=yes
4130 else
4131   echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134         ac_cv_lib_ltdl_lt_dlinit=no
4135 fi
4136
4137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4138       conftest$ac_exeext conftest.$ac_ext
4139 LIBS=$ac_check_lib_save_LIBS
4140 fi
4141 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4142 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4143 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4144   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4145 else
4146   if test x"$enable_ltdl_install" = xno; then
4147      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4148 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4149    else
4150      enable_ltdl_install=yes
4151    fi
4152
4153 fi
4154
4155   if test x"$enable_ltdl_install" = x"yes"; then
4156     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4157     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4158     LTDLINCL='-I${top_srcdir}/''libltdl'
4159   else
4160     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4161     LIBLTDL="-lltdl"
4162     LTDLINCL=
4163   fi
4164   # For backwards non-gettext consistent compatibility...
4165   INCLTDL="$LTDLINCL"
4166
4167
4168 if test x"$enable_ltdl_install" = x"yes"; then
4169   LTDL_SUBDIRS=libltdl
4170 fi
4171
4172
4173 # Check whether --enable-shared was given.
4174 if test "${enable_shared+set}" = set; then
4175   enableval=$enable_shared; p=${PACKAGE-default}
4176     case $enableval in
4177     yes) enable_shared=yes ;;
4178     no) enable_shared=no ;;
4179     *)
4180       enable_shared=no
4181       # Look at the argument we got.  We use all the common list separators.
4182       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4183       for pkg in $enableval; do
4184         IFS="$lt_save_ifs"
4185         if test "X$pkg" = "X$p"; then
4186           enable_shared=yes
4187         fi
4188       done
4189       IFS="$lt_save_ifs"
4190       ;;
4191     esac
4192 else
4193   enable_shared=yes
4194 fi
4195
4196
4197 # Check whether --enable-static was given.
4198 if test "${enable_static+set}" = set; then
4199   enableval=$enable_static; p=${PACKAGE-default}
4200     case $enableval in
4201     yes) enable_static=yes ;;
4202     no) enable_static=no ;;
4203     *)
4204      enable_static=no
4205       # Look at the argument we got.  We use all the common list separators.
4206       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4207       for pkg in $enableval; do
4208         IFS="$lt_save_ifs"
4209         if test "X$pkg" = "X$p"; then
4210           enable_static=yes
4211         fi
4212       done
4213       IFS="$lt_save_ifs"
4214       ;;
4215     esac
4216 else
4217   enable_static=yes
4218 fi
4219
4220
4221 # Check whether --enable-fast-install was given.
4222 if test "${enable_fast_install+set}" = set; then
4223   enableval=$enable_fast_install; p=${PACKAGE-default}
4224     case $enableval in
4225     yes) enable_fast_install=yes ;;
4226     no) enable_fast_install=no ;;
4227     *)
4228       enable_fast_install=no
4229       # Look at the argument we got.  We use all the common list separators.
4230       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4231       for pkg in $enableval; do
4232         IFS="$lt_save_ifs"
4233         if test "X$pkg" = "X$p"; then
4234           enable_fast_install=yes
4235         fi
4236       done
4237       IFS="$lt_save_ifs"
4238       ;;
4239     esac
4240 else
4241   enable_fast_install=yes
4242 fi
4243
4244
4245 ac_aux_dir=
4246 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4247   if test -f "$ac_dir/install-sh"; then
4248     ac_aux_dir=$ac_dir
4249     ac_install_sh="$ac_aux_dir/install-sh -c"
4250     break
4251   elif test -f "$ac_dir/install.sh"; then
4252     ac_aux_dir=$ac_dir
4253     ac_install_sh="$ac_aux_dir/install.sh -c"
4254     break
4255   elif test -f "$ac_dir/shtool"; then
4256     ac_aux_dir=$ac_dir
4257     ac_install_sh="$ac_aux_dir/shtool install -c"
4258     break
4259   fi
4260 done
4261 if test -z "$ac_aux_dir"; then
4262   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4263 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4264    { (exit 1); exit 1; }; }
4265 fi
4266
4267 # These three variables are undocumented and unsupported,
4268 # and are intended to be withdrawn in a future Autoconf release.
4269 # They can cause serious problems if a builder's source tree is in a directory
4270 # whose full name contains unusual characters.
4271 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4272 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4273 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4274
4275
4276 # Make sure we can run config.sub.
4277 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4278   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4279 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4280    { (exit 1); exit 1; }; }
4281
4282 { echo "$as_me:$LINENO: checking build system type" >&5
4283 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4284 if test "${ac_cv_build+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   ac_build_alias=$build_alias
4288 test "x$ac_build_alias" = x &&
4289   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4290 test "x$ac_build_alias" = x &&
4291   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4292 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4293    { (exit 1); exit 1; }; }
4294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4295   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4296 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4297    { (exit 1); exit 1; }; }
4298
4299 fi
4300 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4301 echo "${ECHO_T}$ac_cv_build" >&6; }
4302 case $ac_cv_build in
4303 *-*-*) ;;
4304 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4305 echo "$as_me: error: invalid value of canonical build" >&2;}
4306    { (exit 1); exit 1; }; };;
4307 esac
4308 build=$ac_cv_build
4309 ac_save_IFS=$IFS; IFS='-'
4310 set x $ac_cv_build
4311 shift
4312 build_cpu=$1
4313 build_vendor=$2
4314 shift; shift
4315 # Remember, the first character of IFS is used to create $*,
4316 # except with old shells:
4317 build_os=$*
4318 IFS=$ac_save_IFS
4319 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4320
4321
4322 { echo "$as_me:$LINENO: checking host system type" >&5
4323 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4324 if test "${ac_cv_host+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   if test "x$host_alias" = x; then
4328   ac_cv_host=$ac_cv_build
4329 else
4330   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4331     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4332 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4333    { (exit 1); exit 1; }; }
4334 fi
4335
4336 fi
4337 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4338 echo "${ECHO_T}$ac_cv_host" >&6; }
4339 case $ac_cv_host in
4340 *-*-*) ;;
4341 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4342 echo "$as_me: error: invalid value of canonical host" >&2;}
4343    { (exit 1); exit 1; }; };;
4344 esac
4345 host=$ac_cv_host
4346 ac_save_IFS=$IFS; IFS='-'
4347 set x $ac_cv_host
4348 shift
4349 host_cpu=$1
4350 host_vendor=$2
4351 shift; shift
4352 # Remember, the first character of IFS is used to create $*,
4353 # except with old shells:
4354 host_os=$*
4355 IFS=$ac_save_IFS
4356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4357
4358
4359 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4360 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4361 if test "${lt_cv_path_SED+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364   # Loop through the user's path and test for sed and gsed.
4365 # Then use that list of sed's as ones to test for truncation.
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369   IFS=$as_save_IFS
4370   test -z "$as_dir" && as_dir=.
4371   for lt_ac_prog in sed gsed; do
4372     for ac_exec_ext in '' $ac_executable_extensions; do
4373       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4374         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4375       fi
4376     done
4377   done
4378 done
4379 lt_ac_max=0
4380 lt_ac_count=0
4381 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4382 # along with /bin/sed that truncates output.
4383 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4384   test ! -f $lt_ac_sed && continue
4385   cat /dev/null > conftest.in
4386   lt_ac_count=0
4387   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4388   # Check for GNU sed and select it if it is found.
4389   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4390     lt_cv_path_SED=$lt_ac_sed
4391     break
4392   fi
4393   while true; do
4394     cat conftest.in conftest.in >conftest.tmp
4395     mv conftest.tmp conftest.in
4396     cp conftest.in conftest.nl
4397     echo >>conftest.nl
4398     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4399     cmp -s conftest.out conftest.nl || break
4400     # 10000 chars as input seems more than enough
4401     test $lt_ac_count -gt 10 && break
4402     lt_ac_count=`expr $lt_ac_count + 1`
4403     if test $lt_ac_count -gt $lt_ac_max; then
4404       lt_ac_max=$lt_ac_count
4405       lt_cv_path_SED=$lt_ac_sed
4406     fi
4407   done
4408 done
4409
4410 fi
4411
4412 SED=$lt_cv_path_SED
4413 { echo "$as_me:$LINENO: result: $SED" >&5
4414 echo "${ECHO_T}$SED" >&6; }
4415
4416
4417 # Check whether --with-gnu-ld was given.
4418 if test "${with_gnu_ld+set}" = set; then
4419   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4420 else
4421   with_gnu_ld=no
4422 fi
4423
4424 ac_prog=ld
4425 if test "$GCC" = yes; then
4426   # Check if gcc -print-prog-name=ld gives a path.
4427   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4428 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4429   case $host in
4430   *-*-mingw*)
4431     # gcc leaves a trailing carriage return which upsets mingw
4432     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4433   *)
4434     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4435   esac
4436   case $ac_prog in
4437     # Accept absolute paths.
4438     [\\/]* | ?:[\\/]*)
4439       re_direlt='/[^/][^/]*/\.\./'
4440       # Canonicalize the pathname of ld
4441       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4442       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4443         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4444       done
4445       test -z "$LD" && LD="$ac_prog"
4446       ;;
4447   "")
4448     # If it fails, then pretend we aren't using GCC.
4449     ac_prog=ld
4450     ;;
4451   *)
4452     # If it is relative, then search for the first ld in PATH.
4453     with_gnu_ld=unknown
4454     ;;
4455   esac
4456 elif test "$with_gnu_ld" = yes; then
4457   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4458 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4461 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4462 fi
4463 if test "${lt_cv_path_LD+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   if test -z "$LD"; then
4467   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4468   for ac_dir in $PATH; do
4469     IFS="$lt_save_ifs"
4470     test -z "$ac_dir" && ac_dir=.
4471     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4472       lt_cv_path_LD="$ac_dir/$ac_prog"
4473       # Check to see if the program is GNU ld.  I'd rather use --version,
4474       # but apparently some variants of GNU ld only accept -v.
4475       # Break only if it was the GNU/non-GNU ld that we prefer.
4476       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4477       *GNU* | *'with BFD'*)
4478         test "$with_gnu_ld" != no && break
4479         ;;
4480       *)
4481         test "$with_gnu_ld" != yes && break
4482         ;;
4483       esac
4484     fi
4485   done
4486   IFS="$lt_save_ifs"
4487 else
4488   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4489 fi
4490 fi
4491
4492 LD="$lt_cv_path_LD"
4493 if test -n "$LD"; then
4494   { echo "$as_me:$LINENO: result: $LD" >&5
4495 echo "${ECHO_T}$LD" >&6; }
4496 else
4497   { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4499 fi
4500 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4501 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4502    { (exit 1); exit 1; }; }
4503 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4504 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4505 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4509 case `$LD -v 2>&1 </dev/null` in
4510 *GNU* | *'with BFD'*)
4511   lt_cv_prog_gnu_ld=yes
4512   ;;
4513 *)
4514   lt_cv_prog_gnu_ld=no
4515   ;;
4516 esac
4517 fi
4518 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4519 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4520 with_gnu_ld=$lt_cv_prog_gnu_ld
4521
4522
4523 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4524 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4525 if test "${lt_cv_ld_reload_flag+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   lt_cv_ld_reload_flag='-r'
4529 fi
4530 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4531 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4532 reload_flag=$lt_cv_ld_reload_flag
4533 case $reload_flag in
4534 "" | " "*) ;;
4535 *) reload_flag=" $reload_flag" ;;
4536 esac
4537 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4538 case $host_os in
4539   darwin*)
4540     if test "$GCC" = yes; then
4541       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4542     else
4543       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4544     fi
4545     ;;
4546 esac
4547
4548 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4549 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4550 if test "${lt_cv_path_NM+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   if test -n "$NM"; then
4554   # Let the user override the test.
4555   lt_cv_path_NM="$NM"
4556 else
4557   lt_nm_to_check="${ac_tool_prefix}nm"
4558   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4559     lt_nm_to_check="$lt_nm_to_check nm"
4560   fi
4561   for lt_tmp_nm in $lt_nm_to_check; do
4562     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4563     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4564       IFS="$lt_save_ifs"
4565       test -z "$ac_dir" && ac_dir=.
4566       tmp_nm="$ac_dir/$lt_tmp_nm"
4567       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4568         # Check to see if the nm accepts a BSD-compat flag.
4569         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4570         #   nm: unknown option "B" ignored
4571         # Tru64's nm complains that /dev/null is an invalid object file
4572         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4573         */dev/null* | *'Invalid file or object type'*)
4574           lt_cv_path_NM="$tmp_nm -B"
4575           break
4576           ;;
4577         *)
4578           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4579           */dev/null*)
4580             lt_cv_path_NM="$tmp_nm -p"
4581             break
4582             ;;
4583           *)
4584             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4585             continue # so that we can try to find one that supports BSD flags
4586             ;;
4587           esac
4588           ;;
4589         esac
4590       fi
4591     done
4592     IFS="$lt_save_ifs"
4593   done
4594   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4595 fi
4596 fi
4597 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4598 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4599 NM="$lt_cv_path_NM"
4600
4601 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4602 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4603 LN_S=$as_ln_s
4604 if test "$LN_S" = "ln -s"; then
4605   { echo "$as_me:$LINENO: result: yes" >&5
4606 echo "${ECHO_T}yes" >&6; }
4607 else
4608   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4609 echo "${ECHO_T}no, using $LN_S" >&6; }
4610 fi
4611
4612 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4613 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4614 if test "${lt_cv_deplibs_check_method+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   lt_cv_file_magic_cmd='$MAGIC_CMD'
4618 lt_cv_file_magic_test_file=
4619 lt_cv_deplibs_check_method='unknown'
4620 # Need to set the preceding variable on all platforms that support
4621 # interlibrary dependencies.
4622 # 'none' -- dependencies not supported.
4623 # `unknown' -- same as none, but documents that we really don't know.
4624 # 'pass_all' -- all dependencies passed with no checks.
4625 # 'test_compile' -- check by making test program.
4626 # 'file_magic [[regex]]' -- check by looking for files in library path
4627 # which responds to the $file_magic_cmd with a given extended regex.
4628 # If you have `file' or equivalent on your system and you're not sure
4629 # whether `pass_all' will *always* work, you probably want this one.
4630
4631 case $host_os in
4632 aix4* | aix5*)
4633   lt_cv_deplibs_check_method=pass_all
4634   ;;
4635
4636 beos*)
4637   lt_cv_deplibs_check_method=pass_all
4638   ;;
4639
4640 bsdi[45]*)
4641   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4642   lt_cv_file_magic_cmd='/usr/bin/file -L'
4643   lt_cv_file_magic_test_file=/shlib/libc.so
4644   ;;
4645
4646 cygwin*)
4647   # func_win32_libid is a shell function defined in ltmain.sh
4648   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4649   lt_cv_file_magic_cmd='func_win32_libid'
4650   ;;
4651
4652 mingw* | pw32*)
4653   # Base MSYS/MinGW do not provide the 'file' command needed by
4654   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4655   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4656   lt_cv_file_magic_cmd='$OBJDUMP -f'
4657   ;;
4658
4659 darwin* | rhapsody*)
4660   lt_cv_deplibs_check_method=pass_all
4661   ;;
4662
4663 freebsd* | kfreebsd*-gnu | dragonfly*)
4664   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4665     case $host_cpu in
4666     i*86 )
4667       # Not sure whether the presence of OpenBSD here was a mistake.
4668       # Let's accept both of them until this is cleared up.
4669       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4670       lt_cv_file_magic_cmd=/usr/bin/file
4671       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4672       ;;
4673     esac
4674   else
4675     lt_cv_deplibs_check_method=pass_all
4676   fi
4677   ;;
4678
4679 gnu*)
4680   lt_cv_deplibs_check_method=pass_all
4681   ;;
4682
4683 hpux10.20* | hpux11*)
4684   lt_cv_file_magic_cmd=/usr/bin/file
4685   case $host_cpu in
4686   ia64*)
4687     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4688     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4689     ;;
4690   hppa*64*)
4691     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]'
4692     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4693     ;;
4694   *)
4695     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4696     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4697     ;;
4698   esac
4699   ;;
4700
4701 interix3*)
4702   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4703   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4704   ;;
4705
4706 irix5* | irix6* | nonstopux*)
4707   case $LD in
4708   *-32|*"-32 ") libmagic=32-bit;;
4709   *-n32|*"-n32 ") libmagic=N32;;
4710   *-64|*"-64 ") libmagic=64-bit;;
4711   *) libmagic=never-match;;
4712   esac
4713   lt_cv_deplibs_check_method=pass_all
4714   ;;
4715
4716 # This must be Linux ELF.
4717 linux*)
4718   lt_cv_deplibs_check_method=pass_all
4719   ;;
4720
4721 netbsd*)
4722   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4723     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4724   else
4725     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4726   fi
4727   ;;
4728
4729 newos6*)
4730   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4731   lt_cv_file_magic_cmd=/usr/bin/file
4732   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4733   ;;
4734
4735 nto-qnx*)
4736   lt_cv_deplibs_check_method=unknown
4737   ;;
4738
4739 openbsd*)
4740   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4741     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4742   else
4743     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4744   fi
4745   ;;
4746
4747 osf3* | osf4* | osf5*)
4748   lt_cv_deplibs_check_method=pass_all
4749   ;;
4750
4751 solaris*)
4752   lt_cv_deplibs_check_method=pass_all
4753   ;;
4754
4755 sysv4 | sysv4.3*)
4756   case $host_vendor in
4757   motorola)
4758     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]'
4759     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4760     ;;
4761   ncr)
4762     lt_cv_deplibs_check_method=pass_all
4763     ;;
4764   sequent)
4765     lt_cv_file_magic_cmd='/bin/file'
4766     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4767     ;;
4768   sni)
4769     lt_cv_file_magic_cmd='/bin/file'
4770     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4771     lt_cv_file_magic_test_file=/lib/libc.so
4772     ;;
4773   siemens)
4774     lt_cv_deplibs_check_method=pass_all
4775     ;;
4776   pc)
4777     lt_cv_deplibs_check_method=pass_all
4778     ;;
4779   esac
4780   ;;
4781
4782 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4783   lt_cv_deplibs_check_method=pass_all
4784   ;;
4785 esac
4786
4787 fi
4788 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4789 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4790 file_magic_cmd=$lt_cv_file_magic_cmd
4791 deplibs_check_method=$lt_cv_deplibs_check_method
4792 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4793
4794
4795
4796
4797 # If no C compiler was specified, use CC.
4798 LTCC=${LTCC-"$CC"}
4799
4800 # If no C compiler flags were specified, use CFLAGS.
4801 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4802
4803 # Allow CC to be a program name with arguments.
4804 compiler=$CC
4805
4806 # Check whether --enable-libtool-lock was given.
4807 if test "${enable_libtool_lock+set}" = set; then
4808   enableval=$enable_libtool_lock;
4809 fi
4810
4811 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4812
4813 # Some flags need to be propagated to the compiler or linker for good
4814 # libtool support.
4815 case $host in
4816 ia64-*-hpux*)
4817   # Find out which ABI we are using.
4818   echo 'int i;' > conftest.$ac_ext
4819   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820   (eval $ac_compile) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; then
4824     case `/usr/bin/file conftest.$ac_objext` in
4825     *ELF-32*)
4826       HPUX_IA64_MODE="32"
4827       ;;
4828     *ELF-64*)
4829       HPUX_IA64_MODE="64"
4830       ;;
4831     esac
4832   fi
4833   rm -rf conftest*
4834   ;;
4835 *-*-irix6*)
4836   # Find out which ABI we are using.
4837   echo '#line 4837 "configure"' > conftest.$ac_ext
4838   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839   (eval $ac_compile) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; then
4843    if test "$lt_cv_prog_gnu_ld" = yes; then
4844     case `/usr/bin/file conftest.$ac_objext` in
4845     *32-bit*)
4846       LD="${LD-ld} -melf32bsmip"
4847       ;;
4848     *N32*)
4849       LD="${LD-ld} -melf32bmipn32"
4850       ;;
4851     *64-bit*)
4852       LD="${LD-ld} -melf64bmip"
4853       ;;
4854     esac
4855    else
4856     case `/usr/bin/file conftest.$ac_objext` in
4857     *32-bit*)
4858       LD="${LD-ld} -32"
4859       ;;
4860     *N32*)
4861       LD="${LD-ld} -n32"
4862       ;;
4863     *64-bit*)
4864       LD="${LD-ld} -64"
4865       ;;
4866     esac
4867    fi
4868   fi
4869   rm -rf conftest*
4870   ;;
4871
4872 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4873   # Find out which ABI we are using.
4874   echo 'int i;' > conftest.$ac_ext
4875   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876   (eval $ac_compile) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; then
4880     case `/usr/bin/file conftest.o` in
4881     *32-bit*)
4882       case $host in
4883         x86_64-*linux*)
4884           LD="${LD-ld} -m elf_i386"
4885           ;;
4886         ppc64-*linux*|powerpc64-*linux*)
4887           LD="${LD-ld} -m elf32ppclinux"
4888           ;;
4889         s390x-*linux*)
4890           LD="${LD-ld} -m elf_s390"
4891           ;;
4892         sparc64-*linux*)
4893           LD="${LD-ld} -m elf32_sparc"
4894           ;;
4895       esac
4896       ;;
4897     *64-bit*)
4898       case $host in
4899         x86_64-*linux*)
4900           LD="${LD-ld} -m elf_x86_64"
4901           ;;
4902         ppc*-*linux*|powerpc*-*linux*)
4903           LD="${LD-ld} -m elf64ppc"
4904           ;;
4905         s390*-*linux*)
4906           LD="${LD-ld} -m elf64_s390"
4907           ;;
4908         sparc*-*linux*)
4909           LD="${LD-ld} -m elf64_sparc"
4910           ;;
4911       esac
4912       ;;
4913     esac
4914   fi
4915   rm -rf conftest*
4916   ;;
4917
4918 *-*-sco3.2v5*)
4919   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4920   SAVE_CFLAGS="$CFLAGS"
4921   CFLAGS="$CFLAGS -belf"
4922   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4923 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4924 if test "${lt_cv_cc_needs_belf+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   ac_ext=c
4928 ac_cpp='$CPP $CPPFLAGS'
4929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932
4933      cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h.  */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h.  */
4939
4940 int
4941 main ()
4942 {
4943
4944   ;
4945   return 0;
4946 }
4947 _ACEOF
4948 rm -f conftest.$ac_objext conftest$ac_exeext
4949 if { (ac_try="$ac_link"
4950 case "(($ac_try" in
4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952   *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955   (eval "$ac_link") 2>conftest.er1
4956   ac_status=$?
4957   grep -v '^ *+' conftest.er1 >conftest.err
4958   rm -f conftest.er1
4959   cat conftest.err >&5
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); } && {
4962          test -z "$ac_c_werror_flag" ||
4963          test ! -s conftest.err
4964        } && test -s conftest$ac_exeext &&
4965        $as_test_x conftest$ac_exeext; then
4966   lt_cv_cc_needs_belf=yes
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971         lt_cv_cc_needs_belf=no
4972 fi
4973
4974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4975       conftest$ac_exeext conftest.$ac_ext
4976      ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982 fi
4983 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4984 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4985   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4986     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4987     CFLAGS="$SAVE_CFLAGS"
4988   fi
4989   ;;
4990 sparc*-*solaris*)
4991   # Find out which ABI we are using.
4992   echo 'int i;' > conftest.$ac_ext
4993   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994   (eval $ac_compile) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; then
4998     case `/usr/bin/file conftest.o` in
4999     *64-bit*)
5000       case $lt_cv_prog_gnu_ld in
5001       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5002       *)    LD="${LD-ld} -64" ;;
5003       esac
5004       ;;
5005     esac
5006   fi
5007   rm -rf conftest*
5008   ;;
5009
5010
5011 esac
5012
5013 need_locks="$enable_libtool_lock"
5014
5015
5016
5017 for ac_header in dlfcn.h
5018 do
5019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5021   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 fi
5026 ac_res=`eval echo '${'$as_ac_Header'}'`
5027                { echo "$as_me:$LINENO: result: $ac_res" >&5
5028 echo "${ECHO_T}$ac_res" >&6; }
5029 else
5030   # Is the header compilable?
5031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5033 cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 $ac_includes_default
5040 #include <$ac_header>
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (ac_try="$ac_compile"
5044 case "(($ac_try" in
5045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046   *) ac_try_echo=$ac_try;;
5047 esac
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049   (eval "$ac_compile") 2>conftest.er1
5050   ac_status=$?
5051   grep -v '^ *+' conftest.er1 >conftest.err
5052   rm -f conftest.er1
5053   cat conftest.err >&5
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } && {
5056          test -z "$ac_c_werror_flag" ||
5057          test ! -s conftest.err
5058        } && test -s conftest.$ac_objext; then
5059   ac_header_compiler=yes
5060 else
5061   echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064         ac_header_compiler=no
5065 fi
5066
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5069 echo "${ECHO_T}$ac_header_compiler" >&6; }
5070
5071 # Is the header present?
5072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080 #include <$ac_header>
5081 _ACEOF
5082 if { (ac_try="$ac_cpp conftest.$ac_ext"
5083 case "(($ac_try" in
5084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085   *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } >/dev/null && {
5095          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5096          test ! -s conftest.err
5097        }; then
5098   ac_header_preproc=yes
5099 else
5100   echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103   ac_header_preproc=no
5104 fi
5105
5106 rm -f conftest.err conftest.$ac_ext
5107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5108 echo "${ECHO_T}$ac_header_preproc" >&6; }
5109
5110 # So?  What about this header?
5111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5112   yes:no: )
5113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5117     ac_header_preproc=yes
5118     ;;
5119   no:yes:* )
5120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5132
5133     ;;
5134 esac
5135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   eval "$as_ac_Header=\$ac_header_preproc"
5141 fi
5142 ac_res=`eval echo '${'$as_ac_Header'}'`
5143                { echo "$as_me:$LINENO: result: $ac_res" >&5
5144 echo "${ECHO_T}$ac_res" >&6; }
5145
5146 fi
5147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5148   cat >>confdefs.h <<_ACEOF
5149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5150 _ACEOF
5151
5152 fi
5153
5154 done
5155
5156 ac_ext=cpp
5157 ac_cpp='$CXXCPP $CPPFLAGS'
5158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161 if test -z "$CXX"; then
5162   if test -n "$CCC"; then
5163     CXX=$CCC
5164   else
5165     if test -n "$ac_tool_prefix"; then
5166   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5167   do
5168     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5172 if test "${ac_cv_prog_CXX+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   if test -n "$CXX"; then
5176   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183   for ac_exec_ext in '' $ac_executable_extensions; do
5184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190 done
5191 IFS=$as_save_IFS
5192
5193 fi
5194 fi
5195 CXX=$ac_cv_prog_CXX
5196 if test -n "$CXX"; then
5197   { echo "$as_me:$LINENO: result: $CXX" >&5
5198 echo "${ECHO_T}$CXX" >&6; }
5199 else
5200   { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5202 fi
5203
5204
5205     test -n "$CXX" && break
5206   done
5207 fi
5208 if test -z "$CXX"; then
5209   ac_ct_CXX=$CXX
5210   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211 do
5212   # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy $ac_prog; ac_word=$2
5214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5216 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   if test -n "$ac_ct_CXX"; then
5220   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225   IFS=$as_save_IFS
5226   test -z "$as_dir" && as_dir=.
5227   for ac_exec_ext in '' $ac_executable_extensions; do
5228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229     ac_cv_prog_ac_ct_CXX="$ac_prog"
5230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231     break 2
5232   fi
5233 done
5234 done
5235 IFS=$as_save_IFS
5236
5237 fi
5238 fi
5239 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5240 if test -n "$ac_ct_CXX"; then
5241   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5242 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5243 else
5244   { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5246 fi
5247
5248
5249   test -n "$ac_ct_CXX" && break
5250 done
5251
5252   if test "x$ac_ct_CXX" = x; then
5253     CXX="g++"
5254   else
5255     case $cross_compiling:$ac_tool_warned in
5256 yes:)
5257 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5258 whose name does not start with the host triplet.  If you think this
5259 configuration is useful to you, please write to autoconf@gnu.org." >&5
5260 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5261 whose name does not start with the host triplet.  If you think this
5262 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5263 ac_tool_warned=yes ;;
5264 esac
5265     CXX=$ac_ct_CXX
5266   fi
5267 fi
5268
5269   fi
5270 fi
5271 # Provide some information about the compiler.
5272 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5273 ac_compiler=`set X $ac_compile; echo $2`
5274 { (ac_try="$ac_compiler --version >&5"
5275 case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280   (eval "$ac_compiler --version >&5") 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); }
5284 { (ac_try="$ac_compiler -v >&5"
5285 case "(($ac_try" in
5286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287   *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290   (eval "$ac_compiler -v >&5") 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }
5294 { (ac_try="$ac_compiler -V >&5"
5295 case "(($ac_try" in
5296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297   *) ac_try_echo=$ac_try;;
5298 esac
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300   (eval "$ac_compiler -V >&5") 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); }
5304
5305 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5306 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5307 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316
5317 int
5318 main ()
5319 {
5320 #ifndef __GNUC__
5321        choke me
5322 #endif
5323
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (ac_try="$ac_compile"
5330 case "(($ac_try" in
5331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332   *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335   (eval "$ac_compile") 2>conftest.er1
5336   ac_status=$?
5337   grep -v '^ *+' conftest.er1 >conftest.err
5338   rm -f conftest.er1
5339   cat conftest.err >&5
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } && {
5342          test -z "$ac_cxx_werror_flag" ||
5343          test ! -s conftest.err
5344        } && test -s conftest.$ac_objext; then
5345   ac_compiler_gnu=yes
5346 else
5347   echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350         ac_compiler_gnu=no
5351 fi
5352
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5355
5356 fi
5357 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5358 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5359 GXX=`test $ac_compiler_gnu = yes && echo yes`
5360 ac_test_CXXFLAGS=${CXXFLAGS+set}
5361 ac_save_CXXFLAGS=$CXXFLAGS
5362 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5363 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5364 if test "${ac_cv_prog_cxx_g+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5368    ac_cxx_werror_flag=yes
5369    ac_cv_prog_cxx_g=no
5370    CXXFLAGS="-g"
5371    cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h.  */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h.  */
5377
5378 int
5379 main ()
5380 {
5381
5382   ;
5383   return 0;
5384 }
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5388 case "(($ac_try" in
5389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390   *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393   (eval "$ac_compile") 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } && {
5400          test -z "$ac_cxx_werror_flag" ||
5401          test ! -s conftest.err
5402        } && test -s conftest.$ac_objext; then
5403   ac_cv_prog_cxx_g=yes
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408         CXXFLAGS=""
5409       cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415
5416 int
5417 main ()
5418 {
5419
5420   ;
5421   return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428   *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431   (eval "$ac_compile") 2>conftest.er1
5432   ac_status=$?
5433   grep -v '^ *+' conftest.er1 >conftest.err
5434   rm -f conftest.er1
5435   cat conftest.err >&5
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } && {
5438          test -z "$ac_cxx_werror_flag" ||
5439          test ! -s conftest.err
5440        } && test -s conftest.$ac_objext; then
5441   :
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5447          CXXFLAGS="-g"
5448          cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h.  */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h.  */
5454
5455 int
5456 main ()
5457 {
5458
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_compile") 2>conftest.er1
5471   ac_status=$?
5472   grep -v '^ *+' conftest.er1 >conftest.err
5473   rm -f conftest.er1
5474   cat conftest.err >&5
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && {
5477          test -z "$ac_cxx_werror_flag" ||
5478          test ! -s conftest.err
5479        } && test -s conftest.$ac_objext; then
5480   ac_cv_prog_cxx_g=yes
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 fi
5490
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 fi
5493
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5496 fi
5497 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5498 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5499 if test "$ac_test_CXXFLAGS" = set; then
5500   CXXFLAGS=$ac_save_CXXFLAGS
5501 elif test $ac_cv_prog_cxx_g = yes; then
5502   if test "$GXX" = yes; then
5503     CXXFLAGS="-g -O2"
5504   else
5505     CXXFLAGS="-g"
5506   fi
5507 else
5508   if test "$GXX" = yes; then
5509     CXXFLAGS="-O2"
5510   else
5511     CXXFLAGS=
5512   fi
5513 fi
5514 ac_ext=cpp
5515 ac_cpp='$CXXCPP $CPPFLAGS'
5516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5519
5520
5521
5522 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5523     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5524     (test "X$CXX" != "Xg++"))) ; then
5525   ac_ext=cpp
5526 ac_cpp='$CXXCPP $CPPFLAGS'
5527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5530 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5531 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5532 if test -z "$CXXCPP"; then
5533   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5534   echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536       # Double quotes because CXXCPP needs to be expanded
5537     for CXXCPP in "$CXX -E" "/lib/cpp"
5538     do
5539       ac_preproc_ok=false
5540 for ac_cxx_preproc_warn_flag in '' yes
5541 do
5542   # Use a header file that comes with gcc, so configuring glibc
5543   # with a fresh cross-compiler works.
5544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5545   # <limits.h> exists even on freestanding compilers.
5546   # On the NeXT, cc -E runs the code through the compiler's parser,
5547   # not just through cpp. "Syntax error" is here to catch this case.
5548   cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h.  */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h.  */
5554 #ifdef __STDC__
5555 # include <limits.h>
5556 #else
5557 # include <assert.h>
5558 #endif
5559                      Syntax error
5560 _ACEOF
5561 if { (ac_try="$ac_cpp conftest.$ac_ext"
5562 case "(($ac_try" in
5563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564   *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5568   ac_status=$?
5569   grep -v '^ *+' conftest.er1 >conftest.err
5570   rm -f conftest.er1
5571   cat conftest.err >&5
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); } >/dev/null && {
5574          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5575          test ! -s conftest.err
5576        }; then
5577   :
5578 else
5579   echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582   # Broken: fails on valid input.
5583 continue
5584 fi
5585
5586 rm -f conftest.err conftest.$ac_ext
5587
5588   # OK, works on sane cases.  Now check whether nonexistent headers
5589   # can be detected and how.
5590   cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h.  */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h.  */
5596 #include <ac_nonexistent.h>
5597 _ACEOF
5598 if { (ac_try="$ac_cpp conftest.$ac_ext"
5599 case "(($ac_try" in
5600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601   *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5605   ac_status=$?
5606   grep -v '^ *+' conftest.er1 >conftest.err
5607   rm -f conftest.er1
5608   cat conftest.err >&5
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } >/dev/null && {
5611          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5612          test ! -s conftest.err
5613        }; then
5614   # Broken: success on invalid input.
5615 continue
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620   # Passes both tests.
5621 ac_preproc_ok=:
5622 break
5623 fi
5624
5625 rm -f conftest.err conftest.$ac_ext
5626
5627 done
5628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629 rm -f conftest.err conftest.$ac_ext
5630 if $ac_preproc_ok; then
5631   break
5632 fi
5633
5634     done
5635     ac_cv_prog_CXXCPP=$CXXCPP
5636
5637 fi
5638   CXXCPP=$ac_cv_prog_CXXCPP
5639 else
5640   ac_cv_prog_CXXCPP=$CXXCPP
5641 fi
5642 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5643 echo "${ECHO_T}$CXXCPP" >&6; }
5644 ac_preproc_ok=false
5645 for ac_cxx_preproc_warn_flag in '' yes
5646 do
5647   # Use a header file that comes with gcc, so configuring glibc
5648   # with a fresh cross-compiler works.
5649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650   # <limits.h> exists even on freestanding compilers.
5651   # On the NeXT, cc -E runs the code through the compiler's parser,
5652   # not just through cpp. "Syntax error" is here to catch this case.
5653   cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659 #ifdef __STDC__
5660 # include <limits.h>
5661 #else
5662 # include <assert.h>
5663 #endif
5664                      Syntax error
5665 _ACEOF
5666 if { (ac_try="$ac_cpp conftest.$ac_ext"
5667 case "(($ac_try" in
5668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669   *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5673   ac_status=$?
5674   grep -v '^ *+' conftest.er1 >conftest.err
5675   rm -f conftest.er1
5676   cat conftest.err >&5
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); } >/dev/null && {
5679          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5680          test ! -s conftest.err
5681        }; then
5682   :
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687   # Broken: fails on valid input.
5688 continue
5689 fi
5690
5691 rm -f conftest.err conftest.$ac_ext
5692
5693   # OK, works on sane cases.  Now check whether nonexistent headers
5694   # can be detected and how.
5695   cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 #include <ac_nonexistent.h>
5702 _ACEOF
5703 if { (ac_try="$ac_cpp conftest.$ac_ext"
5704 case "(($ac_try" in
5705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706   *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } >/dev/null && {
5716          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5717          test ! -s conftest.err
5718        }; then
5719   # Broken: success on invalid input.
5720 continue
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725   # Passes both tests.
5726 ac_preproc_ok=:
5727 break
5728 fi
5729
5730 rm -f conftest.err conftest.$ac_ext
5731
5732 done
5733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5734 rm -f conftest.err conftest.$ac_ext
5735 if $ac_preproc_ok; then
5736   :
5737 else
5738   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5739 See \`config.log' for more details." >&5
5740 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5741 See \`config.log' for more details." >&2;}
5742    { (exit 1); exit 1; }; }
5743 fi
5744
5745 ac_ext=cpp
5746 ac_cpp='$CXXCPP $CPPFLAGS'
5747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5750
5751 fi
5752
5753
5754 ac_ext=f
5755 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5756 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5758 if test -n "$ac_tool_prefix"; then
5759   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
5760   do
5761     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765 if test "${ac_cv_prog_F77+set}" = set; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768   if test -n "$F77"; then
5769   ac_cv_prog_F77="$F77" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776   for ac_exec_ext in '' $ac_executable_extensions; do
5777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5778     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780     break 2
5781   fi
5782 done
5783 done
5784 IFS=$as_save_IFS
5785
5786 fi
5787 fi
5788 F77=$ac_cv_prog_F77
5789 if test -n "$F77"; then
5790   { echo "$as_me:$LINENO: result: $F77" >&5
5791 echo "${ECHO_T}$F77" >&6; }
5792 else
5793   { echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6; }
5795 fi
5796
5797
5798     test -n "$F77" && break
5799   done
5800 fi
5801 if test -z "$F77"; then
5802   ac_ct_F77=$F77
5803   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
5804 do
5805   # Extract the first word of "$ac_prog", so it can be a program name with args.
5806 set dummy $ac_prog; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   if test -n "$ac_ct_F77"; then
5813   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820   for ac_exec_ext in '' $ac_executable_extensions; do
5821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822     ac_cv_prog_ac_ct_F77="$ac_prog"
5823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5833 if test -n "$ac_ct_F77"; then
5834   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5835 echo "${ECHO_T}$ac_ct_F77" >&6; }
5836 else
5837   { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5839 fi
5840
5841
5842   test -n "$ac_ct_F77" && break
5843 done
5844
5845   if test "x$ac_ct_F77" = x; then
5846     F77=""
5847   else
5848     case $cross_compiling:$ac_tool_warned in
5849 yes:)
5850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5851 whose name does not start with the host triplet.  If you think this
5852 configuration is useful to you, please write to autoconf@gnu.org." >&5
5853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5854 whose name does not start with the host triplet.  If you think this
5855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5856 ac_tool_warned=yes ;;
5857 esac
5858     F77=$ac_ct_F77
5859   fi
5860 fi
5861
5862
5863 # Provide some information about the compiler.
5864 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5865 ac_compiler=`set X $ac_compile; echo $2`
5866 { (ac_try="$ac_compiler --version >&5"
5867 case "(($ac_try" in
5868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869   *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872   (eval "$ac_compiler --version >&5") 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }
5876 { (ac_try="$ac_compiler -v >&5"
5877 case "(($ac_try" in
5878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879   *) ac_try_echo=$ac_try;;
5880 esac
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882   (eval "$ac_compiler -v >&5") 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }
5886 { (ac_try="$ac_compiler -V >&5"
5887 case "(($ac_try" in
5888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889   *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892   (eval "$ac_compiler -V >&5") 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }
5896 rm -f a.out
5897
5898 # If we don't use `.F' as extension, the preprocessor is not run on the
5899 # input file.  (Note that this only needs to work for GNU compilers.)
5900 ac_save_ext=$ac_ext
5901 ac_ext=F
5902 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5903 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5904 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   cat >conftest.$ac_ext <<_ACEOF
5908       program main
5909 #ifndef __GNUC__
5910        choke me
5911 #endif
5912
5913       end
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5917 case "(($ac_try" in
5918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919   *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922   (eval "$ac_compile") 2>conftest.er1
5923   ac_status=$?
5924   grep -v '^ *+' conftest.er1 >conftest.err
5925   rm -f conftest.er1
5926   cat conftest.err >&5
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } && {
5929          test -z "$ac_f77_werror_flag" ||
5930          test ! -s conftest.err
5931        } && test -s conftest.$ac_objext; then
5932   ac_compiler_gnu=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937         ac_compiler_gnu=no
5938 fi
5939
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5942
5943 fi
5944 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5945 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5946 ac_ext=$ac_save_ext
5947 ac_test_FFLAGS=${FFLAGS+set}
5948 ac_save_FFLAGS=$FFLAGS
5949 FFLAGS=
5950 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5951 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5952 if test "${ac_cv_prog_f77_g+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   FFLAGS=-g
5956 cat >conftest.$ac_ext <<_ACEOF
5957       program main
5958
5959       end
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5963 case "(($ac_try" in
5964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965   *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968   (eval "$ac_compile") 2>conftest.er1
5969   ac_status=$?
5970   grep -v '^ *+' conftest.er1 >conftest.err
5971   rm -f conftest.er1
5972   cat conftest.err >&5
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); } && {
5975          test -z "$ac_f77_werror_flag" ||
5976          test ! -s conftest.err
5977        } && test -s conftest.$ac_objext; then
5978   ac_cv_prog_f77_g=yes
5979 else
5980   echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5982
5983         ac_cv_prog_f77_g=no
5984 fi
5985
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987
5988 fi
5989 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5990 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5991 if test "$ac_test_FFLAGS" = set; then
5992   FFLAGS=$ac_save_FFLAGS
5993 elif test $ac_cv_prog_f77_g = yes; then
5994   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5995     FFLAGS="-g -O2"
5996   else
5997     FFLAGS="-g"
5998   fi
5999 else
6000   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6001     FFLAGS="-O2"
6002   else
6003     FFLAGS=
6004   fi
6005 fi
6006
6007 G77=`test $ac_compiler_gnu = yes && echo yes`
6008 ac_ext=c
6009 ac_cpp='$CPP $CPPFLAGS'
6010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6013
6014
6015
6016 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6017
6018 # find the maximum length of command line arguments
6019 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024     i=0
6025   teststring="ABCD"
6026
6027   case $build_os in
6028   msdosdjgpp*)
6029     # On DJGPP, this test can blow up pretty badly due to problems in libc
6030     # (any single argument exceeding 2000 bytes causes a buffer overrun
6031     # during glob expansion).  Even if it were fixed, the result of this
6032     # check would be larger than it should be.
6033     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6034     ;;
6035
6036   gnu*)
6037     # Under GNU Hurd, this test is not required because there is
6038     # no limit to the length of command line arguments.
6039     # Libtool will interpret -1 as no limit whatsoever
6040     lt_cv_sys_max_cmd_len=-1;
6041     ;;
6042
6043   cygwin* | mingw*)
6044     # On Win9x/ME, this test blows up -- it succeeds, but takes
6045     # about 5 minutes as the teststring grows exponentially.
6046     # Worse, since 9x/ME are not pre-emptively multitasking,
6047     # you end up with a "frozen" computer, even though with patience
6048     # the test eventually succeeds (with a max line length of 256k).
6049     # Instead, let's just punt: use the minimum linelength reported by
6050     # all of the supported platforms: 8192 (on NT/2K/XP).
6051     lt_cv_sys_max_cmd_len=8192;
6052     ;;
6053
6054   amigaos*)
6055     # On AmigaOS with pdksh, this test takes hours, literally.
6056     # So we just punt and use a minimum line length of 8192.
6057     lt_cv_sys_max_cmd_len=8192;
6058     ;;
6059
6060   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6061     # This has been around since 386BSD, at least.  Likely further.
6062     if test -x /sbin/sysctl; then
6063       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6064     elif test -x /usr/sbin/sysctl; then
6065       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6066     else
6067       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6068     fi
6069     # And add a safety zone
6070     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6072     ;;
6073
6074   interix*)
6075     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6076     lt_cv_sys_max_cmd_len=196608
6077     ;;
6078
6079   osf*)
6080     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6081     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6082     # nice to cause kernel panics so lets avoid the loop below.
6083     # First set a reasonable default.
6084     lt_cv_sys_max_cmd_len=16384
6085     #
6086     if test -x /sbin/sysconfig; then
6087       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6088         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6089       esac
6090     fi
6091     ;;
6092   sco3.2v5*)
6093     lt_cv_sys_max_cmd_len=102400
6094     ;;
6095   sysv5* | sco5v6* | sysv4.2uw2*)
6096     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6097     if test -n "$kargmax"; then
6098       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6099     else
6100       lt_cv_sys_max_cmd_len=32768
6101     fi
6102     ;;
6103   *)
6104     # If test is not a shell built-in, we'll probably end up computing a
6105     # maximum length that is only half of the actual maximum length, but
6106     # we can't tell.
6107     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6108     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6109                = "XX$teststring") >/dev/null 2>&1 &&
6110             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6111             lt_cv_sys_max_cmd_len=$new_result &&
6112             test $i != 17 # 1/2 MB should be enough
6113     do
6114       i=`expr $i + 1`
6115       teststring=$teststring$teststring
6116     done
6117     teststring=
6118     # Add a significant safety factor because C++ compilers can tack on massive
6119     # amounts of additional arguments before passing them to the linker.
6120     # It appears as though 1/2 is a usable value.
6121     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6122     ;;
6123   esac
6124
6125 fi
6126
6127 if test -n $lt_cv_sys_max_cmd_len ; then
6128   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6129 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6130 else
6131   { echo "$as_me:$LINENO: result: none" >&5
6132 echo "${ECHO_T}none" >&6; }
6133 fi
6134
6135
6136
6137
6138 # Check for command to grab the raw symbol name followed by C symbol from nm.
6139 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6140 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6141 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144
6145 # These are sane defaults that work on at least a few old systems.
6146 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6147
6148 # Character class describing NM global symbol codes.
6149 symcode='[BCDEGRST]'
6150
6151 # Regexp to match symbols that can be accessed directly from C.
6152 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6153
6154 # Transform an extracted symbol line into a proper C declaration
6155 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6156
6157 # Transform an extracted symbol line into symbol name and symbol address
6158 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'"
6159
6160 # Define system-specific variables.
6161 case $host_os in
6162 aix*)
6163   symcode='[BCDT]'
6164   ;;
6165 cygwin* | mingw* | pw32*)
6166   symcode='[ABCDGISTW]'
6167   ;;
6168 hpux*) # Its linker distinguishes data from code symbols
6169   if test "$host_cpu" = ia64; then
6170     symcode='[ABCDEGRST]'
6171   fi
6172   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6173   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'"
6174   ;;
6175 linux*)
6176   if test "$host_cpu" = ia64; then
6177     symcode='[ABCDGIRSTW]'
6178     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6179     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'"
6180   fi
6181   ;;
6182 irix* | nonstopux*)
6183   symcode='[BCDEGRST]'
6184   ;;
6185 osf*)
6186   symcode='[BCDEGQRST]'
6187   ;;
6188 solaris*)
6189   symcode='[BDRT]'
6190   ;;
6191 sco3.2v5*)
6192   symcode='[DT]'
6193   ;;
6194 sysv4.2uw2*)
6195   symcode='[DT]'
6196   ;;
6197 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6198   symcode='[ABDT]'
6199   ;;
6200 sysv4)
6201   symcode='[DFNSTU]'
6202   ;;
6203 esac
6204
6205 # Handle CRLF in mingw tool chain
6206 opt_cr=
6207 case $build_os in
6208 mingw*)
6209   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6210   ;;
6211 esac
6212
6213 # If we're using GNU nm, then use its standard symbol codes.
6214 case `$NM -V 2>&1` in
6215 *GNU* | *'with BFD'*)
6216   symcode='[ABCDGIRSTW]' ;;
6217 esac
6218
6219 # Try without a prefix undercore, then with it.
6220 for ac_symprfx in "" "_"; do
6221
6222   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6223   symxfrm="\\1 $ac_symprfx\\2 \\2"
6224
6225   # Write the raw and C identifiers.
6226   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6227
6228   # Check to see that the pipe works correctly.
6229   pipe_works=no
6230
6231   rm -f conftest*
6232   cat > conftest.$ac_ext <<EOF
6233 #ifdef __cplusplus
6234 extern "C" {
6235 #endif
6236 char nm_test_var;
6237 void nm_test_func(){}
6238 #ifdef __cplusplus
6239 }
6240 #endif
6241 int main(){nm_test_var='a';nm_test_func();return(0);}
6242 EOF
6243
6244   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245   (eval $ac_compile) 2>&5
6246   ac_status=$?
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); }; then
6249     # Now try to grab the symbols.
6250     nlist=conftest.nm
6251     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6252   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); } && test -s "$nlist"; then
6256       # Try sorting and uniquifying the output.
6257       if sort "$nlist" | uniq > "$nlist"T; then
6258         mv -f "$nlist"T "$nlist"
6259       else
6260         rm -f "$nlist"T
6261       fi
6262
6263       # Make sure that we snagged all the symbols we need.
6264       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6265         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6266           cat <<EOF > conftest.$ac_ext
6267 #ifdef __cplusplus
6268 extern "C" {
6269 #endif
6270
6271 EOF
6272           # Now generate the symbol file.
6273           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6274
6275           cat <<EOF >> conftest.$ac_ext
6276 #if defined (__STDC__) && __STDC__
6277 # define lt_ptr_t void *
6278 #else
6279 # define lt_ptr_t char *
6280 # define const
6281 #endif
6282
6283 /* The mapping between symbol names and symbols. */
6284 const struct {
6285   const char *name;
6286   lt_ptr_t address;
6287 }
6288 lt_preloaded_symbols[] =
6289 {
6290 EOF
6291           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6292           cat <<\EOF >> conftest.$ac_ext
6293   {0, (lt_ptr_t) 0}
6294 };
6295
6296 #ifdef __cplusplus
6297 }
6298 #endif
6299 EOF
6300           # Now try linking the two files.
6301           mv conftest.$ac_objext conftstm.$ac_objext
6302           lt_save_LIBS="$LIBS"
6303           lt_save_CFLAGS="$CFLAGS"
6304           LIBS="conftstm.$ac_objext"
6305           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6306           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307   (eval $ac_link) 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6311             pipe_works=yes
6312           fi
6313           LIBS="$lt_save_LIBS"
6314           CFLAGS="$lt_save_CFLAGS"
6315         else
6316           echo "cannot find nm_test_func in $nlist" >&5
6317         fi
6318       else
6319         echo "cannot find nm_test_var in $nlist" >&5
6320       fi
6321     else
6322       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6323     fi
6324   else
6325     echo "$progname: failed program was:" >&5
6326     cat conftest.$ac_ext >&5
6327   fi
6328   rm -f conftest* conftst*
6329
6330   # Do not use the global_symbol_pipe unless it works.
6331   if test "$pipe_works" = yes; then
6332     break
6333   else
6334     lt_cv_sys_global_symbol_pipe=
6335   fi
6336 done
6337
6338 fi
6339
6340 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6341   lt_cv_sys_global_symbol_to_cdecl=
6342 fi
6343 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6344   { echo "$as_me:$LINENO: result: failed" >&5
6345 echo "${ECHO_T}failed" >&6; }
6346 else
6347   { echo "$as_me:$LINENO: result: ok" >&5
6348 echo "${ECHO_T}ok" >&6; }
6349 fi
6350
6351 { echo "$as_me:$LINENO: checking for objdir" >&5
6352 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6353 if test "${lt_cv_objdir+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   rm -f .libs 2>/dev/null
6357 mkdir .libs 2>/dev/null
6358 if test -d .libs; then
6359   lt_cv_objdir=.libs
6360 else
6361   # MS-DOS does not allow filenames that begin with a dot.
6362   lt_cv_objdir=_libs
6363 fi
6364 rmdir .libs 2>/dev/null
6365 fi
6366 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6367 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6368 objdir=$lt_cv_objdir
6369
6370
6371
6372
6373
6374 case $host_os in
6375 aix3*)
6376   # AIX sometimes has problems with the GCC collect2 program.  For some
6377   # reason, if we set the COLLECT_NAMES environment variable, the problems
6378   # vanish in a puff of smoke.
6379   if test "X${COLLECT_NAMES+set}" != Xset; then
6380     COLLECT_NAMES=
6381     export COLLECT_NAMES
6382   fi
6383   ;;
6384 esac
6385
6386 # Sed substitution that helps us do robust quoting.  It backslashifies
6387 # metacharacters that are still active within double-quoted strings.
6388 Xsed='sed -e 1s/^X//'
6389 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6390
6391 # Same as above, but do not quote variable references.
6392 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6393
6394 # Sed substitution to delay expansion of an escaped shell variable in a
6395 # double_quote_subst'ed string.
6396 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6397
6398 # Sed substitution to avoid accidental globbing in evaled expressions
6399 no_glob_subst='s/\*/\\\*/g'
6400
6401 # Constants:
6402 rm="rm -f"
6403
6404 # Global variables:
6405 default_ofile=libtool
6406 can_build_shared=yes
6407
6408 # All known linkers require a `.a' archive for static linking (except MSVC,
6409 # which needs '.lib').
6410 libext=a
6411 ltmain="$ac_aux_dir/ltmain.sh"
6412 ofile="$default_ofile"
6413 with_gnu_ld="$lt_cv_prog_gnu_ld"
6414
6415 if test -n "$ac_tool_prefix"; then
6416   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}ar; ac_word=$2
6418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6420 if test "${ac_cv_prog_AR+set}" = set; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423   if test -n "$AR"; then
6424   ac_cv_prog_AR="$AR" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431   for ac_exec_ext in '' $ac_executable_extensions; do
6432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433     ac_cv_prog_AR="${ac_tool_prefix}ar"
6434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 AR=$ac_cv_prog_AR
6444 if test -n "$AR"; then
6445   { echo "$as_me:$LINENO: result: $AR" >&5
6446 echo "${ECHO_T}$AR" >&6; }
6447 else
6448   { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6450 fi
6451
6452
6453 fi
6454 if test -z "$ac_cv_prog_AR"; then
6455   ac_ct_AR=$AR
6456   # Extract the first word of "ar", so it can be a program name with args.
6457 set dummy ar; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   if test -n "$ac_ct_AR"; then
6464   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471   for ac_exec_ext in '' $ac_executable_extensions; do
6472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473     ac_cv_prog_ac_ct_AR="ar"
6474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6484 if test -n "$ac_ct_AR"; then
6485   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6486 echo "${ECHO_T}$ac_ct_AR" >&6; }
6487 else
6488   { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6490 fi
6491
6492   if test "x$ac_ct_AR" = x; then
6493     AR="false"
6494   else
6495     case $cross_compiling:$ac_tool_warned in
6496 yes:)
6497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6498 whose name does not start with the host triplet.  If you think this
6499 configuration is useful to you, please write to autoconf@gnu.org." >&5
6500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6501 whose name does not start with the host triplet.  If you think this
6502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6503 ac_tool_warned=yes ;;
6504 esac
6505     AR=$ac_ct_AR
6506   fi
6507 else
6508   AR="$ac_cv_prog_AR"
6509 fi
6510
6511 if test -n "$ac_tool_prefix"; then
6512   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_prog_RANLIB+set}" = set; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519   if test -n "$RANLIB"; then
6520   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527   for ac_exec_ext in '' $ac_executable_extensions; do
6528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534 done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 RANLIB=$ac_cv_prog_RANLIB
6540 if test -n "$RANLIB"; then
6541   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6542 echo "${ECHO_T}$RANLIB" >&6; }
6543 else
6544   { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6546 fi
6547
6548
6549 fi
6550 if test -z "$ac_cv_prog_RANLIB"; then
6551   ac_ct_RANLIB=$RANLIB
6552   # Extract the first word of "ranlib", so it can be a program name with args.
6553 set dummy ranlib; ac_word=$2
6554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6556 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   if test -n "$ac_ct_RANLIB"; then
6560   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567   for ac_exec_ext in '' $ac_executable_extensions; do
6568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569     ac_cv_prog_ac_ct_RANLIB="ranlib"
6570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571     break 2
6572   fi
6573 done
6574 done
6575 IFS=$as_save_IFS
6576
6577 fi
6578 fi
6579 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6580 if test -n "$ac_ct_RANLIB"; then
6581   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6582 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6583 else
6584   { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6586 fi
6587
6588   if test "x$ac_ct_RANLIB" = x; then
6589     RANLIB=":"
6590   else
6591     case $cross_compiling:$ac_tool_warned in
6592 yes:)
6593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet.  If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&5
6596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet.  If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6599 ac_tool_warned=yes ;;
6600 esac
6601     RANLIB=$ac_ct_RANLIB
6602   fi
6603 else
6604   RANLIB="$ac_cv_prog_RANLIB"
6605 fi
6606
6607 if test -n "$ac_tool_prefix"; then
6608   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}strip; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_STRIP+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   if test -n "$STRIP"; then
6616   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623   for ac_exec_ext in '' $ac_executable_extensions; do
6624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 STRIP=$ac_cv_prog_STRIP
6636 if test -n "$STRIP"; then
6637   { echo "$as_me:$LINENO: result: $STRIP" >&5
6638 echo "${ECHO_T}$STRIP" >&6; }
6639 else
6640   { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_STRIP"; then
6647   ac_ct_STRIP=$STRIP
6648   # Extract the first word of "strip", so it can be a program name with args.
6649 set dummy strip; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6653   echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655   if test -n "$ac_ct_STRIP"; then
6656   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661   IFS=$as_save_IFS
6662   test -z "$as_dir" && as_dir=.
6663   for ac_exec_ext in '' $ac_executable_extensions; do
6664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665     ac_cv_prog_ac_ct_STRIP="strip"
6666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667     break 2
6668   fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6676 if test -n "$ac_ct_STRIP"; then
6677   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6678 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6679 else
6680   { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6682 fi
6683
6684   if test "x$ac_ct_STRIP" = x; then
6685     STRIP=":"
6686   else
6687     case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6690 whose name does not start with the host triplet.  If you think this
6691 configuration is useful to you, please write to autoconf@gnu.org." >&5
6692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6693 whose name does not start with the host triplet.  If you think this
6694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697     STRIP=$ac_ct_STRIP
6698   fi
6699 else
6700   STRIP="$ac_cv_prog_STRIP"
6701 fi
6702
6703
6704 old_CC="$CC"
6705 old_CFLAGS="$CFLAGS"
6706
6707 # Set sane defaults for various variables
6708 test -z "$AR" && AR=ar
6709 test -z "$AR_FLAGS" && AR_FLAGS=cru
6710 test -z "$AS" && AS=as
6711 test -z "$CC" && CC=cc
6712 test -z "$LTCC" && LTCC=$CC
6713 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6714 test -z "$DLLTOOL" && DLLTOOL=dlltool
6715 test -z "$LD" && LD=ld
6716 test -z "$LN_S" && LN_S="ln -s"
6717 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6718 test -z "$NM" && NM=nm
6719 test -z "$SED" && SED=sed
6720 test -z "$OBJDUMP" && OBJDUMP=objdump
6721 test -z "$RANLIB" && RANLIB=:
6722 test -z "$STRIP" && STRIP=:
6723 test -z "$ac_objext" && ac_objext=o
6724
6725 # Determine commands to create old-style static archives.
6726 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6727 old_postinstall_cmds='chmod 644 $oldlib'
6728 old_postuninstall_cmds=
6729
6730 if test -n "$RANLIB"; then
6731   case $host_os in
6732   openbsd*)
6733     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6734     ;;
6735   *)
6736     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6737     ;;
6738   esac
6739   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6740 fi
6741
6742 for cc_temp in $compiler""; do
6743   case $cc_temp in
6744     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6745     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6746     \-*) ;;
6747     *) break;;
6748   esac
6749 done
6750 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6751
6752
6753 # Only perform the check for file, if the check method requires it
6754 case $deplibs_check_method in
6755 file_magic*)
6756   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6757     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6758 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   case $MAGIC_CMD in
6763 [\\/*] |  ?:[\\/]*)
6764   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6765   ;;
6766 *)
6767   lt_save_MAGIC_CMD="$MAGIC_CMD"
6768   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6769   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6770   for ac_dir in $ac_dummy; do
6771     IFS="$lt_save_ifs"
6772     test -z "$ac_dir" && ac_dir=.
6773     if test -f $ac_dir/${ac_tool_prefix}file; then
6774       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6775       if test -n "$file_magic_test_file"; then
6776         case $deplibs_check_method in
6777         "file_magic "*)
6778           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6779           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6780           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6781             $EGREP "$file_magic_regex" > /dev/null; then
6782             :
6783           else
6784             cat <<EOF 1>&2
6785
6786 *** Warning: the command libtool uses to detect shared libraries,
6787 *** $file_magic_cmd, produces output that libtool cannot recognize.
6788 *** The result is that libtool may fail to recognize shared libraries
6789 *** as such.  This will affect the creation of libtool libraries that
6790 *** depend on shared libraries, but programs linked with such libtool
6791 *** libraries will work regardless of this problem.  Nevertheless, you
6792 *** may want to report the problem to your system manager and/or to
6793 *** bug-libtool@gnu.org
6794
6795 EOF
6796           fi ;;
6797         esac
6798       fi
6799       break
6800     fi
6801   done
6802   IFS="$lt_save_ifs"
6803   MAGIC_CMD="$lt_save_MAGIC_CMD"
6804   ;;
6805 esac
6806 fi
6807
6808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6809 if test -n "$MAGIC_CMD"; then
6810   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6811 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6812 else
6813   { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6815 fi
6816
6817 if test -z "$lt_cv_path_MAGIC_CMD"; then
6818   if test -n "$ac_tool_prefix"; then
6819     { echo "$as_me:$LINENO: checking for file" >&5
6820 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6821 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   case $MAGIC_CMD in
6825 [\\/*] |  ?:[\\/]*)
6826   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6827   ;;
6828 *)
6829   lt_save_MAGIC_CMD="$MAGIC_CMD"
6830   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6831   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6832   for ac_dir in $ac_dummy; do
6833     IFS="$lt_save_ifs"
6834     test -z "$ac_dir" && ac_dir=.
6835     if test -f $ac_dir/file; then
6836       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6837       if test -n "$file_magic_test_file"; then
6838         case $deplibs_check_method in
6839         "file_magic "*)
6840           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6841           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6842           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6843             $EGREP "$file_magic_regex" > /dev/null; then
6844             :
6845           else
6846             cat <<EOF 1>&2
6847
6848 *** Warning: the command libtool uses to detect shared libraries,
6849 *** $file_magic_cmd, produces output that libtool cannot recognize.
6850 *** The result is that libtool may fail to recognize shared libraries
6851 *** as such.  This will affect the creation of libtool libraries that
6852 *** depend on shared libraries, but programs linked with such libtool
6853 *** libraries will work regardless of this problem.  Nevertheless, you
6854 *** may want to report the problem to your system manager and/or to
6855 *** bug-libtool@gnu.org
6856
6857 EOF
6858           fi ;;
6859         esac
6860       fi
6861       break
6862     fi
6863   done
6864   IFS="$lt_save_ifs"
6865   MAGIC_CMD="$lt_save_MAGIC_CMD"
6866   ;;
6867 esac
6868 fi
6869
6870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6871 if test -n "$MAGIC_CMD"; then
6872   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6873 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6874 else
6875   { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6877 fi
6878
6879   else
6880     MAGIC_CMD=:
6881   fi
6882 fi
6883
6884   fi
6885   ;;
6886 esac
6887
6888 enable_dlopen=yes
6889 enable_win32_dll=no
6890
6891 # Check whether --enable-libtool-lock was given.
6892 if test "${enable_libtool_lock+set}" = set; then
6893   enableval=$enable_libtool_lock;
6894 fi
6895
6896 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6897
6898
6899 # Check whether --with-pic was given.
6900 if test "${with_pic+set}" = set; then
6901   withval=$with_pic; pic_mode="$withval"
6902 else
6903   pic_mode=default
6904 fi
6905
6906 test -z "$pic_mode" && pic_mode=default
6907
6908 # Use C for the default configuration in the libtool script
6909 tagname=
6910 lt_save_CC="$CC"
6911 ac_ext=c
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916
6917
6918 # Source file extension for C test sources.
6919 ac_ext=c
6920
6921 # Object file extension for compiled C test sources.
6922 objext=o
6923 objext=$objext
6924
6925 # Code to be used in simple compile tests
6926 lt_simple_compile_test_code="int some_variable = 0;\n"
6927
6928 # Code to be used in simple link tests
6929 lt_simple_link_test_code='int main(){return(0);}\n'
6930
6931
6932 # If no C compiler was specified, use CC.
6933 LTCC=${LTCC-"$CC"}
6934
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
6938 # Allow CC to be a program name with arguments.
6939 compiler=$CC
6940
6941
6942 # save warnings/boilerplate of simple test code
6943 ac_outfile=conftest.$ac_objext
6944 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6946 _lt_compiler_boilerplate=`cat conftest.err`
6947 $rm conftest*
6948
6949 ac_outfile=conftest.$ac_objext
6950 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6952 _lt_linker_boilerplate=`cat conftest.err`
6953 $rm conftest*
6954
6955
6956 ## CAVEAT EMPTOR:
6957 ## There is no encapsulation within the following macros, do not change
6958 ## the running order or otherwise move them around unless you know exactly
6959 ## what you are doing...
6960
6961 lt_prog_compiler_no_builtin_flag=
6962
6963 if test "$GCC" = yes; then
6964   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6965
6966
6967 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6968 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6969 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   lt_cv_prog_compiler_rtti_exceptions=no
6973   ac_outfile=conftest.$ac_objext
6974    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6975    lt_compiler_flag="-fno-rtti -fno-exceptions"
6976    # Insert the option either (1) after the last *FLAGS variable, or
6977    # (2) before a word containing "conftest.", or (3) at the end.
6978    # Note that $ac_compile itself does not contain backslashes and begins
6979    # with a dollar sign (not a hyphen), so the echo should work correctly.
6980    # The option is referenced via a variable to avoid confusing sed.
6981    lt_compile=`echo "$ac_compile" | $SED \
6982    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6983    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6984    -e 's:$: $lt_compiler_flag:'`
6985    (eval echo "\"\$as_me:6985: $lt_compile\"" >&5)
6986    (eval "$lt_compile" 2>conftest.err)
6987    ac_status=$?
6988    cat conftest.err >&5
6989    echo "$as_me:6989: \$? = $ac_status" >&5
6990    if (exit $ac_status) && test -s "$ac_outfile"; then
6991      # The compiler can only warn and ignore the option if not recognized
6992      # So say no if there are warnings other than the usual output.
6993      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6994      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6995      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6996        lt_cv_prog_compiler_rtti_exceptions=yes
6997      fi
6998    fi
6999    $rm conftest*
7000
7001 fi
7002 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7003 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7004
7005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7006     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7007 else
7008     :
7009 fi
7010
7011 fi
7012
7013 lt_prog_compiler_wl=
7014 lt_prog_compiler_pic=
7015 lt_prog_compiler_static=
7016
7017 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7018 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7019
7020   if test "$GCC" = yes; then
7021     lt_prog_compiler_wl='-Wl,'
7022     lt_prog_compiler_static='-static'
7023
7024     case $host_os in
7025       aix*)
7026       # All AIX code is PIC.
7027       if test "$host_cpu" = ia64; then
7028         # AIX 5 now supports IA64 processor
7029         lt_prog_compiler_static='-Bstatic'
7030       fi
7031       ;;
7032
7033     amigaos*)
7034       # FIXME: we need at least 68020 code to build shared libraries, but
7035       # adding the `-m68020' flag to GCC prevents building anything better,
7036       # like `-m68040'.
7037       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7038       ;;
7039
7040     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7041       # PIC is the default for these OSes.
7042       ;;
7043
7044     mingw* | pw32* | os2*)
7045       # This hack is so that the source file can tell whether it is being
7046       # built for inclusion in a dll (and should export symbols for example).
7047       lt_prog_compiler_pic='-DDLL_EXPORT'
7048       ;;
7049
7050     darwin* | rhapsody*)
7051       # PIC is the default on this platform
7052       # Common symbols not allowed in MH_DYLIB files
7053       lt_prog_compiler_pic='-fno-common'
7054       ;;
7055
7056     interix3*)
7057       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7058       # Instead, we relocate shared libraries at runtime.
7059       ;;
7060
7061     msdosdjgpp*)
7062       # Just because we use GCC doesn't mean we suddenly get shared libraries
7063       # on systems that don't support them.
7064       lt_prog_compiler_can_build_shared=no
7065       enable_shared=no
7066       ;;
7067
7068     sysv4*MP*)
7069       if test -d /usr/nec; then
7070         lt_prog_compiler_pic=-Kconform_pic
7071       fi
7072       ;;
7073
7074     hpux*)
7075       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7076       # not for PA HP-UX.
7077       case $host_cpu in
7078       hppa*64*|ia64*)
7079         # +Z the default
7080         ;;
7081       *)
7082         lt_prog_compiler_pic='-fPIC'
7083         ;;
7084       esac
7085       ;;
7086
7087     *)
7088       lt_prog_compiler_pic='-fPIC'
7089       ;;
7090     esac
7091   else
7092     # PORTME Check for flag to pass linker flags through the system compiler.
7093     case $host_os in
7094     aix*)
7095       lt_prog_compiler_wl='-Wl,'
7096       if test "$host_cpu" = ia64; then
7097         # AIX 5 now supports IA64 processor
7098         lt_prog_compiler_static='-Bstatic'
7099       else
7100         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7101       fi
7102       ;;
7103       darwin*)
7104         # PIC is the default on this platform
7105         # Common symbols not allowed in MH_DYLIB files
7106        case $cc_basename in
7107          xlc*)
7108          lt_prog_compiler_pic='-qnocommon'
7109          lt_prog_compiler_wl='-Wl,'
7110          ;;
7111        esac
7112        ;;
7113
7114     mingw* | pw32* | os2*)
7115       # This hack is so that the source file can tell whether it is being
7116       # built for inclusion in a dll (and should export symbols for example).
7117       lt_prog_compiler_pic='-DDLL_EXPORT'
7118       ;;
7119
7120     hpux9* | hpux10* | hpux11*)
7121       lt_prog_compiler_wl='-Wl,'
7122       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7123       # not for PA HP-UX.
7124       case $host_cpu in
7125       hppa*64*|ia64*)
7126         # +Z the default
7127         ;;
7128       *)
7129         lt_prog_compiler_pic='+Z'
7130         ;;
7131       esac
7132       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7133       lt_prog_compiler_static='${wl}-a ${wl}archive'
7134       ;;
7135
7136     irix5* | irix6* | nonstopux*)
7137       lt_prog_compiler_wl='-Wl,'
7138       # PIC (with -KPIC) is the default.
7139       lt_prog_compiler_static='-non_shared'
7140       ;;
7141
7142     newsos6)
7143       lt_prog_compiler_pic='-KPIC'
7144       lt_prog_compiler_static='-Bstatic'
7145       ;;
7146
7147     linux*)
7148       case $cc_basename in
7149       icc* | ecc*)
7150         lt_prog_compiler_wl='-Wl,'
7151         lt_prog_compiler_pic='-KPIC'
7152         lt_prog_compiler_static='-static'
7153         ;;
7154       pgcc* | pgf77* | pgf90* | pgf95*)
7155         # Portland Group compilers (*not* the Pentium gcc compiler,
7156         # which looks to be a dead project)
7157         lt_prog_compiler_wl='-Wl,'
7158         lt_prog_compiler_pic='-fpic'
7159         lt_prog_compiler_static='-Bstatic'
7160         ;;
7161       ccc*)
7162         lt_prog_compiler_wl='-Wl,'
7163         # All Alpha code is PIC.
7164         lt_prog_compiler_static='-non_shared'
7165         ;;
7166       esac
7167       ;;
7168
7169     osf3* | osf4* | osf5*)
7170       lt_prog_compiler_wl='-Wl,'
7171       # All OSF/1 code is PIC.
7172       lt_prog_compiler_static='-non_shared'
7173       ;;
7174
7175     solaris*)
7176       lt_prog_compiler_pic='-KPIC'
7177       lt_prog_compiler_static='-Bstatic'
7178       case $cc_basename in
7179       f77* | f90* | f95*)
7180         lt_prog_compiler_wl='-Qoption ld ';;
7181       *)
7182         lt_prog_compiler_wl='-Wl,';;
7183       esac
7184       ;;
7185
7186     sunos4*)
7187       lt_prog_compiler_wl='-Qoption ld '
7188       lt_prog_compiler_pic='-PIC'
7189       lt_prog_compiler_static='-Bstatic'
7190       ;;
7191
7192     sysv4 | sysv4.2uw2* | sysv4.3*)
7193       lt_prog_compiler_wl='-Wl,'
7194       lt_prog_compiler_pic='-KPIC'
7195       lt_prog_compiler_static='-Bstatic'
7196       ;;
7197
7198     sysv4*MP*)
7199       if test -d /usr/nec ;then
7200         lt_prog_compiler_pic='-Kconform_pic'
7201         lt_prog_compiler_static='-Bstatic'
7202       fi
7203       ;;
7204
7205     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7206       lt_prog_compiler_wl='-Wl,'
7207       lt_prog_compiler_pic='-KPIC'
7208       lt_prog_compiler_static='-Bstatic'
7209       ;;
7210
7211     unicos*)
7212       lt_prog_compiler_wl='-Wl,'
7213       lt_prog_compiler_can_build_shared=no
7214       ;;
7215
7216     uts4*)
7217       lt_prog_compiler_pic='-pic'
7218       lt_prog_compiler_static='-Bstatic'
7219       ;;
7220
7221     *)
7222       lt_prog_compiler_can_build_shared=no
7223       ;;
7224     esac
7225   fi
7226
7227 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7228 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7229
7230 #
7231 # Check to make sure the PIC flag actually works.
7232 #
7233 if test -n "$lt_prog_compiler_pic"; then
7234
7235 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7236 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7237 if test "${lt_prog_compiler_pic_works+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240   lt_prog_compiler_pic_works=no
7241   ac_outfile=conftest.$ac_objext
7242    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7243    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7244    # Insert the option either (1) after the last *FLAGS variable, or
7245    # (2) before a word containing "conftest.", or (3) at the end.
7246    # Note that $ac_compile itself does not contain backslashes and begins
7247    # with a dollar sign (not a hyphen), so the echo should work correctly.
7248    # The option is referenced via a variable to avoid confusing sed.
7249    lt_compile=`echo "$ac_compile" | $SED \
7250    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7251    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7252    -e 's:$: $lt_compiler_flag:'`
7253    (eval echo "\"\$as_me:7253: $lt_compile\"" >&5)
7254    (eval "$lt_compile" 2>conftest.err)
7255    ac_status=$?
7256    cat conftest.err >&5
7257    echo "$as_me:7257: \$? = $ac_status" >&5
7258    if (exit $ac_status) && test -s "$ac_outfile"; then
7259      # The compiler can only warn and ignore the option if not recognized
7260      # So say no if there are warnings other than the usual output.
7261      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7262      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7263      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7264        lt_prog_compiler_pic_works=yes
7265      fi
7266    fi
7267    $rm conftest*
7268
7269 fi
7270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7271 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7272
7273 if test x"$lt_prog_compiler_pic_works" = xyes; then
7274     case $lt_prog_compiler_pic in
7275      "" | " "*) ;;
7276      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7277      esac
7278 else
7279     lt_prog_compiler_pic=
7280      lt_prog_compiler_can_build_shared=no
7281 fi
7282
7283 fi
7284 case $host_os in
7285   # For platforms which do not support PIC, -DPIC is meaningless:
7286   *djgpp*)
7287     lt_prog_compiler_pic=
7288     ;;
7289   *)
7290     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7291     ;;
7292 esac
7293
7294 #
7295 # Check to make sure the static flag actually works.
7296 #
7297 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7298 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7299 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7300 if test "${lt_prog_compiler_static_works+set}" = set; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   lt_prog_compiler_static_works=no
7304    save_LDFLAGS="$LDFLAGS"
7305    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7306    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7307    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7308      # The linker can only warn and ignore the option if not recognized
7309      # So say no if there are warnings
7310      if test -s conftest.err; then
7311        # Append any errors to the config.log.
7312        cat conftest.err 1>&5
7313        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7314        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7315        if diff conftest.exp conftest.er2 >/dev/null; then
7316          lt_prog_compiler_static_works=yes
7317        fi
7318      else
7319        lt_prog_compiler_static_works=yes
7320      fi
7321    fi
7322    $rm conftest*
7323    LDFLAGS="$save_LDFLAGS"
7324
7325 fi
7326 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7327 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7328
7329 if test x"$lt_prog_compiler_static_works" = xyes; then
7330     :
7331 else
7332     lt_prog_compiler_static=
7333 fi
7334
7335
7336 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7337 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7338 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   lt_cv_prog_compiler_c_o=no
7342    $rm -r conftest 2>/dev/null
7343    mkdir conftest
7344    cd conftest
7345    mkdir out
7346    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7347
7348    lt_compiler_flag="-o out/conftest2.$ac_objext"
7349    # Insert the option either (1) after the last *FLAGS variable, or
7350    # (2) before a word containing "conftest.", or (3) at the end.
7351    # Note that $ac_compile itself does not contain backslashes and begins
7352    # with a dollar sign (not a hyphen), so the echo should work correctly.
7353    lt_compile=`echo "$ac_compile" | $SED \
7354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7356    -e 's:$: $lt_compiler_flag:'`
7357    (eval echo "\"\$as_me:7357: $lt_compile\"" >&5)
7358    (eval "$lt_compile" 2>out/conftest.err)
7359    ac_status=$?
7360    cat out/conftest.err >&5
7361    echo "$as_me:7361: \$? = $ac_status" >&5
7362    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7363    then
7364      # The compiler can only warn and ignore the option if not recognized
7365      # So say no if there are warnings
7366      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7367      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7368      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7369        lt_cv_prog_compiler_c_o=yes
7370      fi
7371    fi
7372    chmod u+w . 2>&5
7373    $rm conftest*
7374    # SGI C++ compiler will create directory out/ii_files/ for
7375    # template instantiation
7376    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7377    $rm out/* && rmdir out
7378    cd ..
7379    rmdir conftest
7380    $rm conftest*
7381
7382 fi
7383 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7384 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7385
7386
7387 hard_links="nottested"
7388 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7389   # do not overwrite the value of need_locks provided by the user
7390   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7391 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7392   hard_links=yes
7393   $rm conftest*
7394   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7395   touch conftest.a
7396   ln conftest.a conftest.b 2>&5 || hard_links=no
7397   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7398   { echo "$as_me:$LINENO: result: $hard_links" >&5
7399 echo "${ECHO_T}$hard_links" >&6; }
7400   if test "$hard_links" = no; then
7401     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7402 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7403     need_locks=warn
7404   fi
7405 else
7406   need_locks=no
7407 fi
7408
7409 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7410 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7411
7412   runpath_var=
7413   allow_undefined_flag=
7414   enable_shared_with_static_runtimes=no
7415   archive_cmds=
7416   archive_expsym_cmds=
7417   old_archive_From_new_cmds=
7418   old_archive_from_expsyms_cmds=
7419   export_dynamic_flag_spec=
7420   whole_archive_flag_spec=
7421   thread_safe_flag_spec=
7422   hardcode_libdir_flag_spec=
7423   hardcode_libdir_flag_spec_ld=
7424   hardcode_libdir_separator=
7425   hardcode_direct=no
7426   hardcode_minus_L=no
7427   hardcode_shlibpath_var=unsupported
7428   link_all_deplibs=unknown
7429   hardcode_automatic=no
7430   module_cmds=
7431   module_expsym_cmds=
7432   always_export_symbols=no
7433   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7434   # include_expsyms should be a list of space-separated symbols to be *always*
7435   # included in the symbol list
7436   include_expsyms=
7437   # exclude_expsyms can be an extended regexp of symbols to exclude
7438   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7439   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7440   # as well as any symbol that contains `d'.
7441   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7442   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7443   # platforms (ab)use it in PIC code, but their linkers get confused if
7444   # the symbol is explicitly referenced.  Since portable code cannot
7445   # rely on this symbol name, it's probably fine to never include it in
7446   # preloaded symbol tables.
7447   extract_expsyms_cmds=
7448   # Just being paranoid about ensuring that cc_basename is set.
7449   for cc_temp in $compiler""; do
7450   case $cc_temp in
7451     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7452     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7453     \-*) ;;
7454     *) break;;
7455   esac
7456 done
7457 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7458
7459   case $host_os in
7460   cygwin* | mingw* | pw32*)
7461     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7462     # When not using gcc, we currently assume that we are using
7463     # Microsoft Visual C++.
7464     if test "$GCC" != yes; then
7465       with_gnu_ld=no
7466     fi
7467     ;;
7468   interix*)
7469     # we just hope/assume this is gcc and not c89 (= MSVC++)
7470     with_gnu_ld=yes
7471     ;;
7472   openbsd*)
7473     with_gnu_ld=no
7474     ;;
7475   esac
7476
7477   ld_shlibs=yes
7478   if test "$with_gnu_ld" = yes; then
7479     # If archive_cmds runs LD, not CC, wlarc should be empty
7480     wlarc='${wl}'
7481
7482     # Set some defaults for GNU ld with shared library support. These
7483     # are reset later if shared libraries are not supported. Putting them
7484     # here allows them to be overridden if necessary.
7485     runpath_var=LD_RUN_PATH
7486     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7487     export_dynamic_flag_spec='${wl}--export-dynamic'
7488     # ancient GNU ld didn't support --whole-archive et. al.
7489     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7490         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7491       else
7492         whole_archive_flag_spec=
7493     fi
7494     supports_anon_versioning=no
7495     case `$LD -v 2>/dev/null` in
7496       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7497       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7498       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7499       *\ 2.11.*) ;; # other 2.11 versions
7500       *) supports_anon_versioning=yes ;;
7501     esac
7502
7503     # See if GNU ld supports shared libraries.
7504     case $host_os in
7505     aix3* | aix4* | aix5*)
7506       # On AIX/PPC, the GNU linker is very broken
7507       if test "$host_cpu" != ia64; then
7508         ld_shlibs=no
7509         cat <<EOF 1>&2
7510
7511 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7512 *** to be unable to reliably create shared libraries on AIX.
7513 *** Therefore, libtool is disabling shared libraries support.  If you
7514 *** really care for shared libraries, you may want to modify your PATH
7515 *** so that a non-GNU linker is found, and then restart.
7516
7517 EOF
7518       fi
7519       ;;
7520
7521     amigaos*)
7522       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)'
7523       hardcode_libdir_flag_spec='-L$libdir'
7524       hardcode_minus_L=yes
7525
7526       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7527       # that the semantics of dynamic libraries on AmigaOS, at least up
7528       # to version 4, is to share data among multiple programs linked
7529       # with the same dynamic library.  Since this doesn't match the
7530       # behavior of shared libraries on other platforms, we can't use
7531       # them.
7532       ld_shlibs=no
7533       ;;
7534
7535     beos*)
7536       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7537         allow_undefined_flag=unsupported
7538         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7539         # support --undefined.  This deserves some investigation.  FIXME
7540         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7541       else
7542         ld_shlibs=no
7543       fi
7544       ;;
7545
7546     cygwin* | mingw* | pw32*)
7547       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7548       # as there is no search path for DLLs.
7549       hardcode_libdir_flag_spec='-L$libdir'
7550       allow_undefined_flag=unsupported
7551       always_export_symbols=no
7552       enable_shared_with_static_runtimes=yes
7553       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7554
7555       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7556         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7557         # If the export-symbols file already is a .def file (1st line
7558         # is EXPORTS), use it as is; otherwise, prepend...
7559         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7560           cp $export_symbols $output_objdir/$soname.def;
7561         else
7562           echo EXPORTS > $output_objdir/$soname.def;
7563           cat $export_symbols >> $output_objdir/$soname.def;
7564         fi~
7565         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7566       else
7567         ld_shlibs=no
7568       fi
7569       ;;
7570
7571     interix3*)
7572       hardcode_direct=no
7573       hardcode_shlibpath_var=no
7574       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7575       export_dynamic_flag_spec='${wl}-E'
7576       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7577       # Instead, shared libraries are loaded at an image base (0x10000000 by
7578       # default) and relocated if they conflict, which is a slow very memory
7579       # consuming and fragmenting process.  To avoid this, we pick a random,
7580       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7581       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7582       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7583       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'
7584       ;;
7585
7586     linux*)
7587       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7588         tmp_addflag=
7589         case $cc_basename,$host_cpu in
7590         pgcc*)                          # Portland Group C compiler
7591           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'
7592           tmp_addflag=' $pic_flag'
7593           ;;
7594         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7595           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'
7596           tmp_addflag=' $pic_flag -Mnomain' ;;
7597         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7598           tmp_addflag=' -i_dynamic' ;;
7599         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7600           tmp_addflag=' -i_dynamic -nofor_main' ;;
7601         ifc* | ifort*)                  # Intel Fortran compiler
7602           tmp_addflag=' -nofor_main' ;;
7603         esac
7604         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7605
7606         if test $supports_anon_versioning = yes; then
7607           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7608   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7609   $echo "local: *; };" >> $output_objdir/$libname.ver~
7610           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7611         fi
7612       else
7613         ld_shlibs=no
7614       fi
7615       ;;
7616
7617     netbsd*)
7618       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7619         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7620         wlarc=
7621       else
7622         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7623         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7624       fi
7625       ;;
7626
7627     solaris*)
7628       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7629         ld_shlibs=no
7630         cat <<EOF 1>&2
7631
7632 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7633 *** create shared libraries on Solaris systems.  Therefore, libtool
7634 *** is disabling shared libraries support.  We urge you to upgrade GNU
7635 *** binutils to release 2.9.1 or newer.  Another option is to modify
7636 *** your PATH or compiler configuration so that the native linker is
7637 *** used, and then restart.
7638
7639 EOF
7640       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7641         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7643       else
7644         ld_shlibs=no
7645       fi
7646       ;;
7647
7648     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7649       case `$LD -v 2>&1` in
7650         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7651         ld_shlibs=no
7652         cat <<_LT_EOF 1>&2
7653
7654 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7655 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7656 *** is disabling shared libraries support.  We urge you to upgrade GNU
7657 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7658 *** your PATH or compiler configuration so that the native linker is
7659 *** used, and then restart.
7660
7661 _LT_EOF
7662         ;;
7663         *)
7664           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7665             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7666             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7667             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7668           else
7669             ld_shlibs=no
7670           fi
7671         ;;
7672       esac
7673       ;;
7674
7675     sunos4*)
7676       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7677       wlarc=
7678       hardcode_direct=yes
7679       hardcode_shlibpath_var=no
7680       ;;
7681
7682     *)
7683       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7684         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7685         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7686       else
7687         ld_shlibs=no
7688       fi
7689       ;;
7690     esac
7691
7692     if test "$ld_shlibs" = no; then
7693       runpath_var=
7694       hardcode_libdir_flag_spec=
7695       export_dynamic_flag_spec=
7696       whole_archive_flag_spec=
7697     fi
7698   else
7699     # PORTME fill in a description of your system's linker (not GNU ld)
7700     case $host_os in
7701     aix3*)
7702       allow_undefined_flag=unsupported
7703       always_export_symbols=yes
7704       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'
7705       # Note: this linker hardcodes the directories in LIBPATH if there
7706       # are no directories specified by -L.
7707       hardcode_minus_L=yes
7708       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7709         # Neither direct hardcoding nor static linking is supported with a
7710         # broken collect2.
7711         hardcode_direct=unsupported
7712       fi
7713       ;;
7714
7715     aix4* | aix5*)
7716       if test "$host_cpu" = ia64; then
7717         # On IA64, the linker does run time linking by default, so we don't
7718         # have to do anything special.
7719         aix_use_runtimelinking=no
7720         exp_sym_flag='-Bexport'
7721         no_entry_flag=""
7722       else
7723         # If we're using GNU nm, then we don't want the "-C" option.
7724         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7725         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7726           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'
7727         else
7728           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'
7729         fi
7730         aix_use_runtimelinking=no
7731
7732         # Test if we are trying to use run time linking or normal
7733         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7734         # need to do runtime linking.
7735         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7736           for ld_flag in $LDFLAGS; do
7737           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7738             aix_use_runtimelinking=yes
7739             break
7740           fi
7741           done
7742           ;;
7743         esac
7744
7745         exp_sym_flag='-bexport'
7746         no_entry_flag='-bnoentry'
7747       fi
7748
7749       # When large executables or shared objects are built, AIX ld can
7750       # have problems creating the table of contents.  If linking a library
7751       # or program results in "error TOC overflow" add -mminimal-toc to
7752       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7753       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7754
7755       archive_cmds=''
7756       hardcode_direct=yes
7757       hardcode_libdir_separator=':'
7758       link_all_deplibs=yes
7759
7760       if test "$GCC" = yes; then
7761         case $host_os in aix4.[012]|aix4.[012].*)
7762         # We only want to do this on AIX 4.2 and lower, the check
7763         # below for broken collect2 doesn't work under 4.3+
7764           collect2name=`${CC} -print-prog-name=collect2`
7765           if test -f "$collect2name" && \
7766            strings "$collect2name" | grep resolve_lib_name >/dev/null
7767           then
7768           # We have reworked collect2
7769           hardcode_direct=yes
7770           else
7771           # We have old collect2
7772           hardcode_direct=unsupported
7773           # It fails to find uninstalled libraries when the uninstalled
7774           # path is not listed in the libpath.  Setting hardcode_minus_L
7775           # to unsupported forces relinking
7776           hardcode_minus_L=yes
7777           hardcode_libdir_flag_spec='-L$libdir'
7778           hardcode_libdir_separator=
7779           fi
7780           ;;
7781         esac
7782         shared_flag='-shared'
7783         if test "$aix_use_runtimelinking" = yes; then
7784           shared_flag="$shared_flag "'${wl}-G'
7785         fi
7786       else
7787         # not using gcc
7788         if test "$host_cpu" = ia64; then
7789         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7790         # chokes on -Wl,-G. The following line is correct:
7791           shared_flag='-G'
7792         else
7793           if test "$aix_use_runtimelinking" = yes; then
7794             shared_flag='${wl}-G'
7795           else
7796             shared_flag='${wl}-bM:SRE'
7797           fi
7798         fi
7799       fi
7800
7801       # It seems that -bexpall does not export symbols beginning with
7802       # underscore (_), so it is better to generate a list of symbols to export.
7803       always_export_symbols=yes
7804       if test "$aix_use_runtimelinking" = yes; then
7805         # Warning - without using the other runtime loading flags (-brtl),
7806         # -berok will link without error, but may produce a broken library.
7807         allow_undefined_flag='-berok'
7808        # Determine the default libpath from the value encoded in an empty executable.
7809        cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h.  */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h.  */
7815
7816 int
7817 main ()
7818 {
7819
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (ac_try="$ac_link"
7826 case "(($ac_try" in
7827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828   *) ac_try_echo=$ac_try;;
7829 esac
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831   (eval "$ac_link") 2>conftest.er1
7832   ac_status=$?
7833   grep -v '^ *+' conftest.er1 >conftest.err
7834   rm -f conftest.er1
7835   cat conftest.err >&5
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } && {
7838          test -z "$ac_c_werror_flag" ||
7839          test ! -s conftest.err
7840        } && test -s conftest$ac_exeext &&
7841        $as_test_x conftest$ac_exeext; then
7842
7843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7844 }'`
7845 # Check for a 64-bit object if we didn't find anything.
7846 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; }
7847 }'`; fi
7848 else
7849   echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852
7853 fi
7854
7855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7856       conftest$ac_exeext conftest.$ac_ext
7857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7858
7859        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7860         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"
7861        else
7862         if test "$host_cpu" = ia64; then
7863           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7864           allow_undefined_flag="-z nodefs"
7865           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"
7866         else
7867          # Determine the default libpath from the value encoded in an empty executable.
7868          cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874
7875 int
7876 main ()
7877 {
7878
7879   ;
7880   return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7885 case "(($ac_try" in
7886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887   *) ac_try_echo=$ac_try;;
7888 esac
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890   (eval "$ac_link") 2>conftest.er1
7891   ac_status=$?
7892   grep -v '^ *+' conftest.er1 >conftest.err
7893   rm -f conftest.er1
7894   cat conftest.err >&5
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); } && {
7897          test -z "$ac_c_werror_flag" ||
7898          test ! -s conftest.err
7899        } && test -s conftest$ac_exeext &&
7900        $as_test_x conftest$ac_exeext; then
7901
7902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7903 }'`
7904 # Check for a 64-bit object if we didn't find anything.
7905 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; }
7906 }'`; fi
7907 else
7908   echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911
7912 fi
7913
7914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7915       conftest$ac_exeext conftest.$ac_ext
7916 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7917
7918          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7919           # Warning - without using the other run time loading flags,
7920           # -berok will link without error, but may produce a broken library.
7921           no_undefined_flag=' ${wl}-bernotok'
7922           allow_undefined_flag=' ${wl}-berok'
7923           # Exported symbols can be pulled into shared objects from archives
7924           whole_archive_flag_spec='$convenience'
7925           archive_cmds_need_lc=yes
7926           # This is similar to how AIX traditionally builds its shared libraries.
7927           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'
7928         fi
7929       fi
7930       ;;
7931
7932     amigaos*)
7933       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)'
7934       hardcode_libdir_flag_spec='-L$libdir'
7935       hardcode_minus_L=yes
7936       # see comment about different semantics on the GNU ld section
7937       ld_shlibs=no
7938       ;;
7939
7940     bsdi[45]*)
7941       export_dynamic_flag_spec=-rdynamic
7942       ;;
7943
7944     cygwin* | mingw* | pw32*)
7945       # When not using gcc, we currently assume that we are using
7946       # Microsoft Visual C++.
7947       # hardcode_libdir_flag_spec is actually meaningless, as there is
7948       # no search path for DLLs.
7949       hardcode_libdir_flag_spec=' '
7950       allow_undefined_flag=unsupported
7951       # Tell ltmain to make .lib files, not .a files.
7952       libext=lib
7953       # Tell ltmain to make .dll files, not .so files.
7954       shrext_cmds=".dll"
7955       # FIXME: Setting linknames here is a bad hack.
7956       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7957       # The linker will automatically build a .lib file if we build a DLL.
7958       old_archive_From_new_cmds='true'
7959       # FIXME: Should let the user specify the lib program.
7960       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7961       fix_srcfile_path='`cygpath -w "$srcfile"`'
7962       enable_shared_with_static_runtimes=yes
7963       ;;
7964
7965     darwin* | rhapsody*)
7966       case $host_os in
7967         rhapsody* | darwin1.[012])
7968          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7969          ;;
7970        *) # Darwin 1.3 on
7971          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7972            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7973          else
7974            case ${MACOSX_DEPLOYMENT_TARGET} in
7975              10.[012])
7976                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7977                ;;
7978              10.*)
7979                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7980                ;;
7981            esac
7982          fi
7983          ;;
7984       esac
7985       archive_cmds_need_lc=no
7986       hardcode_direct=no
7987       hardcode_automatic=yes
7988       hardcode_shlibpath_var=unsupported
7989       whole_archive_flag_spec=''
7990       link_all_deplibs=yes
7991     if test "$GCC" = yes ; then
7992         output_verbose_link_cmd='echo'
7993         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7994       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7995       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7996       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}'
7997       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}'
7998     else
7999       case $cc_basename in
8000         xlc*)
8001          output_verbose_link_cmd='echo'
8002          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8003          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8004           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8005          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}'
8006           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}'
8007           ;;
8008        *)
8009          ld_shlibs=no
8010           ;;
8011       esac
8012     fi
8013       ;;
8014
8015     dgux*)
8016       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8017       hardcode_libdir_flag_spec='-L$libdir'
8018       hardcode_shlibpath_var=no
8019       ;;
8020
8021     freebsd1*)
8022       ld_shlibs=no
8023       ;;
8024
8025     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8026     # support.  Future versions do this automatically, but an explicit c++rt0.o
8027     # does not break anything, and helps significantly (at the cost of a little
8028     # extra space).
8029     freebsd2.2*)
8030       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8031       hardcode_libdir_flag_spec='-R$libdir'
8032       hardcode_direct=yes
8033       hardcode_shlibpath_var=no
8034       ;;
8035
8036     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8037     freebsd2*)
8038       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8039       hardcode_direct=yes
8040       hardcode_minus_L=yes
8041       hardcode_shlibpath_var=no
8042       ;;
8043
8044     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8045     freebsd* | kfreebsd*-gnu | dragonfly*)
8046       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8047       hardcode_libdir_flag_spec='-R$libdir'
8048       hardcode_direct=yes
8049       hardcode_shlibpath_var=no
8050       ;;
8051
8052     hpux9*)
8053       if test "$GCC" = yes; then
8054         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'
8055       else
8056         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'
8057       fi
8058       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8059       hardcode_libdir_separator=:
8060       hardcode_direct=yes
8061
8062       # hardcode_minus_L: Not really in the search PATH,
8063       # but as the default location of the library.
8064       hardcode_minus_L=yes
8065       export_dynamic_flag_spec='${wl}-E'
8066       ;;
8067
8068     hpux10*)
8069       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8070         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8071       else
8072         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8073       fi
8074       if test "$with_gnu_ld" = no; then
8075         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8076         hardcode_libdir_separator=:
8077
8078         hardcode_direct=yes
8079         export_dynamic_flag_spec='${wl}-E'
8080
8081         # hardcode_minus_L: Not really in the search PATH,
8082         # but as the default location of the library.
8083         hardcode_minus_L=yes
8084       fi
8085       ;;
8086
8087     hpux11*)
8088       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8089         case $host_cpu in
8090         hppa*64*)
8091           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8092           ;;
8093         ia64*)
8094           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8095           ;;
8096         *)
8097           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8098           ;;
8099         esac
8100       else
8101         case $host_cpu in
8102         hppa*64*)
8103           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8104           ;;
8105         ia64*)
8106           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8107           ;;
8108         *)
8109           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8110           ;;
8111         esac
8112       fi
8113       if test "$with_gnu_ld" = no; then
8114         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8115         hardcode_libdir_separator=:
8116
8117         case $host_cpu in
8118         hppa*64*|ia64*)
8119           hardcode_libdir_flag_spec_ld='+b $libdir'
8120           hardcode_direct=no
8121           hardcode_shlibpath_var=no
8122           ;;
8123         *)
8124           hardcode_direct=yes
8125           export_dynamic_flag_spec='${wl}-E'
8126
8127           # hardcode_minus_L: Not really in the search PATH,
8128           # but as the default location of the library.
8129           hardcode_minus_L=yes
8130           ;;
8131         esac
8132       fi
8133       ;;
8134
8135     irix5* | irix6* | nonstopux*)
8136       if test "$GCC" = yes; then
8137         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'
8138       else
8139         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'
8140         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8141       fi
8142       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8143       hardcode_libdir_separator=:
8144       link_all_deplibs=yes
8145       ;;
8146
8147     netbsd*)
8148       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8149         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8150       else
8151         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8152       fi
8153       hardcode_libdir_flag_spec='-R$libdir'
8154       hardcode_direct=yes
8155       hardcode_shlibpath_var=no
8156       ;;
8157
8158     newsos6)
8159       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8160       hardcode_direct=yes
8161       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8162       hardcode_libdir_separator=:
8163       hardcode_shlibpath_var=no
8164       ;;
8165
8166     openbsd*)
8167       hardcode_direct=yes
8168       hardcode_shlibpath_var=no
8169       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8170         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8171         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8172         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8173         export_dynamic_flag_spec='${wl}-E'
8174       else
8175        case $host_os in
8176          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8177            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8178            hardcode_libdir_flag_spec='-R$libdir'
8179            ;;
8180          *)
8181            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8182            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8183            ;;
8184        esac
8185       fi
8186       ;;
8187
8188     os2*)
8189       hardcode_libdir_flag_spec='-L$libdir'
8190       hardcode_minus_L=yes
8191       allow_undefined_flag=unsupported
8192       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'
8193       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8194       ;;
8195
8196     osf3*)
8197       if test "$GCC" = yes; then
8198         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8199         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'
8200       else
8201         allow_undefined_flag=' -expect_unresolved \*'
8202         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'
8203       fi
8204       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8205       hardcode_libdir_separator=:
8206       ;;
8207
8208     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8209       if test "$GCC" = yes; then
8210         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8211         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'
8212         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8213       else
8214         allow_undefined_flag=' -expect_unresolved \*'
8215         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'
8216         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8217         $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'
8218
8219         # Both c and cxx compiler support -rpath directly
8220         hardcode_libdir_flag_spec='-rpath $libdir'
8221       fi
8222       hardcode_libdir_separator=:
8223       ;;
8224
8225     solaris*)
8226       no_undefined_flag=' -z text'
8227       if test "$GCC" = yes; then
8228         wlarc='${wl}'
8229         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8230         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8231           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8232       else
8233         wlarc=''
8234         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8235         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8236         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8237       fi
8238       hardcode_libdir_flag_spec='-R$libdir'
8239       hardcode_shlibpath_var=no
8240       case $host_os in
8241       solaris2.[0-5] | solaris2.[0-5].*) ;;
8242       *)
8243         # The compiler driver will combine linker options so we
8244         # cannot just pass the convience library names through
8245         # without $wl, iff we do not link with $LD.
8246         # Luckily, gcc supports the same syntax we need for Sun Studio.
8247         # Supported since Solaris 2.6 (maybe 2.5.1?)
8248         case $wlarc in
8249         '')
8250           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8251         *)
8252           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' ;;
8253         esac ;;
8254       esac
8255       link_all_deplibs=yes
8256       ;;
8257
8258     sunos4*)
8259       if test "x$host_vendor" = xsequent; then
8260         # Use $CC to link under sequent, because it throws in some extra .o
8261         # files that make .init and .fini sections work.
8262         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8263       else
8264         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8265       fi
8266       hardcode_libdir_flag_spec='-L$libdir'
8267       hardcode_direct=yes
8268       hardcode_minus_L=yes
8269       hardcode_shlibpath_var=no
8270       ;;
8271
8272     sysv4)
8273       case $host_vendor in
8274         sni)
8275           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8276           hardcode_direct=yes # is this really true???
8277         ;;
8278         siemens)
8279           ## LD is ld it makes a PLAMLIB
8280           ## CC just makes a GrossModule.
8281           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8282           reload_cmds='$CC -r -o $output$reload_objs'
8283           hardcode_direct=no
8284         ;;
8285         motorola)
8286           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8287           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8288         ;;
8289       esac
8290       runpath_var='LD_RUN_PATH'
8291       hardcode_shlibpath_var=no
8292       ;;
8293
8294     sysv4.3*)
8295       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8296       hardcode_shlibpath_var=no
8297       export_dynamic_flag_spec='-Bexport'
8298       ;;
8299
8300     sysv4*MP*)
8301       if test -d /usr/nec; then
8302         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303         hardcode_shlibpath_var=no
8304         runpath_var=LD_RUN_PATH
8305         hardcode_runpath_var=yes
8306         ld_shlibs=yes
8307       fi
8308       ;;
8309
8310     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8311       no_undefined_flag='${wl}-z,text'
8312       archive_cmds_need_lc=no
8313       hardcode_shlibpath_var=no
8314       runpath_var='LD_RUN_PATH'
8315
8316       if test "$GCC" = yes; then
8317         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8318         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8319       else
8320         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8321         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8322       fi
8323       ;;
8324
8325     sysv5* | sco3.2v5* | sco5v6*)
8326       # Note: We can NOT use -z defs as we might desire, because we do not
8327       # link with -lc, and that would cause any symbols used from libc to
8328       # always be unresolved, which means just about no library would
8329       # ever link correctly.  If we're not using GNU ld we use -z text
8330       # though, which does catch some bad symbols but isn't as heavy-handed
8331       # as -z defs.
8332       no_undefined_flag='${wl}-z,text'
8333       allow_undefined_flag='${wl}-z,nodefs'
8334       archive_cmds_need_lc=no
8335       hardcode_shlibpath_var=no
8336       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8337       hardcode_libdir_separator=':'
8338       link_all_deplibs=yes
8339       export_dynamic_flag_spec='${wl}-Bexport'
8340       runpath_var='LD_RUN_PATH'
8341
8342       if test "$GCC" = yes; then
8343         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8345       else
8346         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8347         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8348       fi
8349       ;;
8350
8351     uts4*)
8352       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8353       hardcode_libdir_flag_spec='-L$libdir'
8354       hardcode_shlibpath_var=no
8355       ;;
8356
8357     *)
8358       ld_shlibs=no
8359       ;;
8360     esac
8361   fi
8362
8363 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8364 echo "${ECHO_T}$ld_shlibs" >&6; }
8365 test "$ld_shlibs" = no && can_build_shared=no
8366
8367 #
8368 # Do we need to explicitly link libc?
8369 #
8370 case "x$archive_cmds_need_lc" in
8371 x|xyes)
8372   # Assume -lc should be added
8373   archive_cmds_need_lc=yes
8374
8375   if test "$enable_shared" = yes && test "$GCC" = yes; then
8376     case $archive_cmds in
8377     *'~'*)
8378       # FIXME: we may have to deal with multi-command sequences.
8379       ;;
8380     '$CC '*)
8381       # Test whether the compiler implicitly links with -lc since on some
8382       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8383       # to ld, don't add -lc before -lgcc.
8384       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8385 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8386       $rm conftest*
8387       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8388
8389       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8390   (eval $ac_compile) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } 2>conftest.err; then
8394         soname=conftest
8395         lib=conftest
8396         libobjs=conftest.$ac_objext
8397         deplibs=
8398         wl=$lt_prog_compiler_wl
8399         pic_flag=$lt_prog_compiler_pic
8400         compiler_flags=-v
8401         linker_flags=-v
8402         verstring=
8403         output_objdir=.
8404         libname=conftest
8405         lt_save_allow_undefined_flag=$allow_undefined_flag
8406         allow_undefined_flag=
8407         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8408   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }
8412         then
8413           archive_cmds_need_lc=no
8414         else
8415           archive_cmds_need_lc=yes
8416         fi
8417         allow_undefined_flag=$lt_save_allow_undefined_flag
8418       else
8419         cat conftest.err 1>&5
8420       fi
8421       $rm conftest*
8422       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8423 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8424       ;;
8425     esac
8426   fi
8427   ;;
8428 esac
8429
8430 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8432 library_names_spec=
8433 libname_spec='lib$name'
8434 soname_spec=
8435 shrext_cmds=".so"
8436 postinstall_cmds=
8437 postuninstall_cmds=
8438 finish_cmds=
8439 finish_eval=
8440 shlibpath_var=
8441 shlibpath_overrides_runpath=unknown
8442 version_type=none
8443 dynamic_linker="$host_os ld.so"
8444 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8445 if test "$GCC" = yes; then
8446   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8447   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8448     # if the path contains ";" then we assume it to be the separator
8449     # otherwise default to the standard path separator (i.e. ":") - it is
8450     # assumed that no part of a normal pathname contains ";" but that should
8451     # okay in the real world where ";" in dirpaths is itself problematic.
8452     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8453   else
8454     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8455   fi
8456 else
8457   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8458 fi
8459 need_lib_prefix=unknown
8460 hardcode_into_libs=no
8461
8462 # when you set need_version to no, make sure it does not cause -set_version
8463 # flags to be left without arguments
8464 need_version=unknown
8465
8466 case $host_os in
8467 aix3*)
8468   version_type=linux
8469   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8470   shlibpath_var=LIBPATH
8471
8472   # AIX 3 has no versioning support, so we append a major version to the name.
8473   soname_spec='${libname}${release}${shared_ext}$major'
8474   ;;
8475
8476 aix4* | aix5*)
8477   version_type=linux
8478   need_lib_prefix=no
8479   need_version=no
8480   hardcode_into_libs=yes
8481   if test "$host_cpu" = ia64; then
8482     # AIX 5 supports IA64
8483     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8484     shlibpath_var=LD_LIBRARY_PATH
8485   else
8486     # With GCC up to 2.95.x, collect2 would create an import file
8487     # for dependence libraries.  The import file would start with
8488     # the line `#! .'.  This would cause the generated library to
8489     # depend on `.', always an invalid library.  This was fixed in
8490     # development snapshots of GCC prior to 3.0.
8491     case $host_os in
8492       aix4 | aix4.[01] | aix4.[01].*)
8493       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8494            echo ' yes '
8495            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8496         :
8497       else
8498         can_build_shared=no
8499       fi
8500       ;;
8501     esac
8502     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8503     # soname into executable. Probably we can add versioning support to
8504     # collect2, so additional links can be useful in future.
8505     if test "$aix_use_runtimelinking" = yes; then
8506       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8507       # instead of lib<name>.a to let people know that these are not
8508       # typical AIX shared libraries.
8509       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8510     else
8511       # We preserve .a as extension for shared libraries through AIX4.2
8512       # and later when we are not doing run time linking.
8513       library_names_spec='${libname}${release}.a $libname.a'
8514       soname_spec='${libname}${release}${shared_ext}$major'
8515     fi
8516     shlibpath_var=LIBPATH
8517   fi
8518   ;;
8519
8520 amigaos*)
8521   library_names_spec='$libname.ixlibrary $libname.a'
8522   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8523   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'
8524   ;;
8525
8526 beos*)
8527   library_names_spec='${libname}${shared_ext}'
8528   dynamic_linker="$host_os ld.so"
8529   shlibpath_var=LIBRARY_PATH
8530   ;;
8531
8532 bsdi[45]*)
8533   version_type=linux
8534   need_version=no
8535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8536   soname_spec='${libname}${release}${shared_ext}$major'
8537   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8538   shlibpath_var=LD_LIBRARY_PATH
8539   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8540   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8541   # the default ld.so.conf also contains /usr/contrib/lib and
8542   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8543   # libtool to hard-code these into programs
8544   ;;
8545
8546 cygwin* | mingw* | pw32*)
8547   version_type=windows
8548   shrext_cmds=".dll"
8549   need_version=no
8550   need_lib_prefix=no
8551
8552   case $GCC,$host_os in
8553   yes,cygwin* | yes,mingw* | yes,pw32*)
8554     library_names_spec='$libname.dll.a'
8555     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8556     postinstall_cmds='base_file=`basename \${file}`~
8557       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8558       dldir=$destdir/`dirname \$dlpath`~
8559       test -d \$dldir || mkdir -p \$dldir~
8560       $install_prog $dir/$dlname \$dldir/$dlname~
8561       chmod a+x \$dldir/$dlname'
8562     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8563       dlpath=$dir/\$dldll~
8564        $rm \$dlpath'
8565     shlibpath_overrides_runpath=yes
8566
8567     case $host_os in
8568     cygwin*)
8569       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8570       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8571       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8572       ;;
8573     mingw*)
8574       # MinGW DLLs use traditional 'lib' prefix
8575       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8576       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8577       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8578         # It is most probably a Windows format PATH printed by
8579         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8580         # path with ; separators, and with drive letters. We can handle the
8581         # drive letters (cygwin fileutils understands them), so leave them,
8582         # especially as we might pass files found there to a mingw objdump,
8583         # which wouldn't understand a cygwinified path. Ahh.
8584         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8585       else
8586         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8587       fi
8588       ;;
8589     pw32*)
8590       # pw32 DLLs use 'pw' prefix rather than 'lib'
8591       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8592       ;;
8593     esac
8594     ;;
8595
8596   *)
8597     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8598     ;;
8599   esac
8600   dynamic_linker='Win32 ld.exe'
8601   # FIXME: first we should search . and the directory the executable is in
8602   shlibpath_var=PATH
8603   ;;
8604
8605 darwin* | rhapsody*)
8606   dynamic_linker="$host_os dyld"
8607   version_type=darwin
8608   need_lib_prefix=no
8609   need_version=no
8610   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8611   soname_spec='${libname}${release}${major}$shared_ext'
8612   shlibpath_overrides_runpath=yes
8613   shlibpath_var=DYLD_LIBRARY_PATH
8614   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8615   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8616   if test "$GCC" = yes; then
8617     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"`
8618   else
8619     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8620   fi
8621   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8622   ;;
8623
8624 dgux*)
8625   version_type=linux
8626   need_lib_prefix=no
8627   need_version=no
8628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8629   soname_spec='${libname}${release}${shared_ext}$major'
8630   shlibpath_var=LD_LIBRARY_PATH
8631   ;;
8632
8633 freebsd1*)
8634   dynamic_linker=no
8635   ;;
8636
8637 kfreebsd*-gnu)
8638   version_type=linux
8639   need_lib_prefix=no
8640   need_version=no
8641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8642   soname_spec='${libname}${release}${shared_ext}$major'
8643   shlibpath_var=LD_LIBRARY_PATH
8644   shlibpath_overrides_runpath=no
8645   hardcode_into_libs=yes
8646   dynamic_linker='GNU ld.so'
8647   ;;
8648
8649 freebsd* | dragonfly*)
8650   # DragonFly does not have aout.  When/if they implement a new
8651   # versioning mechanism, adjust this.
8652   if test -x /usr/bin/objformat; then
8653     objformat=`/usr/bin/objformat`
8654   else
8655     case $host_os in
8656     freebsd[123]*) objformat=aout ;;
8657     *) objformat=elf ;;
8658     esac
8659   fi
8660   version_type=freebsd-$objformat
8661   case $version_type in
8662     freebsd-elf*)
8663       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8664       need_version=no
8665       need_lib_prefix=no
8666       ;;
8667     freebsd-*)
8668       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8669       need_version=yes
8670       ;;
8671   esac
8672   shlibpath_var=LD_LIBRARY_PATH
8673   case $host_os in
8674   freebsd2*)
8675     shlibpath_overrides_runpath=yes
8676     ;;
8677   freebsd3.[01]* | freebsdelf3.[01]*)
8678     shlibpath_overrides_runpath=yes
8679     hardcode_into_libs=yes
8680     ;;
8681   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8682   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8683     shlibpath_overrides_runpath=no
8684     hardcode_into_libs=yes
8685     ;;
8686   freebsd*) # from 4.6 on
8687     shlibpath_overrides_runpath=yes
8688     hardcode_into_libs=yes
8689     ;;
8690   esac
8691   ;;
8692
8693 gnu*)
8694   version_type=linux
8695   need_lib_prefix=no
8696   need_version=no
8697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8698   soname_spec='${libname}${release}${shared_ext}$major'
8699   shlibpath_var=LD_LIBRARY_PATH
8700   hardcode_into_libs=yes
8701   ;;
8702
8703 hpux9* | hpux10* | hpux11*)
8704   # Give a soname corresponding to the major version so that dld.sl refuses to
8705   # link against other versions.
8706   version_type=sunos
8707   need_lib_prefix=no
8708   need_version=no
8709   case $host_cpu in
8710   ia64*)
8711     shrext_cmds='.so'
8712     hardcode_into_libs=yes
8713     dynamic_linker="$host_os dld.so"
8714     shlibpath_var=LD_LIBRARY_PATH
8715     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717     soname_spec='${libname}${release}${shared_ext}$major'
8718     if test "X$HPUX_IA64_MODE" = X32; then
8719       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8720     else
8721       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8722     fi
8723     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8724     ;;
8725    hppa*64*)
8726      shrext_cmds='.sl'
8727      hardcode_into_libs=yes
8728      dynamic_linker="$host_os dld.sl"
8729      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8730      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8731      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8732      soname_spec='${libname}${release}${shared_ext}$major'
8733      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8734      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8735      ;;
8736    *)
8737     shrext_cmds='.sl'
8738     dynamic_linker="$host_os dld.sl"
8739     shlibpath_var=SHLIB_PATH
8740     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8742     soname_spec='${libname}${release}${shared_ext}$major'
8743     ;;
8744   esac
8745   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8746   postinstall_cmds='chmod 555 $lib'
8747   ;;
8748
8749 interix3*)
8750   version_type=linux
8751   need_lib_prefix=no
8752   need_version=no
8753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8754   soname_spec='${libname}${release}${shared_ext}$major'
8755   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8756   shlibpath_var=LD_LIBRARY_PATH
8757   shlibpath_overrides_runpath=no
8758   hardcode_into_libs=yes
8759   ;;
8760
8761 irix5* | irix6* | nonstopux*)
8762   case $host_os in
8763     nonstopux*) version_type=nonstopux ;;
8764     *)
8765         if test "$lt_cv_prog_gnu_ld" = yes; then
8766                 version_type=linux
8767         else
8768                 version_type=irix
8769         fi ;;
8770   esac
8771   need_lib_prefix=no
8772   need_version=no
8773   soname_spec='${libname}${release}${shared_ext}$major'
8774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8775   case $host_os in
8776   irix5* | nonstopux*)
8777     libsuff= shlibsuff=
8778     ;;
8779   *)
8780     case $LD in # libtool.m4 will add one of these switches to LD
8781     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8782       libsuff= shlibsuff= libmagic=32-bit;;
8783     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8784       libsuff=32 shlibsuff=N32 libmagic=N32;;
8785     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8786       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8787     *) libsuff= shlibsuff= libmagic=never-match;;
8788     esac
8789     ;;
8790   esac
8791   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8792   shlibpath_overrides_runpath=no
8793   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8794   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8795   hardcode_into_libs=yes
8796   ;;
8797
8798 # No shared lib support for Linux oldld, aout, or coff.
8799 linux*oldld* | linux*aout* | linux*coff*)
8800   dynamic_linker=no
8801   ;;
8802
8803 # This must be Linux ELF.
8804 linux*)
8805   version_type=linux
8806   need_lib_prefix=no
8807   need_version=no
8808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809   soname_spec='${libname}${release}${shared_ext}$major'
8810   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8811   shlibpath_var=LD_LIBRARY_PATH
8812   shlibpath_overrides_runpath=no
8813   # This implies no fast_install, which is unacceptable.
8814   # Some rework will be needed to allow for fast_install
8815   # before this can be enabled.
8816   hardcode_into_libs=yes
8817
8818   # Append ld.so.conf contents to the search path
8819   if test -f /etc/ld.so.conf; then
8820     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' ' '`
8821     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8822   fi
8823
8824   # We used to test for /lib/ld.so.1 and disable shared libraries on
8825   # powerpc, because MkLinux only supported shared libraries with the
8826   # GNU dynamic linker.  Since this was broken with cross compilers,
8827   # most powerpc-linux boxes support dynamic linking these days and
8828   # people can always --disable-shared, the test was removed, and we
8829   # assume the GNU/Linux dynamic linker is in use.
8830   dynamic_linker='GNU/Linux ld.so'
8831   ;;
8832
8833 knetbsd*-gnu)
8834   version_type=linux
8835   need_lib_prefix=no
8836   need_version=no
8837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8838   soname_spec='${libname}${release}${shared_ext}$major'
8839   shlibpath_var=LD_LIBRARY_PATH
8840   shlibpath_overrides_runpath=no
8841   hardcode_into_libs=yes
8842   dynamic_linker='GNU ld.so'
8843   ;;
8844
8845 netbsd*)
8846   version_type=sunos
8847   need_lib_prefix=no
8848   need_version=no
8849   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8851     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8852     dynamic_linker='NetBSD (a.out) ld.so'
8853   else
8854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8855     soname_spec='${libname}${release}${shared_ext}$major'
8856     dynamic_linker='NetBSD ld.elf_so'
8857   fi
8858   shlibpath_var=LD_LIBRARY_PATH
8859   shlibpath_overrides_runpath=yes
8860   hardcode_into_libs=yes
8861   ;;
8862
8863 newsos6)
8864   version_type=linux
8865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866   shlibpath_var=LD_LIBRARY_PATH
8867   shlibpath_overrides_runpath=yes
8868   ;;
8869
8870 nto-qnx*)
8871   version_type=linux
8872   need_lib_prefix=no
8873   need_version=no
8874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875   soname_spec='${libname}${release}${shared_ext}$major'
8876   shlibpath_var=LD_LIBRARY_PATH
8877   shlibpath_overrides_runpath=yes
8878   ;;
8879
8880 openbsd*)
8881   version_type=sunos
8882   sys_lib_dlsearch_path_spec="/usr/lib"
8883   need_lib_prefix=no
8884   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8885   case $host_os in
8886     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8887     *)                         need_version=no  ;;
8888   esac
8889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8890   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8891   shlibpath_var=LD_LIBRARY_PATH
8892   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8893     case $host_os in
8894       openbsd2.[89] | openbsd2.[89].*)
8895         shlibpath_overrides_runpath=no
8896         ;;
8897       *)
8898         shlibpath_overrides_runpath=yes
8899         ;;
8900       esac
8901   else
8902     shlibpath_overrides_runpath=yes
8903   fi
8904   ;;
8905
8906 os2*)
8907   libname_spec='$name'
8908   shrext_cmds=".dll"
8909   need_lib_prefix=no
8910   library_names_spec='$libname${shared_ext} $libname.a'
8911   dynamic_linker='OS/2 ld.exe'
8912   shlibpath_var=LIBPATH
8913   ;;
8914
8915 osf3* | osf4* | osf5*)
8916   version_type=osf
8917   need_lib_prefix=no
8918   need_version=no
8919   soname_spec='${libname}${release}${shared_ext}$major'
8920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921   shlibpath_var=LD_LIBRARY_PATH
8922   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8923   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8924   ;;
8925
8926 solaris*)
8927   version_type=linux
8928   need_lib_prefix=no
8929   need_version=no
8930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931   soname_spec='${libname}${release}${shared_ext}$major'
8932   shlibpath_var=LD_LIBRARY_PATH
8933   shlibpath_overrides_runpath=yes
8934   hardcode_into_libs=yes
8935   # ldd complains unless libraries are executable
8936   postinstall_cmds='chmod +x $lib'
8937   ;;
8938
8939 sunos4*)
8940   version_type=sunos
8941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8942   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8943   shlibpath_var=LD_LIBRARY_PATH
8944   shlibpath_overrides_runpath=yes
8945   if test "$with_gnu_ld" = yes; then
8946     need_lib_prefix=no
8947   fi
8948   need_version=yes
8949   ;;
8950
8951 sysv4 | sysv4.3*)
8952   version_type=linux
8953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954   soname_spec='${libname}${release}${shared_ext}$major'
8955   shlibpath_var=LD_LIBRARY_PATH
8956   case $host_vendor in
8957     sni)
8958       shlibpath_overrides_runpath=no
8959       need_lib_prefix=no
8960       export_dynamic_flag_spec='${wl}-Blargedynsym'
8961       runpath_var=LD_RUN_PATH
8962       ;;
8963     siemens)
8964       need_lib_prefix=no
8965       ;;
8966     motorola)
8967       need_lib_prefix=no
8968       need_version=no
8969       shlibpath_overrides_runpath=no
8970       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8971       ;;
8972   esac
8973   ;;
8974
8975 sysv4*MP*)
8976   if test -d /usr/nec ;then
8977     version_type=linux
8978     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8979     soname_spec='$libname${shared_ext}.$major'
8980     shlibpath_var=LD_LIBRARY_PATH
8981   fi
8982   ;;
8983
8984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8985   version_type=freebsd-elf
8986   need_lib_prefix=no
8987   need_version=no
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   shlibpath_var=LD_LIBRARY_PATH
8991   hardcode_into_libs=yes
8992   if test "$with_gnu_ld" = yes; then
8993     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8994     shlibpath_overrides_runpath=no
8995   else
8996     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8997     shlibpath_overrides_runpath=yes
8998     case $host_os in
8999       sco3.2v5*)
9000         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9001         ;;
9002     esac
9003   fi
9004   sys_lib_dlsearch_path_spec='/usr/lib'
9005   ;;
9006
9007 uts4*)
9008   version_type=linux
9009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010   soname_spec='${libname}${release}${shared_ext}$major'
9011   shlibpath_var=LD_LIBRARY_PATH
9012   ;;
9013
9014 *)
9015   dynamic_linker=no
9016   ;;
9017 esac
9018 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9019 echo "${ECHO_T}$dynamic_linker" >&6; }
9020 test "$dynamic_linker" = no && can_build_shared=no
9021
9022 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9023 if test "$GCC" = yes; then
9024   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9025 fi
9026
9027 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9028 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9029 hardcode_action=
9030 if test -n "$hardcode_libdir_flag_spec" || \
9031    test -n "$runpath_var" || \
9032    test "X$hardcode_automatic" = "Xyes" ; then
9033
9034   # We can hardcode non-existant directories.
9035   if test "$hardcode_direct" != no &&
9036      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9037      # have to relink, otherwise we might link with an installed library
9038      # when we should be linking with a yet-to-be-installed one
9039      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9040      test "$hardcode_minus_L" != no; then
9041     # Linking always hardcodes the temporary library directory.
9042     hardcode_action=relink
9043   else
9044     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9045     hardcode_action=immediate
9046   fi
9047 else
9048   # We cannot hardcode anything, or else we can only hardcode existing
9049   # directories.
9050   hardcode_action=unsupported
9051 fi
9052 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9053 echo "${ECHO_T}$hardcode_action" >&6; }
9054
9055 if test "$hardcode_action" = relink; then
9056   # Fast installation is not supported
9057   enable_fast_install=no
9058 elif test "$shlibpath_overrides_runpath" = yes ||
9059      test "$enable_shared" = no; then
9060   # Fast installation is not necessary
9061   enable_fast_install=needless
9062 fi
9063
9064 striplib=
9065 old_striplib=
9066 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9067 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9068 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9069   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9070   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9071   { echo "$as_me:$LINENO: result: yes" >&5
9072 echo "${ECHO_T}yes" >&6; }
9073 else
9074 # FIXME - insert some real tests, host_os isn't really good enough
9075   case $host_os in
9076    darwin*)
9077        if test -n "$STRIP" ; then
9078          striplib="$STRIP -x"
9079          { echo "$as_me:$LINENO: result: yes" >&5
9080 echo "${ECHO_T}yes" >&6; }
9081        else
9082   { echo "$as_me:$LINENO: result: no" >&5
9083 echo "${ECHO_T}no" >&6; }
9084 fi
9085        ;;
9086    *)
9087   { echo "$as_me:$LINENO: result: no" >&5
9088 echo "${ECHO_T}no" >&6; }
9089     ;;
9090   esac
9091 fi
9092
9093 if test "x$enable_dlopen" != xyes; then
9094   enable_dlopen=unknown
9095   enable_dlopen_self=unknown
9096   enable_dlopen_self_static=unknown
9097 else
9098   lt_cv_dlopen=no
9099   lt_cv_dlopen_libs=
9100
9101   case $host_os in
9102   beos*)
9103     lt_cv_dlopen="load_add_on"
9104     lt_cv_dlopen_libs=
9105     lt_cv_dlopen_self=yes
9106     ;;
9107
9108   mingw* | pw32*)
9109     lt_cv_dlopen="LoadLibrary"
9110     lt_cv_dlopen_libs=
9111    ;;
9112
9113   cygwin*)
9114     lt_cv_dlopen="dlopen"
9115     lt_cv_dlopen_libs=
9116    ;;
9117
9118   darwin*)
9119   # if libdl is installed we need to link against it
9120     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9121 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9123   echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125   ac_check_lib_save_LIBS=$LIBS
9126 LIBS="-ldl  $LIBS"
9127 cat >conftest.$ac_ext <<_ACEOF
9128 /* confdefs.h.  */
9129 _ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h.  */
9133
9134 /* Override any GCC internal prototype to avoid an error.
9135    Use char because int might match the return type of a GCC
9136    builtin and then its argument prototype would still apply.  */
9137 #ifdef __cplusplus
9138 extern "C"
9139 #endif
9140 char dlopen ();
9141 int
9142 main ()
9143 {
9144 return dlopen ();
9145   ;
9146   return 0;
9147 }
9148 _ACEOF
9149 rm -f conftest.$ac_objext conftest$ac_exeext
9150 if { (ac_try="$ac_link"
9151 case "(($ac_try" in
9152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153   *) ac_try_echo=$ac_try;;
9154 esac
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156   (eval "$ac_link") 2>conftest.er1
9157   ac_status=$?
9158   grep -v '^ *+' conftest.er1 >conftest.err
9159   rm -f conftest.er1
9160   cat conftest.err >&5
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); } && {
9163          test -z "$ac_c_werror_flag" ||
9164          test ! -s conftest.err
9165        } && test -s conftest$ac_exeext &&
9166        $as_test_x conftest$ac_exeext; then
9167   ac_cv_lib_dl_dlopen=yes
9168 else
9169   echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9171
9172         ac_cv_lib_dl_dlopen=no
9173 fi
9174
9175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9176       conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9178 fi
9179 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9180 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9181 if test $ac_cv_lib_dl_dlopen = yes; then
9182   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9183 else
9184
9185     lt_cv_dlopen="dyld"
9186     lt_cv_dlopen_libs=
9187     lt_cv_dlopen_self=yes
9188
9189 fi
9190
9191    ;;
9192
9193   *)
9194     { echo "$as_me:$LINENO: checking for shl_load" >&5
9195 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9196 if test "${ac_cv_func_shl_load+set}" = set; then
9197   echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199   cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h.  */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h.  */
9205 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9207 #define shl_load innocuous_shl_load
9208
9209 /* System header to define __stub macros and hopefully few prototypes,
9210     which can conflict with char shl_load (); below.
9211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212     <limits.h> exists even on freestanding compilers.  */
9213
9214 #ifdef __STDC__
9215 # include <limits.h>
9216 #else
9217 # include <assert.h>
9218 #endif
9219
9220 #undef shl_load
9221
9222 /* Override any GCC internal prototype to avoid an error.
9223    Use char because int might match the return type of a GCC
9224    builtin and then its argument prototype would still apply.  */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 char shl_load ();
9229 /* The GNU C library defines this for functions which it implements
9230     to always fail with ENOSYS.  Some functions are actually named
9231     something starting with __ and the normal name is an alias.  */
9232 #if defined __stub_shl_load || defined __stub___shl_load
9233 choke me
9234 #endif
9235
9236 int
9237 main ()
9238 {
9239 return shl_load ();
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (ac_try="$ac_link"
9246 case "(($ac_try" in
9247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248   *) ac_try_echo=$ac_try;;
9249 esac
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251   (eval "$ac_link") 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } && {
9258          test -z "$ac_c_werror_flag" ||
9259          test ! -s conftest.err
9260        } && test -s conftest$ac_exeext &&
9261        $as_test_x conftest$ac_exeext; then
9262   ac_cv_func_shl_load=yes
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267         ac_cv_func_shl_load=no
9268 fi
9269
9270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271       conftest$ac_exeext conftest.$ac_ext
9272 fi
9273 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9274 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9275 if test $ac_cv_func_shl_load = yes; then
9276   lt_cv_dlopen="shl_load"
9277 else
9278   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9279 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9280 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9281   echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283   ac_check_lib_save_LIBS=$LIBS
9284 LIBS="-ldld  $LIBS"
9285 cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291
9292 /* Override any GCC internal prototype to avoid an error.
9293    Use char because int might match the return type of a GCC
9294    builtin and then its argument prototype would still apply.  */
9295 #ifdef __cplusplus
9296 extern "C"
9297 #endif
9298 char shl_load ();
9299 int
9300 main ()
9301 {
9302 return shl_load ();
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (ac_try="$ac_link"
9309 case "(($ac_try" in
9310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311   *) ac_try_echo=$ac_try;;
9312 esac
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314   (eval "$ac_link") 2>conftest.er1
9315   ac_status=$?
9316   grep -v '^ *+' conftest.er1 >conftest.err
9317   rm -f conftest.er1
9318   cat conftest.err >&5
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); } && {
9321          test -z "$ac_c_werror_flag" ||
9322          test ! -s conftest.err
9323        } && test -s conftest$ac_exeext &&
9324        $as_test_x conftest$ac_exeext; then
9325   ac_cv_lib_dld_shl_load=yes
9326 else
9327   echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9329
9330         ac_cv_lib_dld_shl_load=no
9331 fi
9332
9333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9334       conftest$ac_exeext conftest.$ac_ext
9335 LIBS=$ac_check_lib_save_LIBS
9336 fi
9337 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9338 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9339 if test $ac_cv_lib_dld_shl_load = yes; then
9340   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9341 else
9342   { echo "$as_me:$LINENO: checking for dlopen" >&5
9343 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9344 if test "${ac_cv_func_dlopen+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h.  */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h.  */
9353 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9355 #define dlopen innocuous_dlopen
9356
9357 /* System header to define __stub macros and hopefully few prototypes,
9358     which can conflict with char dlopen (); below.
9359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360     <limits.h> exists even on freestanding compilers.  */
9361
9362 #ifdef __STDC__
9363 # include <limits.h>
9364 #else
9365 # include <assert.h>
9366 #endif
9367
9368 #undef dlopen
9369
9370 /* Override any GCC internal prototype to avoid an error.
9371    Use char because int might match the return type of a GCC
9372    builtin and then its argument prototype would still apply.  */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 char dlopen ();
9377 /* The GNU C library defines this for functions which it implements
9378     to always fail with ENOSYS.  Some functions are actually named
9379     something starting with __ and the normal name is an alias.  */
9380 #if defined __stub_dlopen || defined __stub___dlopen
9381 choke me
9382 #endif
9383
9384 int
9385 main ()
9386 {
9387 return dlopen ();
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9394 case "(($ac_try" in
9395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396   *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399   (eval "$ac_link") 2>conftest.er1
9400   ac_status=$?
9401   grep -v '^ *+' conftest.er1 >conftest.err
9402   rm -f conftest.er1
9403   cat conftest.err >&5
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } && {
9406          test -z "$ac_c_werror_flag" ||
9407          test ! -s conftest.err
9408        } && test -s conftest$ac_exeext &&
9409        $as_test_x conftest$ac_exeext; then
9410   ac_cv_func_dlopen=yes
9411 else
9412   echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9414
9415         ac_cv_func_dlopen=no
9416 fi
9417
9418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9419       conftest$ac_exeext conftest.$ac_ext
9420 fi
9421 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9422 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9423 if test $ac_cv_func_dlopen = yes; then
9424   lt_cv_dlopen="dlopen"
9425 else
9426   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9427 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9428 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9429   echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431   ac_check_lib_save_LIBS=$LIBS
9432 LIBS="-ldl  $LIBS"
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439
9440 /* Override any GCC internal prototype to avoid an error.
9441    Use char because int might match the return type of a GCC
9442    builtin and then its argument prototype would still apply.  */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 char dlopen ();
9447 int
9448 main ()
9449 {
9450 return dlopen ();
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (ac_try="$ac_link"
9457 case "(($ac_try" in
9458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459   *) ac_try_echo=$ac_try;;
9460 esac
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462   (eval "$ac_link") 2>conftest.er1
9463   ac_status=$?
9464   grep -v '^ *+' conftest.er1 >conftest.err
9465   rm -f conftest.er1
9466   cat conftest.err >&5
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); } && {
9469          test -z "$ac_c_werror_flag" ||
9470          test ! -s conftest.err
9471        } && test -s conftest$ac_exeext &&
9472        $as_test_x conftest$ac_exeext; then
9473   ac_cv_lib_dl_dlopen=yes
9474 else
9475   echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478         ac_cv_lib_dl_dlopen=no
9479 fi
9480
9481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9482       conftest$ac_exeext conftest.$ac_ext
9483 LIBS=$ac_check_lib_save_LIBS
9484 fi
9485 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9486 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9487 if test $ac_cv_lib_dl_dlopen = yes; then
9488   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9489 else
9490   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9491 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9492 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9493   echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495   ac_check_lib_save_LIBS=$LIBS
9496 LIBS="-lsvld  $LIBS"
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h.  */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h.  */
9503
9504 /* Override any GCC internal prototype to avoid an error.
9505    Use char because int might match the return type of a GCC
9506    builtin and then its argument prototype would still apply.  */
9507 #ifdef __cplusplus
9508 extern "C"
9509 #endif
9510 char dlopen ();
9511 int
9512 main ()
9513 {
9514 return dlopen ();
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (ac_try="$ac_link"
9521 case "(($ac_try" in
9522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523   *) ac_try_echo=$ac_try;;
9524 esac
9525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526   (eval "$ac_link") 2>conftest.er1
9527   ac_status=$?
9528   grep -v '^ *+' conftest.er1 >conftest.err
9529   rm -f conftest.er1
9530   cat conftest.err >&5
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } && {
9533          test -z "$ac_c_werror_flag" ||
9534          test ! -s conftest.err
9535        } && test -s conftest$ac_exeext &&
9536        $as_test_x conftest$ac_exeext; then
9537   ac_cv_lib_svld_dlopen=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542         ac_cv_lib_svld_dlopen=no
9543 fi
9544
9545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9546       conftest$ac_exeext conftest.$ac_ext
9547 LIBS=$ac_check_lib_save_LIBS
9548 fi
9549 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9550 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9551 if test $ac_cv_lib_svld_dlopen = yes; then
9552   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9553 else
9554   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9555 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9556 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559   ac_check_lib_save_LIBS=$LIBS
9560 LIBS="-ldld  $LIBS"
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h.  */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h.  */
9567
9568 /* Override any GCC internal prototype to avoid an error.
9569    Use char because int might match the return type of a GCC
9570    builtin and then its argument prototype would still apply.  */
9571 #ifdef __cplusplus
9572 extern "C"
9573 #endif
9574 char dld_link ();
9575 int
9576 main ()
9577 {
9578 return dld_link ();
9579   ;
9580   return 0;
9581 }
9582 _ACEOF
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9585 case "(($ac_try" in
9586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587   *) ac_try_echo=$ac_try;;
9588 esac
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590   (eval "$ac_link") 2>conftest.er1
9591   ac_status=$?
9592   grep -v '^ *+' conftest.er1 >conftest.err
9593   rm -f conftest.er1
9594   cat conftest.err >&5
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } && {
9597          test -z "$ac_c_werror_flag" ||
9598          test ! -s conftest.err
9599        } && test -s conftest$ac_exeext &&
9600        $as_test_x conftest$ac_exeext; then
9601   ac_cv_lib_dld_dld_link=yes
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606         ac_cv_lib_dld_dld_link=no
9607 fi
9608
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610       conftest$ac_exeext conftest.$ac_ext
9611 LIBS=$ac_check_lib_save_LIBS
9612 fi
9613 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9614 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9615 if test $ac_cv_lib_dld_dld_link = yes; then
9616   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9617 fi
9618
9619
9620 fi
9621
9622
9623 fi
9624
9625
9626 fi
9627
9628
9629 fi
9630
9631
9632 fi
9633
9634     ;;
9635   esac
9636
9637   if test "x$lt_cv_dlopen" != xno; then
9638     enable_dlopen=yes
9639   else
9640     enable_dlopen=no
9641   fi
9642
9643   case $lt_cv_dlopen in
9644   dlopen)
9645     save_CPPFLAGS="$CPPFLAGS"
9646     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9647
9648     save_LDFLAGS="$LDFLAGS"
9649     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9650
9651     save_LIBS="$LIBS"
9652     LIBS="$lt_cv_dlopen_libs $LIBS"
9653
9654     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9655 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9656 if test "${lt_cv_dlopen_self+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659           if test "$cross_compiling" = yes; then :
9660   lt_cv_dlopen_self=cross
9661 else
9662   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9663   lt_status=$lt_dlunknown
9664   cat > conftest.$ac_ext <<EOF
9665 #line 9665 "configure"
9666 #include "confdefs.h"
9667
9668 #if HAVE_DLFCN_H
9669 #include <dlfcn.h>
9670 #endif
9671
9672 #include <stdio.h>
9673
9674 #ifdef RTLD_GLOBAL
9675 #  define LT_DLGLOBAL           RTLD_GLOBAL
9676 #else
9677 #  ifdef DL_GLOBAL
9678 #    define LT_DLGLOBAL         DL_GLOBAL
9679 #  else
9680 #    define LT_DLGLOBAL         0
9681 #  endif
9682 #endif
9683
9684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9685    find out it does not work in some platform. */
9686 #ifndef LT_DLLAZY_OR_NOW
9687 #  ifdef RTLD_LAZY
9688 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9689 #  else
9690 #    ifdef DL_LAZY
9691 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9692 #    else
9693 #      ifdef RTLD_NOW
9694 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9695 #      else
9696 #        ifdef DL_NOW
9697 #          define LT_DLLAZY_OR_NOW      DL_NOW
9698 #        else
9699 #          define LT_DLLAZY_OR_NOW      0
9700 #        endif
9701 #      endif
9702 #    endif
9703 #  endif
9704 #endif
9705
9706 #ifdef __cplusplus
9707 extern "C" void exit (int);
9708 #endif
9709
9710 void fnord() { int i=42;}
9711 int main ()
9712 {
9713   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9714   int status = $lt_dlunknown;
9715
9716   if (self)
9717     {
9718       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9719       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9720       /* dlclose (self); */
9721     }
9722   else
9723     puts (dlerror ());
9724
9725     exit (status);
9726 }
9727 EOF
9728   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729   (eval $ac_link) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9733     (./conftest; exit; ) >&5 2>/dev/null
9734     lt_status=$?
9735     case x$lt_status in
9736       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9737       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9738       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9739     esac
9740   else :
9741     # compilation failed
9742     lt_cv_dlopen_self=no
9743   fi
9744 fi
9745 rm -fr conftest*
9746
9747
9748 fi
9749 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9750 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9751
9752     if test "x$lt_cv_dlopen_self" = xyes; then
9753       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9754       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9755 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9756 if test "${lt_cv_dlopen_self_static+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759           if test "$cross_compiling" = yes; then :
9760   lt_cv_dlopen_self_static=cross
9761 else
9762   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9763   lt_status=$lt_dlunknown
9764   cat > conftest.$ac_ext <<EOF
9765 #line 9765 "configure"
9766 #include "confdefs.h"
9767
9768 #if HAVE_DLFCN_H
9769 #include <dlfcn.h>
9770 #endif
9771
9772 #include <stdio.h>
9773
9774 #ifdef RTLD_GLOBAL
9775 #  define LT_DLGLOBAL           RTLD_GLOBAL
9776 #else
9777 #  ifdef DL_GLOBAL
9778 #    define LT_DLGLOBAL         DL_GLOBAL
9779 #  else
9780 #    define LT_DLGLOBAL         0
9781 #  endif
9782 #endif
9783
9784 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9785    find out it does not work in some platform. */
9786 #ifndef LT_DLLAZY_OR_NOW
9787 #  ifdef RTLD_LAZY
9788 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9789 #  else
9790 #    ifdef DL_LAZY
9791 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9792 #    else
9793 #      ifdef RTLD_NOW
9794 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9795 #      else
9796 #        ifdef DL_NOW
9797 #          define LT_DLLAZY_OR_NOW      DL_NOW
9798 #        else
9799 #          define LT_DLLAZY_OR_NOW      0
9800 #        endif
9801 #      endif
9802 #    endif
9803 #  endif
9804 #endif
9805
9806 #ifdef __cplusplus
9807 extern "C" void exit (int);
9808 #endif
9809
9810 void fnord() { int i=42;}
9811 int main ()
9812 {
9813   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9814   int status = $lt_dlunknown;
9815
9816   if (self)
9817     {
9818       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9819       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9820       /* dlclose (self); */
9821     }
9822   else
9823     puts (dlerror ());
9824
9825     exit (status);
9826 }
9827 EOF
9828   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9829   (eval $ac_link) 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9833     (./conftest; exit; ) >&5 2>/dev/null
9834     lt_status=$?
9835     case x$lt_status in
9836       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9837       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9838       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9839     esac
9840   else :
9841     # compilation failed
9842     lt_cv_dlopen_self_static=no
9843   fi
9844 fi
9845 rm -fr conftest*
9846
9847
9848 fi
9849 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9850 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9851     fi
9852
9853     CPPFLAGS="$save_CPPFLAGS"
9854     LDFLAGS="$save_LDFLAGS"
9855     LIBS="$save_LIBS"
9856     ;;
9857   esac
9858
9859   case $lt_cv_dlopen_self in
9860   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9861   *) enable_dlopen_self=unknown ;;
9862   esac
9863
9864   case $lt_cv_dlopen_self_static in
9865   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9866   *) enable_dlopen_self_static=unknown ;;
9867   esac
9868 fi
9869
9870
9871 # Report which library types will actually be built
9872 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9873 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9874 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9875 echo "${ECHO_T}$can_build_shared" >&6; }
9876
9877 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9878 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9879 test "$can_build_shared" = "no" && enable_shared=no
9880
9881 # On AIX, shared libraries and static libraries use the same namespace, and
9882 # are all built from PIC.
9883 case $host_os in
9884 aix3*)
9885   test "$enable_shared" = yes && enable_static=no
9886   if test -n "$RANLIB"; then
9887     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9888     postinstall_cmds='$RANLIB $lib'
9889   fi
9890   ;;
9891
9892 aix4* | aix5*)
9893   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9894     test "$enable_shared" = yes && enable_static=no
9895   fi
9896     ;;
9897 esac
9898 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9899 echo "${ECHO_T}$enable_shared" >&6; }
9900
9901 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9902 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9903 # Make sure either enable_shared or enable_static is yes.
9904 test "$enable_shared" = yes || enable_static=yes
9905 { echo "$as_me:$LINENO: result: $enable_static" >&5
9906 echo "${ECHO_T}$enable_static" >&6; }
9907
9908 # The else clause should only fire when bootstrapping the
9909 # libtool distribution, otherwise you forgot to ship ltmain.sh
9910 # with your package, and you will get complaints that there are
9911 # no rules to generate ltmain.sh.
9912 if test -f "$ltmain"; then
9913   # See if we are running on zsh, and set the options which allow our commands through
9914   # without removal of \ escapes.
9915   if test -n "${ZSH_VERSION+set}" ; then
9916     setopt NO_GLOB_SUBST
9917   fi
9918   # Now quote all the things that may contain metacharacters while being
9919   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9920   # variables and quote the copies for generation of the libtool script.
9921   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9922     SED SHELL STRIP \
9923     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9924     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9925     deplibs_check_method reload_flag reload_cmds need_locks \
9926     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9927     lt_cv_sys_global_symbol_to_c_name_address \
9928     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9929     old_postinstall_cmds old_postuninstall_cmds \
9930     compiler \
9931     CC \
9932     LD \
9933     lt_prog_compiler_wl \
9934     lt_prog_compiler_pic \
9935     lt_prog_compiler_static \
9936     lt_prog_compiler_no_builtin_flag \
9937     export_dynamic_flag_spec \
9938     thread_safe_flag_spec \
9939     whole_archive_flag_spec \
9940     enable_shared_with_static_runtimes \
9941     old_archive_cmds \
9942     old_archive_from_new_cmds \
9943     predep_objects \
9944     postdep_objects \
9945     predeps \
9946     postdeps \
9947     compiler_lib_search_path \
9948     archive_cmds \
9949     archive_expsym_cmds \
9950     postinstall_cmds \
9951     postuninstall_cmds \
9952     old_archive_from_expsyms_cmds \
9953     allow_undefined_flag \
9954     no_undefined_flag \
9955     export_symbols_cmds \
9956     hardcode_libdir_flag_spec \
9957     hardcode_libdir_flag_spec_ld \
9958     hardcode_libdir_separator \
9959     hardcode_automatic \
9960     module_cmds \
9961     module_expsym_cmds \
9962     lt_cv_prog_compiler_c_o \
9963     exclude_expsyms \
9964     include_expsyms; do
9965
9966     case $var in
9967     old_archive_cmds | \
9968     old_archive_from_new_cmds | \
9969     archive_cmds | \
9970     archive_expsym_cmds | \
9971     module_cmds | \
9972     module_expsym_cmds | \
9973     old_archive_from_expsyms_cmds | \
9974     export_symbols_cmds | \
9975     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9976     postinstall_cmds | postuninstall_cmds | \
9977     old_postinstall_cmds | old_postuninstall_cmds | \
9978     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9979       # Double-quote double-evaled strings.
9980       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9981       ;;
9982     *)
9983       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9984       ;;
9985     esac
9986   done
9987
9988   case $lt_echo in
9989   *'\$0 --fallback-echo"')
9990     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9991     ;;
9992   esac
9993
9994 cfgfile="${ofile}T"
9995   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9996   $rm -f "$cfgfile"
9997   { echo "$as_me:$LINENO: creating $ofile" >&5
9998 echo "$as_me: creating $ofile" >&6;}
9999
10000   cat <<__EOF__ >> "$cfgfile"
10001 #! $SHELL
10002
10003 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10004 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10005 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10006 #
10007 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10008 # Free Software Foundation, Inc.
10009 #
10010 # This file is part of GNU Libtool:
10011 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10012 #
10013 # This program is free software; you can redistribute it and/or modify
10014 # it under the terms of the GNU General Public License as published by
10015 # the Free Software Foundation; either version 2 of the License, or
10016 # (at your option) any later version.
10017 #
10018 # This program is distributed in the hope that it will be useful, but
10019 # WITHOUT ANY WARRANTY; without even the implied warranty of
10020 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10021 # General Public License for more details.
10022 #
10023 # You should have received a copy of the GNU General Public License
10024 # along with this program; if not, write to the Free Software
10025 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10026 #
10027 # As a special exception to the GNU General Public License, if you
10028 # distribute this file as part of a program that contains a
10029 # configuration script generated by Autoconf, you may include it under
10030 # the same distribution terms that you use for the rest of that program.
10031
10032 # A sed program that does not truncate output.
10033 SED=$lt_SED
10034
10035 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10036 Xsed="$SED -e 1s/^X//"
10037
10038 # The HP-UX ksh and POSIX shell print the target directory to stdout
10039 # if CDPATH is set.
10040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10041
10042 # The names of the tagged configurations supported by this script.
10043 available_tags=
10044
10045 # ### BEGIN LIBTOOL CONFIG
10046
10047 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10048
10049 # Shell to use when invoking shell scripts.
10050 SHELL=$lt_SHELL
10051
10052 # Whether or not to build shared libraries.
10053 build_libtool_libs=$enable_shared
10054
10055 # Whether or not to build static libraries.
10056 build_old_libs=$enable_static
10057
10058 # Whether or not to add -lc for building shared libraries.
10059 build_libtool_need_lc=$archive_cmds_need_lc
10060
10061 # Whether or not to disallow shared libs when runtime libs are static
10062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10063
10064 # Whether or not to optimize for fast installation.
10065 fast_install=$enable_fast_install
10066
10067 # The host system.
10068 host_alias=$host_alias
10069 host=$host
10070 host_os=$host_os
10071
10072 # The build system.
10073 build_alias=$build_alias
10074 build=$build
10075 build_os=$build_os
10076
10077 # An echo program that does not interpret backslashes.
10078 echo=$lt_echo
10079
10080 # The archiver.
10081 AR=$lt_AR
10082 AR_FLAGS=$lt_AR_FLAGS
10083
10084 # A C compiler.
10085 LTCC=$lt_LTCC
10086
10087 # LTCC compiler flags.
10088 LTCFLAGS=$lt_LTCFLAGS
10089
10090 # A language-specific compiler.
10091 CC=$lt_compiler
10092
10093 # Is the compiler the GNU C compiler?
10094 with_gcc=$GCC
10095
10096 # An ERE matcher.
10097 EGREP=$lt_EGREP
10098
10099 # The linker used to build libraries.
10100 LD=$lt_LD
10101
10102 # Whether we need hard or soft links.
10103 LN_S=$lt_LN_S
10104
10105 # A BSD-compatible nm program.
10106 NM=$lt_NM
10107
10108 # A symbol stripping program
10109 STRIP=$lt_STRIP
10110
10111 # Used to examine libraries when file_magic_cmd begins "file"
10112 MAGIC_CMD=$MAGIC_CMD
10113
10114 # Used on cygwin: DLL creation program.
10115 DLLTOOL="$DLLTOOL"
10116
10117 # Used on cygwin: object dumper.
10118 OBJDUMP="$OBJDUMP"
10119
10120 # Used on cygwin: assembler.
10121 AS="$AS"
10122
10123 # The name of the directory that contains temporary libtool files.
10124 objdir=$objdir
10125
10126 # How to create reloadable object files.
10127 reload_flag=$lt_reload_flag
10128 reload_cmds=$lt_reload_cmds
10129
10130 # How to pass a linker flag through the compiler.
10131 wl=$lt_lt_prog_compiler_wl
10132
10133 # Object file suffix (normally "o").
10134 objext="$ac_objext"
10135
10136 # Old archive suffix (normally "a").
10137 libext="$libext"
10138
10139 # Shared library suffix (normally ".so").
10140 shrext_cmds='$shrext_cmds'
10141
10142 # Executable file suffix (normally "").
10143 exeext="$exeext"
10144
10145 # Additional compiler flags for building library objects.
10146 pic_flag=$lt_lt_prog_compiler_pic
10147 pic_mode=$pic_mode
10148
10149 # What is the maximum length of a command?
10150 max_cmd_len=$lt_cv_sys_max_cmd_len
10151
10152 # Does compiler simultaneously support -c and -o options?
10153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10154
10155 # Must we lock files when doing compilation?
10156 need_locks=$lt_need_locks
10157
10158 # Do we need the lib prefix for modules?
10159 need_lib_prefix=$need_lib_prefix
10160
10161 # Do we need a version for libraries?
10162 need_version=$need_version
10163
10164 # Whether dlopen is supported.
10165 dlopen_support=$enable_dlopen
10166
10167 # Whether dlopen of programs is supported.
10168 dlopen_self=$enable_dlopen_self
10169
10170 # Whether dlopen of statically linked programs is supported.
10171 dlopen_self_static=$enable_dlopen_self_static
10172
10173 # Compiler flag to prevent dynamic linking.
10174 link_static_flag=$lt_lt_prog_compiler_static
10175
10176 # Compiler flag to turn off builtin functions.
10177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10178
10179 # Compiler flag to allow reflexive dlopens.
10180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10181
10182 # Compiler flag to generate shared objects directly from archives.
10183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10184
10185 # Compiler flag to generate thread-safe objects.
10186 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10187
10188 # Library versioning type.
10189 version_type=$version_type
10190
10191 # Format of library name prefix.
10192 libname_spec=$lt_libname_spec
10193
10194 # List of archive names.  First name is the real one, the rest are links.
10195 # The last name is the one that the linker finds with -lNAME.
10196 library_names_spec=$lt_library_names_spec
10197
10198 # The coded name of the library, if different from the real name.
10199 soname_spec=$lt_soname_spec
10200
10201 # Commands used to build and install an old-style archive.
10202 RANLIB=$lt_RANLIB
10203 old_archive_cmds=$lt_old_archive_cmds
10204 old_postinstall_cmds=$lt_old_postinstall_cmds
10205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10206
10207 # Create an old-style archive from a shared archive.
10208 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10209
10210 # Create a temporary old-style archive to link instead of a shared archive.
10211 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10212
10213 # Commands used to build and install a shared archive.
10214 archive_cmds=$lt_archive_cmds
10215 archive_expsym_cmds=$lt_archive_expsym_cmds
10216 postinstall_cmds=$lt_postinstall_cmds
10217 postuninstall_cmds=$lt_postuninstall_cmds
10218
10219 # Commands used to build a loadable module (assumed same as above if empty)
10220 module_cmds=$lt_module_cmds
10221 module_expsym_cmds=$lt_module_expsym_cmds
10222
10223 # Commands to strip libraries.
10224 old_striplib=$lt_old_striplib
10225 striplib=$lt_striplib
10226
10227 # Dependencies to place before the objects being linked to create a
10228 # shared library.
10229 predep_objects=$lt_predep_objects
10230
10231 # Dependencies to place after the objects being linked to create a
10232 # shared library.
10233 postdep_objects=$lt_postdep_objects
10234
10235 # Dependencies to place before the objects being linked to create a
10236 # shared library.
10237 predeps=$lt_predeps
10238
10239 # Dependencies to place after the objects being linked to create a
10240 # shared library.
10241 postdeps=$lt_postdeps
10242
10243 # The library search path used internally by the compiler when linking
10244 # a shared library.
10245 compiler_lib_search_path=$lt_compiler_lib_search_path
10246
10247 # Method to check whether dependent libraries are shared objects.
10248 deplibs_check_method=$lt_deplibs_check_method
10249
10250 # Command to use when deplibs_check_method == file_magic.
10251 file_magic_cmd=$lt_file_magic_cmd
10252
10253 # Flag that allows shared libraries with undefined symbols to be built.
10254 allow_undefined_flag=$lt_allow_undefined_flag
10255
10256 # Flag that forces no undefined symbols.
10257 no_undefined_flag=$lt_no_undefined_flag
10258
10259 # Commands used to finish a libtool library installation in a directory.
10260 finish_cmds=$lt_finish_cmds
10261
10262 # Same as above, but a single script fragment to be evaled but not shown.
10263 finish_eval=$lt_finish_eval
10264
10265 # Take the output of nm and produce a listing of raw symbols and C names.
10266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10267
10268 # Transform the output of nm in a proper C declaration
10269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10270
10271 # Transform the output of nm in a C name address pair
10272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10273
10274 # This is the shared library runtime path variable.
10275 runpath_var=$runpath_var
10276
10277 # This is the shared library path variable.
10278 shlibpath_var=$shlibpath_var
10279
10280 # Is shlibpath searched before the hard-coded library search path?
10281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10282
10283 # How to hardcode a shared library path into an executable.
10284 hardcode_action=$hardcode_action
10285
10286 # Whether we should hardcode library paths into libraries.
10287 hardcode_into_libs=$hardcode_into_libs
10288
10289 # Flag to hardcode \$libdir into a binary during linking.
10290 # This must work even if \$libdir does not exist.
10291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10292
10293 # If ld is used when linking, flag to hardcode \$libdir into
10294 # a binary during linking. This must work even if \$libdir does
10295 # not exist.
10296 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10297
10298 # Whether we need a single -rpath flag with a separated argument.
10299 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10300
10301 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10302 # resulting binary.
10303 hardcode_direct=$hardcode_direct
10304
10305 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10306 # resulting binary.
10307 hardcode_minus_L=$hardcode_minus_L
10308
10309 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10310 # the resulting binary.
10311 hardcode_shlibpath_var=$hardcode_shlibpath_var
10312
10313 # Set to yes if building a shared library automatically hardcodes DIR into the library
10314 # and all subsequent libraries and executables linked against it.
10315 hardcode_automatic=$hardcode_automatic
10316
10317 # Variables whose values should be saved in libtool wrapper scripts and
10318 # restored at relink time.
10319 variables_saved_for_relink="$variables_saved_for_relink"
10320
10321 # Whether libtool must link a program against all its dependency libraries.
10322 link_all_deplibs=$link_all_deplibs
10323
10324 # Compile-time system search path for libraries
10325 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10326
10327 # Run-time system search path for libraries
10328 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10329
10330 # Fix the shell variable \$srcfile for the compiler.
10331 fix_srcfile_path="$fix_srcfile_path"
10332
10333 # Set to yes if exported symbols are required.
10334 always_export_symbols=$always_export_symbols
10335
10336 # The commands to list exported symbols.
10337 export_symbols_cmds=$lt_export_symbols_cmds
10338
10339 # The commands to extract the exported symbol list from a shared archive.
10340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10341
10342 # Symbols that should not be listed in the preloaded symbols.
10343 exclude_expsyms=$lt_exclude_expsyms
10344
10345 # Symbols that must always be exported.
10346 include_expsyms=$lt_include_expsyms
10347
10348 # ### END LIBTOOL CONFIG
10349
10350 __EOF__
10351
10352
10353   case $host_os in
10354   aix3*)
10355     cat <<\EOF >> "$cfgfile"
10356
10357 # AIX sometimes has problems with the GCC collect2 program.  For some
10358 # reason, if we set the COLLECT_NAMES environment variable, the problems
10359 # vanish in a puff of smoke.
10360 if test "X${COLLECT_NAMES+set}" != Xset; then
10361   COLLECT_NAMES=
10362   export COLLECT_NAMES
10363 fi
10364 EOF
10365     ;;
10366   esac
10367
10368   # We use sed instead of cat because bash on DJGPP gets confused if
10369   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10370   # text mode, it properly converts lines to CR/LF.  This bash problem
10371   # is reportedly fixed, but why not run on old versions too?
10372   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10373
10374   mv -f "$cfgfile" "$ofile" || \
10375     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10376   chmod +x "$ofile"
10377
10378 else
10379   # If there is no Makefile yet, we rely on a make rule to execute
10380   # `config.status --recheck' to rerun these tests and create the
10381   # libtool script then.
10382   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10383   if test -f "$ltmain_in"; then
10384     test -f Makefile && make "$ltmain"
10385   fi
10386 fi
10387
10388
10389 ac_ext=c
10390 ac_cpp='$CPP $CPPFLAGS'
10391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10394
10395 CC="$lt_save_CC"
10396
10397
10398 # Check whether --with-tags was given.
10399 if test "${with_tags+set}" = set; then
10400   withval=$with_tags; tagnames="$withval"
10401 fi
10402
10403
10404 if test -f "$ltmain" && test -n "$tagnames"; then
10405   if test ! -f "${ofile}"; then
10406     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10407 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10408   fi
10409
10410   if test -z "$LTCC"; then
10411     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10412     if test -z "$LTCC"; then
10413       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10414 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10415     else
10416       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10417 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10418     fi
10419   fi
10420   if test -z "$LTCFLAGS"; then
10421     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10422   fi
10423
10424   # Extract list of available tagged configurations in $ofile.
10425   # Note that this assumes the entire list is on one line.
10426   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10427
10428   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10429   for tagname in $tagnames; do
10430     IFS="$lt_save_ifs"
10431     # Check whether tagname contains only valid characters
10432     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10433     "") ;;
10434     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10435 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10436    { (exit 1); exit 1; }; }
10437         ;;
10438     esac
10439
10440     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10441     then
10442       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10443 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10444    { (exit 1); exit 1; }; }
10445     fi
10446
10447     # Update the list of available tags.
10448     if test -n "$tagname"; then
10449       echo appending configuration tag \"$tagname\" to $ofile
10450
10451       case $tagname in
10452       CXX)
10453         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10454             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10455             (test "X$CXX" != "Xg++"))) ; then
10456           ac_ext=cpp
10457 ac_cpp='$CXXCPP $CPPFLAGS'
10458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10461
10462
10463
10464
10465 archive_cmds_need_lc_CXX=no
10466 allow_undefined_flag_CXX=
10467 always_export_symbols_CXX=no
10468 archive_expsym_cmds_CXX=
10469 export_dynamic_flag_spec_CXX=
10470 hardcode_direct_CXX=no
10471 hardcode_libdir_flag_spec_CXX=
10472 hardcode_libdir_flag_spec_ld_CXX=
10473 hardcode_libdir_separator_CXX=
10474 hardcode_minus_L_CXX=no
10475 hardcode_shlibpath_var_CXX=unsupported
10476 hardcode_automatic_CXX=no
10477 module_cmds_CXX=
10478 module_expsym_cmds_CXX=
10479 link_all_deplibs_CXX=unknown
10480 old_archive_cmds_CXX=$old_archive_cmds
10481 no_undefined_flag_CXX=
10482 whole_archive_flag_spec_CXX=
10483 enable_shared_with_static_runtimes_CXX=no
10484
10485 # Dependencies to place before and after the object being linked:
10486 predep_objects_CXX=
10487 postdep_objects_CXX=
10488 predeps_CXX=
10489 postdeps_CXX=
10490 compiler_lib_search_path_CXX=
10491
10492 # Source file extension for C++ test sources.
10493 ac_ext=cpp
10494
10495 # Object file extension for compiled C++ test sources.
10496 objext=o
10497 objext_CXX=$objext
10498
10499 # Code to be used in simple compile tests
10500 lt_simple_compile_test_code="int some_variable = 0;\n"
10501
10502 # Code to be used in simple link tests
10503 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10504
10505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10506
10507 # If no C compiler was specified, use CC.
10508 LTCC=${LTCC-"$CC"}
10509
10510 # If no C compiler flags were specified, use CFLAGS.
10511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10512
10513 # Allow CC to be a program name with arguments.
10514 compiler=$CC
10515
10516
10517 # save warnings/boilerplate of simple test code
10518 ac_outfile=conftest.$ac_objext
10519 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10521 _lt_compiler_boilerplate=`cat conftest.err`
10522 $rm conftest*
10523
10524 ac_outfile=conftest.$ac_objext
10525 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10527 _lt_linker_boilerplate=`cat conftest.err`
10528 $rm conftest*
10529
10530
10531 # Allow CC to be a program name with arguments.
10532 lt_save_CC=$CC
10533 lt_save_LD=$LD
10534 lt_save_GCC=$GCC
10535 GCC=$GXX
10536 lt_save_with_gnu_ld=$with_gnu_ld
10537 lt_save_path_LD=$lt_cv_path_LD
10538 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10539   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10540 else
10541   $as_unset lt_cv_prog_gnu_ld
10542 fi
10543 if test -n "${lt_cv_path_LDCXX+set}"; then
10544   lt_cv_path_LD=$lt_cv_path_LDCXX
10545 else
10546   $as_unset lt_cv_path_LD
10547 fi
10548 test -z "${LDCXX+set}" || LD=$LDCXX
10549 CC=${CXX-"c++"}
10550 compiler=$CC
10551 compiler_CXX=$CC
10552 for cc_temp in $compiler""; do
10553   case $cc_temp in
10554     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10555     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10556     \-*) ;;
10557     *) break;;
10558   esac
10559 done
10560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10561
10562
10563 # We don't want -fno-exception wen compiling C++ code, so set the
10564 # no_builtin_flag separately
10565 if test "$GXX" = yes; then
10566   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10567 else
10568   lt_prog_compiler_no_builtin_flag_CXX=
10569 fi
10570
10571 if test "$GXX" = yes; then
10572   # Set up default GNU C++ configuration
10573
10574
10575 # Check whether --with-gnu-ld was given.
10576 if test "${with_gnu_ld+set}" = set; then
10577   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10578 else
10579   with_gnu_ld=no
10580 fi
10581
10582 ac_prog=ld
10583 if test "$GCC" = yes; then
10584   # Check if gcc -print-prog-name=ld gives a path.
10585   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10586 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10587   case $host in
10588   *-*-mingw*)
10589     # gcc leaves a trailing carriage return which upsets mingw
10590     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10591   *)
10592     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10593   esac
10594   case $ac_prog in
10595     # Accept absolute paths.
10596     [\\/]* | ?:[\\/]*)
10597       re_direlt='/[^/][^/]*/\.\./'
10598       # Canonicalize the pathname of ld
10599       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10600       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10601         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10602       done
10603       test -z "$LD" && LD="$ac_prog"
10604       ;;
10605   "")
10606     # If it fails, then pretend we aren't using GCC.
10607     ac_prog=ld
10608     ;;
10609   *)
10610     # If it is relative, then search for the first ld in PATH.
10611     with_gnu_ld=unknown
10612     ;;
10613   esac
10614 elif test "$with_gnu_ld" = yes; then
10615   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10616 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10617 else
10618   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10619 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10620 fi
10621 if test "${lt_cv_path_LD+set}" = set; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624   if test -z "$LD"; then
10625   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10626   for ac_dir in $PATH; do
10627     IFS="$lt_save_ifs"
10628     test -z "$ac_dir" && ac_dir=.
10629     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10630       lt_cv_path_LD="$ac_dir/$ac_prog"
10631       # Check to see if the program is GNU ld.  I'd rather use --version,
10632       # but apparently some variants of GNU ld only accept -v.
10633       # Break only if it was the GNU/non-GNU ld that we prefer.
10634       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10635       *GNU* | *'with BFD'*)
10636         test "$with_gnu_ld" != no && break
10637         ;;
10638       *)
10639         test "$with_gnu_ld" != yes && break
10640         ;;
10641       esac
10642     fi
10643   done
10644   IFS="$lt_save_ifs"
10645 else
10646   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10647 fi
10648 fi
10649
10650 LD="$lt_cv_path_LD"
10651 if test -n "$LD"; then
10652   { echo "$as_me:$LINENO: result: $LD" >&5
10653 echo "${ECHO_T}$LD" >&6; }
10654 else
10655   { echo "$as_me:$LINENO: result: no" >&5
10656 echo "${ECHO_T}no" >&6; }
10657 fi
10658 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10659 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10660    { (exit 1); exit 1; }; }
10661 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10662 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10663 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10664   echo $ECHO_N "(cached) $ECHO_C" >&6
10665 else
10666   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10667 case `$LD -v 2>&1 </dev/null` in
10668 *GNU* | *'with BFD'*)
10669   lt_cv_prog_gnu_ld=yes
10670   ;;
10671 *)
10672   lt_cv_prog_gnu_ld=no
10673   ;;
10674 esac
10675 fi
10676 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10677 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10678 with_gnu_ld=$lt_cv_prog_gnu_ld
10679
10680
10681
10682   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10683   # archiving commands below assume that GNU ld is being used.
10684   if test "$with_gnu_ld" = yes; then
10685     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10686     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'
10687
10688     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10689     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10690
10691     # If archive_cmds runs LD, not CC, wlarc should be empty
10692     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10693     #     investigate it a little bit more. (MM)
10694     wlarc='${wl}'
10695
10696     # ancient GNU ld didn't support --whole-archive et. al.
10697     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10698         grep 'no-whole-archive' > /dev/null; then
10699       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10700     else
10701       whole_archive_flag_spec_CXX=
10702     fi
10703   else
10704     with_gnu_ld=no
10705     wlarc=
10706
10707     # A generic and very simple default shared library creation
10708     # command for GNU C++ for the case where it uses the native
10709     # linker, instead of GNU ld.  If possible, this setting should
10710     # overridden to take advantage of the native linker features on
10711     # the platform it is being used on.
10712     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10713   fi
10714
10715   # Commands to make compiler produce verbose output that lists
10716   # what "hidden" libraries, object files and flags are used when
10717   # linking a shared library.
10718   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10719
10720 else
10721   GXX=no
10722   with_gnu_ld=no
10723   wlarc=
10724 fi
10725
10726 # PORTME: fill in a description of your system's C++ link characteristics
10727 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10728 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10729 ld_shlibs_CXX=yes
10730 case $host_os in
10731   aix3*)
10732     # FIXME: insert proper C++ library support
10733     ld_shlibs_CXX=no
10734     ;;
10735   aix4* | aix5*)
10736     if test "$host_cpu" = ia64; then
10737       # On IA64, the linker does run time linking by default, so we don't
10738       # have to do anything special.
10739       aix_use_runtimelinking=no
10740       exp_sym_flag='-Bexport'
10741       no_entry_flag=""
10742     else
10743       aix_use_runtimelinking=no
10744
10745       # Test if we are trying to use run time linking or normal
10746       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10747       # need to do runtime linking.
10748       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10749         for ld_flag in $LDFLAGS; do
10750           case $ld_flag in
10751           *-brtl*)
10752             aix_use_runtimelinking=yes
10753             break
10754             ;;
10755           esac
10756         done
10757         ;;
10758       esac
10759
10760       exp_sym_flag='-bexport'
10761       no_entry_flag='-bnoentry'
10762     fi
10763
10764     # When large executables or shared objects are built, AIX ld can
10765     # have problems creating the table of contents.  If linking a library
10766     # or program results in "error TOC overflow" add -mminimal-toc to
10767     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10768     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10769
10770     archive_cmds_CXX=''
10771     hardcode_direct_CXX=yes
10772     hardcode_libdir_separator_CXX=':'
10773     link_all_deplibs_CXX=yes
10774
10775     if test "$GXX" = yes; then
10776       case $host_os in aix4.[012]|aix4.[012].*)
10777       # We only want to do this on AIX 4.2 and lower, the check
10778       # below for broken collect2 doesn't work under 4.3+
10779         collect2name=`${CC} -print-prog-name=collect2`
10780         if test -f "$collect2name" && \
10781            strings "$collect2name" | grep resolve_lib_name >/dev/null
10782         then
10783           # We have reworked collect2
10784           hardcode_direct_CXX=yes
10785         else
10786           # We have old collect2
10787           hardcode_direct_CXX=unsupported
10788           # It fails to find uninstalled libraries when the uninstalled
10789           # path is not listed in the libpath.  Setting hardcode_minus_L
10790           # to unsupported forces relinking
10791           hardcode_minus_L_CXX=yes
10792           hardcode_libdir_flag_spec_CXX='-L$libdir'
10793           hardcode_libdir_separator_CXX=
10794         fi
10795         ;;
10796       esac
10797       shared_flag='-shared'
10798       if test "$aix_use_runtimelinking" = yes; then
10799         shared_flag="$shared_flag "'${wl}-G'
10800       fi
10801     else
10802       # not using gcc
10803       if test "$host_cpu" = ia64; then
10804         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10805         # chokes on -Wl,-G. The following line is correct:
10806         shared_flag='-G'
10807       else
10808         if test "$aix_use_runtimelinking" = yes; then
10809           shared_flag='${wl}-G'
10810         else
10811           shared_flag='${wl}-bM:SRE'
10812         fi
10813       fi
10814     fi
10815
10816     # It seems that -bexpall does not export symbols beginning with
10817     # underscore (_), so it is better to generate a list of symbols to export.
10818     always_export_symbols_CXX=yes
10819     if test "$aix_use_runtimelinking" = yes; then
10820       # Warning - without using the other runtime loading flags (-brtl),
10821       # -berok will link without error, but may produce a broken library.
10822       allow_undefined_flag_CXX='-berok'
10823       # Determine the default libpath from the value encoded in an empty executable.
10824       cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h.  */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h.  */
10830
10831 int
10832 main ()
10833 {
10834
10835   ;
10836   return 0;
10837 }
10838 _ACEOF
10839 rm -f conftest.$ac_objext conftest$ac_exeext
10840 if { (ac_try="$ac_link"
10841 case "(($ac_try" in
10842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843   *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846   (eval "$ac_link") 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } && {
10853          test -z "$ac_cxx_werror_flag" ||
10854          test ! -s conftest.err
10855        } && test -s conftest$ac_exeext &&
10856        $as_test_x conftest$ac_exeext; then
10857
10858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10859 }'`
10860 # Check for a 64-bit object if we didn't find anything.
10861 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; }
10862 }'`; fi
10863 else
10864   echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867
10868 fi
10869
10870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10871       conftest$ac_exeext conftest.$ac_ext
10872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10873
10874       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10875
10876       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"
10877      else
10878       if test "$host_cpu" = ia64; then
10879         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10880         allow_undefined_flag_CXX="-z nodefs"
10881         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"
10882       else
10883         # Determine the default libpath from the value encoded in an empty executable.
10884         cat >conftest.$ac_ext <<_ACEOF
10885 /* confdefs.h.  */
10886 _ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h.  */
10890
10891 int
10892 main ()
10893 {
10894
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (ac_try="$ac_link"
10901 case "(($ac_try" in
10902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903   *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906   (eval "$ac_link") 2>conftest.er1
10907   ac_status=$?
10908   grep -v '^ *+' conftest.er1 >conftest.err
10909   rm -f conftest.er1
10910   cat conftest.err >&5
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } && {
10913          test -z "$ac_cxx_werror_flag" ||
10914          test ! -s conftest.err
10915        } && test -s conftest$ac_exeext &&
10916        $as_test_x conftest$ac_exeext; then
10917
10918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10919 }'`
10920 # Check for a 64-bit object if we didn't find anything.
10921 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; }
10922 }'`; fi
10923 else
10924   echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927
10928 fi
10929
10930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10931       conftest$ac_exeext conftest.$ac_ext
10932 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10933
10934         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10935         # Warning - without using the other run time loading flags,
10936         # -berok will link without error, but may produce a broken library.
10937         no_undefined_flag_CXX=' ${wl}-bernotok'
10938         allow_undefined_flag_CXX=' ${wl}-berok'
10939         # Exported symbols can be pulled into shared objects from archives
10940         whole_archive_flag_spec_CXX='$convenience'
10941         archive_cmds_need_lc_CXX=yes
10942         # This is similar to how AIX traditionally builds its shared libraries.
10943         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'
10944       fi
10945     fi
10946     ;;
10947
10948   beos*)
10949     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10950       allow_undefined_flag_CXX=unsupported
10951       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10952       # support --undefined.  This deserves some investigation.  FIXME
10953       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10954     else
10955       ld_shlibs_CXX=no
10956     fi
10957     ;;
10958
10959   chorus*)
10960     case $cc_basename in
10961       *)
10962         # FIXME: insert proper C++ library support
10963         ld_shlibs_CXX=no
10964         ;;
10965     esac
10966     ;;
10967
10968   cygwin* | mingw* | pw32*)
10969     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10970     # as there is no search path for DLLs.
10971     hardcode_libdir_flag_spec_CXX='-L$libdir'
10972     allow_undefined_flag_CXX=unsupported
10973     always_export_symbols_CXX=no
10974     enable_shared_with_static_runtimes_CXX=yes
10975
10976     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10977       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'
10978       # If the export-symbols file already is a .def file (1st line
10979       # is EXPORTS), use it as is; otherwise, prepend...
10980       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10981         cp $export_symbols $output_objdir/$soname.def;
10982       else
10983         echo EXPORTS > $output_objdir/$soname.def;
10984         cat $export_symbols >> $output_objdir/$soname.def;
10985       fi~
10986       $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'
10987     else
10988       ld_shlibs_CXX=no
10989     fi
10990   ;;
10991       darwin* | rhapsody*)
10992         case $host_os in
10993         rhapsody* | darwin1.[012])
10994          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10995          ;;
10996        *) # Darwin 1.3 on
10997          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10998            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10999          else
11000            case ${MACOSX_DEPLOYMENT_TARGET} in
11001              10.[012])
11002                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11003                ;;
11004              10.*)
11005                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11006                ;;
11007            esac
11008          fi
11009          ;;
11010         esac
11011       archive_cmds_need_lc_CXX=no
11012       hardcode_direct_CXX=no
11013       hardcode_automatic_CXX=yes
11014       hardcode_shlibpath_var_CXX=unsupported
11015       whole_archive_flag_spec_CXX=''
11016       link_all_deplibs_CXX=yes
11017
11018     if test "$GXX" = yes ; then
11019       lt_int_apple_cc_single_mod=no
11020       output_verbose_link_cmd='echo'
11021       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11022        lt_int_apple_cc_single_mod=yes
11023       fi
11024       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11025        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11026       else
11027           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'
11028         fi
11029         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11030         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11031           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11032             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}'
11033           else
11034             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}'
11035           fi
11036             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}'
11037       else
11038       case $cc_basename in
11039         xlc*)
11040          output_verbose_link_cmd='echo'
11041           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'
11042           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11043           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11044           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}'
11045           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}'
11046           ;;
11047        *)
11048          ld_shlibs_CXX=no
11049           ;;
11050       esac
11051       fi
11052         ;;
11053
11054   dgux*)
11055     case $cc_basename in
11056       ec++*)
11057         # FIXME: insert proper C++ library support
11058         ld_shlibs_CXX=no
11059         ;;
11060       ghcx*)
11061         # Green Hills C++ Compiler
11062         # FIXME: insert proper C++ library support
11063         ld_shlibs_CXX=no
11064         ;;
11065       *)
11066         # FIXME: insert proper C++ library support
11067         ld_shlibs_CXX=no
11068         ;;
11069     esac
11070     ;;
11071   freebsd[12]*)
11072     # C++ shared libraries reported to be fairly broken before switch to ELF
11073     ld_shlibs_CXX=no
11074     ;;
11075   freebsd-elf*)
11076     archive_cmds_need_lc_CXX=no
11077     ;;
11078   freebsd* | kfreebsd*-gnu | dragonfly*)
11079     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11080     # conventions
11081     ld_shlibs_CXX=yes
11082     ;;
11083   gnu*)
11084     ;;
11085   hpux9*)
11086     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11087     hardcode_libdir_separator_CXX=:
11088     export_dynamic_flag_spec_CXX='${wl}-E'
11089     hardcode_direct_CXX=yes
11090     hardcode_minus_L_CXX=yes # Not in the search PATH,
11091                                 # but as the default
11092                                 # location of the library.
11093
11094     case $cc_basename in
11095     CC*)
11096       # FIXME: insert proper C++ library support
11097       ld_shlibs_CXX=no
11098       ;;
11099     aCC*)
11100       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'
11101       # Commands to make compiler produce verbose output that lists
11102       # what "hidden" libraries, object files and flags are used when
11103       # linking a shared library.
11104       #
11105       # There doesn't appear to be a way to prevent this compiler from
11106       # explicitly linking system object files so we need to strip them
11107       # from the output so that they don't get included in the library
11108       # dependencies.
11109       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'
11110       ;;
11111     *)
11112       if test "$GXX" = yes; then
11113         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'
11114       else
11115         # FIXME: insert proper C++ library support
11116         ld_shlibs_CXX=no
11117       fi
11118       ;;
11119     esac
11120     ;;
11121   hpux10*|hpux11*)
11122     if test $with_gnu_ld = no; then
11123       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11124       hardcode_libdir_separator_CXX=:
11125
11126       case $host_cpu in
11127       hppa*64*|ia64*)
11128         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11129         ;;
11130       *)
11131         export_dynamic_flag_spec_CXX='${wl}-E'
11132         ;;
11133       esac
11134     fi
11135     case $host_cpu in
11136     hppa*64*|ia64*)
11137       hardcode_direct_CXX=no
11138       hardcode_shlibpath_var_CXX=no
11139       ;;
11140     *)
11141       hardcode_direct_CXX=yes
11142       hardcode_minus_L_CXX=yes # Not in the search PATH,
11143                                               # but as the default
11144                                               # location of the library.
11145       ;;
11146     esac
11147
11148     case $cc_basename in
11149       CC*)
11150         # FIXME: insert proper C++ library support
11151         ld_shlibs_CXX=no
11152         ;;
11153       aCC*)
11154         case $host_cpu in
11155         hppa*64*)
11156           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11157           ;;
11158         ia64*)
11159           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11160           ;;
11161         *)
11162           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11163           ;;
11164         esac
11165         # Commands to make compiler produce verbose output that lists
11166         # what "hidden" libraries, object files and flags are used when
11167         # linking a shared library.
11168         #
11169         # There doesn't appear to be a way to prevent this compiler from
11170         # explicitly linking system object files so we need to strip them
11171         # from the output so that they don't get included in the library
11172         # dependencies.
11173         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'
11174         ;;
11175       *)
11176         if test "$GXX" = yes; then
11177           if test $with_gnu_ld = no; then
11178             case $host_cpu in
11179             hppa*64*)
11180               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11181               ;;
11182             ia64*)
11183               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11184               ;;
11185             *)
11186               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'
11187               ;;
11188             esac
11189           fi
11190         else
11191           # FIXME: insert proper C++ library support
11192           ld_shlibs_CXX=no
11193         fi
11194         ;;
11195     esac
11196     ;;
11197   interix3*)
11198     hardcode_direct_CXX=no
11199     hardcode_shlibpath_var_CXX=no
11200     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11201     export_dynamic_flag_spec_CXX='${wl}-E'
11202     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11203     # Instead, shared libraries are loaded at an image base (0x10000000 by
11204     # default) and relocated if they conflict, which is a slow very memory
11205     # consuming and fragmenting process.  To avoid this, we pick a random,
11206     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11207     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11208     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'
11209     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'
11210     ;;
11211   irix5* | irix6*)
11212     case $cc_basename in
11213       CC*)
11214         # SGI C++
11215         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'
11216
11217         # Archives containing C++ object files must be created using
11218         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11219         # necessary to make sure instantiated templates are included
11220         # in the archive.
11221         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11222         ;;
11223       *)
11224         if test "$GXX" = yes; then
11225           if test "$with_gnu_ld" = no; then
11226             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'
11227           else
11228             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'
11229           fi
11230         fi
11231         link_all_deplibs_CXX=yes
11232         ;;
11233     esac
11234     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11235     hardcode_libdir_separator_CXX=:
11236     ;;
11237   linux*)
11238     case $cc_basename in
11239       KCC*)
11240         # Kuck and Associates, Inc. (KAI) C++ Compiler
11241
11242         # KCC will only create a shared library if the output file
11243         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11244         # to its proper name (with version) after linking.
11245         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'
11246         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'
11247         # Commands to make compiler produce verbose output that lists
11248         # what "hidden" libraries, object files and flags are used when
11249         # linking a shared library.
11250         #
11251         # There doesn't appear to be a way to prevent this compiler from
11252         # explicitly linking system object files so we need to strip them
11253         # from the output so that they don't get included in the library
11254         # dependencies.
11255         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'
11256
11257         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11258         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11259
11260         # Archives containing C++ object files must be created using
11261         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11262         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11263         ;;
11264       icpc*)
11265         # Intel C++
11266         with_gnu_ld=yes
11267         # version 8.0 and above of icpc choke on multiply defined symbols
11268         # if we add $predep_objects and $postdep_objects, however 7.1 and
11269         # earlier do not add the objects themselves.
11270         case `$CC -V 2>&1` in
11271         *"Version 7."*)
11272           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11273           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'
11274           ;;
11275         *)  # Version 8.0 or newer
11276           tmp_idyn=
11277           case $host_cpu in
11278             ia64*) tmp_idyn=' -i_dynamic';;
11279           esac
11280           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11281           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'
11282           ;;
11283         esac
11284         archive_cmds_need_lc_CXX=no
11285         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11286         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11287         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11288         ;;
11289       pgCC*)
11290         # Portland Group C++ compiler
11291         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11292         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'
11293
11294         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11295         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11296         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'
11297         ;;
11298       cxx*)
11299         # Compaq C++
11300         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11301         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'
11302
11303         runpath_var=LD_RUN_PATH
11304         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11305         hardcode_libdir_separator_CXX=:
11306
11307         # Commands to make compiler produce verbose output that lists
11308         # what "hidden" libraries, object files and flags are used when
11309         # linking a shared library.
11310         #
11311         # There doesn't appear to be a way to prevent this compiler from
11312         # explicitly linking system object files so we need to strip them
11313         # from the output so that they don't get included in the library
11314         # dependencies.
11315         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'
11316         ;;
11317     esac
11318     ;;
11319   lynxos*)
11320     # FIXME: insert proper C++ library support
11321     ld_shlibs_CXX=no
11322     ;;
11323   m88k*)
11324     # FIXME: insert proper C++ library support
11325     ld_shlibs_CXX=no
11326     ;;
11327   mvs*)
11328     case $cc_basename in
11329       cxx*)
11330         # FIXME: insert proper C++ library support
11331         ld_shlibs_CXX=no
11332         ;;
11333       *)
11334         # FIXME: insert proper C++ library support
11335         ld_shlibs_CXX=no
11336         ;;
11337     esac
11338     ;;
11339   netbsd*)
11340     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11341       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11342       wlarc=
11343       hardcode_libdir_flag_spec_CXX='-R$libdir'
11344       hardcode_direct_CXX=yes
11345       hardcode_shlibpath_var_CXX=no
11346     fi
11347     # Workaround some broken pre-1.5 toolchains
11348     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11349     ;;
11350   openbsd2*)
11351     # C++ shared libraries are fairly broken
11352     ld_shlibs_CXX=no
11353     ;;
11354   openbsd*)
11355     hardcode_direct_CXX=yes
11356     hardcode_shlibpath_var_CXX=no
11357     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11358     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11359     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11360       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11361       export_dynamic_flag_spec_CXX='${wl}-E'
11362       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11363     fi
11364     output_verbose_link_cmd='echo'
11365     ;;
11366   osf3*)
11367     case $cc_basename in
11368       KCC*)
11369         # Kuck and Associates, Inc. (KAI) C++ Compiler
11370
11371         # KCC will only create a shared library if the output file
11372         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11373         # to its proper name (with version) after linking.
11374         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'
11375
11376         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11377         hardcode_libdir_separator_CXX=:
11378
11379         # Archives containing C++ object files must be created using
11380         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11381         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11382
11383         ;;
11384       RCC*)
11385         # Rational C++ 2.4.1
11386         # FIXME: insert proper C++ library support
11387         ld_shlibs_CXX=no
11388         ;;
11389       cxx*)
11390         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11391         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'
11392
11393         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11394         hardcode_libdir_separator_CXX=:
11395
11396         # Commands to make compiler produce verbose output that lists
11397         # what "hidden" libraries, object files and flags are used when
11398         # linking a shared library.
11399         #
11400         # There doesn't appear to be a way to prevent this compiler from
11401         # explicitly linking system object files so we need to strip them
11402         # from the output so that they don't get included in the library
11403         # dependencies.
11404         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'
11405         ;;
11406       *)
11407         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11408           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11409           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'
11410
11411           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11412           hardcode_libdir_separator_CXX=:
11413
11414           # Commands to make compiler produce verbose output that lists
11415           # what "hidden" libraries, object files and flags are used when
11416           # linking a shared library.
11417           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11418
11419         else
11420           # FIXME: insert proper C++ library support
11421           ld_shlibs_CXX=no
11422         fi
11423         ;;
11424     esac
11425     ;;
11426   osf4* | osf5*)
11427     case $cc_basename in
11428       KCC*)
11429         # Kuck and Associates, Inc. (KAI) C++ Compiler
11430
11431         # KCC will only create a shared library if the output file
11432         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11433         # to its proper name (with version) after linking.
11434         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'
11435
11436         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11437         hardcode_libdir_separator_CXX=:
11438
11439         # Archives containing C++ object files must be created using
11440         # the KAI C++ compiler.
11441         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11442         ;;
11443       RCC*)
11444         # Rational C++ 2.4.1
11445         # FIXME: insert proper C++ library support
11446         ld_shlibs_CXX=no
11447         ;;
11448       cxx*)
11449         allow_undefined_flag_CXX=' -expect_unresolved \*'
11450         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'
11451         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11452           echo "-hidden">> $lib.exp~
11453           $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~
11454           $rm $lib.exp'
11455
11456         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11457         hardcode_libdir_separator_CXX=:
11458
11459         # Commands to make compiler produce verbose output that lists
11460         # what "hidden" libraries, object files and flags are used when
11461         # linking a shared library.
11462         #
11463         # There doesn't appear to be a way to prevent this compiler from
11464         # explicitly linking system object files so we need to strip them
11465         # from the output so that they don't get included in the library
11466         # dependencies.
11467         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'
11468         ;;
11469       *)
11470         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11471           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11472          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'
11473
11474           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11475           hardcode_libdir_separator_CXX=:
11476
11477           # Commands to make compiler produce verbose output that lists
11478           # what "hidden" libraries, object files and flags are used when
11479           # linking a shared library.
11480           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11481
11482         else
11483           # FIXME: insert proper C++ library support
11484           ld_shlibs_CXX=no
11485         fi
11486         ;;
11487     esac
11488     ;;
11489   psos*)
11490     # FIXME: insert proper C++ library support
11491     ld_shlibs_CXX=no
11492     ;;
11493   sunos4*)
11494     case $cc_basename in
11495       CC*)
11496         # Sun C++ 4.x
11497         # FIXME: insert proper C++ library support
11498         ld_shlibs_CXX=no
11499         ;;
11500       lcc*)
11501         # Lucid
11502         # FIXME: insert proper C++ library support
11503         ld_shlibs_CXX=no
11504         ;;
11505       *)
11506         # FIXME: insert proper C++ library support
11507         ld_shlibs_CXX=no
11508         ;;
11509     esac
11510     ;;
11511   solaris*)
11512     case $cc_basename in
11513       CC*)
11514         # Sun C++ 4.2, 5.x and Centerline C++
11515         archive_cmds_need_lc_CXX=yes
11516         no_undefined_flag_CXX=' -zdefs'
11517         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11518         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11519         $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'
11520
11521         hardcode_libdir_flag_spec_CXX='-R$libdir'
11522         hardcode_shlibpath_var_CXX=no
11523         case $host_os in
11524           solaris2.[0-5] | solaris2.[0-5].*) ;;
11525           *)
11526             # The C++ compiler is used as linker so we must use $wl
11527             # flag to pass the commands to the underlying system
11528             # linker. We must also pass each convience library through
11529             # to the system linker between allextract/defaultextract.
11530             # The C++ compiler will combine linker options so we
11531             # cannot just pass the convience library names through
11532             # without $wl.
11533             # Supported since Solaris 2.6 (maybe 2.5.1?)
11534             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'
11535             ;;
11536         esac
11537         link_all_deplibs_CXX=yes
11538
11539         output_verbose_link_cmd='echo'
11540
11541         # Archives containing C++ object files must be created using
11542         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11543         # necessary to make sure instantiated templates are included
11544         # in the archive.
11545         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11546         ;;
11547       gcx*)
11548         # Green Hills C++ Compiler
11549         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11550
11551         # The C++ compiler must be used to create the archive.
11552         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11553         ;;
11554       *)
11555         # GNU C++ compiler with Solaris linker
11556         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11557           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11558           if $CC --version | grep -v '^2\.7' > /dev/null; then
11559             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11560             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11561                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11562
11563             # Commands to make compiler produce verbose output that lists
11564             # what "hidden" libraries, object files and flags are used when
11565             # linking a shared library.
11566             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11567           else
11568             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11569             # platform.
11570             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11571             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11572                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11573
11574             # Commands to make compiler produce verbose output that lists
11575             # what "hidden" libraries, object files and flags are used when
11576             # linking a shared library.
11577             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11578           fi
11579
11580           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11581         fi
11582         ;;
11583     esac
11584     ;;
11585   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11586     no_undefined_flag_CXX='${wl}-z,text'
11587     archive_cmds_need_lc_CXX=no
11588     hardcode_shlibpath_var_CXX=no
11589     runpath_var='LD_RUN_PATH'
11590
11591     case $cc_basename in
11592       CC*)
11593         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11594         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11595         ;;
11596       *)
11597         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11598         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11599         ;;
11600     esac
11601     ;;
11602   sysv5* | sco3.2v5* | sco5v6*)
11603     # Note: We can NOT use -z defs as we might desire, because we do not
11604     # link with -lc, and that would cause any symbols used from libc to
11605     # always be unresolved, which means just about no library would
11606     # ever link correctly.  If we're not using GNU ld we use -z text
11607     # though, which does catch some bad symbols but isn't as heavy-handed
11608     # as -z defs.
11609     # For security reasons, it is highly recommended that you always
11610     # use absolute paths for naming shared libraries, and exclude the
11611     # DT_RUNPATH tag from executables and libraries.  But doing so
11612     # requires that you compile everything twice, which is a pain.
11613     # So that behaviour is only enabled if SCOABSPATH is set to a
11614     # non-empty value in the environment.  Most likely only useful for
11615     # creating official distributions of packages.
11616     # This is a hack until libtool officially supports absolute path
11617     # names for shared libraries.
11618     no_undefined_flag_CXX='${wl}-z,text'
11619     allow_undefined_flag_CXX='${wl}-z,nodefs'
11620     archive_cmds_need_lc_CXX=no
11621     hardcode_shlibpath_var_CXX=no
11622     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11623     hardcode_libdir_separator_CXX=':'
11624     link_all_deplibs_CXX=yes
11625     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11626     runpath_var='LD_RUN_PATH'
11627
11628     case $cc_basename in
11629       CC*)
11630         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11631         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11632         ;;
11633       *)
11634         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11636         ;;
11637     esac
11638     ;;
11639   tandem*)
11640     case $cc_basename in
11641       NCC*)
11642         # NonStop-UX NCC 3.20
11643         # FIXME: insert proper C++ library support
11644         ld_shlibs_CXX=no
11645         ;;
11646       *)
11647         # FIXME: insert proper C++ library support
11648         ld_shlibs_CXX=no
11649         ;;
11650     esac
11651     ;;
11652   vxworks*)
11653     # FIXME: insert proper C++ library support
11654     ld_shlibs_CXX=no
11655     ;;
11656   *)
11657     # FIXME: insert proper C++ library support
11658     ld_shlibs_CXX=no
11659     ;;
11660 esac
11661 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11662 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11663 test "$ld_shlibs_CXX" = no && can_build_shared=no
11664
11665 GCC_CXX="$GXX"
11666 LD_CXX="$LD"
11667
11668 ## CAVEAT EMPTOR:
11669 ## There is no encapsulation within the following macros, do not change
11670 ## the running order or otherwise move them around unless you know exactly
11671 ## what you are doing...
11672
11673 cat > conftest.$ac_ext <<EOF
11674 class Foo
11675 {
11676 public:
11677   Foo (void) { a = 0; }
11678 private:
11679   int a;
11680 };
11681 EOF
11682
11683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684   (eval $ac_compile) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; then
11688   # Parse the compiler output and extract the necessary
11689   # objects, libraries and library flags.
11690
11691   # Sentinel used to keep track of whether or not we are before
11692   # the conftest object file.
11693   pre_test_object_deps_done=no
11694
11695   # The `*' in the case matches for architectures that use `case' in
11696   # $output_verbose_cmd can trigger glob expansion during the loop
11697   # eval without this substitution.
11698   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11699
11700   for p in `eval $output_verbose_link_cmd`; do
11701     case $p in
11702
11703     -L* | -R* | -l*)
11704        # Some compilers place space between "-{L,R}" and the path.
11705        # Remove the space.
11706        if test $p = "-L" \
11707           || test $p = "-R"; then
11708          prev=$p
11709          continue
11710        else
11711          prev=
11712        fi
11713
11714        if test "$pre_test_object_deps_done" = no; then
11715          case $p in
11716          -L* | -R*)
11717            # Internal compiler library paths should come after those
11718            # provided the user.  The postdeps already come after the
11719            # user supplied libs so there is no need to process them.
11720            if test -z "$compiler_lib_search_path_CXX"; then
11721              compiler_lib_search_path_CXX="${prev}${p}"
11722            else
11723              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11724            fi
11725            ;;
11726          # The "-l" case would never come before the object being
11727          # linked, so don't bother handling this case.
11728          esac
11729        else
11730          if test -z "$postdeps_CXX"; then
11731            postdeps_CXX="${prev}${p}"
11732          else
11733            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11734          fi
11735        fi
11736        ;;
11737
11738     *.$objext)
11739        # This assumes that the test object file only shows up
11740        # once in the compiler output.
11741        if test "$p" = "conftest.$objext"; then
11742          pre_test_object_deps_done=yes
11743          continue
11744        fi
11745
11746        if test "$pre_test_object_deps_done" = no; then
11747          if test -z "$predep_objects_CXX"; then
11748            predep_objects_CXX="$p"
11749          else
11750            predep_objects_CXX="$predep_objects_CXX $p"
11751          fi
11752        else
11753          if test -z "$postdep_objects_CXX"; then
11754            postdep_objects_CXX="$p"
11755          else
11756            postdep_objects_CXX="$postdep_objects_CXX $p"
11757          fi
11758        fi
11759        ;;
11760
11761     *) ;; # Ignore the rest.
11762
11763     esac
11764   done
11765
11766   # Clean up.
11767   rm -f a.out a.exe
11768 else
11769   echo "libtool.m4: error: problem compiling CXX test program"
11770 fi
11771
11772 $rm -f confest.$objext
11773
11774 # PORTME: override above test on systems where it is broken
11775 case $host_os in
11776 interix3*)
11777   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11778   # hack all around it, let's just trust "g++" to DTRT.
11779   predep_objects_CXX=
11780   postdep_objects_CXX=
11781   postdeps_CXX=
11782   ;;
11783
11784 solaris*)
11785   case $cc_basename in
11786   CC*)
11787     # Adding this requires a known-good setup of shared libraries for
11788     # Sun compiler versions before 5.6, else PIC objects from an old
11789     # archive will be linked into the output, leading to subtle bugs.
11790     postdeps_CXX='-lCstd -lCrun'
11791     ;;
11792   esac
11793   ;;
11794 esac
11795
11796
11797 case " $postdeps_CXX " in
11798 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11799 esac
11800
11801 lt_prog_compiler_wl_CXX=
11802 lt_prog_compiler_pic_CXX=
11803 lt_prog_compiler_static_CXX=
11804
11805 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11806 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11807
11808   # C++ specific cases for pic, static, wl, etc.
11809   if test "$GXX" = yes; then
11810     lt_prog_compiler_wl_CXX='-Wl,'
11811     lt_prog_compiler_static_CXX='-static'
11812
11813     case $host_os in
11814     aix*)
11815       # All AIX code is PIC.
11816       if test "$host_cpu" = ia64; then
11817         # AIX 5 now supports IA64 processor
11818         lt_prog_compiler_static_CXX='-Bstatic'
11819       fi
11820       ;;
11821     amigaos*)
11822       # FIXME: we need at least 68020 code to build shared libraries, but
11823       # adding the `-m68020' flag to GCC prevents building anything better,
11824       # like `-m68040'.
11825       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11826       ;;
11827     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11828       # PIC is the default for these OSes.
11829       ;;
11830     mingw* | os2* | pw32*)
11831       # This hack is so that the source file can tell whether it is being
11832       # built for inclusion in a dll (and should export symbols for example).
11833       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11834       ;;
11835     darwin* | rhapsody*)
11836       # PIC is the default on this platform
11837       # Common symbols not allowed in MH_DYLIB files
11838       lt_prog_compiler_pic_CXX='-fno-common'
11839       ;;
11840     *djgpp*)
11841       # DJGPP does not support shared libraries at all
11842       lt_prog_compiler_pic_CXX=
11843       ;;
11844     interix3*)
11845       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11846       # Instead, we relocate shared libraries at runtime.
11847       ;;
11848     sysv4*MP*)
11849       if test -d /usr/nec; then
11850         lt_prog_compiler_pic_CXX=-Kconform_pic
11851       fi
11852       ;;
11853     hpux*)
11854       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11855       # not for PA HP-UX.
11856       case $host_cpu in
11857       hppa*64*|ia64*)
11858         ;;
11859       *)
11860         lt_prog_compiler_pic_CXX='-fPIC'
11861         ;;
11862       esac
11863       ;;
11864     *)
11865       lt_prog_compiler_pic_CXX='-fPIC'
11866       ;;
11867     esac
11868   else
11869     case $host_os in
11870       aix4* | aix5*)
11871         # All AIX code is PIC.
11872         if test "$host_cpu" = ia64; then
11873           # AIX 5 now supports IA64 processor
11874           lt_prog_compiler_static_CXX='-Bstatic'
11875         else
11876           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11877         fi
11878         ;;
11879       chorus*)
11880         case $cc_basename in
11881         cxch68*)
11882           # Green Hills C++ Compiler
11883           # _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"
11884           ;;
11885         esac
11886         ;;
11887        darwin*)
11888          # PIC is the default on this platform
11889          # Common symbols not allowed in MH_DYLIB files
11890          case $cc_basename in
11891            xlc*)
11892            lt_prog_compiler_pic_CXX='-qnocommon'
11893            lt_prog_compiler_wl_CXX='-Wl,'
11894            ;;
11895          esac
11896        ;;
11897       dgux*)
11898         case $cc_basename in
11899           ec++*)
11900             lt_prog_compiler_pic_CXX='-KPIC'
11901             ;;
11902           ghcx*)
11903             # Green Hills C++ Compiler
11904             lt_prog_compiler_pic_CXX='-pic'
11905             ;;
11906           *)
11907             ;;
11908         esac
11909         ;;
11910       freebsd* | kfreebsd*-gnu | dragonfly*)
11911         # FreeBSD uses GNU C++
11912         ;;
11913       hpux9* | hpux10* | hpux11*)
11914         case $cc_basename in
11915           CC*)
11916             lt_prog_compiler_wl_CXX='-Wl,'
11917             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11918             if test "$host_cpu" != ia64; then
11919               lt_prog_compiler_pic_CXX='+Z'
11920             fi
11921             ;;
11922           aCC*)
11923             lt_prog_compiler_wl_CXX='-Wl,'
11924             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11925             case $host_cpu in
11926             hppa*64*|ia64*)
11927               # +Z the default
11928               ;;
11929             *)
11930               lt_prog_compiler_pic_CXX='+Z'
11931               ;;
11932             esac
11933             ;;
11934           *)
11935             ;;
11936         esac
11937         ;;
11938       interix*)
11939         # This is c89, which is MS Visual C++ (no shared libs)
11940         # Anyone wants to do a port?
11941         ;;
11942       irix5* | irix6* | nonstopux*)
11943         case $cc_basename in
11944           CC*)
11945             lt_prog_compiler_wl_CXX='-Wl,'
11946             lt_prog_compiler_static_CXX='-non_shared'
11947             # CC pic flag -KPIC is the default.
11948             ;;
11949           *)
11950             ;;
11951         esac
11952         ;;
11953       linux*)
11954         case $cc_basename in
11955           KCC*)
11956             # KAI C++ Compiler
11957             lt_prog_compiler_wl_CXX='--backend -Wl,'
11958             lt_prog_compiler_pic_CXX='-fPIC'
11959             ;;
11960           icpc* | ecpc*)
11961             # Intel C++
11962             lt_prog_compiler_wl_CXX='-Wl,'
11963             lt_prog_compiler_pic_CXX='-KPIC'
11964             lt_prog_compiler_static_CXX='-static'
11965             ;;
11966           pgCC*)
11967             # Portland Group C++ compiler.
11968             lt_prog_compiler_wl_CXX='-Wl,'
11969             lt_prog_compiler_pic_CXX='-fpic'
11970             lt_prog_compiler_static_CXX='-Bstatic'
11971             ;;
11972           cxx*)
11973             # Compaq C++
11974             # Make sure the PIC flag is empty.  It appears that all Alpha
11975             # Linux and Compaq Tru64 Unix objects are PIC.
11976             lt_prog_compiler_pic_CXX=
11977             lt_prog_compiler_static_CXX='-non_shared'
11978             ;;
11979           *)
11980             ;;
11981         esac
11982         ;;
11983       lynxos*)
11984         ;;
11985       m88k*)
11986         ;;
11987       mvs*)
11988         case $cc_basename in
11989           cxx*)
11990             lt_prog_compiler_pic_CXX='-W c,exportall'
11991             ;;
11992           *)
11993             ;;
11994         esac
11995         ;;
11996       netbsd*)
11997         ;;
11998       osf3* | osf4* | osf5*)
11999         case $cc_basename in
12000           KCC*)
12001             lt_prog_compiler_wl_CXX='--backend -Wl,'
12002             ;;
12003           RCC*)
12004             # Rational C++ 2.4.1
12005             lt_prog_compiler_pic_CXX='-pic'
12006             ;;
12007           cxx*)
12008             # Digital/Compaq C++
12009             lt_prog_compiler_wl_CXX='-Wl,'
12010             # Make sure the PIC flag is empty.  It appears that all Alpha
12011             # Linux and Compaq Tru64 Unix objects are PIC.
12012             lt_prog_compiler_pic_CXX=
12013             lt_prog_compiler_static_CXX='-non_shared'
12014             ;;
12015           *)
12016             ;;
12017         esac
12018         ;;
12019       psos*)
12020         ;;
12021       solaris*)
12022         case $cc_basename in
12023           CC*)
12024             # Sun C++ 4.2, 5.x and Centerline C++
12025             lt_prog_compiler_pic_CXX='-KPIC'
12026             lt_prog_compiler_static_CXX='-Bstatic'
12027             lt_prog_compiler_wl_CXX='-Qoption ld '
12028             ;;
12029           gcx*)
12030             # Green Hills C++ Compiler
12031             lt_prog_compiler_pic_CXX='-PIC'
12032             ;;
12033           *)
12034             ;;
12035         esac
12036         ;;
12037       sunos4*)
12038         case $cc_basename in
12039           CC*)
12040             # Sun C++ 4.x
12041             lt_prog_compiler_pic_CXX='-pic'
12042             lt_prog_compiler_static_CXX='-Bstatic'
12043             ;;
12044           lcc*)
12045             # Lucid
12046             lt_prog_compiler_pic_CXX='-pic'
12047             ;;
12048           *)
12049             ;;
12050         esac
12051         ;;
12052       tandem*)
12053         case $cc_basename in
12054           NCC*)
12055             # NonStop-UX NCC 3.20
12056             lt_prog_compiler_pic_CXX='-KPIC'
12057             ;;
12058           *)
12059             ;;
12060         esac
12061         ;;
12062       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12063         case $cc_basename in
12064           CC*)
12065             lt_prog_compiler_wl_CXX='-Wl,'
12066             lt_prog_compiler_pic_CXX='-KPIC'
12067             lt_prog_compiler_static_CXX='-Bstatic'
12068             ;;
12069         esac
12070         ;;
12071       vxworks*)
12072         ;;
12073       *)
12074         lt_prog_compiler_can_build_shared_CXX=no
12075         ;;
12076     esac
12077   fi
12078
12079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12080 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12081
12082 #
12083 # Check to make sure the PIC flag actually works.
12084 #
12085 if test -n "$lt_prog_compiler_pic_CXX"; then
12086
12087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12089 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12090   echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092   lt_prog_compiler_pic_works_CXX=no
12093   ac_outfile=conftest.$ac_objext
12094    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12095    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12096    # Insert the option either (1) after the last *FLAGS variable, or
12097    # (2) before a word containing "conftest.", or (3) at the end.
12098    # Note that $ac_compile itself does not contain backslashes and begins
12099    # with a dollar sign (not a hyphen), so the echo should work correctly.
12100    # The option is referenced via a variable to avoid confusing sed.
12101    lt_compile=`echo "$ac_compile" | $SED \
12102    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12104    -e 's:$: $lt_compiler_flag:'`
12105    (eval echo "\"\$as_me:12105: $lt_compile\"" >&5)
12106    (eval "$lt_compile" 2>conftest.err)
12107    ac_status=$?
12108    cat conftest.err >&5
12109    echo "$as_me:12109: \$? = $ac_status" >&5
12110    if (exit $ac_status) && test -s "$ac_outfile"; then
12111      # The compiler can only warn and ignore the option if not recognized
12112      # So say no if there are warnings other than the usual output.
12113      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12114      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12115      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12116        lt_prog_compiler_pic_works_CXX=yes
12117      fi
12118    fi
12119    $rm conftest*
12120
12121 fi
12122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12123 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12124
12125 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12126     case $lt_prog_compiler_pic_CXX in
12127      "" | " "*) ;;
12128      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12129      esac
12130 else
12131     lt_prog_compiler_pic_CXX=
12132      lt_prog_compiler_can_build_shared_CXX=no
12133 fi
12134
12135 fi
12136 case $host_os in
12137   # For platforms which do not support PIC, -DPIC is meaningless:
12138   *djgpp*)
12139     lt_prog_compiler_pic_CXX=
12140     ;;
12141   *)
12142     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12143     ;;
12144 esac
12145
12146 #
12147 # Check to make sure the static flag actually works.
12148 #
12149 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12152 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   lt_prog_compiler_static_works_CXX=no
12156    save_LDFLAGS="$LDFLAGS"
12157    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12158    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12159    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12160      # The linker can only warn and ignore the option if not recognized
12161      # So say no if there are warnings
12162      if test -s conftest.err; then
12163        # Append any errors to the config.log.
12164        cat conftest.err 1>&5
12165        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12166        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12167        if diff conftest.exp conftest.er2 >/dev/null; then
12168          lt_prog_compiler_static_works_CXX=yes
12169        fi
12170      else
12171        lt_prog_compiler_static_works_CXX=yes
12172      fi
12173    fi
12174    $rm conftest*
12175    LDFLAGS="$save_LDFLAGS"
12176
12177 fi
12178 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12179 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12180
12181 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12182     :
12183 else
12184     lt_prog_compiler_static_CXX=
12185 fi
12186
12187
12188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12190 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193   lt_cv_prog_compiler_c_o_CXX=no
12194    $rm -r conftest 2>/dev/null
12195    mkdir conftest
12196    cd conftest
12197    mkdir out
12198    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12199
12200    lt_compiler_flag="-o out/conftest2.$ac_objext"
12201    # Insert the option either (1) after the last *FLAGS variable, or
12202    # (2) before a word containing "conftest.", or (3) at the end.
12203    # Note that $ac_compile itself does not contain backslashes and begins
12204    # with a dollar sign (not a hyphen), so the echo should work correctly.
12205    lt_compile=`echo "$ac_compile" | $SED \
12206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12208    -e 's:$: $lt_compiler_flag:'`
12209    (eval echo "\"\$as_me:12209: $lt_compile\"" >&5)
12210    (eval "$lt_compile" 2>out/conftest.err)
12211    ac_status=$?
12212    cat out/conftest.err >&5
12213    echo "$as_me:12213: \$? = $ac_status" >&5
12214    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12215    then
12216      # The compiler can only warn and ignore the option if not recognized
12217      # So say no if there are warnings
12218      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12219      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12220      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12221        lt_cv_prog_compiler_c_o_CXX=yes
12222      fi
12223    fi
12224    chmod u+w . 2>&5
12225    $rm conftest*
12226    # SGI C++ compiler will create directory out/ii_files/ for
12227    # template instantiation
12228    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12229    $rm out/* && rmdir out
12230    cd ..
12231    rmdir conftest
12232    $rm conftest*
12233
12234 fi
12235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12237
12238
12239 hard_links="nottested"
12240 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12241   # do not overwrite the value of need_locks provided by the user
12242   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12244   hard_links=yes
12245   $rm conftest*
12246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12247   touch conftest.a
12248   ln conftest.a conftest.b 2>&5 || hard_links=no
12249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12250   { echo "$as_me:$LINENO: result: $hard_links" >&5
12251 echo "${ECHO_T}$hard_links" >&6; }
12252   if test "$hard_links" = no; then
12253     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12255     need_locks=warn
12256   fi
12257 else
12258   need_locks=no
12259 fi
12260
12261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12263
12264   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12265   case $host_os in
12266   aix4* | aix5*)
12267     # If we're using GNU nm, then we don't want the "-C" option.
12268     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12269     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12270       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'
12271     else
12272       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'
12273     fi
12274     ;;
12275   pw32*)
12276     export_symbols_cmds_CXX="$ltdll_cmds"
12277   ;;
12278   cygwin* | mingw*)
12279     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'
12280   ;;
12281   *)
12282     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12283   ;;
12284   esac
12285
12286 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12287 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12288 test "$ld_shlibs_CXX" = no && can_build_shared=no
12289
12290 #
12291 # Do we need to explicitly link libc?
12292 #
12293 case "x$archive_cmds_need_lc_CXX" in
12294 x|xyes)
12295   # Assume -lc should be added
12296   archive_cmds_need_lc_CXX=yes
12297
12298   if test "$enable_shared" = yes && test "$GCC" = yes; then
12299     case $archive_cmds_CXX in
12300     *'~'*)
12301       # FIXME: we may have to deal with multi-command sequences.
12302       ;;
12303     '$CC '*)
12304       # Test whether the compiler implicitly links with -lc since on some
12305       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12306       # to ld, don't add -lc before -lgcc.
12307       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12308 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12309       $rm conftest*
12310       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12311
12312       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12313   (eval $ac_compile) 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); } 2>conftest.err; then
12317         soname=conftest
12318         lib=conftest
12319         libobjs=conftest.$ac_objext
12320         deplibs=
12321         wl=$lt_prog_compiler_wl_CXX
12322         pic_flag=$lt_prog_compiler_pic_CXX
12323         compiler_flags=-v
12324         linker_flags=-v
12325         verstring=
12326         output_objdir=.
12327         libname=conftest
12328         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12329         allow_undefined_flag_CXX=
12330         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12331   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }
12335         then
12336           archive_cmds_need_lc_CXX=no
12337         else
12338           archive_cmds_need_lc_CXX=yes
12339         fi
12340         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12341       else
12342         cat conftest.err 1>&5
12343       fi
12344       $rm conftest*
12345       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12346 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12347       ;;
12348     esac
12349   fi
12350   ;;
12351 esac
12352
12353 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12354 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12355 library_names_spec=
12356 libname_spec='lib$name'
12357 soname_spec=
12358 shrext_cmds=".so"
12359 postinstall_cmds=
12360 postuninstall_cmds=
12361 finish_cmds=
12362 finish_eval=
12363 shlibpath_var=
12364 shlibpath_overrides_runpath=unknown
12365 version_type=none
12366 dynamic_linker="$host_os ld.so"
12367 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12368 if test "$GCC" = yes; then
12369   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12370   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12371     # if the path contains ";" then we assume it to be the separator
12372     # otherwise default to the standard path separator (i.e. ":") - it is
12373     # assumed that no part of a normal pathname contains ";" but that should
12374     # okay in the real world where ";" in dirpaths is itself problematic.
12375     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12376   else
12377     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12378   fi
12379 else
12380   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12381 fi
12382 need_lib_prefix=unknown
12383 hardcode_into_libs=no
12384
12385 # when you set need_version to no, make sure it does not cause -set_version
12386 # flags to be left without arguments
12387 need_version=unknown
12388
12389 case $host_os in
12390 aix3*)
12391   version_type=linux
12392   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12393   shlibpath_var=LIBPATH
12394
12395   # AIX 3 has no versioning support, so we append a major version to the name.
12396   soname_spec='${libname}${release}${shared_ext}$major'
12397   ;;
12398
12399 aix4* | aix5*)
12400   version_type=linux
12401   need_lib_prefix=no
12402   need_version=no
12403   hardcode_into_libs=yes
12404   if test "$host_cpu" = ia64; then
12405     # AIX 5 supports IA64
12406     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12407     shlibpath_var=LD_LIBRARY_PATH
12408   else
12409     # With GCC up to 2.95.x, collect2 would create an import file
12410     # for dependence libraries.  The import file would start with
12411     # the line `#! .'.  This would cause the generated library to
12412     # depend on `.', always an invalid library.  This was fixed in
12413     # development snapshots of GCC prior to 3.0.
12414     case $host_os in
12415       aix4 | aix4.[01] | aix4.[01].*)
12416       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12417            echo ' yes '
12418            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12419         :
12420       else
12421         can_build_shared=no
12422       fi
12423       ;;
12424     esac
12425     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12426     # soname into executable. Probably we can add versioning support to
12427     # collect2, so additional links can be useful in future.
12428     if test "$aix_use_runtimelinking" = yes; then
12429       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12430       # instead of lib<name>.a to let people know that these are not
12431       # typical AIX shared libraries.
12432       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12433     else
12434       # We preserve .a as extension for shared libraries through AIX4.2
12435       # and later when we are not doing run time linking.
12436       library_names_spec='${libname}${release}.a $libname.a'
12437       soname_spec='${libname}${release}${shared_ext}$major'
12438     fi
12439     shlibpath_var=LIBPATH
12440   fi
12441   ;;
12442
12443 amigaos*)
12444   library_names_spec='$libname.ixlibrary $libname.a'
12445   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12446   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'
12447   ;;
12448
12449 beos*)
12450   library_names_spec='${libname}${shared_ext}'
12451   dynamic_linker="$host_os ld.so"
12452   shlibpath_var=LIBRARY_PATH
12453   ;;
12454
12455 bsdi[45]*)
12456   version_type=linux
12457   need_version=no
12458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12459   soname_spec='${libname}${release}${shared_ext}$major'
12460   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12461   shlibpath_var=LD_LIBRARY_PATH
12462   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12463   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12464   # the default ld.so.conf also contains /usr/contrib/lib and
12465   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12466   # libtool to hard-code these into programs
12467   ;;
12468
12469 cygwin* | mingw* | pw32*)
12470   version_type=windows
12471   shrext_cmds=".dll"
12472   need_version=no
12473   need_lib_prefix=no
12474
12475   case $GCC,$host_os in
12476   yes,cygwin* | yes,mingw* | yes,pw32*)
12477     library_names_spec='$libname.dll.a'
12478     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12479     postinstall_cmds='base_file=`basename \${file}`~
12480       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12481       dldir=$destdir/`dirname \$dlpath`~
12482       test -d \$dldir || mkdir -p \$dldir~
12483       $install_prog $dir/$dlname \$dldir/$dlname~
12484       chmod a+x \$dldir/$dlname'
12485     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12486       dlpath=$dir/\$dldll~
12487        $rm \$dlpath'
12488     shlibpath_overrides_runpath=yes
12489
12490     case $host_os in
12491     cygwin*)
12492       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12493       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12494       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12495       ;;
12496     mingw*)
12497       # MinGW DLLs use traditional 'lib' prefix
12498       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12499       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12500       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12501         # It is most probably a Windows format PATH printed by
12502         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12503         # path with ; separators, and with drive letters. We can handle the
12504         # drive letters (cygwin fileutils understands them), so leave them,
12505         # especially as we might pass files found there to a mingw objdump,
12506         # which wouldn't understand a cygwinified path. Ahh.
12507         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12508       else
12509         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12510       fi
12511       ;;
12512     pw32*)
12513       # pw32 DLLs use 'pw' prefix rather than 'lib'
12514       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12515       ;;
12516     esac
12517     ;;
12518
12519   *)
12520     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12521     ;;
12522   esac
12523   dynamic_linker='Win32 ld.exe'
12524   # FIXME: first we should search . and the directory the executable is in
12525   shlibpath_var=PATH
12526   ;;
12527
12528 darwin* | rhapsody*)
12529   dynamic_linker="$host_os dyld"
12530   version_type=darwin
12531   need_lib_prefix=no
12532   need_version=no
12533   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12534   soname_spec='${libname}${release}${major}$shared_ext'
12535   shlibpath_overrides_runpath=yes
12536   shlibpath_var=DYLD_LIBRARY_PATH
12537   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12538   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12539   if test "$GCC" = yes; then
12540     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"`
12541   else
12542     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12543   fi
12544   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12545   ;;
12546
12547 dgux*)
12548   version_type=linux
12549   need_lib_prefix=no
12550   need_version=no
12551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12552   soname_spec='${libname}${release}${shared_ext}$major'
12553   shlibpath_var=LD_LIBRARY_PATH
12554   ;;
12555
12556 freebsd1*)
12557   dynamic_linker=no
12558   ;;
12559
12560 kfreebsd*-gnu)
12561   version_type=linux
12562   need_lib_prefix=no
12563   need_version=no
12564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12565   soname_spec='${libname}${release}${shared_ext}$major'
12566   shlibpath_var=LD_LIBRARY_PATH
12567   shlibpath_overrides_runpath=no
12568   hardcode_into_libs=yes
12569   dynamic_linker='GNU ld.so'
12570   ;;
12571
12572 freebsd* | dragonfly*)
12573   # DragonFly does not have aout.  When/if they implement a new
12574   # versioning mechanism, adjust this.
12575   if test -x /usr/bin/objformat; then
12576     objformat=`/usr/bin/objformat`
12577   else
12578     case $host_os in
12579     freebsd[123]*) objformat=aout ;;
12580     *) objformat=elf ;;
12581     esac
12582   fi
12583   version_type=freebsd-$objformat
12584   case $version_type in
12585     freebsd-elf*)
12586       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12587       need_version=no
12588       need_lib_prefix=no
12589       ;;
12590     freebsd-*)
12591       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12592       need_version=yes
12593       ;;
12594   esac
12595   shlibpath_var=LD_LIBRARY_PATH
12596   case $host_os in
12597   freebsd2*)
12598     shlibpath_overrides_runpath=yes
12599     ;;
12600   freebsd3.[01]* | freebsdelf3.[01]*)
12601     shlibpath_overrides_runpath=yes
12602     hardcode_into_libs=yes
12603     ;;
12604   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12605   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12606     shlibpath_overrides_runpath=no
12607     hardcode_into_libs=yes
12608     ;;
12609   freebsd*) # from 4.6 on
12610     shlibpath_overrides_runpath=yes
12611     hardcode_into_libs=yes
12612     ;;
12613   esac
12614   ;;
12615
12616 gnu*)
12617   version_type=linux
12618   need_lib_prefix=no
12619   need_version=no
12620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12621   soname_spec='${libname}${release}${shared_ext}$major'
12622   shlibpath_var=LD_LIBRARY_PATH
12623   hardcode_into_libs=yes
12624   ;;
12625
12626 hpux9* | hpux10* | hpux11*)
12627   # Give a soname corresponding to the major version so that dld.sl refuses to
12628   # link against other versions.
12629   version_type=sunos
12630   need_lib_prefix=no
12631   need_version=no
12632   case $host_cpu in
12633   ia64*)
12634     shrext_cmds='.so'
12635     hardcode_into_libs=yes
12636     dynamic_linker="$host_os dld.so"
12637     shlibpath_var=LD_LIBRARY_PATH
12638     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12640     soname_spec='${libname}${release}${shared_ext}$major'
12641     if test "X$HPUX_IA64_MODE" = X32; then
12642       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12643     else
12644       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12645     fi
12646     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12647     ;;
12648    hppa*64*)
12649      shrext_cmds='.sl'
12650      hardcode_into_libs=yes
12651      dynamic_linker="$host_os dld.sl"
12652      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12653      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12654      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12655      soname_spec='${libname}${release}${shared_ext}$major'
12656      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12657      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12658      ;;
12659    *)
12660     shrext_cmds='.sl'
12661     dynamic_linker="$host_os dld.sl"
12662     shlibpath_var=SHLIB_PATH
12663     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665     soname_spec='${libname}${release}${shared_ext}$major'
12666     ;;
12667   esac
12668   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12669   postinstall_cmds='chmod 555 $lib'
12670   ;;
12671
12672 interix3*)
12673   version_type=linux
12674   need_lib_prefix=no
12675   need_version=no
12676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12677   soname_spec='${libname}${release}${shared_ext}$major'
12678   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12679   shlibpath_var=LD_LIBRARY_PATH
12680   shlibpath_overrides_runpath=no
12681   hardcode_into_libs=yes
12682   ;;
12683
12684 irix5* | irix6* | nonstopux*)
12685   case $host_os in
12686     nonstopux*) version_type=nonstopux ;;
12687     *)
12688         if test "$lt_cv_prog_gnu_ld" = yes; then
12689                 version_type=linux
12690         else
12691                 version_type=irix
12692         fi ;;
12693   esac
12694   need_lib_prefix=no
12695   need_version=no
12696   soname_spec='${libname}${release}${shared_ext}$major'
12697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12698   case $host_os in
12699   irix5* | nonstopux*)
12700     libsuff= shlibsuff=
12701     ;;
12702   *)
12703     case $LD in # libtool.m4 will add one of these switches to LD
12704     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12705       libsuff= shlibsuff= libmagic=32-bit;;
12706     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12707       libsuff=32 shlibsuff=N32 libmagic=N32;;
12708     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12709       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12710     *) libsuff= shlibsuff= libmagic=never-match;;
12711     esac
12712     ;;
12713   esac
12714   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12715   shlibpath_overrides_runpath=no
12716   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12717   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12718   hardcode_into_libs=yes
12719   ;;
12720
12721 # No shared lib support for Linux oldld, aout, or coff.
12722 linux*oldld* | linux*aout* | linux*coff*)
12723   dynamic_linker=no
12724   ;;
12725
12726 # This must be Linux ELF.
12727 linux*)
12728   version_type=linux
12729   need_lib_prefix=no
12730   need_version=no
12731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12732   soname_spec='${libname}${release}${shared_ext}$major'
12733   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12734   shlibpath_var=LD_LIBRARY_PATH
12735   shlibpath_overrides_runpath=no
12736   # This implies no fast_install, which is unacceptable.
12737   # Some rework will be needed to allow for fast_install
12738   # before this can be enabled.
12739   hardcode_into_libs=yes
12740
12741   # Append ld.so.conf contents to the search path
12742   if test -f /etc/ld.so.conf; then
12743     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' ' '`
12744     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12745   fi
12746
12747   # We used to test for /lib/ld.so.1 and disable shared libraries on
12748   # powerpc, because MkLinux only supported shared libraries with the
12749   # GNU dynamic linker.  Since this was broken with cross compilers,
12750   # most powerpc-linux boxes support dynamic linking these days and
12751   # people can always --disable-shared, the test was removed, and we
12752   # assume the GNU/Linux dynamic linker is in use.
12753   dynamic_linker='GNU/Linux ld.so'
12754   ;;
12755
12756 knetbsd*-gnu)
12757   version_type=linux
12758   need_lib_prefix=no
12759   need_version=no
12760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12761   soname_spec='${libname}${release}${shared_ext}$major'
12762   shlibpath_var=LD_LIBRARY_PATH
12763   shlibpath_overrides_runpath=no
12764   hardcode_into_libs=yes
12765   dynamic_linker='GNU ld.so'
12766   ;;
12767
12768 netbsd*)
12769   version_type=sunos
12770   need_lib_prefix=no
12771   need_version=no
12772   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12774     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12775     dynamic_linker='NetBSD (a.out) ld.so'
12776   else
12777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12778     soname_spec='${libname}${release}${shared_ext}$major'
12779     dynamic_linker='NetBSD ld.elf_so'
12780   fi
12781   shlibpath_var=LD_LIBRARY_PATH
12782   shlibpath_overrides_runpath=yes
12783   hardcode_into_libs=yes
12784   ;;
12785
12786 newsos6)
12787   version_type=linux
12788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789   shlibpath_var=LD_LIBRARY_PATH
12790   shlibpath_overrides_runpath=yes
12791   ;;
12792
12793 nto-qnx*)
12794   version_type=linux
12795   need_lib_prefix=no
12796   need_version=no
12797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798   soname_spec='${libname}${release}${shared_ext}$major'
12799   shlibpath_var=LD_LIBRARY_PATH
12800   shlibpath_overrides_runpath=yes
12801   ;;
12802
12803 openbsd*)
12804   version_type=sunos
12805   sys_lib_dlsearch_path_spec="/usr/lib"
12806   need_lib_prefix=no
12807   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12808   case $host_os in
12809     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12810     *)                         need_version=no  ;;
12811   esac
12812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12813   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12814   shlibpath_var=LD_LIBRARY_PATH
12815   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12816     case $host_os in
12817       openbsd2.[89] | openbsd2.[89].*)
12818         shlibpath_overrides_runpath=no
12819         ;;
12820       *)
12821         shlibpath_overrides_runpath=yes
12822         ;;
12823       esac
12824   else
12825     shlibpath_overrides_runpath=yes
12826   fi
12827   ;;
12828
12829 os2*)
12830   libname_spec='$name'
12831   shrext_cmds=".dll"
12832   need_lib_prefix=no
12833   library_names_spec='$libname${shared_ext} $libname.a'
12834   dynamic_linker='OS/2 ld.exe'
12835   shlibpath_var=LIBPATH
12836   ;;
12837
12838 osf3* | osf4* | osf5*)
12839   version_type=osf
12840   need_lib_prefix=no
12841   need_version=no
12842   soname_spec='${libname}${release}${shared_ext}$major'
12843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844   shlibpath_var=LD_LIBRARY_PATH
12845   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12846   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12847   ;;
12848
12849 solaris*)
12850   version_type=linux
12851   need_lib_prefix=no
12852   need_version=no
12853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854   soname_spec='${libname}${release}${shared_ext}$major'
12855   shlibpath_var=LD_LIBRARY_PATH
12856   shlibpath_overrides_runpath=yes
12857   hardcode_into_libs=yes
12858   # ldd complains unless libraries are executable
12859   postinstall_cmds='chmod +x $lib'
12860   ;;
12861
12862 sunos4*)
12863   version_type=sunos
12864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12865   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12866   shlibpath_var=LD_LIBRARY_PATH
12867   shlibpath_overrides_runpath=yes
12868   if test "$with_gnu_ld" = yes; then
12869     need_lib_prefix=no
12870   fi
12871   need_version=yes
12872   ;;
12873
12874 sysv4 | sysv4.3*)
12875   version_type=linux
12876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877   soname_spec='${libname}${release}${shared_ext}$major'
12878   shlibpath_var=LD_LIBRARY_PATH
12879   case $host_vendor in
12880     sni)
12881       shlibpath_overrides_runpath=no
12882       need_lib_prefix=no
12883       export_dynamic_flag_spec='${wl}-Blargedynsym'
12884       runpath_var=LD_RUN_PATH
12885       ;;
12886     siemens)
12887       need_lib_prefix=no
12888       ;;
12889     motorola)
12890       need_lib_prefix=no
12891       need_version=no
12892       shlibpath_overrides_runpath=no
12893       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12894       ;;
12895   esac
12896   ;;
12897
12898 sysv4*MP*)
12899   if test -d /usr/nec ;then
12900     version_type=linux
12901     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12902     soname_spec='$libname${shared_ext}.$major'
12903     shlibpath_var=LD_LIBRARY_PATH
12904   fi
12905   ;;
12906
12907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12908   version_type=freebsd-elf
12909   need_lib_prefix=no
12910   need_version=no
12911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12912   soname_spec='${libname}${release}${shared_ext}$major'
12913   shlibpath_var=LD_LIBRARY_PATH
12914   hardcode_into_libs=yes
12915   if test "$with_gnu_ld" = yes; then
12916     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12917     shlibpath_overrides_runpath=no
12918   else
12919     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12920     shlibpath_overrides_runpath=yes
12921     case $host_os in
12922       sco3.2v5*)
12923         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12924         ;;
12925     esac
12926   fi
12927   sys_lib_dlsearch_path_spec='/usr/lib'
12928   ;;
12929
12930 uts4*)
12931   version_type=linux
12932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12933   soname_spec='${libname}${release}${shared_ext}$major'
12934   shlibpath_var=LD_LIBRARY_PATH
12935   ;;
12936
12937 *)
12938   dynamic_linker=no
12939   ;;
12940 esac
12941 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12942 echo "${ECHO_T}$dynamic_linker" >&6; }
12943 test "$dynamic_linker" = no && can_build_shared=no
12944
12945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12946 if test "$GCC" = yes; then
12947   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12948 fi
12949
12950 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12951 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12952 hardcode_action_CXX=
12953 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12954    test -n "$runpath_var_CXX" || \
12955    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12956
12957   # We can hardcode non-existant directories.
12958   if test "$hardcode_direct_CXX" != no &&
12959      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12960      # have to relink, otherwise we might link with an installed library
12961      # when we should be linking with a yet-to-be-installed one
12962      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12963      test "$hardcode_minus_L_CXX" != no; then
12964     # Linking always hardcodes the temporary library directory.
12965     hardcode_action_CXX=relink
12966   else
12967     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12968     hardcode_action_CXX=immediate
12969   fi
12970 else
12971   # We cannot hardcode anything, or else we can only hardcode existing
12972   # directories.
12973   hardcode_action_CXX=unsupported
12974 fi
12975 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12976 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12977
12978 if test "$hardcode_action_CXX" = relink; then
12979   # Fast installation is not supported
12980   enable_fast_install=no
12981 elif test "$shlibpath_overrides_runpath" = yes ||
12982      test "$enable_shared" = no; then
12983   # Fast installation is not necessary
12984   enable_fast_install=needless
12985 fi
12986
12987
12988 # The else clause should only fire when bootstrapping the
12989 # libtool distribution, otherwise you forgot to ship ltmain.sh
12990 # with your package, and you will get complaints that there are
12991 # no rules to generate ltmain.sh.
12992 if test -f "$ltmain"; then
12993   # See if we are running on zsh, and set the options which allow our commands through
12994   # without removal of \ escapes.
12995   if test -n "${ZSH_VERSION+set}" ; then
12996     setopt NO_GLOB_SUBST
12997   fi
12998   # Now quote all the things that may contain metacharacters while being
12999   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13000   # variables and quote the copies for generation of the libtool script.
13001   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13002     SED SHELL STRIP \
13003     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13004     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13005     deplibs_check_method reload_flag reload_cmds need_locks \
13006     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13007     lt_cv_sys_global_symbol_to_c_name_address \
13008     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13009     old_postinstall_cmds old_postuninstall_cmds \
13010     compiler_CXX \
13011     CC_CXX \
13012     LD_CXX \
13013     lt_prog_compiler_wl_CXX \
13014     lt_prog_compiler_pic_CXX \
13015     lt_prog_compiler_static_CXX \
13016     lt_prog_compiler_no_builtin_flag_CXX \
13017     export_dynamic_flag_spec_CXX \
13018     thread_safe_flag_spec_CXX \
13019     whole_archive_flag_spec_CXX \
13020     enable_shared_with_static_runtimes_CXX \
13021     old_archive_cmds_CXX \
13022     old_archive_from_new_cmds_CXX \
13023     predep_objects_CXX \
13024     postdep_objects_CXX \
13025     predeps_CXX \
13026     postdeps_CXX \
13027     compiler_lib_search_path_CXX \
13028     archive_cmds_CXX \
13029     archive_expsym_cmds_CXX \
13030     postinstall_cmds_CXX \
13031     postuninstall_cmds_CXX \
13032     old_archive_from_expsyms_cmds_CXX \
13033     allow_undefined_flag_CXX \
13034     no_undefined_flag_CXX \
13035     export_symbols_cmds_CXX \
13036     hardcode_libdir_flag_spec_CXX \
13037     hardcode_libdir_flag_spec_ld_CXX \
13038     hardcode_libdir_separator_CXX \
13039     hardcode_automatic_CXX \
13040     module_cmds_CXX \
13041     module_expsym_cmds_CXX \
13042     lt_cv_prog_compiler_c_o_CXX \
13043     exclude_expsyms_CXX \
13044     include_expsyms_CXX; do
13045
13046     case $var in
13047     old_archive_cmds_CXX | \
13048     old_archive_from_new_cmds_CXX | \
13049     archive_cmds_CXX | \
13050     archive_expsym_cmds_CXX | \
13051     module_cmds_CXX | \
13052     module_expsym_cmds_CXX | \
13053     old_archive_from_expsyms_cmds_CXX | \
13054     export_symbols_cmds_CXX | \
13055     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13056     postinstall_cmds | postuninstall_cmds | \
13057     old_postinstall_cmds | old_postuninstall_cmds | \
13058     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13059       # Double-quote double-evaled strings.
13060       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13061       ;;
13062     *)
13063       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13064       ;;
13065     esac
13066   done
13067
13068   case $lt_echo in
13069   *'\$0 --fallback-echo"')
13070     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13071     ;;
13072   esac
13073
13074 cfgfile="$ofile"
13075
13076   cat <<__EOF__ >> "$cfgfile"
13077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13078
13079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13080
13081 # Shell to use when invoking shell scripts.
13082 SHELL=$lt_SHELL
13083
13084 # Whether or not to build shared libraries.
13085 build_libtool_libs=$enable_shared
13086
13087 # Whether or not to build static libraries.
13088 build_old_libs=$enable_static
13089
13090 # Whether or not to add -lc for building shared libraries.
13091 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13092
13093 # Whether or not to disallow shared libs when runtime libs are static
13094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13095
13096 # Whether or not to optimize for fast installation.
13097 fast_install=$enable_fast_install
13098
13099 # The host system.
13100 host_alias=$host_alias
13101 host=$host
13102 host_os=$host_os
13103
13104 # The build system.
13105 build_alias=$build_alias
13106 build=$build
13107 build_os=$build_os
13108
13109 # An echo program that does not interpret backslashes.
13110 echo=$lt_echo
13111
13112 # The archiver.
13113 AR=$lt_AR
13114 AR_FLAGS=$lt_AR_FLAGS
13115
13116 # A C compiler.
13117 LTCC=$lt_LTCC
13118
13119 # LTCC compiler flags.
13120 LTCFLAGS=$lt_LTCFLAGS
13121
13122 # A language-specific compiler.
13123 CC=$lt_compiler_CXX
13124
13125 # Is the compiler the GNU C compiler?
13126 with_gcc=$GCC_CXX
13127
13128 # An ERE matcher.
13129 EGREP=$lt_EGREP
13130
13131 # The linker used to build libraries.
13132 LD=$lt_LD_CXX
13133
13134 # Whether we need hard or soft links.
13135 LN_S=$lt_LN_S
13136
13137 # A BSD-compatible nm program.
13138 NM=$lt_NM
13139
13140 # A symbol stripping program
13141 STRIP=$lt_STRIP
13142
13143 # Used to examine libraries when file_magic_cmd begins "file"
13144 MAGIC_CMD=$MAGIC_CMD
13145
13146 # Used on cygwin: DLL creation program.
13147 DLLTOOL="$DLLTOOL"
13148
13149 # Used on cygwin: object dumper.
13150 OBJDUMP="$OBJDUMP"
13151
13152 # Used on cygwin: assembler.
13153 AS="$AS"
13154
13155 # The name of the directory that contains temporary libtool files.
13156 objdir=$objdir
13157
13158 # How to create reloadable object files.
13159 reload_flag=$lt_reload_flag
13160 reload_cmds=$lt_reload_cmds
13161
13162 # How to pass a linker flag through the compiler.
13163 wl=$lt_lt_prog_compiler_wl_CXX
13164
13165 # Object file suffix (normally "o").
13166 objext="$ac_objext"
13167
13168 # Old archive suffix (normally "a").
13169 libext="$libext"
13170
13171 # Shared library suffix (normally ".so").
13172 shrext_cmds='$shrext_cmds'
13173
13174 # Executable file suffix (normally "").
13175 exeext="$exeext"
13176
13177 # Additional compiler flags for building library objects.
13178 pic_flag=$lt_lt_prog_compiler_pic_CXX
13179 pic_mode=$pic_mode
13180
13181 # What is the maximum length of a command?
13182 max_cmd_len=$lt_cv_sys_max_cmd_len
13183
13184 # Does compiler simultaneously support -c and -o options?
13185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13186
13187 # Must we lock files when doing compilation?
13188 need_locks=$lt_need_locks
13189
13190 # Do we need the lib prefix for modules?
13191 need_lib_prefix=$need_lib_prefix
13192
13193 # Do we need a version for libraries?
13194 need_version=$need_version
13195
13196 # Whether dlopen is supported.
13197 dlopen_support=$enable_dlopen
13198
13199 # Whether dlopen of programs is supported.
13200 dlopen_self=$enable_dlopen_self
13201
13202 # Whether dlopen of statically linked programs is supported.
13203 dlopen_self_static=$enable_dlopen_self_static
13204
13205 # Compiler flag to prevent dynamic linking.
13206 link_static_flag=$lt_lt_prog_compiler_static_CXX
13207
13208 # Compiler flag to turn off builtin functions.
13209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13210
13211 # Compiler flag to allow reflexive dlopens.
13212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13213
13214 # Compiler flag to generate shared objects directly from archives.
13215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13216
13217 # Compiler flag to generate thread-safe objects.
13218 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13219
13220 # Library versioning type.
13221 version_type=$version_type
13222
13223 # Format of library name prefix.
13224 libname_spec=$lt_libname_spec
13225
13226 # List of archive names.  First name is the real one, the rest are links.
13227 # The last name is the one that the linker finds with -lNAME.
13228 library_names_spec=$lt_library_names_spec
13229
13230 # The coded name of the library, if different from the real name.
13231 soname_spec=$lt_soname_spec
13232
13233 # Commands used to build and install an old-style archive.
13234 RANLIB=$lt_RANLIB
13235 old_archive_cmds=$lt_old_archive_cmds_CXX
13236 old_postinstall_cmds=$lt_old_postinstall_cmds
13237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13238
13239 # Create an old-style archive from a shared archive.
13240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13241
13242 # Create a temporary old-style archive to link instead of a shared archive.
13243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13244
13245 # Commands used to build and install a shared archive.
13246 archive_cmds=$lt_archive_cmds_CXX
13247 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13248 postinstall_cmds=$lt_postinstall_cmds
13249 postuninstall_cmds=$lt_postuninstall_cmds
13250
13251 # Commands used to build a loadable module (assumed same as above if empty)
13252 module_cmds=$lt_module_cmds_CXX
13253 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13254
13255 # Commands to strip libraries.
13256 old_striplib=$lt_old_striplib
13257 striplib=$lt_striplib
13258
13259 # Dependencies to place before the objects being linked to create a
13260 # shared library.
13261 predep_objects=$lt_predep_objects_CXX
13262
13263 # Dependencies to place after the objects being linked to create a
13264 # shared library.
13265 postdep_objects=$lt_postdep_objects_CXX
13266
13267 # Dependencies to place before the objects being linked to create a
13268 # shared library.
13269 predeps=$lt_predeps_CXX
13270
13271 # Dependencies to place after the objects being linked to create a
13272 # shared library.
13273 postdeps=$lt_postdeps_CXX
13274
13275 # The library search path used internally by the compiler when linking
13276 # a shared library.
13277 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13278
13279 # Method to check whether dependent libraries are shared objects.
13280 deplibs_check_method=$lt_deplibs_check_method
13281
13282 # Command to use when deplibs_check_method == file_magic.
13283 file_magic_cmd=$lt_file_magic_cmd
13284
13285 # Flag that allows shared libraries with undefined symbols to be built.
13286 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13287
13288 # Flag that forces no undefined symbols.
13289 no_undefined_flag=$lt_no_undefined_flag_CXX
13290
13291 # Commands used to finish a libtool library installation in a directory.
13292 finish_cmds=$lt_finish_cmds
13293
13294 # Same as above, but a single script fragment to be evaled but not shown.
13295 finish_eval=$lt_finish_eval
13296
13297 # Take the output of nm and produce a listing of raw symbols and C names.
13298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13299
13300 # Transform the output of nm in a proper C declaration
13301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13302
13303 # Transform the output of nm in a C name address pair
13304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13305
13306 # This is the shared library runtime path variable.
13307 runpath_var=$runpath_var
13308
13309 # This is the shared library path variable.
13310 shlibpath_var=$shlibpath_var
13311
13312 # Is shlibpath searched before the hard-coded library search path?
13313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13314
13315 # How to hardcode a shared library path into an executable.
13316 hardcode_action=$hardcode_action_CXX
13317
13318 # Whether we should hardcode library paths into libraries.
13319 hardcode_into_libs=$hardcode_into_libs
13320
13321 # Flag to hardcode \$libdir into a binary during linking.
13322 # This must work even if \$libdir does not exist.
13323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13324
13325 # If ld is used when linking, flag to hardcode \$libdir into
13326 # a binary during linking. This must work even if \$libdir does
13327 # not exist.
13328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13329
13330 # Whether we need a single -rpath flag with a separated argument.
13331 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13332
13333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13334 # resulting binary.
13335 hardcode_direct=$hardcode_direct_CXX
13336
13337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13338 # resulting binary.
13339 hardcode_minus_L=$hardcode_minus_L_CXX
13340
13341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13342 # the resulting binary.
13343 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13344
13345 # Set to yes if building a shared library automatically hardcodes DIR into the library
13346 # and all subsequent libraries and executables linked against it.
13347 hardcode_automatic=$hardcode_automatic_CXX
13348
13349 # Variables whose values should be saved in libtool wrapper scripts and
13350 # restored at relink time.
13351 variables_saved_for_relink="$variables_saved_for_relink"
13352
13353 # Whether libtool must link a program against all its dependency libraries.
13354 link_all_deplibs=$link_all_deplibs_CXX
13355
13356 # Compile-time system search path for libraries
13357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13358
13359 # Run-time system search path for libraries
13360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13361
13362 # Fix the shell variable \$srcfile for the compiler.
13363 fix_srcfile_path="$fix_srcfile_path_CXX"
13364
13365 # Set to yes if exported symbols are required.
13366 always_export_symbols=$always_export_symbols_CXX
13367
13368 # The commands to list exported symbols.
13369 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13370
13371 # The commands to extract the exported symbol list from a shared archive.
13372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13373
13374 # Symbols that should not be listed in the preloaded symbols.
13375 exclude_expsyms=$lt_exclude_expsyms_CXX
13376
13377 # Symbols that must always be exported.
13378 include_expsyms=$lt_include_expsyms_CXX
13379
13380 # ### END LIBTOOL TAG CONFIG: $tagname
13381
13382 __EOF__
13383
13384
13385 else
13386   # If there is no Makefile yet, we rely on a make rule to execute
13387   # `config.status --recheck' to rerun these tests and create the
13388   # libtool script then.
13389   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13390   if test -f "$ltmain_in"; then
13391     test -f Makefile && make "$ltmain"
13392   fi
13393 fi
13394
13395
13396 ac_ext=c
13397 ac_cpp='$CPP $CPPFLAGS'
13398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13401
13402 CC=$lt_save_CC
13403 LDCXX=$LD
13404 LD=$lt_save_LD
13405 GCC=$lt_save_GCC
13406 with_gnu_ldcxx=$with_gnu_ld
13407 with_gnu_ld=$lt_save_with_gnu_ld
13408 lt_cv_path_LDCXX=$lt_cv_path_LD
13409 lt_cv_path_LD=$lt_save_path_LD
13410 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13411 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13412
13413         else
13414           tagname=""
13415         fi
13416         ;;
13417
13418       F77)
13419         if test -n "$F77" && test "X$F77" != "Xno"; then
13420
13421 ac_ext=f
13422 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13423 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13424 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13425
13426
13427 archive_cmds_need_lc_F77=no
13428 allow_undefined_flag_F77=
13429 always_export_symbols_F77=no
13430 archive_expsym_cmds_F77=
13431 export_dynamic_flag_spec_F77=
13432 hardcode_direct_F77=no
13433 hardcode_libdir_flag_spec_F77=
13434 hardcode_libdir_flag_spec_ld_F77=
13435 hardcode_libdir_separator_F77=
13436 hardcode_minus_L_F77=no
13437 hardcode_automatic_F77=no
13438 module_cmds_F77=
13439 module_expsym_cmds_F77=
13440 link_all_deplibs_F77=unknown
13441 old_archive_cmds_F77=$old_archive_cmds
13442 no_undefined_flag_F77=
13443 whole_archive_flag_spec_F77=
13444 enable_shared_with_static_runtimes_F77=no
13445
13446 # Source file extension for f77 test sources.
13447 ac_ext=f
13448
13449 # Object file extension for compiled f77 test sources.
13450 objext=o
13451 objext_F77=$objext
13452
13453 # Code to be used in simple compile tests
13454 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13455
13456 # Code to be used in simple link tests
13457 lt_simple_link_test_code="      program t\n      end\n"
13458
13459 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13460
13461 # If no C compiler was specified, use CC.
13462 LTCC=${LTCC-"$CC"}
13463
13464 # If no C compiler flags were specified, use CFLAGS.
13465 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13466
13467 # Allow CC to be a program name with arguments.
13468 compiler=$CC
13469
13470
13471 # save warnings/boilerplate of simple test code
13472 ac_outfile=conftest.$ac_objext
13473 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13474 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13475 _lt_compiler_boilerplate=`cat conftest.err`
13476 $rm conftest*
13477
13478 ac_outfile=conftest.$ac_objext
13479 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13480 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13481 _lt_linker_boilerplate=`cat conftest.err`
13482 $rm conftest*
13483
13484
13485 # Allow CC to be a program name with arguments.
13486 lt_save_CC="$CC"
13487 CC=${F77-"f77"}
13488 compiler=$CC
13489 compiler_F77=$CC
13490 for cc_temp in $compiler""; do
13491   case $cc_temp in
13492     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13493     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13494     \-*) ;;
13495     *) break;;
13496   esac
13497 done
13498 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13499
13500
13501 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13502 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13503 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13504 echo "${ECHO_T}$can_build_shared" >&6; }
13505
13506 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13507 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13508 test "$can_build_shared" = "no" && enable_shared=no
13509
13510 # On AIX, shared libraries and static libraries use the same namespace, and
13511 # are all built from PIC.
13512 case $host_os in
13513 aix3*)
13514   test "$enable_shared" = yes && enable_static=no
13515   if test -n "$RANLIB"; then
13516     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13517     postinstall_cmds='$RANLIB $lib'
13518   fi
13519   ;;
13520 aix4* | aix5*)
13521   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13522     test "$enable_shared" = yes && enable_static=no
13523   fi
13524   ;;
13525 esac
13526 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13527 echo "${ECHO_T}$enable_shared" >&6; }
13528
13529 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13530 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13531 # Make sure either enable_shared or enable_static is yes.
13532 test "$enable_shared" = yes || enable_static=yes
13533 { echo "$as_me:$LINENO: result: $enable_static" >&5
13534 echo "${ECHO_T}$enable_static" >&6; }
13535
13536 GCC_F77="$G77"
13537 LD_F77="$LD"
13538
13539 lt_prog_compiler_wl_F77=
13540 lt_prog_compiler_pic_F77=
13541 lt_prog_compiler_static_F77=
13542
13543 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13544 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13545
13546   if test "$GCC" = yes; then
13547     lt_prog_compiler_wl_F77='-Wl,'
13548     lt_prog_compiler_static_F77='-static'
13549
13550     case $host_os in
13551       aix*)
13552       # All AIX code is PIC.
13553       if test "$host_cpu" = ia64; then
13554         # AIX 5 now supports IA64 processor
13555         lt_prog_compiler_static_F77='-Bstatic'
13556       fi
13557       ;;
13558
13559     amigaos*)
13560       # FIXME: we need at least 68020 code to build shared libraries, but
13561       # adding the `-m68020' flag to GCC prevents building anything better,
13562       # like `-m68040'.
13563       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13564       ;;
13565
13566     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13567       # PIC is the default for these OSes.
13568       ;;
13569
13570     mingw* | pw32* | os2*)
13571       # This hack is so that the source file can tell whether it is being
13572       # built for inclusion in a dll (and should export symbols for example).
13573       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13574       ;;
13575
13576     darwin* | rhapsody*)
13577       # PIC is the default on this platform
13578       # Common symbols not allowed in MH_DYLIB files
13579       lt_prog_compiler_pic_F77='-fno-common'
13580       ;;
13581
13582     interix3*)
13583       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13584       # Instead, we relocate shared libraries at runtime.
13585       ;;
13586
13587     msdosdjgpp*)
13588       # Just because we use GCC doesn't mean we suddenly get shared libraries
13589       # on systems that don't support them.
13590       lt_prog_compiler_can_build_shared_F77=no
13591       enable_shared=no
13592       ;;
13593
13594     sysv4*MP*)
13595       if test -d /usr/nec; then
13596         lt_prog_compiler_pic_F77=-Kconform_pic
13597       fi
13598       ;;
13599
13600     hpux*)
13601       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13602       # not for PA HP-UX.
13603       case $host_cpu in
13604       hppa*64*|ia64*)
13605         # +Z the default
13606         ;;
13607       *)
13608         lt_prog_compiler_pic_F77='-fPIC'
13609         ;;
13610       esac
13611       ;;
13612
13613     *)
13614       lt_prog_compiler_pic_F77='-fPIC'
13615       ;;
13616     esac
13617   else
13618     # PORTME Check for flag to pass linker flags through the system compiler.
13619     case $host_os in
13620     aix*)
13621       lt_prog_compiler_wl_F77='-Wl,'
13622       if test "$host_cpu" = ia64; then
13623         # AIX 5 now supports IA64 processor
13624         lt_prog_compiler_static_F77='-Bstatic'
13625       else
13626         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13627       fi
13628       ;;
13629       darwin*)
13630         # PIC is the default on this platform
13631         # Common symbols not allowed in MH_DYLIB files
13632        case $cc_basename in
13633          xlc*)
13634          lt_prog_compiler_pic_F77='-qnocommon'
13635          lt_prog_compiler_wl_F77='-Wl,'
13636          ;;
13637        esac
13638        ;;
13639
13640     mingw* | pw32* | os2*)
13641       # This hack is so that the source file can tell whether it is being
13642       # built for inclusion in a dll (and should export symbols for example).
13643       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13644       ;;
13645
13646     hpux9* | hpux10* | hpux11*)
13647       lt_prog_compiler_wl_F77='-Wl,'
13648       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13649       # not for PA HP-UX.
13650       case $host_cpu in
13651       hppa*64*|ia64*)
13652         # +Z the default
13653         ;;
13654       *)
13655         lt_prog_compiler_pic_F77='+Z'
13656         ;;
13657       esac
13658       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13659       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13660       ;;
13661
13662     irix5* | irix6* | nonstopux*)
13663       lt_prog_compiler_wl_F77='-Wl,'
13664       # PIC (with -KPIC) is the default.
13665       lt_prog_compiler_static_F77='-non_shared'
13666       ;;
13667
13668     newsos6)
13669       lt_prog_compiler_pic_F77='-KPIC'
13670       lt_prog_compiler_static_F77='-Bstatic'
13671       ;;
13672
13673     linux*)
13674       case $cc_basename in
13675       icc* | ecc*)
13676         lt_prog_compiler_wl_F77='-Wl,'
13677         lt_prog_compiler_pic_F77='-KPIC'
13678         lt_prog_compiler_static_F77='-static'
13679         ;;
13680       pgcc* | pgf77* | pgf90* | pgf95*)
13681         # Portland Group compilers (*not* the Pentium gcc compiler,
13682         # which looks to be a dead project)
13683         lt_prog_compiler_wl_F77='-Wl,'
13684         lt_prog_compiler_pic_F77='-fpic'
13685         lt_prog_compiler_static_F77='-Bstatic'
13686         ;;
13687       ccc*)
13688         lt_prog_compiler_wl_F77='-Wl,'
13689         # All Alpha code is PIC.
13690         lt_prog_compiler_static_F77='-non_shared'
13691         ;;
13692       esac
13693       ;;
13694
13695     osf3* | osf4* | osf5*)
13696       lt_prog_compiler_wl_F77='-Wl,'
13697       # All OSF/1 code is PIC.
13698       lt_prog_compiler_static_F77='-non_shared'
13699       ;;
13700
13701     solaris*)
13702       lt_prog_compiler_pic_F77='-KPIC'
13703       lt_prog_compiler_static_F77='-Bstatic'
13704       case $cc_basename in
13705       f77* | f90* | f95*)
13706         lt_prog_compiler_wl_F77='-Qoption ld ';;
13707       *)
13708         lt_prog_compiler_wl_F77='-Wl,';;
13709       esac
13710       ;;
13711
13712     sunos4*)
13713       lt_prog_compiler_wl_F77='-Qoption ld '
13714       lt_prog_compiler_pic_F77='-PIC'
13715       lt_prog_compiler_static_F77='-Bstatic'
13716       ;;
13717
13718     sysv4 | sysv4.2uw2* | sysv4.3*)
13719       lt_prog_compiler_wl_F77='-Wl,'
13720       lt_prog_compiler_pic_F77='-KPIC'
13721       lt_prog_compiler_static_F77='-Bstatic'
13722       ;;
13723
13724     sysv4*MP*)
13725       if test -d /usr/nec ;then
13726         lt_prog_compiler_pic_F77='-Kconform_pic'
13727         lt_prog_compiler_static_F77='-Bstatic'
13728       fi
13729       ;;
13730
13731     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13732       lt_prog_compiler_wl_F77='-Wl,'
13733       lt_prog_compiler_pic_F77='-KPIC'
13734       lt_prog_compiler_static_F77='-Bstatic'
13735       ;;
13736
13737     unicos*)
13738       lt_prog_compiler_wl_F77='-Wl,'
13739       lt_prog_compiler_can_build_shared_F77=no
13740       ;;
13741
13742     uts4*)
13743       lt_prog_compiler_pic_F77='-pic'
13744       lt_prog_compiler_static_F77='-Bstatic'
13745       ;;
13746
13747     *)
13748       lt_prog_compiler_can_build_shared_F77=no
13749       ;;
13750     esac
13751   fi
13752
13753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13754 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13755
13756 #
13757 # Check to make sure the PIC flag actually works.
13758 #
13759 if test -n "$lt_prog_compiler_pic_F77"; then
13760
13761 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13763 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13764   echo $ECHO_N "(cached) $ECHO_C" >&6
13765 else
13766   lt_prog_compiler_pic_works_F77=no
13767   ac_outfile=conftest.$ac_objext
13768    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13769    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13770    # Insert the option either (1) after the last *FLAGS variable, or
13771    # (2) before a word containing "conftest.", or (3) at the end.
13772    # Note that $ac_compile itself does not contain backslashes and begins
13773    # with a dollar sign (not a hyphen), so the echo should work correctly.
13774    # The option is referenced via a variable to avoid confusing sed.
13775    lt_compile=`echo "$ac_compile" | $SED \
13776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13778    -e 's:$: $lt_compiler_flag:'`
13779    (eval echo "\"\$as_me:13779: $lt_compile\"" >&5)
13780    (eval "$lt_compile" 2>conftest.err)
13781    ac_status=$?
13782    cat conftest.err >&5
13783    echo "$as_me:13783: \$? = $ac_status" >&5
13784    if (exit $ac_status) && test -s "$ac_outfile"; then
13785      # The compiler can only warn and ignore the option if not recognized
13786      # So say no if there are warnings other than the usual output.
13787      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13788      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13789      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13790        lt_prog_compiler_pic_works_F77=yes
13791      fi
13792    fi
13793    $rm conftest*
13794
13795 fi
13796 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13797 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13798
13799 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13800     case $lt_prog_compiler_pic_F77 in
13801      "" | " "*) ;;
13802      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13803      esac
13804 else
13805     lt_prog_compiler_pic_F77=
13806      lt_prog_compiler_can_build_shared_F77=no
13807 fi
13808
13809 fi
13810 case $host_os in
13811   # For platforms which do not support PIC, -DPIC is meaningless:
13812   *djgpp*)
13813     lt_prog_compiler_pic_F77=
13814     ;;
13815   *)
13816     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13817     ;;
13818 esac
13819
13820 #
13821 # Check to make sure the static flag actually works.
13822 #
13823 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13824 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13825 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13826 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   lt_prog_compiler_static_works_F77=no
13830    save_LDFLAGS="$LDFLAGS"
13831    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13832    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13833    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13834      # The linker can only warn and ignore the option if not recognized
13835      # So say no if there are warnings
13836      if test -s conftest.err; then
13837        # Append any errors to the config.log.
13838        cat conftest.err 1>&5
13839        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13840        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13841        if diff conftest.exp conftest.er2 >/dev/null; then
13842          lt_prog_compiler_static_works_F77=yes
13843        fi
13844      else
13845        lt_prog_compiler_static_works_F77=yes
13846      fi
13847    fi
13848    $rm conftest*
13849    LDFLAGS="$save_LDFLAGS"
13850
13851 fi
13852 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13853 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13854
13855 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13856     :
13857 else
13858     lt_prog_compiler_static_F77=
13859 fi
13860
13861
13862 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13864 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13865   echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867   lt_cv_prog_compiler_c_o_F77=no
13868    $rm -r conftest 2>/dev/null
13869    mkdir conftest
13870    cd conftest
13871    mkdir out
13872    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13873
13874    lt_compiler_flag="-o out/conftest2.$ac_objext"
13875    # Insert the option either (1) after the last *FLAGS variable, or
13876    # (2) before a word containing "conftest.", or (3) at the end.
13877    # Note that $ac_compile itself does not contain backslashes and begins
13878    # with a dollar sign (not a hyphen), so the echo should work correctly.
13879    lt_compile=`echo "$ac_compile" | $SED \
13880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13882    -e 's:$: $lt_compiler_flag:'`
13883    (eval echo "\"\$as_me:13883: $lt_compile\"" >&5)
13884    (eval "$lt_compile" 2>out/conftest.err)
13885    ac_status=$?
13886    cat out/conftest.err >&5
13887    echo "$as_me:13887: \$? = $ac_status" >&5
13888    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13889    then
13890      # The compiler can only warn and ignore the option if not recognized
13891      # So say no if there are warnings
13892      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13893      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13894      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13895        lt_cv_prog_compiler_c_o_F77=yes
13896      fi
13897    fi
13898    chmod u+w . 2>&5
13899    $rm conftest*
13900    # SGI C++ compiler will create directory out/ii_files/ for
13901    # template instantiation
13902    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13903    $rm out/* && rmdir out
13904    cd ..
13905    rmdir conftest
13906    $rm conftest*
13907
13908 fi
13909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13911
13912
13913 hard_links="nottested"
13914 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13915   # do not overwrite the value of need_locks provided by the user
13916   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13917 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13918   hard_links=yes
13919   $rm conftest*
13920   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13921   touch conftest.a
13922   ln conftest.a conftest.b 2>&5 || hard_links=no
13923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13924   { echo "$as_me:$LINENO: result: $hard_links" >&5
13925 echo "${ECHO_T}$hard_links" >&6; }
13926   if test "$hard_links" = no; then
13927     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13928 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13929     need_locks=warn
13930   fi
13931 else
13932   need_locks=no
13933 fi
13934
13935 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13936 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13937
13938   runpath_var=
13939   allow_undefined_flag_F77=
13940   enable_shared_with_static_runtimes_F77=no
13941   archive_cmds_F77=
13942   archive_expsym_cmds_F77=
13943   old_archive_From_new_cmds_F77=
13944   old_archive_from_expsyms_cmds_F77=
13945   export_dynamic_flag_spec_F77=
13946   whole_archive_flag_spec_F77=
13947   thread_safe_flag_spec_F77=
13948   hardcode_libdir_flag_spec_F77=
13949   hardcode_libdir_flag_spec_ld_F77=
13950   hardcode_libdir_separator_F77=
13951   hardcode_direct_F77=no
13952   hardcode_minus_L_F77=no
13953   hardcode_shlibpath_var_F77=unsupported
13954   link_all_deplibs_F77=unknown
13955   hardcode_automatic_F77=no
13956   module_cmds_F77=
13957   module_expsym_cmds_F77=
13958   always_export_symbols_F77=no
13959   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13960   # include_expsyms should be a list of space-separated symbols to be *always*
13961   # included in the symbol list
13962   include_expsyms_F77=
13963   # exclude_expsyms can be an extended regexp of symbols to exclude
13964   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13965   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13966   # as well as any symbol that contains `d'.
13967   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13968   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13969   # platforms (ab)use it in PIC code, but their linkers get confused if
13970   # the symbol is explicitly referenced.  Since portable code cannot
13971   # rely on this symbol name, it's probably fine to never include it in
13972   # preloaded symbol tables.
13973   extract_expsyms_cmds=
13974   # Just being paranoid about ensuring that cc_basename is set.
13975   for cc_temp in $compiler""; do
13976   case $cc_temp in
13977     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13978     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13979     \-*) ;;
13980     *) break;;
13981   esac
13982 done
13983 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13984
13985   case $host_os in
13986   cygwin* | mingw* | pw32*)
13987     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13988     # When not using gcc, we currently assume that we are using
13989     # Microsoft Visual C++.
13990     if test "$GCC" != yes; then
13991       with_gnu_ld=no
13992     fi
13993     ;;
13994   interix*)
13995     # we just hope/assume this is gcc and not c89 (= MSVC++)
13996     with_gnu_ld=yes
13997     ;;
13998   openbsd*)
13999     with_gnu_ld=no
14000     ;;
14001   esac
14002
14003   ld_shlibs_F77=yes
14004   if test "$with_gnu_ld" = yes; then
14005     # If archive_cmds runs LD, not CC, wlarc should be empty
14006     wlarc='${wl}'
14007
14008     # Set some defaults for GNU ld with shared library support. These
14009     # are reset later if shared libraries are not supported. Putting them
14010     # here allows them to be overridden if necessary.
14011     runpath_var=LD_RUN_PATH
14012     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14013     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14014     # ancient GNU ld didn't support --whole-archive et. al.
14015     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14016         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14017       else
14018         whole_archive_flag_spec_F77=
14019     fi
14020     supports_anon_versioning=no
14021     case `$LD -v 2>/dev/null` in
14022       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14023       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14024       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14025       *\ 2.11.*) ;; # other 2.11 versions
14026       *) supports_anon_versioning=yes ;;
14027     esac
14028
14029     # See if GNU ld supports shared libraries.
14030     case $host_os in
14031     aix3* | aix4* | aix5*)
14032       # On AIX/PPC, the GNU linker is very broken
14033       if test "$host_cpu" != ia64; then
14034         ld_shlibs_F77=no
14035         cat <<EOF 1>&2
14036
14037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14038 *** to be unable to reliably create shared libraries on AIX.
14039 *** Therefore, libtool is disabling shared libraries support.  If you
14040 *** really care for shared libraries, you may want to modify your PATH
14041 *** so that a non-GNU linker is found, and then restart.
14042
14043 EOF
14044       fi
14045       ;;
14046
14047     amigaos*)
14048       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)'
14049       hardcode_libdir_flag_spec_F77='-L$libdir'
14050       hardcode_minus_L_F77=yes
14051
14052       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14053       # that the semantics of dynamic libraries on AmigaOS, at least up
14054       # to version 4, is to share data among multiple programs linked
14055       # with the same dynamic library.  Since this doesn't match the
14056       # behavior of shared libraries on other platforms, we can't use
14057       # them.
14058       ld_shlibs_F77=no
14059       ;;
14060
14061     beos*)
14062       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14063         allow_undefined_flag_F77=unsupported
14064         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14065         # support --undefined.  This deserves some investigation.  FIXME
14066         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067       else
14068         ld_shlibs_F77=no
14069       fi
14070       ;;
14071
14072     cygwin* | mingw* | pw32*)
14073       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14074       # as there is no search path for DLLs.
14075       hardcode_libdir_flag_spec_F77='-L$libdir'
14076       allow_undefined_flag_F77=unsupported
14077       always_export_symbols_F77=no
14078       enable_shared_with_static_runtimes_F77=yes
14079       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14080
14081       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14082         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14083         # If the export-symbols file already is a .def file (1st line
14084         # is EXPORTS), use it as is; otherwise, prepend...
14085         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14086           cp $export_symbols $output_objdir/$soname.def;
14087         else
14088           echo EXPORTS > $output_objdir/$soname.def;
14089           cat $export_symbols >> $output_objdir/$soname.def;
14090         fi~
14091         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14092       else
14093         ld_shlibs_F77=no
14094       fi
14095       ;;
14096
14097     interix3*)
14098       hardcode_direct_F77=no
14099       hardcode_shlibpath_var_F77=no
14100       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14101       export_dynamic_flag_spec_F77='${wl}-E'
14102       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14103       # Instead, shared libraries are loaded at an image base (0x10000000 by
14104       # default) and relocated if they conflict, which is a slow very memory
14105       # consuming and fragmenting process.  To avoid this, we pick a random,
14106       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14107       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14108       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'
14109       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'
14110       ;;
14111
14112     linux*)
14113       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14114         tmp_addflag=
14115         case $cc_basename,$host_cpu in
14116         pgcc*)                          # Portland Group C compiler
14117           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'
14118           tmp_addflag=' $pic_flag'
14119           ;;
14120         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14121           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'
14122           tmp_addflag=' $pic_flag -Mnomain' ;;
14123         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14124           tmp_addflag=' -i_dynamic' ;;
14125         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14126           tmp_addflag=' -i_dynamic -nofor_main' ;;
14127         ifc* | ifort*)                  # Intel Fortran compiler
14128           tmp_addflag=' -nofor_main' ;;
14129         esac
14130         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14131
14132         if test $supports_anon_versioning = yes; then
14133           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14134   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14135   $echo "local: *; };" >> $output_objdir/$libname.ver~
14136           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14137         fi
14138       else
14139         ld_shlibs_F77=no
14140       fi
14141       ;;
14142
14143     netbsd*)
14144       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14145         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14146         wlarc=
14147       else
14148         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14150       fi
14151       ;;
14152
14153     solaris*)
14154       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14155         ld_shlibs_F77=no
14156         cat <<EOF 1>&2
14157
14158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14159 *** create shared libraries on Solaris systems.  Therefore, libtool
14160 *** is disabling shared libraries support.  We urge you to upgrade GNU
14161 *** binutils to release 2.9.1 or newer.  Another option is to modify
14162 *** your PATH or compiler configuration so that the native linker is
14163 *** used, and then restart.
14164
14165 EOF
14166       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14167         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14169       else
14170         ld_shlibs_F77=no
14171       fi
14172       ;;
14173
14174     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14175       case `$LD -v 2>&1` in
14176         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14177         ld_shlibs_F77=no
14178         cat <<_LT_EOF 1>&2
14179
14180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14181 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14182 *** is disabling shared libraries support.  We urge you to upgrade GNU
14183 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14184 *** your PATH or compiler configuration so that the native linker is
14185 *** used, and then restart.
14186
14187 _LT_EOF
14188         ;;
14189         *)
14190           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14191             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14192             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14193             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14194           else
14195             ld_shlibs_F77=no
14196           fi
14197         ;;
14198       esac
14199       ;;
14200
14201     sunos4*)
14202       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14203       wlarc=
14204       hardcode_direct_F77=yes
14205       hardcode_shlibpath_var_F77=no
14206       ;;
14207
14208     *)
14209       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14210         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14211         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14212       else
14213         ld_shlibs_F77=no
14214       fi
14215       ;;
14216     esac
14217
14218     if test "$ld_shlibs_F77" = no; then
14219       runpath_var=
14220       hardcode_libdir_flag_spec_F77=
14221       export_dynamic_flag_spec_F77=
14222       whole_archive_flag_spec_F77=
14223     fi
14224   else
14225     # PORTME fill in a description of your system's linker (not GNU ld)
14226     case $host_os in
14227     aix3*)
14228       allow_undefined_flag_F77=unsupported
14229       always_export_symbols_F77=yes
14230       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'
14231       # Note: this linker hardcodes the directories in LIBPATH if there
14232       # are no directories specified by -L.
14233       hardcode_minus_L_F77=yes
14234       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14235         # Neither direct hardcoding nor static linking is supported with a
14236         # broken collect2.
14237         hardcode_direct_F77=unsupported
14238       fi
14239       ;;
14240
14241     aix4* | aix5*)
14242       if test "$host_cpu" = ia64; then
14243         # On IA64, the linker does run time linking by default, so we don't
14244         # have to do anything special.
14245         aix_use_runtimelinking=no
14246         exp_sym_flag='-Bexport'
14247         no_entry_flag=""
14248       else
14249         # If we're using GNU nm, then we don't want the "-C" option.
14250         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14251         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14252           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'
14253         else
14254           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'
14255         fi
14256         aix_use_runtimelinking=no
14257
14258         # Test if we are trying to use run time linking or normal
14259         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14260         # need to do runtime linking.
14261         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14262           for ld_flag in $LDFLAGS; do
14263           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14264             aix_use_runtimelinking=yes
14265             break
14266           fi
14267           done
14268           ;;
14269         esac
14270
14271         exp_sym_flag='-bexport'
14272         no_entry_flag='-bnoentry'
14273       fi
14274
14275       # When large executables or shared objects are built, AIX ld can
14276       # have problems creating the table of contents.  If linking a library
14277       # or program results in "error TOC overflow" add -mminimal-toc to
14278       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14279       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14280
14281       archive_cmds_F77=''
14282       hardcode_direct_F77=yes
14283       hardcode_libdir_separator_F77=':'
14284       link_all_deplibs_F77=yes
14285
14286       if test "$GCC" = yes; then
14287         case $host_os in aix4.[012]|aix4.[012].*)
14288         # We only want to do this on AIX 4.2 and lower, the check
14289         # below for broken collect2 doesn't work under 4.3+
14290           collect2name=`${CC} -print-prog-name=collect2`
14291           if test -f "$collect2name" && \
14292            strings "$collect2name" | grep resolve_lib_name >/dev/null
14293           then
14294           # We have reworked collect2
14295           hardcode_direct_F77=yes
14296           else
14297           # We have old collect2
14298           hardcode_direct_F77=unsupported
14299           # It fails to find uninstalled libraries when the uninstalled
14300           # path is not listed in the libpath.  Setting hardcode_minus_L
14301           # to unsupported forces relinking
14302           hardcode_minus_L_F77=yes
14303           hardcode_libdir_flag_spec_F77='-L$libdir'
14304           hardcode_libdir_separator_F77=
14305           fi
14306           ;;
14307         esac
14308         shared_flag='-shared'
14309         if test "$aix_use_runtimelinking" = yes; then
14310           shared_flag="$shared_flag "'${wl}-G'
14311         fi
14312       else
14313         # not using gcc
14314         if test "$host_cpu" = ia64; then
14315         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14316         # chokes on -Wl,-G. The following line is correct:
14317           shared_flag='-G'
14318         else
14319           if test "$aix_use_runtimelinking" = yes; then
14320             shared_flag='${wl}-G'
14321           else
14322             shared_flag='${wl}-bM:SRE'
14323           fi
14324         fi
14325       fi
14326
14327       # It seems that -bexpall does not export symbols beginning with
14328       # underscore (_), so it is better to generate a list of symbols to export.
14329       always_export_symbols_F77=yes
14330       if test "$aix_use_runtimelinking" = yes; then
14331         # Warning - without using the other runtime loading flags (-brtl),
14332         # -berok will link without error, but may produce a broken library.
14333         allow_undefined_flag_F77='-berok'
14334        # Determine the default libpath from the value encoded in an empty executable.
14335        cat >conftest.$ac_ext <<_ACEOF
14336       program main
14337
14338       end
14339 _ACEOF
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (ac_try="$ac_link"
14342 case "(($ac_try" in
14343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344   *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347   (eval "$ac_link") 2>conftest.er1
14348   ac_status=$?
14349   grep -v '^ *+' conftest.er1 >conftest.err
14350   rm -f conftest.er1
14351   cat conftest.err >&5
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); } && {
14354          test -z "$ac_f77_werror_flag" ||
14355          test ! -s conftest.err
14356        } && test -s conftest$ac_exeext &&
14357        $as_test_x conftest$ac_exeext; then
14358
14359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14360 }'`
14361 # Check for a 64-bit object if we didn't find anything.
14362 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; }
14363 }'`; fi
14364 else
14365   echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14367
14368
14369 fi
14370
14371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14372       conftest$ac_exeext conftest.$ac_ext
14373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14374
14375        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14376         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"
14377        else
14378         if test "$host_cpu" = ia64; then
14379           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14380           allow_undefined_flag_F77="-z nodefs"
14381           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"
14382         else
14383          # Determine the default libpath from the value encoded in an empty executable.
14384          cat >conftest.$ac_ext <<_ACEOF
14385       program main
14386
14387       end
14388 _ACEOF
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393   *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396   (eval "$ac_link") 2>conftest.er1
14397   ac_status=$?
14398   grep -v '^ *+' conftest.er1 >conftest.err
14399   rm -f conftest.er1
14400   cat conftest.err >&5
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } && {
14403          test -z "$ac_f77_werror_flag" ||
14404          test ! -s conftest.err
14405        } && test -s conftest$ac_exeext &&
14406        $as_test_x conftest$ac_exeext; then
14407
14408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14409 }'`
14410 # Check for a 64-bit object if we didn't find anything.
14411 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; }
14412 }'`; fi
14413 else
14414   echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417
14418 fi
14419
14420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421       conftest$ac_exeext conftest.$ac_ext
14422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14423
14424          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14425           # Warning - without using the other run time loading flags,
14426           # -berok will link without error, but may produce a broken library.
14427           no_undefined_flag_F77=' ${wl}-bernotok'
14428           allow_undefined_flag_F77=' ${wl}-berok'
14429           # Exported symbols can be pulled into shared objects from archives
14430           whole_archive_flag_spec_F77='$convenience'
14431           archive_cmds_need_lc_F77=yes
14432           # This is similar to how AIX traditionally builds its shared libraries.
14433           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'
14434         fi
14435       fi
14436       ;;
14437
14438     amigaos*)
14439       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)'
14440       hardcode_libdir_flag_spec_F77='-L$libdir'
14441       hardcode_minus_L_F77=yes
14442       # see comment about different semantics on the GNU ld section
14443       ld_shlibs_F77=no
14444       ;;
14445
14446     bsdi[45]*)
14447       export_dynamic_flag_spec_F77=-rdynamic
14448       ;;
14449
14450     cygwin* | mingw* | pw32*)
14451       # When not using gcc, we currently assume that we are using
14452       # Microsoft Visual C++.
14453       # hardcode_libdir_flag_spec is actually meaningless, as there is
14454       # no search path for DLLs.
14455       hardcode_libdir_flag_spec_F77=' '
14456       allow_undefined_flag_F77=unsupported
14457       # Tell ltmain to make .lib files, not .a files.
14458       libext=lib
14459       # Tell ltmain to make .dll files, not .so files.
14460       shrext_cmds=".dll"
14461       # FIXME: Setting linknames here is a bad hack.
14462       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14463       # The linker will automatically build a .lib file if we build a DLL.
14464       old_archive_From_new_cmds_F77='true'
14465       # FIXME: Should let the user specify the lib program.
14466       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14467       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14468       enable_shared_with_static_runtimes_F77=yes
14469       ;;
14470
14471     darwin* | rhapsody*)
14472       case $host_os in
14473         rhapsody* | darwin1.[012])
14474          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14475          ;;
14476        *) # Darwin 1.3 on
14477          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14478            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14479          else
14480            case ${MACOSX_DEPLOYMENT_TARGET} in
14481              10.[012])
14482                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14483                ;;
14484              10.*)
14485                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14486                ;;
14487            esac
14488          fi
14489          ;;
14490       esac
14491       archive_cmds_need_lc_F77=no
14492       hardcode_direct_F77=no
14493       hardcode_automatic_F77=yes
14494       hardcode_shlibpath_var_F77=unsupported
14495       whole_archive_flag_spec_F77=''
14496       link_all_deplibs_F77=yes
14497     if test "$GCC" = yes ; then
14498         output_verbose_link_cmd='echo'
14499         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14500       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14501       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14502       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}'
14503       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}'
14504     else
14505       case $cc_basename in
14506         xlc*)
14507          output_verbose_link_cmd='echo'
14508          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14509          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14510           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14511          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}'
14512           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}'
14513           ;;
14514        *)
14515          ld_shlibs_F77=no
14516           ;;
14517       esac
14518     fi
14519       ;;
14520
14521     dgux*)
14522       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523       hardcode_libdir_flag_spec_F77='-L$libdir'
14524       hardcode_shlibpath_var_F77=no
14525       ;;
14526
14527     freebsd1*)
14528       ld_shlibs_F77=no
14529       ;;
14530
14531     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14532     # support.  Future versions do this automatically, but an explicit c++rt0.o
14533     # does not break anything, and helps significantly (at the cost of a little
14534     # extra space).
14535     freebsd2.2*)
14536       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14537       hardcode_libdir_flag_spec_F77='-R$libdir'
14538       hardcode_direct_F77=yes
14539       hardcode_shlibpath_var_F77=no
14540       ;;
14541
14542     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14543     freebsd2*)
14544       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14545       hardcode_direct_F77=yes
14546       hardcode_minus_L_F77=yes
14547       hardcode_shlibpath_var_F77=no
14548       ;;
14549
14550     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14551     freebsd* | kfreebsd*-gnu | dragonfly*)
14552       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14553       hardcode_libdir_flag_spec_F77='-R$libdir'
14554       hardcode_direct_F77=yes
14555       hardcode_shlibpath_var_F77=no
14556       ;;
14557
14558     hpux9*)
14559       if test "$GCC" = yes; then
14560         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'
14561       else
14562         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'
14563       fi
14564       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14565       hardcode_libdir_separator_F77=:
14566       hardcode_direct_F77=yes
14567
14568       # hardcode_minus_L: Not really in the search PATH,
14569       # but as the default location of the library.
14570       hardcode_minus_L_F77=yes
14571       export_dynamic_flag_spec_F77='${wl}-E'
14572       ;;
14573
14574     hpux10*)
14575       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14576         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14577       else
14578         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14579       fi
14580       if test "$with_gnu_ld" = no; then
14581         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14582         hardcode_libdir_separator_F77=:
14583
14584         hardcode_direct_F77=yes
14585         export_dynamic_flag_spec_F77='${wl}-E'
14586
14587         # hardcode_minus_L: Not really in the search PATH,
14588         # but as the default location of the library.
14589         hardcode_minus_L_F77=yes
14590       fi
14591       ;;
14592
14593     hpux11*)
14594       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14595         case $host_cpu in
14596         hppa*64*)
14597           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14598           ;;
14599         ia64*)
14600           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14601           ;;
14602         *)
14603           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14604           ;;
14605         esac
14606       else
14607         case $host_cpu in
14608         hppa*64*)
14609           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14610           ;;
14611         ia64*)
14612           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14613           ;;
14614         *)
14615           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14616           ;;
14617         esac
14618       fi
14619       if test "$with_gnu_ld" = no; then
14620         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14621         hardcode_libdir_separator_F77=:
14622
14623         case $host_cpu in
14624         hppa*64*|ia64*)
14625           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14626           hardcode_direct_F77=no
14627           hardcode_shlibpath_var_F77=no
14628           ;;
14629         *)
14630           hardcode_direct_F77=yes
14631           export_dynamic_flag_spec_F77='${wl}-E'
14632
14633           # hardcode_minus_L: Not really in the search PATH,
14634           # but as the default location of the library.
14635           hardcode_minus_L_F77=yes
14636           ;;
14637         esac
14638       fi
14639       ;;
14640
14641     irix5* | irix6* | nonstopux*)
14642       if test "$GCC" = yes; then
14643         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'
14644       else
14645         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'
14646         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14647       fi
14648       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14649       hardcode_libdir_separator_F77=:
14650       link_all_deplibs_F77=yes
14651       ;;
14652
14653     netbsd*)
14654       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14655         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14656       else
14657         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14658       fi
14659       hardcode_libdir_flag_spec_F77='-R$libdir'
14660       hardcode_direct_F77=yes
14661       hardcode_shlibpath_var_F77=no
14662       ;;
14663
14664     newsos6)
14665       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14666       hardcode_direct_F77=yes
14667       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14668       hardcode_libdir_separator_F77=:
14669       hardcode_shlibpath_var_F77=no
14670       ;;
14671
14672     openbsd*)
14673       hardcode_direct_F77=yes
14674       hardcode_shlibpath_var_F77=no
14675       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14676         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14677         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14678         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14679         export_dynamic_flag_spec_F77='${wl}-E'
14680       else
14681        case $host_os in
14682          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14683            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14684            hardcode_libdir_flag_spec_F77='-R$libdir'
14685            ;;
14686          *)
14687            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14688            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14689            ;;
14690        esac
14691       fi
14692       ;;
14693
14694     os2*)
14695       hardcode_libdir_flag_spec_F77='-L$libdir'
14696       hardcode_minus_L_F77=yes
14697       allow_undefined_flag_F77=unsupported
14698       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'
14699       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14700       ;;
14701
14702     osf3*)
14703       if test "$GCC" = yes; then
14704         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14705         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'
14706       else
14707         allow_undefined_flag_F77=' -expect_unresolved \*'
14708         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'
14709       fi
14710       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14711       hardcode_libdir_separator_F77=:
14712       ;;
14713
14714     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14715       if test "$GCC" = yes; then
14716         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14717         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'
14718         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14719       else
14720         allow_undefined_flag_F77=' -expect_unresolved \*'
14721         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'
14722         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~
14723         $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'
14724
14725         # Both c and cxx compiler support -rpath directly
14726         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14727       fi
14728       hardcode_libdir_separator_F77=:
14729       ;;
14730
14731     solaris*)
14732       no_undefined_flag_F77=' -z text'
14733       if test "$GCC" = yes; then
14734         wlarc='${wl}'
14735         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14736         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14737           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14738       else
14739         wlarc=''
14740         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14741         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14742         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14743       fi
14744       hardcode_libdir_flag_spec_F77='-R$libdir'
14745       hardcode_shlibpath_var_F77=no
14746       case $host_os in
14747       solaris2.[0-5] | solaris2.[0-5].*) ;;
14748       *)
14749         # The compiler driver will combine linker options so we
14750         # cannot just pass the convience library names through
14751         # without $wl, iff we do not link with $LD.
14752         # Luckily, gcc supports the same syntax we need for Sun Studio.
14753         # Supported since Solaris 2.6 (maybe 2.5.1?)
14754         case $wlarc in
14755         '')
14756           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14757         *)
14758           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' ;;
14759         esac ;;
14760       esac
14761       link_all_deplibs_F77=yes
14762       ;;
14763
14764     sunos4*)
14765       if test "x$host_vendor" = xsequent; then
14766         # Use $CC to link under sequent, because it throws in some extra .o
14767         # files that make .init and .fini sections work.
14768         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14769       else
14770         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14771       fi
14772       hardcode_libdir_flag_spec_F77='-L$libdir'
14773       hardcode_direct_F77=yes
14774       hardcode_minus_L_F77=yes
14775       hardcode_shlibpath_var_F77=no
14776       ;;
14777
14778     sysv4)
14779       case $host_vendor in
14780         sni)
14781           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14782           hardcode_direct_F77=yes # is this really true???
14783         ;;
14784         siemens)
14785           ## LD is ld it makes a PLAMLIB
14786           ## CC just makes a GrossModule.
14787           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14788           reload_cmds_F77='$CC -r -o $output$reload_objs'
14789           hardcode_direct_F77=no
14790         ;;
14791         motorola)
14792           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14793           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14794         ;;
14795       esac
14796       runpath_var='LD_RUN_PATH'
14797       hardcode_shlibpath_var_F77=no
14798       ;;
14799
14800     sysv4.3*)
14801       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802       hardcode_shlibpath_var_F77=no
14803       export_dynamic_flag_spec_F77='-Bexport'
14804       ;;
14805
14806     sysv4*MP*)
14807       if test -d /usr/nec; then
14808         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14809         hardcode_shlibpath_var_F77=no
14810         runpath_var=LD_RUN_PATH
14811         hardcode_runpath_var=yes
14812         ld_shlibs_F77=yes
14813       fi
14814       ;;
14815
14816     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14817       no_undefined_flag_F77='${wl}-z,text'
14818       archive_cmds_need_lc_F77=no
14819       hardcode_shlibpath_var_F77=no
14820       runpath_var='LD_RUN_PATH'
14821
14822       if test "$GCC" = yes; then
14823         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14824         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825       else
14826         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14827         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828       fi
14829       ;;
14830
14831     sysv5* | sco3.2v5* | sco5v6*)
14832       # Note: We can NOT use -z defs as we might desire, because we do not
14833       # link with -lc, and that would cause any symbols used from libc to
14834       # always be unresolved, which means just about no library would
14835       # ever link correctly.  If we're not using GNU ld we use -z text
14836       # though, which does catch some bad symbols but isn't as heavy-handed
14837       # as -z defs.
14838       no_undefined_flag_F77='${wl}-z,text'
14839       allow_undefined_flag_F77='${wl}-z,nodefs'
14840       archive_cmds_need_lc_F77=no
14841       hardcode_shlibpath_var_F77=no
14842       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14843       hardcode_libdir_separator_F77=':'
14844       link_all_deplibs_F77=yes
14845       export_dynamic_flag_spec_F77='${wl}-Bexport'
14846       runpath_var='LD_RUN_PATH'
14847
14848       if test "$GCC" = yes; then
14849         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14850         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14851       else
14852         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14854       fi
14855       ;;
14856
14857     uts4*)
14858       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14859       hardcode_libdir_flag_spec_F77='-L$libdir'
14860       hardcode_shlibpath_var_F77=no
14861       ;;
14862
14863     *)
14864       ld_shlibs_F77=no
14865       ;;
14866     esac
14867   fi
14868
14869 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14870 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14871 test "$ld_shlibs_F77" = no && can_build_shared=no
14872
14873 #
14874 # Do we need to explicitly link libc?
14875 #
14876 case "x$archive_cmds_need_lc_F77" in
14877 x|xyes)
14878   # Assume -lc should be added
14879   archive_cmds_need_lc_F77=yes
14880
14881   if test "$enable_shared" = yes && test "$GCC" = yes; then
14882     case $archive_cmds_F77 in
14883     *'~'*)
14884       # FIXME: we may have to deal with multi-command sequences.
14885       ;;
14886     '$CC '*)
14887       # Test whether the compiler implicitly links with -lc since on some
14888       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14889       # to ld, don't add -lc before -lgcc.
14890       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14891 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14892       $rm conftest*
14893       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14894
14895       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14896   (eval $ac_compile) 2>&5
14897   ac_status=$?
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); } 2>conftest.err; then
14900         soname=conftest
14901         lib=conftest
14902         libobjs=conftest.$ac_objext
14903         deplibs=
14904         wl=$lt_prog_compiler_wl_F77
14905         pic_flag=$lt_prog_compiler_pic_F77
14906         compiler_flags=-v
14907         linker_flags=-v
14908         verstring=
14909         output_objdir=.
14910         libname=conftest
14911         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14912         allow_undefined_flag_F77=
14913         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14914   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14915   ac_status=$?
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); }
14918         then
14919           archive_cmds_need_lc_F77=no
14920         else
14921           archive_cmds_need_lc_F77=yes
14922         fi
14923         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14924       else
14925         cat conftest.err 1>&5
14926       fi
14927       $rm conftest*
14928       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14929 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14930       ;;
14931     esac
14932   fi
14933   ;;
14934 esac
14935
14936 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14937 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14938 library_names_spec=
14939 libname_spec='lib$name'
14940 soname_spec=
14941 shrext_cmds=".so"
14942 postinstall_cmds=
14943 postuninstall_cmds=
14944 finish_cmds=
14945 finish_eval=
14946 shlibpath_var=
14947 shlibpath_overrides_runpath=unknown
14948 version_type=none
14949 dynamic_linker="$host_os ld.so"
14950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14951 if test "$GCC" = yes; then
14952   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14953   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14954     # if the path contains ";" then we assume it to be the separator
14955     # otherwise default to the standard path separator (i.e. ":") - it is
14956     # assumed that no part of a normal pathname contains ";" but that should
14957     # okay in the real world where ";" in dirpaths is itself problematic.
14958     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14959   else
14960     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14961   fi
14962 else
14963   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14964 fi
14965 need_lib_prefix=unknown
14966 hardcode_into_libs=no
14967
14968 # when you set need_version to no, make sure it does not cause -set_version
14969 # flags to be left without arguments
14970 need_version=unknown
14971
14972 case $host_os in
14973 aix3*)
14974   version_type=linux
14975   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14976   shlibpath_var=LIBPATH
14977
14978   # AIX 3 has no versioning support, so we append a major version to the name.
14979   soname_spec='${libname}${release}${shared_ext}$major'
14980   ;;
14981
14982 aix4* | aix5*)
14983   version_type=linux
14984   need_lib_prefix=no
14985   need_version=no
14986   hardcode_into_libs=yes
14987   if test "$host_cpu" = ia64; then
14988     # AIX 5 supports IA64
14989     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14990     shlibpath_var=LD_LIBRARY_PATH
14991   else
14992     # With GCC up to 2.95.x, collect2 would create an import file
14993     # for dependence libraries.  The import file would start with
14994     # the line `#! .'.  This would cause the generated library to
14995     # depend on `.', always an invalid library.  This was fixed in
14996     # development snapshots of GCC prior to 3.0.
14997     case $host_os in
14998       aix4 | aix4.[01] | aix4.[01].*)
14999       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15000            echo ' yes '
15001            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15002         :
15003       else
15004         can_build_shared=no
15005       fi
15006       ;;
15007     esac
15008     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15009     # soname into executable. Probably we can add versioning support to
15010     # collect2, so additional links can be useful in future.
15011     if test "$aix_use_runtimelinking" = yes; then
15012       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15013       # instead of lib<name>.a to let people know that these are not
15014       # typical AIX shared libraries.
15015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016     else
15017       # We preserve .a as extension for shared libraries through AIX4.2
15018       # and later when we are not doing run time linking.
15019       library_names_spec='${libname}${release}.a $libname.a'
15020       soname_spec='${libname}${release}${shared_ext}$major'
15021     fi
15022     shlibpath_var=LIBPATH
15023   fi
15024   ;;
15025
15026 amigaos*)
15027   library_names_spec='$libname.ixlibrary $libname.a'
15028   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15029   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'
15030   ;;
15031
15032 beos*)
15033   library_names_spec='${libname}${shared_ext}'
15034   dynamic_linker="$host_os ld.so"
15035   shlibpath_var=LIBRARY_PATH
15036   ;;
15037
15038 bsdi[45]*)
15039   version_type=linux
15040   need_version=no
15041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042   soname_spec='${libname}${release}${shared_ext}$major'
15043   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15044   shlibpath_var=LD_LIBRARY_PATH
15045   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15046   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15047   # the default ld.so.conf also contains /usr/contrib/lib and
15048   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15049   # libtool to hard-code these into programs
15050   ;;
15051
15052 cygwin* | mingw* | pw32*)
15053   version_type=windows
15054   shrext_cmds=".dll"
15055   need_version=no
15056   need_lib_prefix=no
15057
15058   case $GCC,$host_os in
15059   yes,cygwin* | yes,mingw* | yes,pw32*)
15060     library_names_spec='$libname.dll.a'
15061     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15062     postinstall_cmds='base_file=`basename \${file}`~
15063       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15064       dldir=$destdir/`dirname \$dlpath`~
15065       test -d \$dldir || mkdir -p \$dldir~
15066       $install_prog $dir/$dlname \$dldir/$dlname~
15067       chmod a+x \$dldir/$dlname'
15068     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15069       dlpath=$dir/\$dldll~
15070        $rm \$dlpath'
15071     shlibpath_overrides_runpath=yes
15072
15073     case $host_os in
15074     cygwin*)
15075       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15076       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15077       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15078       ;;
15079     mingw*)
15080       # MinGW DLLs use traditional 'lib' prefix
15081       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15082       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15083       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15084         # It is most probably a Windows format PATH printed by
15085         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15086         # path with ; separators, and with drive letters. We can handle the
15087         # drive letters (cygwin fileutils understands them), so leave them,
15088         # especially as we might pass files found there to a mingw objdump,
15089         # which wouldn't understand a cygwinified path. Ahh.
15090         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15091       else
15092         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15093       fi
15094       ;;
15095     pw32*)
15096       # pw32 DLLs use 'pw' prefix rather than 'lib'
15097       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15098       ;;
15099     esac
15100     ;;
15101
15102   *)
15103     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15104     ;;
15105   esac
15106   dynamic_linker='Win32 ld.exe'
15107   # FIXME: first we should search . and the directory the executable is in
15108   shlibpath_var=PATH
15109   ;;
15110
15111 darwin* | rhapsody*)
15112   dynamic_linker="$host_os dyld"
15113   version_type=darwin
15114   need_lib_prefix=no
15115   need_version=no
15116   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15117   soname_spec='${libname}${release}${major}$shared_ext'
15118   shlibpath_overrides_runpath=yes
15119   shlibpath_var=DYLD_LIBRARY_PATH
15120   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15121   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15122   if test "$GCC" = yes; then
15123     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"`
15124   else
15125     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15126   fi
15127   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15128   ;;
15129
15130 dgux*)
15131   version_type=linux
15132   need_lib_prefix=no
15133   need_version=no
15134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15135   soname_spec='${libname}${release}${shared_ext}$major'
15136   shlibpath_var=LD_LIBRARY_PATH
15137   ;;
15138
15139 freebsd1*)
15140   dynamic_linker=no
15141   ;;
15142
15143 kfreebsd*-gnu)
15144   version_type=linux
15145   need_lib_prefix=no
15146   need_version=no
15147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15148   soname_spec='${libname}${release}${shared_ext}$major'
15149   shlibpath_var=LD_LIBRARY_PATH
15150   shlibpath_overrides_runpath=no
15151   hardcode_into_libs=yes
15152   dynamic_linker='GNU ld.so'
15153   ;;
15154
15155 freebsd* | dragonfly*)
15156   # DragonFly does not have aout.  When/if they implement a new
15157   # versioning mechanism, adjust this.
15158   if test -x /usr/bin/objformat; then
15159     objformat=`/usr/bin/objformat`
15160   else
15161     case $host_os in
15162     freebsd[123]*) objformat=aout ;;
15163     *) objformat=elf ;;
15164     esac
15165   fi
15166   version_type=freebsd-$objformat
15167   case $version_type in
15168     freebsd-elf*)
15169       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15170       need_version=no
15171       need_lib_prefix=no
15172       ;;
15173     freebsd-*)
15174       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15175       need_version=yes
15176       ;;
15177   esac
15178   shlibpath_var=LD_LIBRARY_PATH
15179   case $host_os in
15180   freebsd2*)
15181     shlibpath_overrides_runpath=yes
15182     ;;
15183   freebsd3.[01]* | freebsdelf3.[01]*)
15184     shlibpath_overrides_runpath=yes
15185     hardcode_into_libs=yes
15186     ;;
15187   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15188   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15189     shlibpath_overrides_runpath=no
15190     hardcode_into_libs=yes
15191     ;;
15192   freebsd*) # from 4.6 on
15193     shlibpath_overrides_runpath=yes
15194     hardcode_into_libs=yes
15195     ;;
15196   esac
15197   ;;
15198
15199 gnu*)
15200   version_type=linux
15201   need_lib_prefix=no
15202   need_version=no
15203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15204   soname_spec='${libname}${release}${shared_ext}$major'
15205   shlibpath_var=LD_LIBRARY_PATH
15206   hardcode_into_libs=yes
15207   ;;
15208
15209 hpux9* | hpux10* | hpux11*)
15210   # Give a soname corresponding to the major version so that dld.sl refuses to
15211   # link against other versions.
15212   version_type=sunos
15213   need_lib_prefix=no
15214   need_version=no
15215   case $host_cpu in
15216   ia64*)
15217     shrext_cmds='.so'
15218     hardcode_into_libs=yes
15219     dynamic_linker="$host_os dld.so"
15220     shlibpath_var=LD_LIBRARY_PATH
15221     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223     soname_spec='${libname}${release}${shared_ext}$major'
15224     if test "X$HPUX_IA64_MODE" = X32; then
15225       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15226     else
15227       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15228     fi
15229     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15230     ;;
15231    hppa*64*)
15232      shrext_cmds='.sl'
15233      hardcode_into_libs=yes
15234      dynamic_linker="$host_os dld.sl"
15235      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15236      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15237      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238      soname_spec='${libname}${release}${shared_ext}$major'
15239      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15240      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15241      ;;
15242    *)
15243     shrext_cmds='.sl'
15244     dynamic_linker="$host_os dld.sl"
15245     shlibpath_var=SHLIB_PATH
15246     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248     soname_spec='${libname}${release}${shared_ext}$major'
15249     ;;
15250   esac
15251   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15252   postinstall_cmds='chmod 555 $lib'
15253   ;;
15254
15255 interix3*)
15256   version_type=linux
15257   need_lib_prefix=no
15258   need_version=no
15259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15260   soname_spec='${libname}${release}${shared_ext}$major'
15261   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15262   shlibpath_var=LD_LIBRARY_PATH
15263   shlibpath_overrides_runpath=no
15264   hardcode_into_libs=yes
15265   ;;
15266
15267 irix5* | irix6* | nonstopux*)
15268   case $host_os in
15269     nonstopux*) version_type=nonstopux ;;
15270     *)
15271         if test "$lt_cv_prog_gnu_ld" = yes; then
15272                 version_type=linux
15273         else
15274                 version_type=irix
15275         fi ;;
15276   esac
15277   need_lib_prefix=no
15278   need_version=no
15279   soname_spec='${libname}${release}${shared_ext}$major'
15280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15281   case $host_os in
15282   irix5* | nonstopux*)
15283     libsuff= shlibsuff=
15284     ;;
15285   *)
15286     case $LD in # libtool.m4 will add one of these switches to LD
15287     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15288       libsuff= shlibsuff= libmagic=32-bit;;
15289     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15290       libsuff=32 shlibsuff=N32 libmagic=N32;;
15291     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15292       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15293     *) libsuff= shlibsuff= libmagic=never-match;;
15294     esac
15295     ;;
15296   esac
15297   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15298   shlibpath_overrides_runpath=no
15299   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15300   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15301   hardcode_into_libs=yes
15302   ;;
15303
15304 # No shared lib support for Linux oldld, aout, or coff.
15305 linux*oldld* | linux*aout* | linux*coff*)
15306   dynamic_linker=no
15307   ;;
15308
15309 # This must be Linux ELF.
15310 linux*)
15311   version_type=linux
15312   need_lib_prefix=no
15313   need_version=no
15314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315   soname_spec='${libname}${release}${shared_ext}$major'
15316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15317   shlibpath_var=LD_LIBRARY_PATH
15318   shlibpath_overrides_runpath=no
15319   # This implies no fast_install, which is unacceptable.
15320   # Some rework will be needed to allow for fast_install
15321   # before this can be enabled.
15322   hardcode_into_libs=yes
15323
15324   # Append ld.so.conf contents to the search path
15325   if test -f /etc/ld.so.conf; then
15326     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' ' '`
15327     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15328   fi
15329
15330   # We used to test for /lib/ld.so.1 and disable shared libraries on
15331   # powerpc, because MkLinux only supported shared libraries with the
15332   # GNU dynamic linker.  Since this was broken with cross compilers,
15333   # most powerpc-linux boxes support dynamic linking these days and
15334   # people can always --disable-shared, the test was removed, and we
15335   # assume the GNU/Linux dynamic linker is in use.
15336   dynamic_linker='GNU/Linux ld.so'
15337   ;;
15338
15339 knetbsd*-gnu)
15340   version_type=linux
15341   need_lib_prefix=no
15342   need_version=no
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15344   soname_spec='${libname}${release}${shared_ext}$major'
15345   shlibpath_var=LD_LIBRARY_PATH
15346   shlibpath_overrides_runpath=no
15347   hardcode_into_libs=yes
15348   dynamic_linker='GNU ld.so'
15349   ;;
15350
15351 netbsd*)
15352   version_type=sunos
15353   need_lib_prefix=no
15354   need_version=no
15355   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15357     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15358     dynamic_linker='NetBSD (a.out) ld.so'
15359   else
15360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15361     soname_spec='${libname}${release}${shared_ext}$major'
15362     dynamic_linker='NetBSD ld.elf_so'
15363   fi
15364   shlibpath_var=LD_LIBRARY_PATH
15365   shlibpath_overrides_runpath=yes
15366   hardcode_into_libs=yes
15367   ;;
15368
15369 newsos6)
15370   version_type=linux
15371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372   shlibpath_var=LD_LIBRARY_PATH
15373   shlibpath_overrides_runpath=yes
15374   ;;
15375
15376 nto-qnx*)
15377   version_type=linux
15378   need_lib_prefix=no
15379   need_version=no
15380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381   soname_spec='${libname}${release}${shared_ext}$major'
15382   shlibpath_var=LD_LIBRARY_PATH
15383   shlibpath_overrides_runpath=yes
15384   ;;
15385
15386 openbsd*)
15387   version_type=sunos
15388   sys_lib_dlsearch_path_spec="/usr/lib"
15389   need_lib_prefix=no
15390   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15391   case $host_os in
15392     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15393     *)                         need_version=no  ;;
15394   esac
15395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15397   shlibpath_var=LD_LIBRARY_PATH
15398   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15399     case $host_os in
15400       openbsd2.[89] | openbsd2.[89].*)
15401         shlibpath_overrides_runpath=no
15402         ;;
15403       *)
15404         shlibpath_overrides_runpath=yes
15405         ;;
15406       esac
15407   else
15408     shlibpath_overrides_runpath=yes
15409   fi
15410   ;;
15411
15412 os2*)
15413   libname_spec='$name'
15414   shrext_cmds=".dll"
15415   need_lib_prefix=no
15416   library_names_spec='$libname${shared_ext} $libname.a'
15417   dynamic_linker='OS/2 ld.exe'
15418   shlibpath_var=LIBPATH
15419   ;;
15420
15421 osf3* | osf4* | osf5*)
15422   version_type=osf
15423   need_lib_prefix=no
15424   need_version=no
15425   soname_spec='${libname}${release}${shared_ext}$major'
15426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427   shlibpath_var=LD_LIBRARY_PATH
15428   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15429   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15430   ;;
15431
15432 solaris*)
15433   version_type=linux
15434   need_lib_prefix=no
15435   need_version=no
15436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437   soname_spec='${libname}${release}${shared_ext}$major'
15438   shlibpath_var=LD_LIBRARY_PATH
15439   shlibpath_overrides_runpath=yes
15440   hardcode_into_libs=yes
15441   # ldd complains unless libraries are executable
15442   postinstall_cmds='chmod +x $lib'
15443   ;;
15444
15445 sunos4*)
15446   version_type=sunos
15447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15448   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15449   shlibpath_var=LD_LIBRARY_PATH
15450   shlibpath_overrides_runpath=yes
15451   if test "$with_gnu_ld" = yes; then
15452     need_lib_prefix=no
15453   fi
15454   need_version=yes
15455   ;;
15456
15457 sysv4 | sysv4.3*)
15458   version_type=linux
15459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460   soname_spec='${libname}${release}${shared_ext}$major'
15461   shlibpath_var=LD_LIBRARY_PATH
15462   case $host_vendor in
15463     sni)
15464       shlibpath_overrides_runpath=no
15465       need_lib_prefix=no
15466       export_dynamic_flag_spec='${wl}-Blargedynsym'
15467       runpath_var=LD_RUN_PATH
15468       ;;
15469     siemens)
15470       need_lib_prefix=no
15471       ;;
15472     motorola)
15473       need_lib_prefix=no
15474       need_version=no
15475       shlibpath_overrides_runpath=no
15476       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15477       ;;
15478   esac
15479   ;;
15480
15481 sysv4*MP*)
15482   if test -d /usr/nec ;then
15483     version_type=linux
15484     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15485     soname_spec='$libname${shared_ext}.$major'
15486     shlibpath_var=LD_LIBRARY_PATH
15487   fi
15488   ;;
15489
15490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15491   version_type=freebsd-elf
15492   need_lib_prefix=no
15493   need_version=no
15494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15495   soname_spec='${libname}${release}${shared_ext}$major'
15496   shlibpath_var=LD_LIBRARY_PATH
15497   hardcode_into_libs=yes
15498   if test "$with_gnu_ld" = yes; then
15499     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15500     shlibpath_overrides_runpath=no
15501   else
15502     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15503     shlibpath_overrides_runpath=yes
15504     case $host_os in
15505       sco3.2v5*)
15506         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15507         ;;
15508     esac
15509   fi
15510   sys_lib_dlsearch_path_spec='/usr/lib'
15511   ;;
15512
15513 uts4*)
15514   version_type=linux
15515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516   soname_spec='${libname}${release}${shared_ext}$major'
15517   shlibpath_var=LD_LIBRARY_PATH
15518   ;;
15519
15520 *)
15521   dynamic_linker=no
15522   ;;
15523 esac
15524 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15525 echo "${ECHO_T}$dynamic_linker" >&6; }
15526 test "$dynamic_linker" = no && can_build_shared=no
15527
15528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15529 if test "$GCC" = yes; then
15530   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15531 fi
15532
15533 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15535 hardcode_action_F77=
15536 if test -n "$hardcode_libdir_flag_spec_F77" || \
15537    test -n "$runpath_var_F77" || \
15538    test "X$hardcode_automatic_F77" = "Xyes" ; then
15539
15540   # We can hardcode non-existant directories.
15541   if test "$hardcode_direct_F77" != no &&
15542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15543      # have to relink, otherwise we might link with an installed library
15544      # when we should be linking with a yet-to-be-installed one
15545      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15546      test "$hardcode_minus_L_F77" != no; then
15547     # Linking always hardcodes the temporary library directory.
15548     hardcode_action_F77=relink
15549   else
15550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15551     hardcode_action_F77=immediate
15552   fi
15553 else
15554   # We cannot hardcode anything, or else we can only hardcode existing
15555   # directories.
15556   hardcode_action_F77=unsupported
15557 fi
15558 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15559 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15560
15561 if test "$hardcode_action_F77" = relink; then
15562   # Fast installation is not supported
15563   enable_fast_install=no
15564 elif test "$shlibpath_overrides_runpath" = yes ||
15565      test "$enable_shared" = no; then
15566   # Fast installation is not necessary
15567   enable_fast_install=needless
15568 fi
15569
15570
15571 # The else clause should only fire when bootstrapping the
15572 # libtool distribution, otherwise you forgot to ship ltmain.sh
15573 # with your package, and you will get complaints that there are
15574 # no rules to generate ltmain.sh.
15575 if test -f "$ltmain"; then
15576   # See if we are running on zsh, and set the options which allow our commands through
15577   # without removal of \ escapes.
15578   if test -n "${ZSH_VERSION+set}" ; then
15579     setopt NO_GLOB_SUBST
15580   fi
15581   # Now quote all the things that may contain metacharacters while being
15582   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15583   # variables and quote the copies for generation of the libtool script.
15584   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15585     SED SHELL STRIP \
15586     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15587     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15588     deplibs_check_method reload_flag reload_cmds need_locks \
15589     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15590     lt_cv_sys_global_symbol_to_c_name_address \
15591     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15592     old_postinstall_cmds old_postuninstall_cmds \
15593     compiler_F77 \
15594     CC_F77 \
15595     LD_F77 \
15596     lt_prog_compiler_wl_F77 \
15597     lt_prog_compiler_pic_F77 \
15598     lt_prog_compiler_static_F77 \
15599     lt_prog_compiler_no_builtin_flag_F77 \
15600     export_dynamic_flag_spec_F77 \
15601     thread_safe_flag_spec_F77 \
15602     whole_archive_flag_spec_F77 \
15603     enable_shared_with_static_runtimes_F77 \
15604     old_archive_cmds_F77 \
15605     old_archive_from_new_cmds_F77 \
15606     predep_objects_F77 \
15607     postdep_objects_F77 \
15608     predeps_F77 \
15609     postdeps_F77 \
15610     compiler_lib_search_path_F77 \
15611     archive_cmds_F77 \
15612     archive_expsym_cmds_F77 \
15613     postinstall_cmds_F77 \
15614     postuninstall_cmds_F77 \
15615     old_archive_from_expsyms_cmds_F77 \
15616     allow_undefined_flag_F77 \
15617     no_undefined_flag_F77 \
15618     export_symbols_cmds_F77 \
15619     hardcode_libdir_flag_spec_F77 \
15620     hardcode_libdir_flag_spec_ld_F77 \
15621     hardcode_libdir_separator_F77 \
15622     hardcode_automatic_F77 \
15623     module_cmds_F77 \
15624     module_expsym_cmds_F77 \
15625     lt_cv_prog_compiler_c_o_F77 \
15626     exclude_expsyms_F77 \
15627     include_expsyms_F77; do
15628
15629     case $var in
15630     old_archive_cmds_F77 | \
15631     old_archive_from_new_cmds_F77 | \
15632     archive_cmds_F77 | \
15633     archive_expsym_cmds_F77 | \
15634     module_cmds_F77 | \
15635     module_expsym_cmds_F77 | \
15636     old_archive_from_expsyms_cmds_F77 | \
15637     export_symbols_cmds_F77 | \
15638     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15639     postinstall_cmds | postuninstall_cmds | \
15640     old_postinstall_cmds | old_postuninstall_cmds | \
15641     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15642       # Double-quote double-evaled strings.
15643       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15644       ;;
15645     *)
15646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15647       ;;
15648     esac
15649   done
15650
15651   case $lt_echo in
15652   *'\$0 --fallback-echo"')
15653     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15654     ;;
15655   esac
15656
15657 cfgfile="$ofile"
15658
15659   cat <<__EOF__ >> "$cfgfile"
15660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15661
15662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15663
15664 # Shell to use when invoking shell scripts.
15665 SHELL=$lt_SHELL
15666
15667 # Whether or not to build shared libraries.
15668 build_libtool_libs=$enable_shared
15669
15670 # Whether or not to build static libraries.
15671 build_old_libs=$enable_static
15672
15673 # Whether or not to add -lc for building shared libraries.
15674 build_libtool_need_lc=$archive_cmds_need_lc_F77
15675
15676 # Whether or not to disallow shared libs when runtime libs are static
15677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15678
15679 # Whether or not to optimize for fast installation.
15680 fast_install=$enable_fast_install
15681
15682 # The host system.
15683 host_alias=$host_alias
15684 host=$host
15685 host_os=$host_os
15686
15687 # The build system.
15688 build_alias=$build_alias
15689 build=$build
15690 build_os=$build_os
15691
15692 # An echo program that does not interpret backslashes.
15693 echo=$lt_echo
15694
15695 # The archiver.
15696 AR=$lt_AR
15697 AR_FLAGS=$lt_AR_FLAGS
15698
15699 # A C compiler.
15700 LTCC=$lt_LTCC
15701
15702 # LTCC compiler flags.
15703 LTCFLAGS=$lt_LTCFLAGS
15704
15705 # A language-specific compiler.
15706 CC=$lt_compiler_F77
15707
15708 # Is the compiler the GNU C compiler?
15709 with_gcc=$GCC_F77
15710
15711 # An ERE matcher.
15712 EGREP=$lt_EGREP
15713
15714 # The linker used to build libraries.
15715 LD=$lt_LD_F77
15716
15717 # Whether we need hard or soft links.
15718 LN_S=$lt_LN_S
15719
15720 # A BSD-compatible nm program.
15721 NM=$lt_NM
15722
15723 # A symbol stripping program
15724 STRIP=$lt_STRIP
15725
15726 # Used to examine libraries when file_magic_cmd begins "file"
15727 MAGIC_CMD=$MAGIC_CMD
15728
15729 # Used on cygwin: DLL creation program.
15730 DLLTOOL="$DLLTOOL"
15731
15732 # Used on cygwin: object dumper.
15733 OBJDUMP="$OBJDUMP"
15734
15735 # Used on cygwin: assembler.
15736 AS="$AS"
15737
15738 # The name of the directory that contains temporary libtool files.
15739 objdir=$objdir
15740
15741 # How to create reloadable object files.
15742 reload_flag=$lt_reload_flag
15743 reload_cmds=$lt_reload_cmds
15744
15745 # How to pass a linker flag through the compiler.
15746 wl=$lt_lt_prog_compiler_wl_F77
15747
15748 # Object file suffix (normally "o").
15749 objext="$ac_objext"
15750
15751 # Old archive suffix (normally "a").
15752 libext="$libext"
15753
15754 # Shared library suffix (normally ".so").
15755 shrext_cmds='$shrext_cmds'
15756
15757 # Executable file suffix (normally "").
15758 exeext="$exeext"
15759
15760 # Additional compiler flags for building library objects.
15761 pic_flag=$lt_lt_prog_compiler_pic_F77
15762 pic_mode=$pic_mode
15763
15764 # What is the maximum length of a command?
15765 max_cmd_len=$lt_cv_sys_max_cmd_len
15766
15767 # Does compiler simultaneously support -c and -o options?
15768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15769
15770 # Must we lock files when doing compilation?
15771 need_locks=$lt_need_locks
15772
15773 # Do we need the lib prefix for modules?
15774 need_lib_prefix=$need_lib_prefix
15775
15776 # Do we need a version for libraries?
15777 need_version=$need_version
15778
15779 # Whether dlopen is supported.
15780 dlopen_support=$enable_dlopen
15781
15782 # Whether dlopen of programs is supported.
15783 dlopen_self=$enable_dlopen_self
15784
15785 # Whether dlopen of statically linked programs is supported.
15786 dlopen_self_static=$enable_dlopen_self_static
15787
15788 # Compiler flag to prevent dynamic linking.
15789 link_static_flag=$lt_lt_prog_compiler_static_F77
15790
15791 # Compiler flag to turn off builtin functions.
15792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15793
15794 # Compiler flag to allow reflexive dlopens.
15795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15796
15797 # Compiler flag to generate shared objects directly from archives.
15798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15799
15800 # Compiler flag to generate thread-safe objects.
15801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15802
15803 # Library versioning type.
15804 version_type=$version_type
15805
15806 # Format of library name prefix.
15807 libname_spec=$lt_libname_spec
15808
15809 # List of archive names.  First name is the real one, the rest are links.
15810 # The last name is the one that the linker finds with -lNAME.
15811 library_names_spec=$lt_library_names_spec
15812
15813 # The coded name of the library, if different from the real name.
15814 soname_spec=$lt_soname_spec
15815
15816 # Commands used to build and install an old-style archive.
15817 RANLIB=$lt_RANLIB
15818 old_archive_cmds=$lt_old_archive_cmds_F77
15819 old_postinstall_cmds=$lt_old_postinstall_cmds
15820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15821
15822 # Create an old-style archive from a shared archive.
15823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15824
15825 # Create a temporary old-style archive to link instead of a shared archive.
15826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15827
15828 # Commands used to build and install a shared archive.
15829 archive_cmds=$lt_archive_cmds_F77
15830 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15831 postinstall_cmds=$lt_postinstall_cmds
15832 postuninstall_cmds=$lt_postuninstall_cmds
15833
15834 # Commands used to build a loadable module (assumed same as above if empty)
15835 module_cmds=$lt_module_cmds_F77
15836 module_expsym_cmds=$lt_module_expsym_cmds_F77
15837
15838 # Commands to strip libraries.
15839 old_striplib=$lt_old_striplib
15840 striplib=$lt_striplib
15841
15842 # Dependencies to place before the objects being linked to create a
15843 # shared library.
15844 predep_objects=$lt_predep_objects_F77
15845
15846 # Dependencies to place after the objects being linked to create a
15847 # shared library.
15848 postdep_objects=$lt_postdep_objects_F77
15849
15850 # Dependencies to place before the objects being linked to create a
15851 # shared library.
15852 predeps=$lt_predeps_F77
15853
15854 # Dependencies to place after the objects being linked to create a
15855 # shared library.
15856 postdeps=$lt_postdeps_F77
15857
15858 # The library search path used internally by the compiler when linking
15859 # a shared library.
15860 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15861
15862 # Method to check whether dependent libraries are shared objects.
15863 deplibs_check_method=$lt_deplibs_check_method
15864
15865 # Command to use when deplibs_check_method == file_magic.
15866 file_magic_cmd=$lt_file_magic_cmd
15867
15868 # Flag that allows shared libraries with undefined symbols to be built.
15869 allow_undefined_flag=$lt_allow_undefined_flag_F77
15870
15871 # Flag that forces no undefined symbols.
15872 no_undefined_flag=$lt_no_undefined_flag_F77
15873
15874 # Commands used to finish a libtool library installation in a directory.
15875 finish_cmds=$lt_finish_cmds
15876
15877 # Same as above, but a single script fragment to be evaled but not shown.
15878 finish_eval=$lt_finish_eval
15879
15880 # Take the output of nm and produce a listing of raw symbols and C names.
15881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15882
15883 # Transform the output of nm in a proper C declaration
15884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15885
15886 # Transform the output of nm in a C name address pair
15887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15888
15889 # This is the shared library runtime path variable.
15890 runpath_var=$runpath_var
15891
15892 # This is the shared library path variable.
15893 shlibpath_var=$shlibpath_var
15894
15895 # Is shlibpath searched before the hard-coded library search path?
15896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15897
15898 # How to hardcode a shared library path into an executable.
15899 hardcode_action=$hardcode_action_F77
15900
15901 # Whether we should hardcode library paths into libraries.
15902 hardcode_into_libs=$hardcode_into_libs
15903
15904 # Flag to hardcode \$libdir into a binary during linking.
15905 # This must work even if \$libdir does not exist.
15906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15907
15908 # If ld is used when linking, flag to hardcode \$libdir into
15909 # a binary during linking. This must work even if \$libdir does
15910 # not exist.
15911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15912
15913 # Whether we need a single -rpath flag with a separated argument.
15914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15915
15916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15917 # resulting binary.
15918 hardcode_direct=$hardcode_direct_F77
15919
15920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15921 # resulting binary.
15922 hardcode_minus_L=$hardcode_minus_L_F77
15923
15924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15925 # the resulting binary.
15926 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15927
15928 # Set to yes if building a shared library automatically hardcodes DIR into the library
15929 # and all subsequent libraries and executables linked against it.
15930 hardcode_automatic=$hardcode_automatic_F77
15931
15932 # Variables whose values should be saved in libtool wrapper scripts and
15933 # restored at relink time.
15934 variables_saved_for_relink="$variables_saved_for_relink"
15935
15936 # Whether libtool must link a program against all its dependency libraries.
15937 link_all_deplibs=$link_all_deplibs_F77
15938
15939 # Compile-time system search path for libraries
15940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15941
15942 # Run-time system search path for libraries
15943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15944
15945 # Fix the shell variable \$srcfile for the compiler.
15946 fix_srcfile_path="$fix_srcfile_path_F77"
15947
15948 # Set to yes if exported symbols are required.
15949 always_export_symbols=$always_export_symbols_F77
15950
15951 # The commands to list exported symbols.
15952 export_symbols_cmds=$lt_export_symbols_cmds_F77
15953
15954 # The commands to extract the exported symbol list from a shared archive.
15955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15956
15957 # Symbols that should not be listed in the preloaded symbols.
15958 exclude_expsyms=$lt_exclude_expsyms_F77
15959
15960 # Symbols that must always be exported.
15961 include_expsyms=$lt_include_expsyms_F77
15962
15963 # ### END LIBTOOL TAG CONFIG: $tagname
15964
15965 __EOF__
15966
15967
15968 else
15969   # If there is no Makefile yet, we rely on a make rule to execute
15970   # `config.status --recheck' to rerun these tests and create the
15971   # libtool script then.
15972   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15973   if test -f "$ltmain_in"; then
15974     test -f Makefile && make "$ltmain"
15975   fi
15976 fi
15977
15978
15979 ac_ext=c
15980 ac_cpp='$CPP $CPPFLAGS'
15981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15984
15985 CC="$lt_save_CC"
15986
15987         else
15988           tagname=""
15989         fi
15990         ;;
15991
15992       GCJ)
15993         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15994
15995
15996 # Source file extension for Java test sources.
15997 ac_ext=java
15998
15999 # Object file extension for compiled Java test sources.
16000 objext=o
16001 objext_GCJ=$objext
16002
16003 # Code to be used in simple compile tests
16004 lt_simple_compile_test_code="class foo {}\n"
16005
16006 # Code to be used in simple link tests
16007 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16008
16009 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16010
16011 # If no C compiler was specified, use CC.
16012 LTCC=${LTCC-"$CC"}
16013
16014 # If no C compiler flags were specified, use CFLAGS.
16015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16016
16017 # Allow CC to be a program name with arguments.
16018 compiler=$CC
16019
16020
16021 # save warnings/boilerplate of simple test code
16022 ac_outfile=conftest.$ac_objext
16023 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16024 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16025 _lt_compiler_boilerplate=`cat conftest.err`
16026 $rm conftest*
16027
16028 ac_outfile=conftest.$ac_objext
16029 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16030 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16031 _lt_linker_boilerplate=`cat conftest.err`
16032 $rm conftest*
16033
16034
16035 # Allow CC to be a program name with arguments.
16036 lt_save_CC="$CC"
16037 CC=${GCJ-"gcj"}
16038 compiler=$CC
16039 compiler_GCJ=$CC
16040 for cc_temp in $compiler""; do
16041   case $cc_temp in
16042     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16043     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16044     \-*) ;;
16045     *) break;;
16046   esac
16047 done
16048 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16049
16050
16051 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16052 archive_cmds_need_lc_GCJ=no
16053
16054 old_archive_cmds_GCJ=$old_archive_cmds
16055
16056 ## CAVEAT EMPTOR:
16057 ## There is no encapsulation within the following macros, do not change
16058 ## the running order or otherwise move them around unless you know exactly
16059 ## what you are doing...
16060
16061 lt_prog_compiler_no_builtin_flag_GCJ=
16062
16063 if test "$GCC" = yes; then
16064   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16065
16066
16067 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16068 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16069 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16070   echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072   lt_cv_prog_compiler_rtti_exceptions=no
16073   ac_outfile=conftest.$ac_objext
16074    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16075    lt_compiler_flag="-fno-rtti -fno-exceptions"
16076    # Insert the option either (1) after the last *FLAGS variable, or
16077    # (2) before a word containing "conftest.", or (3) at the end.
16078    # Note that $ac_compile itself does not contain backslashes and begins
16079    # with a dollar sign (not a hyphen), so the echo should work correctly.
16080    # The option is referenced via a variable to avoid confusing sed.
16081    lt_compile=`echo "$ac_compile" | $SED \
16082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16084    -e 's:$: $lt_compiler_flag:'`
16085    (eval echo "\"\$as_me:16085: $lt_compile\"" >&5)
16086    (eval "$lt_compile" 2>conftest.err)
16087    ac_status=$?
16088    cat conftest.err >&5
16089    echo "$as_me:16089: \$? = $ac_status" >&5
16090    if (exit $ac_status) && test -s "$ac_outfile"; then
16091      # The compiler can only warn and ignore the option if not recognized
16092      # So say no if there are warnings other than the usual output.
16093      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16094      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16095      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16096        lt_cv_prog_compiler_rtti_exceptions=yes
16097      fi
16098    fi
16099    $rm conftest*
16100
16101 fi
16102 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16103 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16104
16105 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16106     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16107 else
16108     :
16109 fi
16110
16111 fi
16112
16113 lt_prog_compiler_wl_GCJ=
16114 lt_prog_compiler_pic_GCJ=
16115 lt_prog_compiler_static_GCJ=
16116
16117 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16118 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16119
16120   if test "$GCC" = yes; then
16121     lt_prog_compiler_wl_GCJ='-Wl,'
16122     lt_prog_compiler_static_GCJ='-static'
16123
16124     case $host_os in
16125       aix*)
16126       # All AIX code is PIC.
16127       if test "$host_cpu" = ia64; then
16128         # AIX 5 now supports IA64 processor
16129         lt_prog_compiler_static_GCJ='-Bstatic'
16130       fi
16131       ;;
16132
16133     amigaos*)
16134       # FIXME: we need at least 68020 code to build shared libraries, but
16135       # adding the `-m68020' flag to GCC prevents building anything better,
16136       # like `-m68040'.
16137       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16138       ;;
16139
16140     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16141       # PIC is the default for these OSes.
16142       ;;
16143
16144     mingw* | pw32* | os2*)
16145       # This hack is so that the source file can tell whether it is being
16146       # built for inclusion in a dll (and should export symbols for example).
16147       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16148       ;;
16149
16150     darwin* | rhapsody*)
16151       # PIC is the default on this platform
16152       # Common symbols not allowed in MH_DYLIB files
16153       lt_prog_compiler_pic_GCJ='-fno-common'
16154       ;;
16155
16156     interix3*)
16157       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16158       # Instead, we relocate shared libraries at runtime.
16159       ;;
16160
16161     msdosdjgpp*)
16162       # Just because we use GCC doesn't mean we suddenly get shared libraries
16163       # on systems that don't support them.
16164       lt_prog_compiler_can_build_shared_GCJ=no
16165       enable_shared=no
16166       ;;
16167
16168     sysv4*MP*)
16169       if test -d /usr/nec; then
16170         lt_prog_compiler_pic_GCJ=-Kconform_pic
16171       fi
16172       ;;
16173
16174     hpux*)
16175       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16176       # not for PA HP-UX.
16177       case $host_cpu in
16178       hppa*64*|ia64*)
16179         # +Z the default
16180         ;;
16181       *)
16182         lt_prog_compiler_pic_GCJ='-fPIC'
16183         ;;
16184       esac
16185       ;;
16186
16187     *)
16188       lt_prog_compiler_pic_GCJ='-fPIC'
16189       ;;
16190     esac
16191   else
16192     # PORTME Check for flag to pass linker flags through the system compiler.
16193     case $host_os in
16194     aix*)
16195       lt_prog_compiler_wl_GCJ='-Wl,'
16196       if test "$host_cpu" = ia64; then
16197         # AIX 5 now supports IA64 processor
16198         lt_prog_compiler_static_GCJ='-Bstatic'
16199       else
16200         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16201       fi
16202       ;;
16203       darwin*)
16204         # PIC is the default on this platform
16205         # Common symbols not allowed in MH_DYLIB files
16206        case $cc_basename in
16207          xlc*)
16208          lt_prog_compiler_pic_GCJ='-qnocommon'
16209          lt_prog_compiler_wl_GCJ='-Wl,'
16210          ;;
16211        esac
16212        ;;
16213
16214     mingw* | pw32* | os2*)
16215       # This hack is so that the source file can tell whether it is being
16216       # built for inclusion in a dll (and should export symbols for example).
16217       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16218       ;;
16219
16220     hpux9* | hpux10* | hpux11*)
16221       lt_prog_compiler_wl_GCJ='-Wl,'
16222       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16223       # not for PA HP-UX.
16224       case $host_cpu in
16225       hppa*64*|ia64*)
16226         # +Z the default
16227         ;;
16228       *)
16229         lt_prog_compiler_pic_GCJ='+Z'
16230         ;;
16231       esac
16232       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16233       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16234       ;;
16235
16236     irix5* | irix6* | nonstopux*)
16237       lt_prog_compiler_wl_GCJ='-Wl,'
16238       # PIC (with -KPIC) is the default.
16239       lt_prog_compiler_static_GCJ='-non_shared'
16240       ;;
16241
16242     newsos6)
16243       lt_prog_compiler_pic_GCJ='-KPIC'
16244       lt_prog_compiler_static_GCJ='-Bstatic'
16245       ;;
16246
16247     linux*)
16248       case $cc_basename in
16249       icc* | ecc*)
16250         lt_prog_compiler_wl_GCJ='-Wl,'
16251         lt_prog_compiler_pic_GCJ='-KPIC'
16252         lt_prog_compiler_static_GCJ='-static'
16253         ;;
16254       pgcc* | pgf77* | pgf90* | pgf95*)
16255         # Portland Group compilers (*not* the Pentium gcc compiler,
16256         # which looks to be a dead project)
16257         lt_prog_compiler_wl_GCJ='-Wl,'
16258         lt_prog_compiler_pic_GCJ='-fpic'
16259         lt_prog_compiler_static_GCJ='-Bstatic'
16260         ;;
16261       ccc*)
16262         lt_prog_compiler_wl_GCJ='-Wl,'
16263         # All Alpha code is PIC.
16264         lt_prog_compiler_static_GCJ='-non_shared'
16265         ;;
16266       esac
16267       ;;
16268
16269     osf3* | osf4* | osf5*)
16270       lt_prog_compiler_wl_GCJ='-Wl,'
16271       # All OSF/1 code is PIC.
16272       lt_prog_compiler_static_GCJ='-non_shared'
16273       ;;
16274
16275     solaris*)
16276       lt_prog_compiler_pic_GCJ='-KPIC'
16277       lt_prog_compiler_static_GCJ='-Bstatic'
16278       case $cc_basename in
16279       f77* | f90* | f95*)
16280         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16281       *)
16282         lt_prog_compiler_wl_GCJ='-Wl,';;
16283       esac
16284       ;;
16285
16286     sunos4*)
16287       lt_prog_compiler_wl_GCJ='-Qoption ld '
16288       lt_prog_compiler_pic_GCJ='-PIC'
16289       lt_prog_compiler_static_GCJ='-Bstatic'
16290       ;;
16291
16292     sysv4 | sysv4.2uw2* | sysv4.3*)
16293       lt_prog_compiler_wl_GCJ='-Wl,'
16294       lt_prog_compiler_pic_GCJ='-KPIC'
16295       lt_prog_compiler_static_GCJ='-Bstatic'
16296       ;;
16297
16298     sysv4*MP*)
16299       if test -d /usr/nec ;then
16300         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16301         lt_prog_compiler_static_GCJ='-Bstatic'
16302       fi
16303       ;;
16304
16305     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16306       lt_prog_compiler_wl_GCJ='-Wl,'
16307       lt_prog_compiler_pic_GCJ='-KPIC'
16308       lt_prog_compiler_static_GCJ='-Bstatic'
16309       ;;
16310
16311     unicos*)
16312       lt_prog_compiler_wl_GCJ='-Wl,'
16313       lt_prog_compiler_can_build_shared_GCJ=no
16314       ;;
16315
16316     uts4*)
16317       lt_prog_compiler_pic_GCJ='-pic'
16318       lt_prog_compiler_static_GCJ='-Bstatic'
16319       ;;
16320
16321     *)
16322       lt_prog_compiler_can_build_shared_GCJ=no
16323       ;;
16324     esac
16325   fi
16326
16327 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16328 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16329
16330 #
16331 # Check to make sure the PIC flag actually works.
16332 #
16333 if test -n "$lt_prog_compiler_pic_GCJ"; then
16334
16335 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16336 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16337 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16338   echo $ECHO_N "(cached) $ECHO_C" >&6
16339 else
16340   lt_prog_compiler_pic_works_GCJ=no
16341   ac_outfile=conftest.$ac_objext
16342    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16343    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16344    # Insert the option either (1) after the last *FLAGS variable, or
16345    # (2) before a word containing "conftest.", or (3) at the end.
16346    # Note that $ac_compile itself does not contain backslashes and begins
16347    # with a dollar sign (not a hyphen), so the echo should work correctly.
16348    # The option is referenced via a variable to avoid confusing sed.
16349    lt_compile=`echo "$ac_compile" | $SED \
16350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16352    -e 's:$: $lt_compiler_flag:'`
16353    (eval echo "\"\$as_me:16353: $lt_compile\"" >&5)
16354    (eval "$lt_compile" 2>conftest.err)
16355    ac_status=$?
16356    cat conftest.err >&5
16357    echo "$as_me:16357: \$? = $ac_status" >&5
16358    if (exit $ac_status) && test -s "$ac_outfile"; then
16359      # The compiler can only warn and ignore the option if not recognized
16360      # So say no if there are warnings other than the usual output.
16361      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16362      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16363      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16364        lt_prog_compiler_pic_works_GCJ=yes
16365      fi
16366    fi
16367    $rm conftest*
16368
16369 fi
16370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16371 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16372
16373 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16374     case $lt_prog_compiler_pic_GCJ in
16375      "" | " "*) ;;
16376      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16377      esac
16378 else
16379     lt_prog_compiler_pic_GCJ=
16380      lt_prog_compiler_can_build_shared_GCJ=no
16381 fi
16382
16383 fi
16384 case $host_os in
16385   # For platforms which do not support PIC, -DPIC is meaningless:
16386   *djgpp*)
16387     lt_prog_compiler_pic_GCJ=
16388     ;;
16389   *)
16390     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16391     ;;
16392 esac
16393
16394 #
16395 # Check to make sure the static flag actually works.
16396 #
16397 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16398 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16399 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16400 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16401   echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403   lt_prog_compiler_static_works_GCJ=no
16404    save_LDFLAGS="$LDFLAGS"
16405    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16406    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16407    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16408      # The linker can only warn and ignore the option if not recognized
16409      # So say no if there are warnings
16410      if test -s conftest.err; then
16411        # Append any errors to the config.log.
16412        cat conftest.err 1>&5
16413        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16414        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16415        if diff conftest.exp conftest.er2 >/dev/null; then
16416          lt_prog_compiler_static_works_GCJ=yes
16417        fi
16418      else
16419        lt_prog_compiler_static_works_GCJ=yes
16420      fi
16421    fi
16422    $rm conftest*
16423    LDFLAGS="$save_LDFLAGS"
16424
16425 fi
16426 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16427 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16428
16429 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16430     :
16431 else
16432     lt_prog_compiler_static_GCJ=
16433 fi
16434
16435
16436 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16438 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441   lt_cv_prog_compiler_c_o_GCJ=no
16442    $rm -r conftest 2>/dev/null
16443    mkdir conftest
16444    cd conftest
16445    mkdir out
16446    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16447
16448    lt_compiler_flag="-o out/conftest2.$ac_objext"
16449    # Insert the option either (1) after the last *FLAGS variable, or
16450    # (2) before a word containing "conftest.", or (3) at the end.
16451    # Note that $ac_compile itself does not contain backslashes and begins
16452    # with a dollar sign (not a hyphen), so the echo should work correctly.
16453    lt_compile=`echo "$ac_compile" | $SED \
16454    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16455    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16456    -e 's:$: $lt_compiler_flag:'`
16457    (eval echo "\"\$as_me:16457: $lt_compile\"" >&5)
16458    (eval "$lt_compile" 2>out/conftest.err)
16459    ac_status=$?
16460    cat out/conftest.err >&5
16461    echo "$as_me:16461: \$? = $ac_status" >&5
16462    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16463    then
16464      # The compiler can only warn and ignore the option if not recognized
16465      # So say no if there are warnings
16466      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16467      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16468      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16469        lt_cv_prog_compiler_c_o_GCJ=yes
16470      fi
16471    fi
16472    chmod u+w . 2>&5
16473    $rm conftest*
16474    # SGI C++ compiler will create directory out/ii_files/ for
16475    # template instantiation
16476    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16477    $rm out/* && rmdir out
16478    cd ..
16479    rmdir conftest
16480    $rm conftest*
16481
16482 fi
16483 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16484 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16485
16486
16487 hard_links="nottested"
16488 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16489   # do not overwrite the value of need_locks provided by the user
16490   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16491 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16492   hard_links=yes
16493   $rm conftest*
16494   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16495   touch conftest.a
16496   ln conftest.a conftest.b 2>&5 || hard_links=no
16497   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16498   { echo "$as_me:$LINENO: result: $hard_links" >&5
16499 echo "${ECHO_T}$hard_links" >&6; }
16500   if test "$hard_links" = no; then
16501     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16502 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16503     need_locks=warn
16504   fi
16505 else
16506   need_locks=no
16507 fi
16508
16509 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16510 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16511
16512   runpath_var=
16513   allow_undefined_flag_GCJ=
16514   enable_shared_with_static_runtimes_GCJ=no
16515   archive_cmds_GCJ=
16516   archive_expsym_cmds_GCJ=
16517   old_archive_From_new_cmds_GCJ=
16518   old_archive_from_expsyms_cmds_GCJ=
16519   export_dynamic_flag_spec_GCJ=
16520   whole_archive_flag_spec_GCJ=
16521   thread_safe_flag_spec_GCJ=
16522   hardcode_libdir_flag_spec_GCJ=
16523   hardcode_libdir_flag_spec_ld_GCJ=
16524   hardcode_libdir_separator_GCJ=
16525   hardcode_direct_GCJ=no
16526   hardcode_minus_L_GCJ=no
16527   hardcode_shlibpath_var_GCJ=unsupported
16528   link_all_deplibs_GCJ=unknown
16529   hardcode_automatic_GCJ=no
16530   module_cmds_GCJ=
16531   module_expsym_cmds_GCJ=
16532   always_export_symbols_GCJ=no
16533   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16534   # include_expsyms should be a list of space-separated symbols to be *always*
16535   # included in the symbol list
16536   include_expsyms_GCJ=
16537   # exclude_expsyms can be an extended regexp of symbols to exclude
16538   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16539   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16540   # as well as any symbol that contains `d'.
16541   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16542   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16543   # platforms (ab)use it in PIC code, but their linkers get confused if
16544   # the symbol is explicitly referenced.  Since portable code cannot
16545   # rely on this symbol name, it's probably fine to never include it in
16546   # preloaded symbol tables.
16547   extract_expsyms_cmds=
16548   # Just being paranoid about ensuring that cc_basename is set.
16549   for cc_temp in $compiler""; do
16550   case $cc_temp in
16551     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16552     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16553     \-*) ;;
16554     *) break;;
16555   esac
16556 done
16557 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16558
16559   case $host_os in
16560   cygwin* | mingw* | pw32*)
16561     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16562     # When not using gcc, we currently assume that we are using
16563     # Microsoft Visual C++.
16564     if test "$GCC" != yes; then
16565       with_gnu_ld=no
16566     fi
16567     ;;
16568   interix*)
16569     # we just hope/assume this is gcc and not c89 (= MSVC++)
16570     with_gnu_ld=yes
16571     ;;
16572   openbsd*)
16573     with_gnu_ld=no
16574     ;;
16575   esac
16576
16577   ld_shlibs_GCJ=yes
16578   if test "$with_gnu_ld" = yes; then
16579     # If archive_cmds runs LD, not CC, wlarc should be empty
16580     wlarc='${wl}'
16581
16582     # Set some defaults for GNU ld with shared library support. These
16583     # are reset later if shared libraries are not supported. Putting them
16584     # here allows them to be overridden if necessary.
16585     runpath_var=LD_RUN_PATH
16586     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16587     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16588     # ancient GNU ld didn't support --whole-archive et. al.
16589     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16590         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16591       else
16592         whole_archive_flag_spec_GCJ=
16593     fi
16594     supports_anon_versioning=no
16595     case `$LD -v 2>/dev/null` in
16596       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16597       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16598       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16599       *\ 2.11.*) ;; # other 2.11 versions
16600       *) supports_anon_versioning=yes ;;
16601     esac
16602
16603     # See if GNU ld supports shared libraries.
16604     case $host_os in
16605     aix3* | aix4* | aix5*)
16606       # On AIX/PPC, the GNU linker is very broken
16607       if test "$host_cpu" != ia64; then
16608         ld_shlibs_GCJ=no
16609         cat <<EOF 1>&2
16610
16611 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16612 *** to be unable to reliably create shared libraries on AIX.
16613 *** Therefore, libtool is disabling shared libraries support.  If you
16614 *** really care for shared libraries, you may want to modify your PATH
16615 *** so that a non-GNU linker is found, and then restart.
16616
16617 EOF
16618       fi
16619       ;;
16620
16621     amigaos*)
16622       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)'
16623       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16624       hardcode_minus_L_GCJ=yes
16625
16626       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16627       # that the semantics of dynamic libraries on AmigaOS, at least up
16628       # to version 4, is to share data among multiple programs linked
16629       # with the same dynamic library.  Since this doesn't match the
16630       # behavior of shared libraries on other platforms, we can't use
16631       # them.
16632       ld_shlibs_GCJ=no
16633       ;;
16634
16635     beos*)
16636       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16637         allow_undefined_flag_GCJ=unsupported
16638         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16639         # support --undefined.  This deserves some investigation.  FIXME
16640         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16641       else
16642         ld_shlibs_GCJ=no
16643       fi
16644       ;;
16645
16646     cygwin* | mingw* | pw32*)
16647       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16648       # as there is no search path for DLLs.
16649       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16650       allow_undefined_flag_GCJ=unsupported
16651       always_export_symbols_GCJ=no
16652       enable_shared_with_static_runtimes_GCJ=yes
16653       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16654
16655       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16656         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16657         # If the export-symbols file already is a .def file (1st line
16658         # is EXPORTS), use it as is; otherwise, prepend...
16659         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16660           cp $export_symbols $output_objdir/$soname.def;
16661         else
16662           echo EXPORTS > $output_objdir/$soname.def;
16663           cat $export_symbols >> $output_objdir/$soname.def;
16664         fi~
16665         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16666       else
16667         ld_shlibs_GCJ=no
16668       fi
16669       ;;
16670
16671     interix3*)
16672       hardcode_direct_GCJ=no
16673       hardcode_shlibpath_var_GCJ=no
16674       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16675       export_dynamic_flag_spec_GCJ='${wl}-E'
16676       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16677       # Instead, shared libraries are loaded at an image base (0x10000000 by
16678       # default) and relocated if they conflict, which is a slow very memory
16679       # consuming and fragmenting process.  To avoid this, we pick a random,
16680       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16681       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16682       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'
16683       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'
16684       ;;
16685
16686     linux*)
16687       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16688         tmp_addflag=
16689         case $cc_basename,$host_cpu in
16690         pgcc*)                          # Portland Group C compiler
16691           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'
16692           tmp_addflag=' $pic_flag'
16693           ;;
16694         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16695           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'
16696           tmp_addflag=' $pic_flag -Mnomain' ;;
16697         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16698           tmp_addflag=' -i_dynamic' ;;
16699         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16700           tmp_addflag=' -i_dynamic -nofor_main' ;;
16701         ifc* | ifort*)                  # Intel Fortran compiler
16702           tmp_addflag=' -nofor_main' ;;
16703         esac
16704         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16705
16706         if test $supports_anon_versioning = yes; then
16707           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16708   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16709   $echo "local: *; };" >> $output_objdir/$libname.ver~
16710           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16711         fi
16712       else
16713         ld_shlibs_GCJ=no
16714       fi
16715       ;;
16716
16717     netbsd*)
16718       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16719         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16720         wlarc=
16721       else
16722         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16723         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16724       fi
16725       ;;
16726
16727     solaris*)
16728       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16729         ld_shlibs_GCJ=no
16730         cat <<EOF 1>&2
16731
16732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16733 *** create shared libraries on Solaris systems.  Therefore, libtool
16734 *** is disabling shared libraries support.  We urge you to upgrade GNU
16735 *** binutils to release 2.9.1 or newer.  Another option is to modify
16736 *** your PATH or compiler configuration so that the native linker is
16737 *** used, and then restart.
16738
16739 EOF
16740       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16741         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16742         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16743       else
16744         ld_shlibs_GCJ=no
16745       fi
16746       ;;
16747
16748     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16749       case `$LD -v 2>&1` in
16750         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16751         ld_shlibs_GCJ=no
16752         cat <<_LT_EOF 1>&2
16753
16754 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16755 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16756 *** is disabling shared libraries support.  We urge you to upgrade GNU
16757 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16758 *** your PATH or compiler configuration so that the native linker is
16759 *** used, and then restart.
16760
16761 _LT_EOF
16762         ;;
16763         *)
16764           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16765             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16766             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16767             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16768           else
16769             ld_shlibs_GCJ=no
16770           fi
16771         ;;
16772       esac
16773       ;;
16774
16775     sunos4*)
16776       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16777       wlarc=
16778       hardcode_direct_GCJ=yes
16779       hardcode_shlibpath_var_GCJ=no
16780       ;;
16781
16782     *)
16783       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16784         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16785         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16786       else
16787         ld_shlibs_GCJ=no
16788       fi
16789       ;;
16790     esac
16791
16792     if test "$ld_shlibs_GCJ" = no; then
16793       runpath_var=
16794       hardcode_libdir_flag_spec_GCJ=
16795       export_dynamic_flag_spec_GCJ=
16796       whole_archive_flag_spec_GCJ=
16797     fi
16798   else
16799     # PORTME fill in a description of your system's linker (not GNU ld)
16800     case $host_os in
16801     aix3*)
16802       allow_undefined_flag_GCJ=unsupported
16803       always_export_symbols_GCJ=yes
16804       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'
16805       # Note: this linker hardcodes the directories in LIBPATH if there
16806       # are no directories specified by -L.
16807       hardcode_minus_L_GCJ=yes
16808       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16809         # Neither direct hardcoding nor static linking is supported with a
16810         # broken collect2.
16811         hardcode_direct_GCJ=unsupported
16812       fi
16813       ;;
16814
16815     aix4* | aix5*)
16816       if test "$host_cpu" = ia64; then
16817         # On IA64, the linker does run time linking by default, so we don't
16818         # have to do anything special.
16819         aix_use_runtimelinking=no
16820         exp_sym_flag='-Bexport'
16821         no_entry_flag=""
16822       else
16823         # If we're using GNU nm, then we don't want the "-C" option.
16824         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16825         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16826           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'
16827         else
16828           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'
16829         fi
16830         aix_use_runtimelinking=no
16831
16832         # Test if we are trying to use run time linking or normal
16833         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16834         # need to do runtime linking.
16835         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16836           for ld_flag in $LDFLAGS; do
16837           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16838             aix_use_runtimelinking=yes
16839             break
16840           fi
16841           done
16842           ;;
16843         esac
16844
16845         exp_sym_flag='-bexport'
16846         no_entry_flag='-bnoentry'
16847       fi
16848
16849       # When large executables or shared objects are built, AIX ld can
16850       # have problems creating the table of contents.  If linking a library
16851       # or program results in "error TOC overflow" add -mminimal-toc to
16852       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16853       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16854
16855       archive_cmds_GCJ=''
16856       hardcode_direct_GCJ=yes
16857       hardcode_libdir_separator_GCJ=':'
16858       link_all_deplibs_GCJ=yes
16859
16860       if test "$GCC" = yes; then
16861         case $host_os in aix4.[012]|aix4.[012].*)
16862         # We only want to do this on AIX 4.2 and lower, the check
16863         # below for broken collect2 doesn't work under 4.3+
16864           collect2name=`${CC} -print-prog-name=collect2`
16865           if test -f "$collect2name" && \
16866            strings "$collect2name" | grep resolve_lib_name >/dev/null
16867           then
16868           # We have reworked collect2
16869           hardcode_direct_GCJ=yes
16870           else
16871           # We have old collect2
16872           hardcode_direct_GCJ=unsupported
16873           # It fails to find uninstalled libraries when the uninstalled
16874           # path is not listed in the libpath.  Setting hardcode_minus_L
16875           # to unsupported forces relinking
16876           hardcode_minus_L_GCJ=yes
16877           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878           hardcode_libdir_separator_GCJ=
16879           fi
16880           ;;
16881         esac
16882         shared_flag='-shared'
16883         if test "$aix_use_runtimelinking" = yes; then
16884           shared_flag="$shared_flag "'${wl}-G'
16885         fi
16886       else
16887         # not using gcc
16888         if test "$host_cpu" = ia64; then
16889         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16890         # chokes on -Wl,-G. The following line is correct:
16891           shared_flag='-G'
16892         else
16893           if test "$aix_use_runtimelinking" = yes; then
16894             shared_flag='${wl}-G'
16895           else
16896             shared_flag='${wl}-bM:SRE'
16897           fi
16898         fi
16899       fi
16900
16901       # It seems that -bexpall does not export symbols beginning with
16902       # underscore (_), so it is better to generate a list of symbols to export.
16903       always_export_symbols_GCJ=yes
16904       if test "$aix_use_runtimelinking" = yes; then
16905         # Warning - without using the other runtime loading flags (-brtl),
16906         # -berok will link without error, but may produce a broken library.
16907         allow_undefined_flag_GCJ='-berok'
16908        # Determine the default libpath from the value encoded in an empty executable.
16909        cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h.  */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h.  */
16915
16916 int
16917 main ()
16918 {
16919
16920   ;
16921   return 0;
16922 }
16923 _ACEOF
16924 rm -f conftest.$ac_objext conftest$ac_exeext
16925 if { (ac_try="$ac_link"
16926 case "(($ac_try" in
16927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928   *) ac_try_echo=$ac_try;;
16929 esac
16930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931   (eval "$ac_link") 2>conftest.er1
16932   ac_status=$?
16933   grep -v '^ *+' conftest.er1 >conftest.err
16934   rm -f conftest.er1
16935   cat conftest.err >&5
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } && {
16938          test -z "$ac_c_werror_flag" ||
16939          test ! -s conftest.err
16940        } && test -s conftest$ac_exeext &&
16941        $as_test_x conftest$ac_exeext; then
16942
16943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16944 }'`
16945 # Check for a 64-bit object if we didn't find anything.
16946 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; }
16947 }'`; fi
16948 else
16949   echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16951
16952
16953 fi
16954
16955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16956       conftest$ac_exeext conftest.$ac_ext
16957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16958
16959        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16960         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"
16961        else
16962         if test "$host_cpu" = ia64; then
16963           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16964           allow_undefined_flag_GCJ="-z nodefs"
16965           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"
16966         else
16967          # Determine the default libpath from the value encoded in an empty executable.
16968          cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974
16975 int
16976 main ()
16977 {
16978
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (ac_try="$ac_link"
16985 case "(($ac_try" in
16986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987   *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990   (eval "$ac_link") 2>conftest.er1
16991   ac_status=$?
16992   grep -v '^ *+' conftest.er1 >conftest.err
16993   rm -f conftest.er1
16994   cat conftest.err >&5
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); } && {
16997          test -z "$ac_c_werror_flag" ||
16998          test ! -s conftest.err
16999        } && test -s conftest$ac_exeext &&
17000        $as_test_x conftest$ac_exeext; then
17001
17002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17003 }'`
17004 # Check for a 64-bit object if we didn't find anything.
17005 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; }
17006 }'`; fi
17007 else
17008   echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011
17012 fi
17013
17014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17015       conftest$ac_exeext conftest.$ac_ext
17016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17017
17018          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17019           # Warning - without using the other run time loading flags,
17020           # -berok will link without error, but may produce a broken library.
17021           no_undefined_flag_GCJ=' ${wl}-bernotok'
17022           allow_undefined_flag_GCJ=' ${wl}-berok'
17023           # Exported symbols can be pulled into shared objects from archives
17024           whole_archive_flag_spec_GCJ='$convenience'
17025           archive_cmds_need_lc_GCJ=yes
17026           # This is similar to how AIX traditionally builds its shared libraries.
17027           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'
17028         fi
17029       fi
17030       ;;
17031
17032     amigaos*)
17033       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)'
17034       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17035       hardcode_minus_L_GCJ=yes
17036       # see comment about different semantics on the GNU ld section
17037       ld_shlibs_GCJ=no
17038       ;;
17039
17040     bsdi[45]*)
17041       export_dynamic_flag_spec_GCJ=-rdynamic
17042       ;;
17043
17044     cygwin* | mingw* | pw32*)
17045       # When not using gcc, we currently assume that we are using
17046       # Microsoft Visual C++.
17047       # hardcode_libdir_flag_spec is actually meaningless, as there is
17048       # no search path for DLLs.
17049       hardcode_libdir_flag_spec_GCJ=' '
17050       allow_undefined_flag_GCJ=unsupported
17051       # Tell ltmain to make .lib files, not .a files.
17052       libext=lib
17053       # Tell ltmain to make .dll files, not .so files.
17054       shrext_cmds=".dll"
17055       # FIXME: Setting linknames here is a bad hack.
17056       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17057       # The linker will automatically build a .lib file if we build a DLL.
17058       old_archive_From_new_cmds_GCJ='true'
17059       # FIXME: Should let the user specify the lib program.
17060       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17061       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17062       enable_shared_with_static_runtimes_GCJ=yes
17063       ;;
17064
17065     darwin* | rhapsody*)
17066       case $host_os in
17067         rhapsody* | darwin1.[012])
17068          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17069          ;;
17070        *) # Darwin 1.3 on
17071          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17072            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17073          else
17074            case ${MACOSX_DEPLOYMENT_TARGET} in
17075              10.[012])
17076                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17077                ;;
17078              10.*)
17079                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17080                ;;
17081            esac
17082          fi
17083          ;;
17084       esac
17085       archive_cmds_need_lc_GCJ=no
17086       hardcode_direct_GCJ=no
17087       hardcode_automatic_GCJ=yes
17088       hardcode_shlibpath_var_GCJ=unsupported
17089       whole_archive_flag_spec_GCJ=''
17090       link_all_deplibs_GCJ=yes
17091     if test "$GCC" = yes ; then
17092         output_verbose_link_cmd='echo'
17093         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17094       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17095       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17096       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}'
17097       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}'
17098     else
17099       case $cc_basename in
17100         xlc*)
17101          output_verbose_link_cmd='echo'
17102          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17103          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17104           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17105          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}'
17106           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}'
17107           ;;
17108        *)
17109          ld_shlibs_GCJ=no
17110           ;;
17111       esac
17112     fi
17113       ;;
17114
17115     dgux*)
17116       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17118       hardcode_shlibpath_var_GCJ=no
17119       ;;
17120
17121     freebsd1*)
17122       ld_shlibs_GCJ=no
17123       ;;
17124
17125     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17126     # support.  Future versions do this automatically, but an explicit c++rt0.o
17127     # does not break anything, and helps significantly (at the cost of a little
17128     # extra space).
17129     freebsd2.2*)
17130       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17131       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17132       hardcode_direct_GCJ=yes
17133       hardcode_shlibpath_var_GCJ=no
17134       ;;
17135
17136     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17137     freebsd2*)
17138       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17139       hardcode_direct_GCJ=yes
17140       hardcode_minus_L_GCJ=yes
17141       hardcode_shlibpath_var_GCJ=no
17142       ;;
17143
17144     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17145     freebsd* | kfreebsd*-gnu | dragonfly*)
17146       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17147       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17148       hardcode_direct_GCJ=yes
17149       hardcode_shlibpath_var_GCJ=no
17150       ;;
17151
17152     hpux9*)
17153       if test "$GCC" = yes; then
17154         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'
17155       else
17156         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'
17157       fi
17158       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17159       hardcode_libdir_separator_GCJ=:
17160       hardcode_direct_GCJ=yes
17161
17162       # hardcode_minus_L: Not really in the search PATH,
17163       # but as the default location of the library.
17164       hardcode_minus_L_GCJ=yes
17165       export_dynamic_flag_spec_GCJ='${wl}-E'
17166       ;;
17167
17168     hpux10*)
17169       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17170         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17171       else
17172         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17173       fi
17174       if test "$with_gnu_ld" = no; then
17175         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17176         hardcode_libdir_separator_GCJ=:
17177
17178         hardcode_direct_GCJ=yes
17179         export_dynamic_flag_spec_GCJ='${wl}-E'
17180
17181         # hardcode_minus_L: Not really in the search PATH,
17182         # but as the default location of the library.
17183         hardcode_minus_L_GCJ=yes
17184       fi
17185       ;;
17186
17187     hpux11*)
17188       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17189         case $host_cpu in
17190         hppa*64*)
17191           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17192           ;;
17193         ia64*)
17194           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17195           ;;
17196         *)
17197           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17198           ;;
17199         esac
17200       else
17201         case $host_cpu in
17202         hppa*64*)
17203           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17204           ;;
17205         ia64*)
17206           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17207           ;;
17208         *)
17209           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17210           ;;
17211         esac
17212       fi
17213       if test "$with_gnu_ld" = no; then
17214         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17215         hardcode_libdir_separator_GCJ=:
17216
17217         case $host_cpu in
17218         hppa*64*|ia64*)
17219           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17220           hardcode_direct_GCJ=no
17221           hardcode_shlibpath_var_GCJ=no
17222           ;;
17223         *)
17224           hardcode_direct_GCJ=yes
17225           export_dynamic_flag_spec_GCJ='${wl}-E'
17226
17227           # hardcode_minus_L: Not really in the search PATH,
17228           # but as the default location of the library.
17229           hardcode_minus_L_GCJ=yes
17230           ;;
17231         esac
17232       fi
17233       ;;
17234
17235     irix5* | irix6* | nonstopux*)
17236       if test "$GCC" = yes; then
17237         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'
17238       else
17239         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'
17240         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17241       fi
17242       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17243       hardcode_libdir_separator_GCJ=:
17244       link_all_deplibs_GCJ=yes
17245       ;;
17246
17247     netbsd*)
17248       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17249         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17250       else
17251         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17252       fi
17253       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17254       hardcode_direct_GCJ=yes
17255       hardcode_shlibpath_var_GCJ=no
17256       ;;
17257
17258     newsos6)
17259       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17260       hardcode_direct_GCJ=yes
17261       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17262       hardcode_libdir_separator_GCJ=:
17263       hardcode_shlibpath_var_GCJ=no
17264       ;;
17265
17266     openbsd*)
17267       hardcode_direct_GCJ=yes
17268       hardcode_shlibpath_var_GCJ=no
17269       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17270         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17271         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17272         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17273         export_dynamic_flag_spec_GCJ='${wl}-E'
17274       else
17275        case $host_os in
17276          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17277            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17278            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17279            ;;
17280          *)
17281            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17282            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17283            ;;
17284        esac
17285       fi
17286       ;;
17287
17288     os2*)
17289       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290       hardcode_minus_L_GCJ=yes
17291       allow_undefined_flag_GCJ=unsupported
17292       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'
17293       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17294       ;;
17295
17296     osf3*)
17297       if test "$GCC" = yes; then
17298         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17299         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'
17300       else
17301         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17302         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'
17303       fi
17304       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17305       hardcode_libdir_separator_GCJ=:
17306       ;;
17307
17308     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17309       if test "$GCC" = yes; then
17310         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17311         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'
17312         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17313       else
17314         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17315         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'
17316         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~
17317         $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'
17318
17319         # Both c and cxx compiler support -rpath directly
17320         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17321       fi
17322       hardcode_libdir_separator_GCJ=:
17323       ;;
17324
17325     solaris*)
17326       no_undefined_flag_GCJ=' -z text'
17327       if test "$GCC" = yes; then
17328         wlarc='${wl}'
17329         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17330         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17331           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17332       else
17333         wlarc=''
17334         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17336         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17337       fi
17338       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17339       hardcode_shlibpath_var_GCJ=no
17340       case $host_os in
17341       solaris2.[0-5] | solaris2.[0-5].*) ;;
17342       *)
17343         # The compiler driver will combine linker options so we
17344         # cannot just pass the convience library names through
17345         # without $wl, iff we do not link with $LD.
17346         # Luckily, gcc supports the same syntax we need for Sun Studio.
17347         # Supported since Solaris 2.6 (maybe 2.5.1?)
17348         case $wlarc in
17349         '')
17350           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17351         *)
17352           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' ;;
17353         esac ;;
17354       esac
17355       link_all_deplibs_GCJ=yes
17356       ;;
17357
17358     sunos4*)
17359       if test "x$host_vendor" = xsequent; then
17360         # Use $CC to link under sequent, because it throws in some extra .o
17361         # files that make .init and .fini sections work.
17362         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17363       else
17364         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17365       fi
17366       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367       hardcode_direct_GCJ=yes
17368       hardcode_minus_L_GCJ=yes
17369       hardcode_shlibpath_var_GCJ=no
17370       ;;
17371
17372     sysv4)
17373       case $host_vendor in
17374         sni)
17375           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17376           hardcode_direct_GCJ=yes # is this really true???
17377         ;;
17378         siemens)
17379           ## LD is ld it makes a PLAMLIB
17380           ## CC just makes a GrossModule.
17381           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17382           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17383           hardcode_direct_GCJ=no
17384         ;;
17385         motorola)
17386           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17388         ;;
17389       esac
17390       runpath_var='LD_RUN_PATH'
17391       hardcode_shlibpath_var_GCJ=no
17392       ;;
17393
17394     sysv4.3*)
17395       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17396       hardcode_shlibpath_var_GCJ=no
17397       export_dynamic_flag_spec_GCJ='-Bexport'
17398       ;;
17399
17400     sysv4*MP*)
17401       if test -d /usr/nec; then
17402         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403         hardcode_shlibpath_var_GCJ=no
17404         runpath_var=LD_RUN_PATH
17405         hardcode_runpath_var=yes
17406         ld_shlibs_GCJ=yes
17407       fi
17408       ;;
17409
17410     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17411       no_undefined_flag_GCJ='${wl}-z,text'
17412       archive_cmds_need_lc_GCJ=no
17413       hardcode_shlibpath_var_GCJ=no
17414       runpath_var='LD_RUN_PATH'
17415
17416       if test "$GCC" = yes; then
17417         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17418         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17419       else
17420         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17421         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17422       fi
17423       ;;
17424
17425     sysv5* | sco3.2v5* | sco5v6*)
17426       # Note: We can NOT use -z defs as we might desire, because we do not
17427       # link with -lc, and that would cause any symbols used from libc to
17428       # always be unresolved, which means just about no library would
17429       # ever link correctly.  If we're not using GNU ld we use -z text
17430       # though, which does catch some bad symbols but isn't as heavy-handed
17431       # as -z defs.
17432       no_undefined_flag_GCJ='${wl}-z,text'
17433       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17434       archive_cmds_need_lc_GCJ=no
17435       hardcode_shlibpath_var_GCJ=no
17436       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17437       hardcode_libdir_separator_GCJ=':'
17438       link_all_deplibs_GCJ=yes
17439       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17440       runpath_var='LD_RUN_PATH'
17441
17442       if test "$GCC" = yes; then
17443         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17444         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17445       else
17446         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17447         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17448       fi
17449       ;;
17450
17451     uts4*)
17452       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17453       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454       hardcode_shlibpath_var_GCJ=no
17455       ;;
17456
17457     *)
17458       ld_shlibs_GCJ=no
17459       ;;
17460     esac
17461   fi
17462
17463 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17464 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17465 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17466
17467 #
17468 # Do we need to explicitly link libc?
17469 #
17470 case "x$archive_cmds_need_lc_GCJ" in
17471 x|xyes)
17472   # Assume -lc should be added
17473   archive_cmds_need_lc_GCJ=yes
17474
17475   if test "$enable_shared" = yes && test "$GCC" = yes; then
17476     case $archive_cmds_GCJ in
17477     *'~'*)
17478       # FIXME: we may have to deal with multi-command sequences.
17479       ;;
17480     '$CC '*)
17481       # Test whether the compiler implicitly links with -lc since on some
17482       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17483       # to ld, don't add -lc before -lgcc.
17484       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17485 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17486       $rm conftest*
17487       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17488
17489       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17490   (eval $ac_compile) 2>&5
17491   ac_status=$?
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); } 2>conftest.err; then
17494         soname=conftest
17495         lib=conftest
17496         libobjs=conftest.$ac_objext
17497         deplibs=
17498         wl=$lt_prog_compiler_wl_GCJ
17499         pic_flag=$lt_prog_compiler_pic_GCJ
17500         compiler_flags=-v
17501         linker_flags=-v
17502         verstring=
17503         output_objdir=.
17504         libname=conftest
17505         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17506         allow_undefined_flag_GCJ=
17507         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17508   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }
17512         then
17513           archive_cmds_need_lc_GCJ=no
17514         else
17515           archive_cmds_need_lc_GCJ=yes
17516         fi
17517         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17518       else
17519         cat conftest.err 1>&5
17520       fi
17521       $rm conftest*
17522       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17523 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17524       ;;
17525     esac
17526   fi
17527   ;;
17528 esac
17529
17530 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17531 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17532 library_names_spec=
17533 libname_spec='lib$name'
17534 soname_spec=
17535 shrext_cmds=".so"
17536 postinstall_cmds=
17537 postuninstall_cmds=
17538 finish_cmds=
17539 finish_eval=
17540 shlibpath_var=
17541 shlibpath_overrides_runpath=unknown
17542 version_type=none
17543 dynamic_linker="$host_os ld.so"
17544 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17545 if test "$GCC" = yes; then
17546   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17547   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17548     # if the path contains ";" then we assume it to be the separator
17549     # otherwise default to the standard path separator (i.e. ":") - it is
17550     # assumed that no part of a normal pathname contains ";" but that should
17551     # okay in the real world where ";" in dirpaths is itself problematic.
17552     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17553   else
17554     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17555   fi
17556 else
17557   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17558 fi
17559 need_lib_prefix=unknown
17560 hardcode_into_libs=no
17561
17562 # when you set need_version to no, make sure it does not cause -set_version
17563 # flags to be left without arguments
17564 need_version=unknown
17565
17566 case $host_os in
17567 aix3*)
17568   version_type=linux
17569   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17570   shlibpath_var=LIBPATH
17571
17572   # AIX 3 has no versioning support, so we append a major version to the name.
17573   soname_spec='${libname}${release}${shared_ext}$major'
17574   ;;
17575
17576 aix4* | aix5*)
17577   version_type=linux
17578   need_lib_prefix=no
17579   need_version=no
17580   hardcode_into_libs=yes
17581   if test "$host_cpu" = ia64; then
17582     # AIX 5 supports IA64
17583     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17584     shlibpath_var=LD_LIBRARY_PATH
17585   else
17586     # With GCC up to 2.95.x, collect2 would create an import file
17587     # for dependence libraries.  The import file would start with
17588     # the line `#! .'.  This would cause the generated library to
17589     # depend on `.', always an invalid library.  This was fixed in
17590     # development snapshots of GCC prior to 3.0.
17591     case $host_os in
17592       aix4 | aix4.[01] | aix4.[01].*)
17593       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17594            echo ' yes '
17595            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17596         :
17597       else
17598         can_build_shared=no
17599       fi
17600       ;;
17601     esac
17602     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17603     # soname into executable. Probably we can add versioning support to
17604     # collect2, so additional links can be useful in future.
17605     if test "$aix_use_runtimelinking" = yes; then
17606       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17607       # instead of lib<name>.a to let people know that these are not
17608       # typical AIX shared libraries.
17609       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610     else
17611       # We preserve .a as extension for shared libraries through AIX4.2
17612       # and later when we are not doing run time linking.
17613       library_names_spec='${libname}${release}.a $libname.a'
17614       soname_spec='${libname}${release}${shared_ext}$major'
17615     fi
17616     shlibpath_var=LIBPATH
17617   fi
17618   ;;
17619
17620 amigaos*)
17621   library_names_spec='$libname.ixlibrary $libname.a'
17622   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17623   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'
17624   ;;
17625
17626 beos*)
17627   library_names_spec='${libname}${shared_ext}'
17628   dynamic_linker="$host_os ld.so"
17629   shlibpath_var=LIBRARY_PATH
17630   ;;
17631
17632 bsdi[45]*)
17633   version_type=linux
17634   need_version=no
17635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17636   soname_spec='${libname}${release}${shared_ext}$major'
17637   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17638   shlibpath_var=LD_LIBRARY_PATH
17639   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17640   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17641   # the default ld.so.conf also contains /usr/contrib/lib and
17642   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17643   # libtool to hard-code these into programs
17644   ;;
17645
17646 cygwin* | mingw* | pw32*)
17647   version_type=windows
17648   shrext_cmds=".dll"
17649   need_version=no
17650   need_lib_prefix=no
17651
17652   case $GCC,$host_os in
17653   yes,cygwin* | yes,mingw* | yes,pw32*)
17654     library_names_spec='$libname.dll.a'
17655     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17656     postinstall_cmds='base_file=`basename \${file}`~
17657       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17658       dldir=$destdir/`dirname \$dlpath`~
17659       test -d \$dldir || mkdir -p \$dldir~
17660       $install_prog $dir/$dlname \$dldir/$dlname~
17661       chmod a+x \$dldir/$dlname'
17662     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17663       dlpath=$dir/\$dldll~
17664        $rm \$dlpath'
17665     shlibpath_overrides_runpath=yes
17666
17667     case $host_os in
17668     cygwin*)
17669       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17670       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17671       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17672       ;;
17673     mingw*)
17674       # MinGW DLLs use traditional 'lib' prefix
17675       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17676       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17677       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17678         # It is most probably a Windows format PATH printed by
17679         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17680         # path with ; separators, and with drive letters. We can handle the
17681         # drive letters (cygwin fileutils understands them), so leave them,
17682         # especially as we might pass files found there to a mingw objdump,
17683         # which wouldn't understand a cygwinified path. Ahh.
17684         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17685       else
17686         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17687       fi
17688       ;;
17689     pw32*)
17690       # pw32 DLLs use 'pw' prefix rather than 'lib'
17691       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17692       ;;
17693     esac
17694     ;;
17695
17696   *)
17697     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17698     ;;
17699   esac
17700   dynamic_linker='Win32 ld.exe'
17701   # FIXME: first we should search . and the directory the executable is in
17702   shlibpath_var=PATH
17703   ;;
17704
17705 darwin* | rhapsody*)
17706   dynamic_linker="$host_os dyld"
17707   version_type=darwin
17708   need_lib_prefix=no
17709   need_version=no
17710   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17711   soname_spec='${libname}${release}${major}$shared_ext'
17712   shlibpath_overrides_runpath=yes
17713   shlibpath_var=DYLD_LIBRARY_PATH
17714   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17715   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17716   if test "$GCC" = yes; then
17717     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"`
17718   else
17719     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17720   fi
17721   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17722   ;;
17723
17724 dgux*)
17725   version_type=linux
17726   need_lib_prefix=no
17727   need_version=no
17728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17729   soname_spec='${libname}${release}${shared_ext}$major'
17730   shlibpath_var=LD_LIBRARY_PATH
17731   ;;
17732
17733 freebsd1*)
17734   dynamic_linker=no
17735   ;;
17736
17737 kfreebsd*-gnu)
17738   version_type=linux
17739   need_lib_prefix=no
17740   need_version=no
17741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17742   soname_spec='${libname}${release}${shared_ext}$major'
17743   shlibpath_var=LD_LIBRARY_PATH
17744   shlibpath_overrides_runpath=no
17745   hardcode_into_libs=yes
17746   dynamic_linker='GNU ld.so'
17747   ;;
17748
17749 freebsd* | dragonfly*)
17750   # DragonFly does not have aout.  When/if they implement a new
17751   # versioning mechanism, adjust this.
17752   if test -x /usr/bin/objformat; then
17753     objformat=`/usr/bin/objformat`
17754   else
17755     case $host_os in
17756     freebsd[123]*) objformat=aout ;;
17757     *) objformat=elf ;;
17758     esac
17759   fi
17760   version_type=freebsd-$objformat
17761   case $version_type in
17762     freebsd-elf*)
17763       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17764       need_version=no
17765       need_lib_prefix=no
17766       ;;
17767     freebsd-*)
17768       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17769       need_version=yes
17770       ;;
17771   esac
17772   shlibpath_var=LD_LIBRARY_PATH
17773   case $host_os in
17774   freebsd2*)
17775     shlibpath_overrides_runpath=yes
17776     ;;
17777   freebsd3.[01]* | freebsdelf3.[01]*)
17778     shlibpath_overrides_runpath=yes
17779     hardcode_into_libs=yes
17780     ;;
17781   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17782   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17783     shlibpath_overrides_runpath=no
17784     hardcode_into_libs=yes
17785     ;;
17786   freebsd*) # from 4.6 on
17787     shlibpath_overrides_runpath=yes
17788     hardcode_into_libs=yes
17789     ;;
17790   esac
17791   ;;
17792
17793 gnu*)
17794   version_type=linux
17795   need_lib_prefix=no
17796   need_version=no
17797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17798   soname_spec='${libname}${release}${shared_ext}$major'
17799   shlibpath_var=LD_LIBRARY_PATH
17800   hardcode_into_libs=yes
17801   ;;
17802
17803 hpux9* | hpux10* | hpux11*)
17804   # Give a soname corresponding to the major version so that dld.sl refuses to
17805   # link against other versions.
17806   version_type=sunos
17807   need_lib_prefix=no
17808   need_version=no
17809   case $host_cpu in
17810   ia64*)
17811     shrext_cmds='.so'
17812     hardcode_into_libs=yes
17813     dynamic_linker="$host_os dld.so"
17814     shlibpath_var=LD_LIBRARY_PATH
17815     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817     soname_spec='${libname}${release}${shared_ext}$major'
17818     if test "X$HPUX_IA64_MODE" = X32; then
17819       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17820     else
17821       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17822     fi
17823     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17824     ;;
17825    hppa*64*)
17826      shrext_cmds='.sl'
17827      hardcode_into_libs=yes
17828      dynamic_linker="$host_os dld.sl"
17829      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17830      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17831      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832      soname_spec='${libname}${release}${shared_ext}$major'
17833      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17834      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17835      ;;
17836    *)
17837     shrext_cmds='.sl'
17838     dynamic_linker="$host_os dld.sl"
17839     shlibpath_var=SHLIB_PATH
17840     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17842     soname_spec='${libname}${release}${shared_ext}$major'
17843     ;;
17844   esac
17845   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17846   postinstall_cmds='chmod 555 $lib'
17847   ;;
17848
17849 interix3*)
17850   version_type=linux
17851   need_lib_prefix=no
17852   need_version=no
17853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17854   soname_spec='${libname}${release}${shared_ext}$major'
17855   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17856   shlibpath_var=LD_LIBRARY_PATH
17857   shlibpath_overrides_runpath=no
17858   hardcode_into_libs=yes
17859   ;;
17860
17861 irix5* | irix6* | nonstopux*)
17862   case $host_os in
17863     nonstopux*) version_type=nonstopux ;;
17864     *)
17865         if test "$lt_cv_prog_gnu_ld" = yes; then
17866                 version_type=linux
17867         else
17868                 version_type=irix
17869         fi ;;
17870   esac
17871   need_lib_prefix=no
17872   need_version=no
17873   soname_spec='${libname}${release}${shared_ext}$major'
17874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17875   case $host_os in
17876   irix5* | nonstopux*)
17877     libsuff= shlibsuff=
17878     ;;
17879   *)
17880     case $LD in # libtool.m4 will add one of these switches to LD
17881     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17882       libsuff= shlibsuff= libmagic=32-bit;;
17883     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17884       libsuff=32 shlibsuff=N32 libmagic=N32;;
17885     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17886       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17887     *) libsuff= shlibsuff= libmagic=never-match;;
17888     esac
17889     ;;
17890   esac
17891   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17892   shlibpath_overrides_runpath=no
17893   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17894   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17895   hardcode_into_libs=yes
17896   ;;
17897
17898 # No shared lib support for Linux oldld, aout, or coff.
17899 linux*oldld* | linux*aout* | linux*coff*)
17900   dynamic_linker=no
17901   ;;
17902
17903 # This must be Linux ELF.
17904 linux*)
17905   version_type=linux
17906   need_lib_prefix=no
17907   need_version=no
17908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909   soname_spec='${libname}${release}${shared_ext}$major'
17910   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17911   shlibpath_var=LD_LIBRARY_PATH
17912   shlibpath_overrides_runpath=no
17913   # This implies no fast_install, which is unacceptable.
17914   # Some rework will be needed to allow for fast_install
17915   # before this can be enabled.
17916   hardcode_into_libs=yes
17917
17918   # Append ld.so.conf contents to the search path
17919   if test -f /etc/ld.so.conf; then
17920     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' ' '`
17921     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17922   fi
17923
17924   # We used to test for /lib/ld.so.1 and disable shared libraries on
17925   # powerpc, because MkLinux only supported shared libraries with the
17926   # GNU dynamic linker.  Since this was broken with cross compilers,
17927   # most powerpc-linux boxes support dynamic linking these days and
17928   # people can always --disable-shared, the test was removed, and we
17929   # assume the GNU/Linux dynamic linker is in use.
17930   dynamic_linker='GNU/Linux ld.so'
17931   ;;
17932
17933 knetbsd*-gnu)
17934   version_type=linux
17935   need_lib_prefix=no
17936   need_version=no
17937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17938   soname_spec='${libname}${release}${shared_ext}$major'
17939   shlibpath_var=LD_LIBRARY_PATH
17940   shlibpath_overrides_runpath=no
17941   hardcode_into_libs=yes
17942   dynamic_linker='GNU ld.so'
17943   ;;
17944
17945 netbsd*)
17946   version_type=sunos
17947   need_lib_prefix=no
17948   need_version=no
17949   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17951     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17952     dynamic_linker='NetBSD (a.out) ld.so'
17953   else
17954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17955     soname_spec='${libname}${release}${shared_ext}$major'
17956     dynamic_linker='NetBSD ld.elf_so'
17957   fi
17958   shlibpath_var=LD_LIBRARY_PATH
17959   shlibpath_overrides_runpath=yes
17960   hardcode_into_libs=yes
17961   ;;
17962
17963 newsos6)
17964   version_type=linux
17965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966   shlibpath_var=LD_LIBRARY_PATH
17967   shlibpath_overrides_runpath=yes
17968   ;;
17969
17970 nto-qnx*)
17971   version_type=linux
17972   need_lib_prefix=no
17973   need_version=no
17974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975   soname_spec='${libname}${release}${shared_ext}$major'
17976   shlibpath_var=LD_LIBRARY_PATH
17977   shlibpath_overrides_runpath=yes
17978   ;;
17979
17980 openbsd*)
17981   version_type=sunos
17982   sys_lib_dlsearch_path_spec="/usr/lib"
17983   need_lib_prefix=no
17984   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17985   case $host_os in
17986     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17987     *)                         need_version=no  ;;
17988   esac
17989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17990   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17991   shlibpath_var=LD_LIBRARY_PATH
17992   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17993     case $host_os in
17994       openbsd2.[89] | openbsd2.[89].*)
17995         shlibpath_overrides_runpath=no
17996         ;;
17997       *)
17998         shlibpath_overrides_runpath=yes
17999         ;;
18000       esac
18001   else
18002     shlibpath_overrides_runpath=yes
18003   fi
18004   ;;
18005
18006 os2*)
18007   libname_spec='$name'
18008   shrext_cmds=".dll"
18009   need_lib_prefix=no
18010   library_names_spec='$libname${shared_ext} $libname.a'
18011   dynamic_linker='OS/2 ld.exe'
18012   shlibpath_var=LIBPATH
18013   ;;
18014
18015 osf3* | osf4* | osf5*)
18016   version_type=osf
18017   need_lib_prefix=no
18018   need_version=no
18019   soname_spec='${libname}${release}${shared_ext}$major'
18020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021   shlibpath_var=LD_LIBRARY_PATH
18022   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18023   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18024   ;;
18025
18026 solaris*)
18027   version_type=linux
18028   need_lib_prefix=no
18029   need_version=no
18030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031   soname_spec='${libname}${release}${shared_ext}$major'
18032   shlibpath_var=LD_LIBRARY_PATH
18033   shlibpath_overrides_runpath=yes
18034   hardcode_into_libs=yes
18035   # ldd complains unless libraries are executable
18036   postinstall_cmds='chmod +x $lib'
18037   ;;
18038
18039 sunos4*)
18040   version_type=sunos
18041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18042   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18043   shlibpath_var=LD_LIBRARY_PATH
18044   shlibpath_overrides_runpath=yes
18045   if test "$with_gnu_ld" = yes; then
18046     need_lib_prefix=no
18047   fi
18048   need_version=yes
18049   ;;
18050
18051 sysv4 | sysv4.3*)
18052   version_type=linux
18053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054   soname_spec='${libname}${release}${shared_ext}$major'
18055   shlibpath_var=LD_LIBRARY_PATH
18056   case $host_vendor in
18057     sni)
18058       shlibpath_overrides_runpath=no
18059       need_lib_prefix=no
18060       export_dynamic_flag_spec='${wl}-Blargedynsym'
18061       runpath_var=LD_RUN_PATH
18062       ;;
18063     siemens)
18064       need_lib_prefix=no
18065       ;;
18066     motorola)
18067       need_lib_prefix=no
18068       need_version=no
18069       shlibpath_overrides_runpath=no
18070       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18071       ;;
18072   esac
18073   ;;
18074
18075 sysv4*MP*)
18076   if test -d /usr/nec ;then
18077     version_type=linux
18078     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18079     soname_spec='$libname${shared_ext}.$major'
18080     shlibpath_var=LD_LIBRARY_PATH
18081   fi
18082   ;;
18083
18084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18085   version_type=freebsd-elf
18086   need_lib_prefix=no
18087   need_version=no
18088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18089   soname_spec='${libname}${release}${shared_ext}$major'
18090   shlibpath_var=LD_LIBRARY_PATH
18091   hardcode_into_libs=yes
18092   if test "$with_gnu_ld" = yes; then
18093     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18094     shlibpath_overrides_runpath=no
18095   else
18096     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18097     shlibpath_overrides_runpath=yes
18098     case $host_os in
18099       sco3.2v5*)
18100         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18101         ;;
18102     esac
18103   fi
18104   sys_lib_dlsearch_path_spec='/usr/lib'
18105   ;;
18106
18107 uts4*)
18108   version_type=linux
18109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110   soname_spec='${libname}${release}${shared_ext}$major'
18111   shlibpath_var=LD_LIBRARY_PATH
18112   ;;
18113
18114 *)
18115   dynamic_linker=no
18116   ;;
18117 esac
18118 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18119 echo "${ECHO_T}$dynamic_linker" >&6; }
18120 test "$dynamic_linker" = no && can_build_shared=no
18121
18122 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18123 if test "$GCC" = yes; then
18124   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18125 fi
18126
18127 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18128 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18129 hardcode_action_GCJ=
18130 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18131    test -n "$runpath_var_GCJ" || \
18132    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18133
18134   # We can hardcode non-existant directories.
18135   if test "$hardcode_direct_GCJ" != no &&
18136      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18137      # have to relink, otherwise we might link with an installed library
18138      # when we should be linking with a yet-to-be-installed one
18139      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18140      test "$hardcode_minus_L_GCJ" != no; then
18141     # Linking always hardcodes the temporary library directory.
18142     hardcode_action_GCJ=relink
18143   else
18144     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18145     hardcode_action_GCJ=immediate
18146   fi
18147 else
18148   # We cannot hardcode anything, or else we can only hardcode existing
18149   # directories.
18150   hardcode_action_GCJ=unsupported
18151 fi
18152 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18153 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18154
18155 if test "$hardcode_action_GCJ" = relink; then
18156   # Fast installation is not supported
18157   enable_fast_install=no
18158 elif test "$shlibpath_overrides_runpath" = yes ||
18159      test "$enable_shared" = no; then
18160   # Fast installation is not necessary
18161   enable_fast_install=needless
18162 fi
18163
18164
18165 # The else clause should only fire when bootstrapping the
18166 # libtool distribution, otherwise you forgot to ship ltmain.sh
18167 # with your package, and you will get complaints that there are
18168 # no rules to generate ltmain.sh.
18169 if test -f "$ltmain"; then
18170   # See if we are running on zsh, and set the options which allow our commands through
18171   # without removal of \ escapes.
18172   if test -n "${ZSH_VERSION+set}" ; then
18173     setopt NO_GLOB_SUBST
18174   fi
18175   # Now quote all the things that may contain metacharacters while being
18176   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18177   # variables and quote the copies for generation of the libtool script.
18178   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18179     SED SHELL STRIP \
18180     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18181     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18182     deplibs_check_method reload_flag reload_cmds need_locks \
18183     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18184     lt_cv_sys_global_symbol_to_c_name_address \
18185     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18186     old_postinstall_cmds old_postuninstall_cmds \
18187     compiler_GCJ \
18188     CC_GCJ \
18189     LD_GCJ \
18190     lt_prog_compiler_wl_GCJ \
18191     lt_prog_compiler_pic_GCJ \
18192     lt_prog_compiler_static_GCJ \
18193     lt_prog_compiler_no_builtin_flag_GCJ \
18194     export_dynamic_flag_spec_GCJ \
18195     thread_safe_flag_spec_GCJ \
18196     whole_archive_flag_spec_GCJ \
18197     enable_shared_with_static_runtimes_GCJ \
18198     old_archive_cmds_GCJ \
18199     old_archive_from_new_cmds_GCJ \
18200     predep_objects_GCJ \
18201     postdep_objects_GCJ \
18202     predeps_GCJ \
18203     postdeps_GCJ \
18204     compiler_lib_search_path_GCJ \
18205     archive_cmds_GCJ \
18206     archive_expsym_cmds_GCJ \
18207     postinstall_cmds_GCJ \
18208     postuninstall_cmds_GCJ \
18209     old_archive_from_expsyms_cmds_GCJ \
18210     allow_undefined_flag_GCJ \
18211     no_undefined_flag_GCJ \
18212     export_symbols_cmds_GCJ \
18213     hardcode_libdir_flag_spec_GCJ \
18214     hardcode_libdir_flag_spec_ld_GCJ \
18215     hardcode_libdir_separator_GCJ \
18216     hardcode_automatic_GCJ \
18217     module_cmds_GCJ \
18218     module_expsym_cmds_GCJ \
18219     lt_cv_prog_compiler_c_o_GCJ \
18220     exclude_expsyms_GCJ \
18221     include_expsyms_GCJ; do
18222
18223     case $var in
18224     old_archive_cmds_GCJ | \
18225     old_archive_from_new_cmds_GCJ | \
18226     archive_cmds_GCJ | \
18227     archive_expsym_cmds_GCJ | \
18228     module_cmds_GCJ | \
18229     module_expsym_cmds_GCJ | \
18230     old_archive_from_expsyms_cmds_GCJ | \
18231     export_symbols_cmds_GCJ | \
18232     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18233     postinstall_cmds | postuninstall_cmds | \
18234     old_postinstall_cmds | old_postuninstall_cmds | \
18235     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18236       # Double-quote double-evaled strings.
18237       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18238       ;;
18239     *)
18240       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18241       ;;
18242     esac
18243   done
18244
18245   case $lt_echo in
18246   *'\$0 --fallback-echo"')
18247     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18248     ;;
18249   esac
18250
18251 cfgfile="$ofile"
18252
18253   cat <<__EOF__ >> "$cfgfile"
18254 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18255
18256 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18257
18258 # Shell to use when invoking shell scripts.
18259 SHELL=$lt_SHELL
18260
18261 # Whether or not to build shared libraries.
18262 build_libtool_libs=$enable_shared
18263
18264 # Whether or not to build static libraries.
18265 build_old_libs=$enable_static
18266
18267 # Whether or not to add -lc for building shared libraries.
18268 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18269
18270 # Whether or not to disallow shared libs when runtime libs are static
18271 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18272
18273 # Whether or not to optimize for fast installation.
18274 fast_install=$enable_fast_install
18275
18276 # The host system.
18277 host_alias=$host_alias
18278 host=$host
18279 host_os=$host_os
18280
18281 # The build system.
18282 build_alias=$build_alias
18283 build=$build
18284 build_os=$build_os
18285
18286 # An echo program that does not interpret backslashes.
18287 echo=$lt_echo
18288
18289 # The archiver.
18290 AR=$lt_AR
18291 AR_FLAGS=$lt_AR_FLAGS
18292
18293 # A C compiler.
18294 LTCC=$lt_LTCC
18295
18296 # LTCC compiler flags.
18297 LTCFLAGS=$lt_LTCFLAGS
18298
18299 # A language-specific compiler.
18300 CC=$lt_compiler_GCJ
18301
18302 # Is the compiler the GNU C compiler?
18303 with_gcc=$GCC_GCJ
18304
18305 # An ERE matcher.
18306 EGREP=$lt_EGREP
18307
18308 # The linker used to build libraries.
18309 LD=$lt_LD_GCJ
18310
18311 # Whether we need hard or soft links.
18312 LN_S=$lt_LN_S
18313
18314 # A BSD-compatible nm program.
18315 NM=$lt_NM
18316
18317 # A symbol stripping program
18318 STRIP=$lt_STRIP
18319
18320 # Used to examine libraries when file_magic_cmd begins "file"
18321 MAGIC_CMD=$MAGIC_CMD
18322
18323 # Used on cygwin: DLL creation program.
18324 DLLTOOL="$DLLTOOL"
18325
18326 # Used on cygwin: object dumper.
18327 OBJDUMP="$OBJDUMP"
18328
18329 # Used on cygwin: assembler.
18330 AS="$AS"
18331
18332 # The name of the directory that contains temporary libtool files.
18333 objdir=$objdir
18334
18335 # How to create reloadable object files.
18336 reload_flag=$lt_reload_flag
18337 reload_cmds=$lt_reload_cmds
18338
18339 # How to pass a linker flag through the compiler.
18340 wl=$lt_lt_prog_compiler_wl_GCJ
18341
18342 # Object file suffix (normally "o").
18343 objext="$ac_objext"
18344
18345 # Old archive suffix (normally "a").
18346 libext="$libext"
18347
18348 # Shared library suffix (normally ".so").
18349 shrext_cmds='$shrext_cmds'
18350
18351 # Executable file suffix (normally "").
18352 exeext="$exeext"
18353
18354 # Additional compiler flags for building library objects.
18355 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18356 pic_mode=$pic_mode
18357
18358 # What is the maximum length of a command?
18359 max_cmd_len=$lt_cv_sys_max_cmd_len
18360
18361 # Does compiler simultaneously support -c and -o options?
18362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18363
18364 # Must we lock files when doing compilation?
18365 need_locks=$lt_need_locks
18366
18367 # Do we need the lib prefix for modules?
18368 need_lib_prefix=$need_lib_prefix
18369
18370 # Do we need a version for libraries?
18371 need_version=$need_version
18372
18373 # Whether dlopen is supported.
18374 dlopen_support=$enable_dlopen
18375
18376 # Whether dlopen of programs is supported.
18377 dlopen_self=$enable_dlopen_self
18378
18379 # Whether dlopen of statically linked programs is supported.
18380 dlopen_self_static=$enable_dlopen_self_static
18381
18382 # Compiler flag to prevent dynamic linking.
18383 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18384
18385 # Compiler flag to turn off builtin functions.
18386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18387
18388 # Compiler flag to allow reflexive dlopens.
18389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18390
18391 # Compiler flag to generate shared objects directly from archives.
18392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18393
18394 # Compiler flag to generate thread-safe objects.
18395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18396
18397 # Library versioning type.
18398 version_type=$version_type
18399
18400 # Format of library name prefix.
18401 libname_spec=$lt_libname_spec
18402
18403 # List of archive names.  First name is the real one, the rest are links.
18404 # The last name is the one that the linker finds with -lNAME.
18405 library_names_spec=$lt_library_names_spec
18406
18407 # The coded name of the library, if different from the real name.
18408 soname_spec=$lt_soname_spec
18409
18410 # Commands used to build and install an old-style archive.
18411 RANLIB=$lt_RANLIB
18412 old_archive_cmds=$lt_old_archive_cmds_GCJ
18413 old_postinstall_cmds=$lt_old_postinstall_cmds
18414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18415
18416 # Create an old-style archive from a shared archive.
18417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18418
18419 # Create a temporary old-style archive to link instead of a shared archive.
18420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18421
18422 # Commands used to build and install a shared archive.
18423 archive_cmds=$lt_archive_cmds_GCJ
18424 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18425 postinstall_cmds=$lt_postinstall_cmds
18426 postuninstall_cmds=$lt_postuninstall_cmds
18427
18428 # Commands used to build a loadable module (assumed same as above if empty)
18429 module_cmds=$lt_module_cmds_GCJ
18430 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18431
18432 # Commands to strip libraries.
18433 old_striplib=$lt_old_striplib
18434 striplib=$lt_striplib
18435
18436 # Dependencies to place before the objects being linked to create a
18437 # shared library.
18438 predep_objects=$lt_predep_objects_GCJ
18439
18440 # Dependencies to place after the objects being linked to create a
18441 # shared library.
18442 postdep_objects=$lt_postdep_objects_GCJ
18443
18444 # Dependencies to place before the objects being linked to create a
18445 # shared library.
18446 predeps=$lt_predeps_GCJ
18447
18448 # Dependencies to place after the objects being linked to create a
18449 # shared library.
18450 postdeps=$lt_postdeps_GCJ
18451
18452 # The library search path used internally by the compiler when linking
18453 # a shared library.
18454 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18455
18456 # Method to check whether dependent libraries are shared objects.
18457 deplibs_check_method=$lt_deplibs_check_method
18458
18459 # Command to use when deplibs_check_method == file_magic.
18460 file_magic_cmd=$lt_file_magic_cmd
18461
18462 # Flag that allows shared libraries with undefined symbols to be built.
18463 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18464
18465 # Flag that forces no undefined symbols.
18466 no_undefined_flag=$lt_no_undefined_flag_GCJ
18467
18468 # Commands used to finish a libtool library installation in a directory.
18469 finish_cmds=$lt_finish_cmds
18470
18471 # Same as above, but a single script fragment to be evaled but not shown.
18472 finish_eval=$lt_finish_eval
18473
18474 # Take the output of nm and produce a listing of raw symbols and C names.
18475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476
18477 # Transform the output of nm in a proper C declaration
18478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479
18480 # Transform the output of nm in a C name address pair
18481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482
18483 # This is the shared library runtime path variable.
18484 runpath_var=$runpath_var
18485
18486 # This is the shared library path variable.
18487 shlibpath_var=$shlibpath_var
18488
18489 # Is shlibpath searched before the hard-coded library search path?
18490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18491
18492 # How to hardcode a shared library path into an executable.
18493 hardcode_action=$hardcode_action_GCJ
18494
18495 # Whether we should hardcode library paths into libraries.
18496 hardcode_into_libs=$hardcode_into_libs
18497
18498 # Flag to hardcode \$libdir into a binary during linking.
18499 # This must work even if \$libdir does not exist.
18500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18501
18502 # If ld is used when linking, flag to hardcode \$libdir into
18503 # a binary during linking. This must work even if \$libdir does
18504 # not exist.
18505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18506
18507 # Whether we need a single -rpath flag with a separated argument.
18508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18509
18510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18511 # resulting binary.
18512 hardcode_direct=$hardcode_direct_GCJ
18513
18514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18515 # resulting binary.
18516 hardcode_minus_L=$hardcode_minus_L_GCJ
18517
18518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18519 # the resulting binary.
18520 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18521
18522 # Set to yes if building a shared library automatically hardcodes DIR into the library
18523 # and all subsequent libraries and executables linked against it.
18524 hardcode_automatic=$hardcode_automatic_GCJ
18525
18526 # Variables whose values should be saved in libtool wrapper scripts and
18527 # restored at relink time.
18528 variables_saved_for_relink="$variables_saved_for_relink"
18529
18530 # Whether libtool must link a program against all its dependency libraries.
18531 link_all_deplibs=$link_all_deplibs_GCJ
18532
18533 # Compile-time system search path for libraries
18534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18535
18536 # Run-time system search path for libraries
18537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18538
18539 # Fix the shell variable \$srcfile for the compiler.
18540 fix_srcfile_path="$fix_srcfile_path_GCJ"
18541
18542 # Set to yes if exported symbols are required.
18543 always_export_symbols=$always_export_symbols_GCJ
18544
18545 # The commands to list exported symbols.
18546 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18547
18548 # The commands to extract the exported symbol list from a shared archive.
18549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18550
18551 # Symbols that should not be listed in the preloaded symbols.
18552 exclude_expsyms=$lt_exclude_expsyms_GCJ
18553
18554 # Symbols that must always be exported.
18555 include_expsyms=$lt_include_expsyms_GCJ
18556
18557 # ### END LIBTOOL TAG CONFIG: $tagname
18558
18559 __EOF__
18560
18561
18562 else
18563   # If there is no Makefile yet, we rely on a make rule to execute
18564   # `config.status --recheck' to rerun these tests and create the
18565   # libtool script then.
18566   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18567   if test -f "$ltmain_in"; then
18568     test -f Makefile && make "$ltmain"
18569   fi
18570 fi
18571
18572
18573 ac_ext=c
18574 ac_cpp='$CPP $CPPFLAGS'
18575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18578
18579 CC="$lt_save_CC"
18580
18581         else
18582           tagname=""
18583         fi
18584         ;;
18585
18586       RC)
18587
18588
18589 # Source file extension for RC test sources.
18590 ac_ext=rc
18591
18592 # Object file extension for compiled RC test sources.
18593 objext=o
18594 objext_RC=$objext
18595
18596 # Code to be used in simple compile tests
18597 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18598
18599 # Code to be used in simple link tests
18600 lt_simple_link_test_code="$lt_simple_compile_test_code"
18601
18602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18603
18604 # If no C compiler was specified, use CC.
18605 LTCC=${LTCC-"$CC"}
18606
18607 # If no C compiler flags were specified, use CFLAGS.
18608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18609
18610 # Allow CC to be a program name with arguments.
18611 compiler=$CC
18612
18613
18614 # save warnings/boilerplate of simple test code
18615 ac_outfile=conftest.$ac_objext
18616 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18618 _lt_compiler_boilerplate=`cat conftest.err`
18619 $rm conftest*
18620
18621 ac_outfile=conftest.$ac_objext
18622 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18624 _lt_linker_boilerplate=`cat conftest.err`
18625 $rm conftest*
18626
18627
18628 # Allow CC to be a program name with arguments.
18629 lt_save_CC="$CC"
18630 CC=${RC-"windres"}
18631 compiler=$CC
18632 compiler_RC=$CC
18633 for cc_temp in $compiler""; do
18634   case $cc_temp in
18635     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18636     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18637     \-*) ;;
18638     *) break;;
18639   esac
18640 done
18641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18642
18643 lt_cv_prog_compiler_c_o_RC=yes
18644
18645 # The else clause should only fire when bootstrapping the
18646 # libtool distribution, otherwise you forgot to ship ltmain.sh
18647 # with your package, and you will get complaints that there are
18648 # no rules to generate ltmain.sh.
18649 if test -f "$ltmain"; then
18650   # See if we are running on zsh, and set the options which allow our commands through
18651   # without removal of \ escapes.
18652   if test -n "${ZSH_VERSION+set}" ; then
18653     setopt NO_GLOB_SUBST
18654   fi
18655   # Now quote all the things that may contain metacharacters while being
18656   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18657   # variables and quote the copies for generation of the libtool script.
18658   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18659     SED SHELL STRIP \
18660     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18661     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18662     deplibs_check_method reload_flag reload_cmds need_locks \
18663     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18664     lt_cv_sys_global_symbol_to_c_name_address \
18665     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18666     old_postinstall_cmds old_postuninstall_cmds \
18667     compiler_RC \
18668     CC_RC \
18669     LD_RC \
18670     lt_prog_compiler_wl_RC \
18671     lt_prog_compiler_pic_RC \
18672     lt_prog_compiler_static_RC \
18673     lt_prog_compiler_no_builtin_flag_RC \
18674     export_dynamic_flag_spec_RC \
18675     thread_safe_flag_spec_RC \
18676     whole_archive_flag_spec_RC \
18677     enable_shared_with_static_runtimes_RC \
18678     old_archive_cmds_RC \
18679     old_archive_from_new_cmds_RC \
18680     predep_objects_RC \
18681     postdep_objects_RC \
18682     predeps_RC \
18683     postdeps_RC \
18684     compiler_lib_search_path_RC \
18685     archive_cmds_RC \
18686     archive_expsym_cmds_RC \
18687     postinstall_cmds_RC \
18688     postuninstall_cmds_RC \
18689     old_archive_from_expsyms_cmds_RC \
18690     allow_undefined_flag_RC \
18691     no_undefined_flag_RC \
18692     export_symbols_cmds_RC \
18693     hardcode_libdir_flag_spec_RC \
18694     hardcode_libdir_flag_spec_ld_RC \
18695     hardcode_libdir_separator_RC \
18696     hardcode_automatic_RC \
18697     module_cmds_RC \
18698     module_expsym_cmds_RC \
18699     lt_cv_prog_compiler_c_o_RC \
18700     exclude_expsyms_RC \
18701     include_expsyms_RC; do
18702
18703     case $var in
18704     old_archive_cmds_RC | \
18705     old_archive_from_new_cmds_RC | \
18706     archive_cmds_RC | \
18707     archive_expsym_cmds_RC | \
18708     module_cmds_RC | \
18709     module_expsym_cmds_RC | \
18710     old_archive_from_expsyms_cmds_RC | \
18711     export_symbols_cmds_RC | \
18712     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18713     postinstall_cmds | postuninstall_cmds | \
18714     old_postinstall_cmds | old_postuninstall_cmds | \
18715     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18716       # Double-quote double-evaled strings.
18717       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18718       ;;
18719     *)
18720       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18721       ;;
18722     esac
18723   done
18724
18725   case $lt_echo in
18726   *'\$0 --fallback-echo"')
18727     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18728     ;;
18729   esac
18730
18731 cfgfile="$ofile"
18732
18733   cat <<__EOF__ >> "$cfgfile"
18734 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18735
18736 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18737
18738 # Shell to use when invoking shell scripts.
18739 SHELL=$lt_SHELL
18740
18741 # Whether or not to build shared libraries.
18742 build_libtool_libs=$enable_shared
18743
18744 # Whether or not to build static libraries.
18745 build_old_libs=$enable_static
18746
18747 # Whether or not to add -lc for building shared libraries.
18748 build_libtool_need_lc=$archive_cmds_need_lc_RC
18749
18750 # Whether or not to disallow shared libs when runtime libs are static
18751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18752
18753 # Whether or not to optimize for fast installation.
18754 fast_install=$enable_fast_install
18755
18756 # The host system.
18757 host_alias=$host_alias
18758 host=$host
18759 host_os=$host_os
18760
18761 # The build system.
18762 build_alias=$build_alias
18763 build=$build
18764 build_os=$build_os
18765
18766 # An echo program that does not interpret backslashes.
18767 echo=$lt_echo
18768
18769 # The archiver.
18770 AR=$lt_AR
18771 AR_FLAGS=$lt_AR_FLAGS
18772
18773 # A C compiler.
18774 LTCC=$lt_LTCC
18775
18776 # LTCC compiler flags.
18777 LTCFLAGS=$lt_LTCFLAGS
18778
18779 # A language-specific compiler.
18780 CC=$lt_compiler_RC
18781
18782 # Is the compiler the GNU C compiler?
18783 with_gcc=$GCC_RC
18784
18785 # An ERE matcher.
18786 EGREP=$lt_EGREP
18787
18788 # The linker used to build libraries.
18789 LD=$lt_LD_RC
18790
18791 # Whether we need hard or soft links.
18792 LN_S=$lt_LN_S
18793
18794 # A BSD-compatible nm program.
18795 NM=$lt_NM
18796
18797 # A symbol stripping program
18798 STRIP=$lt_STRIP
18799
18800 # Used to examine libraries when file_magic_cmd begins "file"
18801 MAGIC_CMD=$MAGIC_CMD
18802
18803 # Used on cygwin: DLL creation program.
18804 DLLTOOL="$DLLTOOL"
18805
18806 # Used on cygwin: object dumper.
18807 OBJDUMP="$OBJDUMP"
18808
18809 # Used on cygwin: assembler.
18810 AS="$AS"
18811
18812 # The name of the directory that contains temporary libtool files.
18813 objdir=$objdir
18814
18815 # How to create reloadable object files.
18816 reload_flag=$lt_reload_flag
18817 reload_cmds=$lt_reload_cmds
18818
18819 # How to pass a linker flag through the compiler.
18820 wl=$lt_lt_prog_compiler_wl_RC
18821
18822 # Object file suffix (normally "o").
18823 objext="$ac_objext"
18824
18825 # Old archive suffix (normally "a").
18826 libext="$libext"
18827
18828 # Shared library suffix (normally ".so").
18829 shrext_cmds='$shrext_cmds'
18830
18831 # Executable file suffix (normally "").
18832 exeext="$exeext"
18833
18834 # Additional compiler flags for building library objects.
18835 pic_flag=$lt_lt_prog_compiler_pic_RC
18836 pic_mode=$pic_mode
18837
18838 # What is the maximum length of a command?
18839 max_cmd_len=$lt_cv_sys_max_cmd_len
18840
18841 # Does compiler simultaneously support -c and -o options?
18842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18843
18844 # Must we lock files when doing compilation?
18845 need_locks=$lt_need_locks
18846
18847 # Do we need the lib prefix for modules?
18848 need_lib_prefix=$need_lib_prefix
18849
18850 # Do we need a version for libraries?
18851 need_version=$need_version
18852
18853 # Whether dlopen is supported.
18854 dlopen_support=$enable_dlopen
18855
18856 # Whether dlopen of programs is supported.
18857 dlopen_self=$enable_dlopen_self
18858
18859 # Whether dlopen of statically linked programs is supported.
18860 dlopen_self_static=$enable_dlopen_self_static
18861
18862 # Compiler flag to prevent dynamic linking.
18863 link_static_flag=$lt_lt_prog_compiler_static_RC
18864
18865 # Compiler flag to turn off builtin functions.
18866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18867
18868 # Compiler flag to allow reflexive dlopens.
18869 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18870
18871 # Compiler flag to generate shared objects directly from archives.
18872 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18873
18874 # Compiler flag to generate thread-safe objects.
18875 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18876
18877 # Library versioning type.
18878 version_type=$version_type
18879
18880 # Format of library name prefix.
18881 libname_spec=$lt_libname_spec
18882
18883 # List of archive names.  First name is the real one, the rest are links.
18884 # The last name is the one that the linker finds with -lNAME.
18885 library_names_spec=$lt_library_names_spec
18886
18887 # The coded name of the library, if different from the real name.
18888 soname_spec=$lt_soname_spec
18889
18890 # Commands used to build and install an old-style archive.
18891 RANLIB=$lt_RANLIB
18892 old_archive_cmds=$lt_old_archive_cmds_RC
18893 old_postinstall_cmds=$lt_old_postinstall_cmds
18894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18895
18896 # Create an old-style archive from a shared archive.
18897 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18898
18899 # Create a temporary old-style archive to link instead of a shared archive.
18900 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18901
18902 # Commands used to build and install a shared archive.
18903 archive_cmds=$lt_archive_cmds_RC
18904 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18905 postinstall_cmds=$lt_postinstall_cmds
18906 postuninstall_cmds=$lt_postuninstall_cmds
18907
18908 # Commands used to build a loadable module (assumed same as above if empty)
18909 module_cmds=$lt_module_cmds_RC
18910 module_expsym_cmds=$lt_module_expsym_cmds_RC
18911
18912 # Commands to strip libraries.
18913 old_striplib=$lt_old_striplib
18914 striplib=$lt_striplib
18915
18916 # Dependencies to place before the objects being linked to create a
18917 # shared library.
18918 predep_objects=$lt_predep_objects_RC
18919
18920 # Dependencies to place after the objects being linked to create a
18921 # shared library.
18922 postdep_objects=$lt_postdep_objects_RC
18923
18924 # Dependencies to place before the objects being linked to create a
18925 # shared library.
18926 predeps=$lt_predeps_RC
18927
18928 # Dependencies to place after the objects being linked to create a
18929 # shared library.
18930 postdeps=$lt_postdeps_RC
18931
18932 # The library search path used internally by the compiler when linking
18933 # a shared library.
18934 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18935
18936 # Method to check whether dependent libraries are shared objects.
18937 deplibs_check_method=$lt_deplibs_check_method
18938
18939 # Command to use when deplibs_check_method == file_magic.
18940 file_magic_cmd=$lt_file_magic_cmd
18941
18942 # Flag that allows shared libraries with undefined symbols to be built.
18943 allow_undefined_flag=$lt_allow_undefined_flag_RC
18944
18945 # Flag that forces no undefined symbols.
18946 no_undefined_flag=$lt_no_undefined_flag_RC
18947
18948 # Commands used to finish a libtool library installation in a directory.
18949 finish_cmds=$lt_finish_cmds
18950
18951 # Same as above, but a single script fragment to be evaled but not shown.
18952 finish_eval=$lt_finish_eval
18953
18954 # Take the output of nm and produce a listing of raw symbols and C names.
18955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18956
18957 # Transform the output of nm in a proper C declaration
18958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18959
18960 # Transform the output of nm in a C name address pair
18961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18962
18963 # This is the shared library runtime path variable.
18964 runpath_var=$runpath_var
18965
18966 # This is the shared library path variable.
18967 shlibpath_var=$shlibpath_var
18968
18969 # Is shlibpath searched before the hard-coded library search path?
18970 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18971
18972 # How to hardcode a shared library path into an executable.
18973 hardcode_action=$hardcode_action_RC
18974
18975 # Whether we should hardcode library paths into libraries.
18976 hardcode_into_libs=$hardcode_into_libs
18977
18978 # Flag to hardcode \$libdir into a binary during linking.
18979 # This must work even if \$libdir does not exist.
18980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18981
18982 # If ld is used when linking, flag to hardcode \$libdir into
18983 # a binary during linking. This must work even if \$libdir does
18984 # not exist.
18985 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18986
18987 # Whether we need a single -rpath flag with a separated argument.
18988 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18989
18990 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18991 # resulting binary.
18992 hardcode_direct=$hardcode_direct_RC
18993
18994 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18995 # resulting binary.
18996 hardcode_minus_L=$hardcode_minus_L_RC
18997
18998 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18999 # the resulting binary.
19000 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19001
19002 # Set to yes if building a shared library automatically hardcodes DIR into the library
19003 # and all subsequent libraries and executables linked against it.
19004 hardcode_automatic=$hardcode_automatic_RC
19005
19006 # Variables whose values should be saved in libtool wrapper scripts and
19007 # restored at relink time.
19008 variables_saved_for_relink="$variables_saved_for_relink"
19009
19010 # Whether libtool must link a program against all its dependency libraries.
19011 link_all_deplibs=$link_all_deplibs_RC
19012
19013 # Compile-time system search path for libraries
19014 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19015
19016 # Run-time system search path for libraries
19017 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19018
19019 # Fix the shell variable \$srcfile for the compiler.
19020 fix_srcfile_path="$fix_srcfile_path_RC"
19021
19022 # Set to yes if exported symbols are required.
19023 always_export_symbols=$always_export_symbols_RC
19024
19025 # The commands to list exported symbols.
19026 export_symbols_cmds=$lt_export_symbols_cmds_RC
19027
19028 # The commands to extract the exported symbol list from a shared archive.
19029 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19030
19031 # Symbols that should not be listed in the preloaded symbols.
19032 exclude_expsyms=$lt_exclude_expsyms_RC
19033
19034 # Symbols that must always be exported.
19035 include_expsyms=$lt_include_expsyms_RC
19036
19037 # ### END LIBTOOL TAG CONFIG: $tagname
19038
19039 __EOF__
19040
19041
19042 else
19043   # If there is no Makefile yet, we rely on a make rule to execute
19044   # `config.status --recheck' to rerun these tests and create the
19045   # libtool script then.
19046   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19047   if test -f "$ltmain_in"; then
19048     test -f Makefile && make "$ltmain"
19049   fi
19050 fi
19051
19052
19053 ac_ext=c
19054 ac_cpp='$CPP $CPPFLAGS'
19055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19058
19059 CC="$lt_save_CC"
19060
19061         ;;
19062
19063       *)
19064         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19065 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19066    { (exit 1); exit 1; }; }
19067         ;;
19068       esac
19069
19070       # Append the new tag name to the list of available tags.
19071       if test -n "$tagname" ; then
19072       available_tags="$available_tags $tagname"
19073     fi
19074     fi
19075   done
19076   IFS="$lt_save_ifs"
19077
19078   # Now substitute the updated list of available tags.
19079   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19080     mv "${ofile}T" "$ofile"
19081     chmod +x "$ofile"
19082   else
19083     rm -f "${ofile}T"
19084     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19085 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19086    { (exit 1); exit 1; }; }
19087   fi
19088 fi
19089
19090
19091
19092 # This can be used to rebuild libtool when needed
19093 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19094
19095 # Always use our own libtool.
19096 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19097
19098 # Prevent multiple expansion
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111 # Check whether --with-system-libtool was given.
19112 if test "${with_system_libtool+set}" = set; then
19113   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19114 set dummy libtool; ac_word=$2
19115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19117 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120   case $LIBTOOL in
19121   [\\/]* | ?:[\\/]*)
19122   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19123   ;;
19124   *)
19125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 as_dummy="$PATH:/usr/local/bin"
19127 for as_dir in $as_dummy
19128 do
19129   IFS=$as_save_IFS
19130   test -z "$as_dir" && as_dir=.
19131   for ac_exec_ext in '' $ac_executable_extensions; do
19132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19133     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19135     break 2
19136   fi
19137 done
19138 done
19139 IFS=$as_save_IFS
19140
19141   ;;
19142 esac
19143 fi
19144 LIBTOOL=$ac_cv_path_LIBTOOL
19145 if test -n "$LIBTOOL"; then
19146   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19147 echo "${ECHO_T}$LIBTOOL" >&6; }
19148 else
19149   { echo "$as_me:$LINENO: result: no" >&5
19150 echo "${ECHO_T}no" >&6; }
19151 fi
19152
19153
19154 else
19155
19156   LIBTOOL="`pwd`/libtool"
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171 fi
19172
19173
19174
19175
19176 # Check whether --enable-strict-dependencies was given.
19177 if test "${enable_strict_dependencies+set}" = set; then
19178   enableval=$enable_strict_dependencies;
19179 fi
19180
19181
19182 docdir='${datadir}/doc/freeradius'
19183 { echo "$as_me:$LINENO: checking docdir" >&5
19184 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19185
19186 # Check whether --with-docdir was given.
19187 if test "${with_docdir+set}" = set; then
19188   withval=$with_docdir;  case "$withval" in
19189     no)
19190         docdir=no
19191         ;;
19192     yes)
19193         ;;
19194     [\\/$]* | ?:[\\/]* )
19195         docdir="$withval"
19196         ;;
19197     *)
19198         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19199 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19200    { (exit 1); exit 1; }; }
19201         ;;
19202   esac
19203
19204 fi
19205
19206
19207 { echo "$as_me:$LINENO: result: $docdir" >&5
19208 echo "${ECHO_T}$docdir" >&6; }
19209 if test "x$docdir" = xno; then
19210         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19211 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19212 fi
19213
19214 logdir='${localstatedir}/log/radius'
19215 { echo "$as_me:$LINENO: checking logdir" >&5
19216 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19217
19218 # Check whether --with-logdir was given.
19219 if test "${with_logdir+set}" = set; then
19220   withval=$with_logdir;  case "$withval" in
19221     no)
19222         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19223 echo "$as_me: error: Need logdir" >&2;}
19224    { (exit 1); exit 1; }; }
19225         ;;
19226     yes)
19227         ;;
19228     [\\/$]* | ?:[\\/]* )
19229         logdir="$withval"
19230         ;;
19231     *)
19232         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19233 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19234    { (exit 1); exit 1; }; }
19235         ;;
19236   esac
19237
19238 fi
19239
19240
19241 { echo "$as_me:$LINENO: result: $logdir" >&5
19242 echo "${ECHO_T}$logdir" >&6; }
19243
19244 radacctdir='${logdir}/radacct'
19245 { echo "$as_me:$LINENO: checking radacctdir" >&5
19246 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19247
19248 # Check whether --with-radacctdir was given.
19249 if test "${with_radacctdir+set}" = set; then
19250   withval=$with_radacctdir;  case "$withval" in
19251     no)
19252         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19253 echo "$as_me: error: Need radacctdir" >&2;}
19254    { (exit 1); exit 1; }; }
19255         ;;
19256     yes)
19257         ;;
19258     [\\/$]* | ?:[\\/]* )
19259         radacctdir="$withval"
19260         ;;
19261     *)
19262         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19263 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19264    { (exit 1); exit 1; }; }
19265         ;;
19266   esac
19267
19268 fi
19269
19270
19271 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19272 echo "${ECHO_T}$radacctdir" >&6; }
19273
19274 raddbdir='${sysconfdir}/raddb'
19275 { echo "$as_me:$LINENO: checking raddbdir" >&5
19276 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19277
19278 # Check whether --with-raddbdir was given.
19279 if test "${with_raddbdir+set}" = set; then
19280   withval=$with_raddbdir;  case "$withval" in
19281     no)
19282         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19283 echo "$as_me: error: Need raddbdir" >&2;}
19284    { (exit 1); exit 1; }; }
19285         ;;
19286     yes)
19287         ;;
19288     [\\/$]* | ?:[\\/]* )
19289         raddbdir="$withval"
19290         ;;
19291     *)
19292         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19293 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19294    { (exit 1); exit 1; }; }
19295         ;;
19296   esac
19297
19298 fi
19299
19300
19301 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19302 echo "${ECHO_T}$raddbdir" >&6; }
19303
19304 ASCEND_BINARY=yes
19305
19306 # Check whether --with-ascend-binary was given.
19307 if test "${with_ascend_binary+set}" = set; then
19308   withval=$with_ascend_binary;  case "$withval" in
19309     yes)
19310         ;;
19311     *)
19312         ASCEND_BINARY=""
19313   esac
19314
19315 fi
19316
19317 if test "X$ASCEND_BINARY" = "Xyes"; then
19318   cat >>confdefs.h <<\_ACEOF
19319 #define ASCEND_BINARY 1
19320 _ACEOF
19321
19322 fi
19323
19324 WITH_THREADS=yes
19325
19326 # Check whether --with-threads was given.
19327 if test "${with_threads+set}" = set; then
19328   withval=$with_threads;  case "$withval" in
19329     yes)
19330         ;;
19331     *)
19332         WITH_THREADS=""
19333   esac
19334
19335 fi
19336
19337
19338 WITH_SNMP=yes
19339
19340 # Check whether --with-snmp was given.
19341 if test "${with_snmp+set}" = set; then
19342   withval=$with_snmp;  case "$withval" in
19343     yes)
19344         ;;
19345     *)
19346         WITH_SNMP=no
19347   esac
19348
19349 fi
19350
19351
19352
19353 # Check whether --with-snmp-include-dir was given.
19354 if test "${with_snmp_include_dir+set}" = set; then
19355   withval=$with_snmp_include_dir;  case "$withval" in
19356     *)
19357         ;;
19358   esac
19359
19360 fi
19361
19362
19363 rad_enable_largefiles=no
19364
19365 # Check whether --with-large-files was given.
19366 if test "${with_large_files+set}" = set; then
19367   withval=$with_large_files;  case "$withval" in
19368     yes)
19369         rad_enable_largefiles=yes
19370         ;;
19371     *)
19372         ;;
19373   esac
19374
19375 fi
19376
19377
19378
19379 STATIC_MODULES=
19380
19381 # Check whether --with-static_modules was given.
19382 if test "${with_static_modules+set}" = set; then
19383   withval=$with_static_modules;
19384   for i in $withval; do
19385     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19386   done
19387
19388 fi
19389
19390
19391 MODULES=
19392
19393 # Check whether --with-modules was given.
19394 if test "${with_modules+set}" = set; then
19395   withval=$with_modules;
19396  for i in $withval; do
19397    MODULES="$MODULES $i"
19398  done
19399
19400 fi
19401
19402
19403 # Check whether --enable-developer was given.
19404 if test "${enable_developer+set}" = set; then
19405   enableval=$enable_developer;  case "$enableval" in
19406     no)
19407         developer=no
19408         ;;
19409     *)
19410         developer=yes
19411   esac
19412
19413 fi
19414
19415
19416 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19417     developer="yes"
19418 fi
19419
19420 EXPERIMENTAL=
19421
19422 # Check whether --with-experimental-modules was given.
19423 if test "${with_experimental_modules+set}" = set; then
19424   withval=$with_experimental_modules;  case "$withval" in
19425     yes)
19426         EXPERIMENTAL=yes
19427         ;;
19428     *)
19429   esac
19430
19431 fi
19432
19433
19434 OPENSSL_INCLUDE_DIR=
19435
19436 # Check whether --with-openssl-includes was given.
19437 if test "${with_openssl_includes+set}" = set; then
19438   withval=$with_openssl_includes;  case "$withval" in
19439     *) OPENSSL_INCLUDE_DIR="$withval"
19440         ;;
19441   esac
19442
19443 fi
19444
19445
19446 OPENSSL_LIB_DIR=
19447
19448 # Check whether --with-openssl-libraries was given.
19449 if test "${with_openssl_libraries+set}" = set; then
19450   withval=$with_openssl_libraries;  case "$withval" in
19451     *) OPENSSL_LIB_DIR="$withval"
19452         ;;
19453   esac
19454
19455 fi
19456
19457
19458
19459
19460 # Check whether --with-rlm-FOO-lib-dir was given.
19461 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19462   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19463     *)
19464         ;;
19465   esac
19466
19467 fi
19468
19469
19470
19471 # Check whether --with-rlm-FOO-include-dir was given.
19472 if test "${with_rlm_FOO_include_dir+set}" = set; then
19473   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19474     *)
19475         ;;
19476   esac
19477
19478 fi
19479
19480
19481
19482 WITH_UDPFROMTO=no
19483
19484 # Check whether --with-udpfromto was given.
19485 if test "${with_udpfromto+set}" = set; then
19486   withval=$with_udpfromto;  case "$withval" in
19487     yes)
19488         WITH_UDPFROMTO=yes
19489         ;;
19490     *)
19491         WITH_UDPFROMTO=no
19492   esac
19493
19494 fi
19495
19496
19497 if test "x$WITH_UDPFROMTO" = "xyes"; then
19498         cat >>confdefs.h <<\_ACEOF
19499 #define WITH_UDPFROMTO 1
19500 _ACEOF
19501
19502 fi
19503
19504
19505 # Check whether --with-edir was given.
19506 if test "${with_edir+set}" = set; then
19507   withval=$with_edir;
19508 fi
19509
19510
19511
19512 CHECKRAD=checkrad.pl
19513 # Extract the first word of "perl", so it can be a program name with args.
19514 set dummy perl; ac_word=$2
19515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19517 if test "${ac_cv_path_PERL+set}" = set; then
19518   echo $ECHO_N "(cached) $ECHO_C" >&6
19519 else
19520   case $PERL in
19521   [\\/]* | ?:[\\/]*)
19522   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19523   ;;
19524   *)
19525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19526 for as_dir in $PATH
19527 do
19528   IFS=$as_save_IFS
19529   test -z "$as_dir" && as_dir=.
19530   for ac_exec_ext in '' $ac_executable_extensions; do
19531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19532     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19534     break 2
19535   fi
19536 done
19537 done
19538 IFS=$as_save_IFS
19539
19540   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19541   ;;
19542 esac
19543 fi
19544 PERL=$ac_cv_path_PERL
19545 if test -n "$PERL"; then
19546   { echo "$as_me:$LINENO: result: $PERL" >&5
19547 echo "${ECHO_T}$PERL" >&6; }
19548 else
19549   { echo "$as_me:$LINENO: result: no" >&5
19550 echo "${ECHO_T}no" >&6; }
19551 fi
19552
19553
19554 if test "x$ac_cv_path_PERL" = "x"; then
19555   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19556 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19557 fi
19558 # Extract the first word of "snmpget", so it can be a program name with args.
19559 set dummy snmpget; ac_word=$2
19560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19562 if test "${ac_cv_path_SNMPGET+set}" = set; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565   case $SNMPGET in
19566   [\\/]* | ?:[\\/]*)
19567   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19568   ;;
19569   *)
19570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19571 for as_dir in $PATH
19572 do
19573   IFS=$as_save_IFS
19574   test -z "$as_dir" && as_dir=.
19575   for ac_exec_ext in '' $ac_executable_extensions; do
19576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19577     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19579     break 2
19580   fi
19581 done
19582 done
19583 IFS=$as_save_IFS
19584
19585   ;;
19586 esac
19587 fi
19588 SNMPGET=$ac_cv_path_SNMPGET
19589 if test -n "$SNMPGET"; then
19590   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19591 echo "${ECHO_T}$SNMPGET" >&6; }
19592 else
19593   { echo "$as_me:$LINENO: result: no" >&5
19594 echo "${ECHO_T}no" >&6; }
19595 fi
19596
19597
19598 if test "x$ac_cv_path_SNMPGET" = "x"; then
19599   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19600 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19601 fi
19602
19603 # Extract the first word of "snmpwalk", so it can be a program name with args.
19604 set dummy snmpwalk; ac_word=$2
19605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19607 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19608   echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610   case $SNMPWALK in
19611   [\\/]* | ?:[\\/]*)
19612   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19613   ;;
19614   *)
19615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19616 for as_dir in $PATH
19617 do
19618   IFS=$as_save_IFS
19619   test -z "$as_dir" && as_dir=.
19620   for ac_exec_ext in '' $ac_executable_extensions; do
19621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19622     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19624     break 2
19625   fi
19626 done
19627 done
19628 IFS=$as_save_IFS
19629
19630   ;;
19631 esac
19632 fi
19633 SNMPWALK=$ac_cv_path_SNMPWALK
19634 if test -n "$SNMPWALK"; then
19635   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19636 echo "${ECHO_T}$SNMPWALK" >&6; }
19637 else
19638   { echo "$as_me:$LINENO: result: no" >&5
19639 echo "${ECHO_T}no" >&6; }
19640 fi
19641
19642
19643 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19644   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19645 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19646 fi
19647
19648 # Extract the first word of "rusers", so it can be a program name with args.
19649 set dummy rusers; ac_word=$2
19650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19652 if test "${ac_cv_path_RUSERS+set}" = set; then
19653   echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655   case $RUSERS in
19656   [\\/]* | ?:[\\/]*)
19657   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19658   ;;
19659   *)
19660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19661 for as_dir in $PATH
19662 do
19663   IFS=$as_save_IFS
19664   test -z "$as_dir" && as_dir=.
19665   for ac_exec_ext in '' $ac_executable_extensions; do
19666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19667     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19669     break 2
19670   fi
19671 done
19672 done
19673 IFS=$as_save_IFS
19674
19675   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19676   ;;
19677 esac
19678 fi
19679 RUSERS=$ac_cv_path_RUSERS
19680 if test -n "$RUSERS"; then
19681   { echo "$as_me:$LINENO: result: $RUSERS" >&5
19682 echo "${ECHO_T}$RUSERS" >&6; }
19683 else
19684   { echo "$as_me:$LINENO: result: no" >&5
19685 echo "${ECHO_T}no" >&6; }
19686 fi
19687
19688
19689
19690 missing_dir=`cd $ac_aux_dir && pwd`
19691 { echo "$as_me:$LINENO: checking for working aclocal" >&5
19692 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
19693 # Run test in a subshell; some versions of sh will print an error if
19694 # an executable is not found, even if stderr is redirected.
19695 # Redirect stdin to placate older versions of autoconf.  Sigh.
19696 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19697    ACLOCAL=aclocal
19698    { echo "$as_me:$LINENO: result: found" >&5
19699 echo "${ECHO_T}found" >&6; }
19700 else
19701    ACLOCAL="$missing_dir/missing aclocal"
19702    { echo "$as_me:$LINENO: result: missing" >&5
19703 echo "${ECHO_T}missing" >&6; }
19704 fi
19705
19706 { echo "$as_me:$LINENO: checking for working autoconf" >&5
19707 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
19708 # Run test in a subshell; some versions of sh will print an error if
19709 # an executable is not found, even if stderr is redirected.
19710 # Redirect stdin to placate older versions of autoconf.  Sigh.
19711 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19712    AUTOCONF=autoconf
19713    { echo "$as_me:$LINENO: result: found" >&5
19714 echo "${ECHO_T}found" >&6; }
19715 else
19716    AUTOCONF="$missing_dir/missing autoconf"
19717    { echo "$as_me:$LINENO: result: missing" >&5
19718 echo "${ECHO_T}missing" >&6; }
19719 fi
19720
19721 { echo "$as_me:$LINENO: checking for working autoheader" >&5
19722 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
19723 # Run test in a subshell; some versions of sh will print an error if
19724 # an executable is not found, even if stderr is redirected.
19725 # Redirect stdin to placate older versions of autoconf.  Sigh.
19726 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19727    AUTOHEADER=autoheader
19728    { echo "$as_me:$LINENO: result: found" >&5
19729 echo "${ECHO_T}found" >&6; }
19730 else
19731    AUTOHEADER="$missing_dir/missing autoheader"
19732    { echo "$as_me:$LINENO: result: missing" >&5
19733 echo "${ECHO_T}missing" >&6; }
19734 fi
19735
19736
19737 # Extract the first word of "locate", so it can be a program name with args.
19738 set dummy locate; ac_word=$2
19739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19741 if test "${ac_cv_path_LOCATE+set}" = set; then
19742   echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744   case $LOCATE in
19745   [\\/]* | ?:[\\/]*)
19746   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19747   ;;
19748   *)
19749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750 for as_dir in $PATH
19751 do
19752   IFS=$as_save_IFS
19753   test -z "$as_dir" && as_dir=.
19754   for ac_exec_ext in '' $ac_executable_extensions; do
19755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19756     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19758     break 2
19759   fi
19760 done
19761 done
19762 IFS=$as_save_IFS
19763
19764   ;;
19765 esac
19766 fi
19767 LOCATE=$ac_cv_path_LOCATE
19768 if test -n "$LOCATE"; then
19769   { echo "$as_me:$LINENO: result: $LOCATE" >&5
19770 echo "${ECHO_T}$LOCATE" >&6; }
19771 else
19772   { echo "$as_me:$LINENO: result: no" >&5
19773 echo "${ECHO_T}no" >&6; }
19774 fi
19775
19776
19777 # Extract the first word of "dirname", so it can be a program name with args.
19778 set dummy dirname; ac_word=$2
19779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19781 if test "${ac_cv_path_DIRNAME+set}" = set; then
19782   echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784   case $DIRNAME in
19785   [\\/]* | ?:[\\/]*)
19786   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19787   ;;
19788   *)
19789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19790 for as_dir in $PATH
19791 do
19792   IFS=$as_save_IFS
19793   test -z "$as_dir" && as_dir=.
19794   for ac_exec_ext in '' $ac_executable_extensions; do
19795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19796     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19798     break 2
19799   fi
19800 done
19801 done
19802 IFS=$as_save_IFS
19803
19804   ;;
19805 esac
19806 fi
19807 DIRNAME=$ac_cv_path_DIRNAME
19808 if test -n "$DIRNAME"; then
19809   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
19810 echo "${ECHO_T}$DIRNAME" >&6; }
19811 else
19812   { echo "$as_me:$LINENO: result: no" >&5
19813 echo "${ECHO_T}no" >&6; }
19814 fi
19815
19816
19817 # Extract the first word of "grep", so it can be a program name with args.
19818 set dummy grep; ac_word=$2
19819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19821 if test "${ac_cv_path_GREP+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   case $GREP in
19825   [\\/]* | ?:[\\/]*)
19826   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19827   ;;
19828   *)
19829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19830 for as_dir in $PATH
19831 do
19832   IFS=$as_save_IFS
19833   test -z "$as_dir" && as_dir=.
19834   for ac_exec_ext in '' $ac_executable_extensions; do
19835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19836     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19838     break 2
19839   fi
19840 done
19841 done
19842 IFS=$as_save_IFS
19843
19844   ;;
19845 esac
19846 fi
19847 GREP=$ac_cv_path_GREP
19848 if test -n "$GREP"; then
19849   { echo "$as_me:$LINENO: result: $GREP" >&5
19850 echo "${ECHO_T}$GREP" >&6; }
19851 else
19852   { echo "$as_me:$LINENO: result: no" >&5
19853 echo "${ECHO_T}no" >&6; }
19854 fi
19855
19856
19857
19858
19859 old_CFLAGS=$CFLAGS
19860 if test "x$WITH_THREADS" = "xyes"; then
19861   if test $ac_cv_prog_suncc = "yes"; then
19862     CFLAGS="$CFLAGS -mt"
19863   fi
19864
19865
19866 for ac_header in pthread.h
19867 do
19868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19870   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19873   echo $ECHO_N "(cached) $ECHO_C" >&6
19874 fi
19875 ac_res=`eval echo '${'$as_ac_Header'}'`
19876                { echo "$as_me:$LINENO: result: $ac_res" >&5
19877 echo "${ECHO_T}$ac_res" >&6; }
19878 else
19879   # Is the header compilable?
19880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19882 cat >conftest.$ac_ext <<_ACEOF
19883 /* confdefs.h.  */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h.  */
19888 $ac_includes_default
19889 #include <$ac_header>
19890 _ACEOF
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895   *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898   (eval "$ac_compile") 2>conftest.er1
19899   ac_status=$?
19900   grep -v '^ *+' conftest.er1 >conftest.err
19901   rm -f conftest.er1
19902   cat conftest.err >&5
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); } && {
19905          test -z "$ac_c_werror_flag" ||
19906          test ! -s conftest.err
19907        } && test -s conftest.$ac_objext; then
19908   ac_header_compiler=yes
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913         ac_header_compiler=no
19914 fi
19915
19916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19918 echo "${ECHO_T}$ac_header_compiler" >&6; }
19919
19920 # Is the header present?
19921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19923 cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h.  */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h.  */
19929 #include <$ac_header>
19930 _ACEOF
19931 if { (ac_try="$ac_cpp conftest.$ac_ext"
19932 case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19938   ac_status=$?
19939   grep -v '^ *+' conftest.er1 >conftest.err
19940   rm -f conftest.er1
19941   cat conftest.err >&5
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); } >/dev/null && {
19944          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19945          test ! -s conftest.err
19946        }; then
19947   ac_header_preproc=yes
19948 else
19949   echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19951
19952   ac_header_preproc=no
19953 fi
19954
19955 rm -f conftest.err conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19957 echo "${ECHO_T}$ac_header_preproc" >&6; }
19958
19959 # So?  What about this header?
19960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19961   yes:no: )
19962     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19966     ac_header_preproc=yes
19967     ;;
19968   no:yes:* )
19969     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19971     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19972 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19973     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19975     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19976 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19979     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19981
19982     ;;
19983 esac
19984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19987   echo $ECHO_N "(cached) $ECHO_C" >&6
19988 else
19989   eval "$as_ac_Header=\$ac_header_preproc"
19990 fi
19991 ac_res=`eval echo '${'$as_ac_Header'}'`
19992                { echo "$as_me:$LINENO: result: $ac_res" >&5
19993 echo "${ECHO_T}$ac_res" >&6; }
19994
19995 fi
19996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19997   cat >>confdefs.h <<_ACEOF
19998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19999 _ACEOF
20000
20001 else
20002    WITH_THREADS="no"
20003 fi
20004
20005 done
20006
20007
20008   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20009 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20010 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20011   echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013   ac_check_lib_save_LIBS=$LIBS
20014 LIBS="-lpthread  $LIBS"
20015 cat >conftest.$ac_ext <<_ACEOF
20016 /* confdefs.h.  */
20017 _ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h.  */
20021
20022 /* Override any GCC internal prototype to avoid an error.
20023    Use char because int might match the return type of a GCC
20024    builtin and then its argument prototype would still apply.  */
20025 #ifdef __cplusplus
20026 extern "C"
20027 #endif
20028 char pthread_create ();
20029 int
20030 main ()
20031 {
20032 return pthread_create ();
20033   ;
20034   return 0;
20035 }
20036 _ACEOF
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (ac_try="$ac_link"
20039 case "(($ac_try" in
20040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041   *) ac_try_echo=$ac_try;;
20042 esac
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044   (eval "$ac_link") 2>conftest.er1
20045   ac_status=$?
20046   grep -v '^ *+' conftest.er1 >conftest.err
20047   rm -f conftest.er1
20048   cat conftest.err >&5
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); } && {
20051          test -z "$ac_c_werror_flag" ||
20052          test ! -s conftest.err
20053        } && test -s conftest$ac_exeext &&
20054        $as_test_x conftest$ac_exeext; then
20055   ac_cv_lib_pthread_pthread_create=yes
20056 else
20057   echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20059
20060         ac_cv_lib_pthread_pthread_create=no
20061 fi
20062
20063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20064       conftest$ac_exeext conftest.$ac_ext
20065 LIBS=$ac_check_lib_save_LIBS
20066 fi
20067 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20068 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20069 if test $ac_cv_lib_pthread_pthread_create = yes; then
20070    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20071                   LIBS="$LIBS -lpthread"
20072 else
20073   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20074 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20075 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20076   echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078   ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-lc_r  $LIBS"
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086
20087 /* Override any GCC internal prototype to avoid an error.
20088    Use char because int might match the return type of a GCC
20089    builtin and then its argument prototype would still apply.  */
20090 #ifdef __cplusplus
20091 extern "C"
20092 #endif
20093 char pthread_create ();
20094 int
20095 main ()
20096 {
20097 return pthread_create ();
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_link") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && {
20116          test -z "$ac_c_werror_flag" ||
20117          test ! -s conftest.err
20118        } && test -s conftest$ac_exeext &&
20119        $as_test_x conftest$ac_exeext; then
20120   ac_cv_lib_c_r_pthread_create=yes
20121 else
20122   echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125         ac_cv_lib_c_r_pthread_create=no
20126 fi
20127
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129       conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20131 fi
20132 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20133 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20134 if test $ac_cv_lib_c_r_pthread_create = yes; then
20135    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20136 else
20137    WITH_THREADS="no"
20138
20139 fi
20140
20141
20142 fi
20143
20144 fi
20145
20146 if test "x$WITH_THREADS" != "xyes"; then
20147   CFLAGS=$old_CFLAGS
20148   ac_cv_header_pthread_h="no"
20149   WITH_THREADS=no
20150 else
20151
20152   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20153 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20154 if test "${ac_cv_search_sem_init+set}" = set; then
20155   echo $ECHO_N "(cached) $ECHO_C" >&6
20156 else
20157   ac_func_search_save_LIBS=$LIBS
20158 cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h.  */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h.  */
20164
20165 /* Override any GCC internal prototype to avoid an error.
20166    Use char because int might match the return type of a GCC
20167    builtin and then its argument prototype would still apply.  */
20168 #ifdef __cplusplus
20169 extern "C"
20170 #endif
20171 char sem_init ();
20172 int
20173 main ()
20174 {
20175 return sem_init ();
20176   ;
20177   return 0;
20178 }
20179 _ACEOF
20180 for ac_lib in '' pthread sem posix4 rt; do
20181   if test -z "$ac_lib"; then
20182     ac_res="none required"
20183   else
20184     ac_res=-l$ac_lib
20185     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20186   fi
20187   rm -f conftest.$ac_objext conftest$ac_exeext
20188 if { (ac_try="$ac_link"
20189 case "(($ac_try" in
20190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191   *) ac_try_echo=$ac_try;;
20192 esac
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194   (eval "$ac_link") 2>conftest.er1
20195   ac_status=$?
20196   grep -v '^ *+' conftest.er1 >conftest.err
20197   rm -f conftest.er1
20198   cat conftest.err >&5
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } && {
20201          test -z "$ac_c_werror_flag" ||
20202          test ! -s conftest.err
20203        } && test -s conftest$ac_exeext &&
20204        $as_test_x conftest$ac_exeext; then
20205   ac_cv_search_sem_init=$ac_res
20206 else
20207   echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210
20211 fi
20212
20213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20214       conftest$ac_exeext
20215   if test "${ac_cv_search_sem_init+set}" = set; then
20216   break
20217 fi
20218 done
20219 if test "${ac_cv_search_sem_init+set}" = set; then
20220   :
20221 else
20222   ac_cv_search_sem_init=no
20223 fi
20224 rm conftest.$ac_ext
20225 LIBS=$ac_func_search_save_LIBS
20226 fi
20227 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20228 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20229 ac_res=$ac_cv_search_sem_init
20230 if test "$ac_res" != no; then
20231   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20232
20233 else
20234   { { 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
20235 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;}
20236    { (exit 1); exit 1; }; }
20237
20238 fi
20239
20240 fi
20241
20242
20243 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20244 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20245 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20246   echo $ECHO_N "(cached) $ECHO_C" >&6
20247 else
20248   ac_check_lib_save_LIBS=$LIBS
20249 LIBS="-lsocket  $LIBS"
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h.  */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h.  */
20256
20257 /* Override any GCC internal prototype to avoid an error.
20258    Use char because int might match the return type of a GCC
20259    builtin and then its argument prototype would still apply.  */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 char getsockname ();
20264 int
20265 main ()
20266 {
20267 return getsockname ();
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (ac_try="$ac_link"
20274 case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_link") 2>conftest.er1
20280   ac_status=$?
20281   grep -v '^ *+' conftest.er1 >conftest.err
20282   rm -f conftest.er1
20283   cat conftest.err >&5
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); } && {
20286          test -z "$ac_c_werror_flag" ||
20287          test ! -s conftest.err
20288        } && test -s conftest$ac_exeext &&
20289        $as_test_x conftest$ac_exeext; then
20290   ac_cv_lib_socket_getsockname=yes
20291 else
20292   echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20294
20295         ac_cv_lib_socket_getsockname=no
20296 fi
20297
20298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20299       conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20301 fi
20302 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20303 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20304 if test $ac_cv_lib_socket_getsockname = yes; then
20305   cat >>confdefs.h <<_ACEOF
20306 #define HAVE_LIBSOCKET 1
20307 _ACEOF
20308
20309   LIBS="-lsocket $LIBS"
20310
20311 fi
20312
20313
20314
20315 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20316 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20317 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20318   echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320   ac_check_lib_save_LIBS=$LIBS
20321 LIBS="-lresolv  $LIBS"
20322 cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328
20329 /* Override any GCC internal prototype to avoid an error.
20330    Use char because int might match the return type of a GCC
20331    builtin and then its argument prototype would still apply.  */
20332 #ifdef __cplusplus
20333 extern "C"
20334 #endif
20335 char inet_aton ();
20336 int
20337 main ()
20338 {
20339 return inet_aton ();
20340   ;
20341   return 0;
20342 }
20343 _ACEOF
20344 rm -f conftest.$ac_objext conftest$ac_exeext
20345 if { (ac_try="$ac_link"
20346 case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351   (eval "$ac_link") 2>conftest.er1
20352   ac_status=$?
20353   grep -v '^ *+' conftest.er1 >conftest.err
20354   rm -f conftest.er1
20355   cat conftest.err >&5
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); } && {
20358          test -z "$ac_c_werror_flag" ||
20359          test ! -s conftest.err
20360        } && test -s conftest$ac_exeext &&
20361        $as_test_x conftest$ac_exeext; then
20362   ac_cv_lib_resolv_inet_aton=yes
20363 else
20364   echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367         ac_cv_lib_resolv_inet_aton=no
20368 fi
20369
20370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20371       conftest$ac_exeext conftest.$ac_ext
20372 LIBS=$ac_check_lib_save_LIBS
20373 fi
20374 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20375 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20376 if test $ac_cv_lib_resolv_inet_aton = yes; then
20377   cat >>confdefs.h <<_ACEOF
20378 #define HAVE_LIBRESOLV 1
20379 _ACEOF
20380
20381   LIBS="-lresolv $LIBS"
20382
20383 fi
20384
20385
20386
20387 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20388 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20389 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20390   echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392   ac_check_lib_save_LIBS=$LIBS
20393 LIBS="-lnsl  $LIBS"
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h.  */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h.  */
20400
20401 /* Override any GCC internal prototype to avoid an error.
20402    Use char because int might match the return type of a GCC
20403    builtin and then its argument prototype would still apply.  */
20404 #ifdef __cplusplus
20405 extern "C"
20406 #endif
20407 char inet_ntoa ();
20408 int
20409 main ()
20410 {
20411 return inet_ntoa ();
20412   ;
20413   return 0;
20414 }
20415 _ACEOF
20416 rm -f conftest.$ac_objext conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_link") 2>conftest.er1
20424   ac_status=$?
20425   grep -v '^ *+' conftest.er1 >conftest.err
20426   rm -f conftest.er1
20427   cat conftest.err >&5
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); } && {
20430          test -z "$ac_c_werror_flag" ||
20431          test ! -s conftest.err
20432        } && test -s conftest$ac_exeext &&
20433        $as_test_x conftest$ac_exeext; then
20434   ac_cv_lib_nsl_inet_ntoa=yes
20435 else
20436   echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439         ac_cv_lib_nsl_inet_ntoa=no
20440 fi
20441
20442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20443       conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20445 fi
20446 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20447 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20448 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20449   cat >>confdefs.h <<_ACEOF
20450 #define HAVE_LIBNSL 1
20451 _ACEOF
20452
20453   LIBS="-lnsl $LIBS"
20454
20455 fi
20456
20457
20458 OPENSSL_LIBS=
20459 old_LIBS=$LIBS
20460 if test "x$OPENSSL_LIB_DIR" != "x"; then
20461     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20462 fi
20463 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20464 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20465 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   ac_check_lib_save_LIBS=$LIBS
20469 LIBS="-lcrypto  $LIBS"
20470 cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476
20477 /* Override any GCC internal prototype to avoid an error.
20478    Use char because int might match the return type of a GCC
20479    builtin and then its argument prototype would still apply.  */
20480 #ifdef __cplusplus
20481 extern "C"
20482 #endif
20483 char DH_new ();
20484 int
20485 main ()
20486 {
20487 return DH_new ();
20488   ;
20489   return 0;
20490 }
20491 _ACEOF
20492 rm -f conftest.$ac_objext conftest$ac_exeext
20493 if { (ac_try="$ac_link"
20494 case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_link") 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } && {
20506          test -z "$ac_c_werror_flag" ||
20507          test ! -s conftest.err
20508        } && test -s conftest$ac_exeext &&
20509        $as_test_x conftest$ac_exeext; then
20510   ac_cv_lib_crypto_DH_new=yes
20511 else
20512   echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515         ac_cv_lib_crypto_DH_new=no
20516 fi
20517
20518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20519       conftest$ac_exeext conftest.$ac_ext
20520 LIBS=$ac_check_lib_save_LIBS
20521 fi
20522 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20523 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20524 if test $ac_cv_lib_crypto_DH_new = yes; then
20525
20526
20527 cat >>confdefs.h <<\_ACEOF
20528 #define HAVE_LIBCRYPTO 1
20529 _ACEOF
20530
20531         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20532 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20533 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20534   echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536   ac_check_lib_save_LIBS=$LIBS
20537 LIBS="-lssl  $LIBS"
20538 cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h.  */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h.  */
20544
20545 /* Override any GCC internal prototype to avoid an error.
20546    Use char because int might match the return type of a GCC
20547    builtin and then its argument prototype would still apply.  */
20548 #ifdef __cplusplus
20549 extern "C"
20550 #endif
20551 char SSL_new ();
20552 int
20553 main ()
20554 {
20555 return SSL_new ();
20556   ;
20557   return 0;
20558 }
20559 _ACEOF
20560 rm -f conftest.$ac_objext conftest$ac_exeext
20561 if { (ac_try="$ac_link"
20562 case "(($ac_try" in
20563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564   *) ac_try_echo=$ac_try;;
20565 esac
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567   (eval "$ac_link") 2>conftest.er1
20568   ac_status=$?
20569   grep -v '^ *+' conftest.er1 >conftest.err
20570   rm -f conftest.er1
20571   cat conftest.err >&5
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); } && {
20574          test -z "$ac_c_werror_flag" ||
20575          test ! -s conftest.err
20576        } && test -s conftest$ac_exeext &&
20577        $as_test_x conftest$ac_exeext; then
20578   ac_cv_lib_ssl_SSL_new=yes
20579 else
20580   echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583         ac_cv_lib_ssl_SSL_new=no
20584 fi
20585
20586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20587       conftest$ac_exeext conftest.$ac_ext
20588 LIBS=$ac_check_lib_save_LIBS
20589 fi
20590 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20591 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20592 if test $ac_cv_lib_ssl_SSL_new = yes; then
20593
20594
20595 cat >>confdefs.h <<\_ACEOF
20596 #define HAVE_LIBSSL 1
20597 _ACEOF
20598
20599                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20600                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20601                 fi
20602                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20603
20604 fi
20605
20606
20607 fi
20608
20609 LIBS=$old_LIBS
20610
20611
20612 case "$host" in
20613 *-interix*)
20614         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20615         ;;
20616 *-darwin*)
20617         CFLAGS="$CFLAGS -DDARWIN"
20618         ;;
20619 esac
20620
20621
20622
20623
20624
20625
20626 ac_header_dirent=no
20627 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20628   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20629 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20630 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20632   echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634   cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h.  */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h.  */
20640 #include <sys/types.h>
20641 #include <$ac_hdr>
20642
20643 int
20644 main ()
20645 {
20646 if ((DIR *) 0)
20647 return 0;
20648   ;
20649   return 0;
20650 }
20651 _ACEOF
20652 rm -f conftest.$ac_objext
20653 if { (ac_try="$ac_compile"
20654 case "(($ac_try" in
20655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656   *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659   (eval "$ac_compile") 2>conftest.er1
20660   ac_status=$?
20661   grep -v '^ *+' conftest.er1 >conftest.err
20662   rm -f conftest.er1
20663   cat conftest.err >&5
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); } && {
20666          test -z "$ac_c_werror_flag" ||
20667          test ! -s conftest.err
20668        } && test -s conftest.$ac_objext; then
20669   eval "$as_ac_Header=yes"
20670 else
20671   echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20673
20674         eval "$as_ac_Header=no"
20675 fi
20676
20677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20678 fi
20679 ac_res=`eval echo '${'$as_ac_Header'}'`
20680                { echo "$as_me:$LINENO: result: $ac_res" >&5
20681 echo "${ECHO_T}$ac_res" >&6; }
20682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20683   cat >>confdefs.h <<_ACEOF
20684 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20685 _ACEOF
20686
20687 ac_header_dirent=$ac_hdr; break
20688 fi
20689
20690 done
20691 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20692 if test $ac_header_dirent = dirent.h; then
20693   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20694 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20695 if test "${ac_cv_search_opendir+set}" = set; then
20696   echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698   ac_func_search_save_LIBS=$LIBS
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h.  */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h.  */
20705
20706 /* Override any GCC internal prototype to avoid an error.
20707    Use char because int might match the return type of a GCC
20708    builtin and then its argument prototype would still apply.  */
20709 #ifdef __cplusplus
20710 extern "C"
20711 #endif
20712 char opendir ();
20713 int
20714 main ()
20715 {
20716 return opendir ();
20717   ;
20718   return 0;
20719 }
20720 _ACEOF
20721 for ac_lib in '' dir; do
20722   if test -z "$ac_lib"; then
20723     ac_res="none required"
20724   else
20725     ac_res=-l$ac_lib
20726     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20727   fi
20728   rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (ac_try="$ac_link"
20730 case "(($ac_try" in
20731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732   *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735   (eval "$ac_link") 2>conftest.er1
20736   ac_status=$?
20737   grep -v '^ *+' conftest.er1 >conftest.err
20738   rm -f conftest.er1
20739   cat conftest.err >&5
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); } && {
20742          test -z "$ac_c_werror_flag" ||
20743          test ! -s conftest.err
20744        } && test -s conftest$ac_exeext &&
20745        $as_test_x conftest$ac_exeext; then
20746   ac_cv_search_opendir=$ac_res
20747 else
20748   echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751
20752 fi
20753
20754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20755       conftest$ac_exeext
20756   if test "${ac_cv_search_opendir+set}" = set; then
20757   break
20758 fi
20759 done
20760 if test "${ac_cv_search_opendir+set}" = set; then
20761   :
20762 else
20763   ac_cv_search_opendir=no
20764 fi
20765 rm conftest.$ac_ext
20766 LIBS=$ac_func_search_save_LIBS
20767 fi
20768 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20769 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20770 ac_res=$ac_cv_search_opendir
20771 if test "$ac_res" != no; then
20772   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20773
20774 fi
20775
20776 else
20777   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20778 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20779 if test "${ac_cv_search_opendir+set}" = set; then
20780   echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782   ac_func_search_save_LIBS=$LIBS
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h.  */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h.  */
20789
20790 /* Override any GCC internal prototype to avoid an error.
20791    Use char because int might match the return type of a GCC
20792    builtin and then its argument prototype would still apply.  */
20793 #ifdef __cplusplus
20794 extern "C"
20795 #endif
20796 char opendir ();
20797 int
20798 main ()
20799 {
20800 return opendir ();
20801   ;
20802   return 0;
20803 }
20804 _ACEOF
20805 for ac_lib in '' x; do
20806   if test -z "$ac_lib"; then
20807     ac_res="none required"
20808   else
20809     ac_res=-l$ac_lib
20810     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20811   fi
20812   rm -f conftest.$ac_objext conftest$ac_exeext
20813 if { (ac_try="$ac_link"
20814 case "(($ac_try" in
20815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816   *) ac_try_echo=$ac_try;;
20817 esac
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819   (eval "$ac_link") 2>conftest.er1
20820   ac_status=$?
20821   grep -v '^ *+' conftest.er1 >conftest.err
20822   rm -f conftest.er1
20823   cat conftest.err >&5
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } && {
20826          test -z "$ac_c_werror_flag" ||
20827          test ! -s conftest.err
20828        } && test -s conftest$ac_exeext &&
20829        $as_test_x conftest$ac_exeext; then
20830   ac_cv_search_opendir=$ac_res
20831 else
20832   echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20834
20835
20836 fi
20837
20838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20839       conftest$ac_exeext
20840   if test "${ac_cv_search_opendir+set}" = set; then
20841   break
20842 fi
20843 done
20844 if test "${ac_cv_search_opendir+set}" = set; then
20845   :
20846 else
20847   ac_cv_search_opendir=no
20848 fi
20849 rm conftest.$ac_ext
20850 LIBS=$ac_func_search_save_LIBS
20851 fi
20852 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20853 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20854 ac_res=$ac_cv_search_opendir
20855 if test "$ac_res" != no; then
20856   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20857
20858 fi
20859
20860 fi
20861
20862 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20863 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20864 if test "${ac_cv_header_stdc+set}" = set; then
20865   echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867   cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 #include <stdlib.h>
20874 #include <stdarg.h>
20875 #include <string.h>
20876 #include <float.h>
20877
20878 int
20879 main ()
20880 {
20881
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_compile") 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } && {
20900          test -z "$ac_c_werror_flag" ||
20901          test ! -s conftest.err
20902        } && test -s conftest.$ac_objext; then
20903   ac_cv_header_stdc=yes
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         ac_cv_header_stdc=no
20909 fi
20910
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912
20913 if test $ac_cv_header_stdc = yes; then
20914   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20915   cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h.  */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h.  */
20921 #include <string.h>
20922
20923 _ACEOF
20924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20925   $EGREP "memchr" >/dev/null 2>&1; then
20926   :
20927 else
20928   ac_cv_header_stdc=no
20929 fi
20930 rm -f conftest*
20931
20932 fi
20933
20934 if test $ac_cv_header_stdc = yes; then
20935   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20936   cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h.  */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h.  */
20942 #include <stdlib.h>
20943
20944 _ACEOF
20945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20946   $EGREP "free" >/dev/null 2>&1; then
20947   :
20948 else
20949   ac_cv_header_stdc=no
20950 fi
20951 rm -f conftest*
20952
20953 fi
20954
20955 if test $ac_cv_header_stdc = yes; then
20956   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20957   if test "$cross_compiling" = yes; then
20958   :
20959 else
20960   cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h.  */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h.  */
20966 #include <ctype.h>
20967 #include <stdlib.h>
20968 #if ((' ' & 0x0FF) == 0x020)
20969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20971 #else
20972 # define ISLOWER(c) \
20973                    (('a' <= (c) && (c) <= 'i') \
20974                      || ('j' <= (c) && (c) <= 'r') \
20975                      || ('s' <= (c) && (c) <= 'z'))
20976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20977 #endif
20978
20979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20980 int
20981 main ()
20982 {
20983   int i;
20984   for (i = 0; i < 256; i++)
20985     if (XOR (islower (i), ISLOWER (i))
20986         || toupper (i) != TOUPPER (i))
20987       return 2;
20988   return 0;
20989 }
20990 _ACEOF
20991 rm -f conftest$ac_exeext
20992 if { (ac_try="$ac_link"
20993 case "(($ac_try" in
20994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995   *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998   (eval "$ac_link") 2>&5
20999   ac_status=$?
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21002   { (case "(($ac_try" in
21003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004   *) ac_try_echo=$ac_try;;
21005 esac
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007   (eval "$ac_try") 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); }; }; then
21011   :
21012 else
21013   echo "$as_me: program exited with status $ac_status" >&5
21014 echo "$as_me: failed program was:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21016
21017 ( exit $ac_status )
21018 ac_cv_header_stdc=no
21019 fi
21020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21021 fi
21022
21023
21024 fi
21025 fi
21026 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21027 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21028 if test $ac_cv_header_stdc = yes; then
21029
21030 cat >>confdefs.h <<\_ACEOF
21031 #define STDC_HEADERS 1
21032 _ACEOF
21033
21034 fi
21035
21036 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21037 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21038 if test "${ac_cv_header_time+set}" = set; then
21039   echo $ECHO_N "(cached) $ECHO_C" >&6
21040 else
21041   cat >conftest.$ac_ext <<_ACEOF
21042 /* confdefs.h.  */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h.  */
21047 #include <sys/types.h>
21048 #include <sys/time.h>
21049 #include <time.h>
21050
21051 int
21052 main ()
21053 {
21054 if ((struct tm *) 0)
21055 return 0;
21056   ;
21057   return 0;
21058 }
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064   *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067   (eval "$ac_compile") 2>conftest.er1
21068   ac_status=$?
21069   grep -v '^ *+' conftest.er1 >conftest.err
21070   rm -f conftest.er1
21071   cat conftest.err >&5
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); } && {
21074          test -z "$ac_c_werror_flag" ||
21075          test ! -s conftest.err
21076        } && test -s conftest.$ac_objext; then
21077   ac_cv_header_time=yes
21078 else
21079   echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082         ac_cv_header_time=no
21083 fi
21084
21085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086 fi
21087 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21088 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21089 if test $ac_cv_header_time = yes; then
21090
21091 cat >>confdefs.h <<\_ACEOF
21092 #define TIME_WITH_SYS_TIME 1
21093 _ACEOF
21094
21095 fi
21096
21097 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21098 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21099 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21100   echo $ECHO_N "(cached) $ECHO_C" >&6
21101 else
21102   cat >conftest.$ac_ext <<_ACEOF
21103 /* confdefs.h.  */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h.  */
21108 #include <sys/types.h>
21109 #include <sys/wait.h>
21110 #ifndef WEXITSTATUS
21111 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21112 #endif
21113 #ifndef WIFEXITED
21114 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21115 #endif
21116
21117 int
21118 main ()
21119 {
21120   int s;
21121   wait (&s);
21122   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21123   ;
21124   return 0;
21125 }
21126 _ACEOF
21127 rm -f conftest.$ac_objext
21128 if { (ac_try="$ac_compile"
21129 case "(($ac_try" in
21130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131   *) ac_try_echo=$ac_try;;
21132 esac
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134   (eval "$ac_compile") 2>conftest.er1
21135   ac_status=$?
21136   grep -v '^ *+' conftest.er1 >conftest.err
21137   rm -f conftest.er1
21138   cat conftest.err >&5
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); } && {
21141          test -z "$ac_c_werror_flag" ||
21142          test ! -s conftest.err
21143        } && test -s conftest.$ac_objext; then
21144   ac_cv_header_sys_wait_h=yes
21145 else
21146   echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21148
21149         ac_cv_header_sys_wait_h=no
21150 fi
21151
21152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21153 fi
21154 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21155 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21156 if test $ac_cv_header_sys_wait_h = yes; then
21157
21158 cat >>confdefs.h <<\_ACEOF
21159 #define HAVE_SYS_WAIT_H 1
21160 _ACEOF
21161
21162 fi
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195 for ac_header in \
21196         unistd.h \
21197         crypt.h \
21198         errno.h \
21199         resource.h \
21200         getopt.h \
21201         malloc.h \
21202         utmp.h \
21203         utmpx.h \
21204         signal.h \
21205         sys/select.h \
21206         syslog.h \
21207         inttypes.h \
21208         stdint.h \
21209         stdio.h \
21210         netdb.h \
21211         semaphore.h \
21212         arpa/inet.h \
21213         netinet/in.h \
21214         sys/types.h \
21215         sys/socket.h \
21216         sys/time.h \
21217         sys/wait.h \
21218         sys/security.h \
21219         fcntl.h \
21220         sys/fcntl.h \
21221         sys/stat.h \
21222         sys/prctl.h \
21223         prot.h \
21224         sia.h \
21225         siad.h
21226
21227 do
21228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21230   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21233   echo $ECHO_N "(cached) $ECHO_C" >&6
21234 fi
21235 ac_res=`eval echo '${'$as_ac_Header'}'`
21236                { echo "$as_me:$LINENO: result: $ac_res" >&5
21237 echo "${ECHO_T}$ac_res" >&6; }
21238 else
21239   # Is the header compilable?
21240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21242 cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h.  */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h.  */
21248 $ac_includes_default
21249 #include <$ac_header>
21250 _ACEOF
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255   *) ac_try_echo=$ac_try;;
21256 esac
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258   (eval "$ac_compile") 2>conftest.er1
21259   ac_status=$?
21260   grep -v '^ *+' conftest.er1 >conftest.err
21261   rm -f conftest.er1
21262   cat conftest.err >&5
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } && {
21265          test -z "$ac_c_werror_flag" ||
21266          test ! -s conftest.err
21267        } && test -s conftest.$ac_objext; then
21268   ac_header_compiler=yes
21269 else
21270   echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273         ac_header_compiler=no
21274 fi
21275
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21278 echo "${ECHO_T}$ac_header_compiler" >&6; }
21279
21280 # Is the header present?
21281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h.  */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h.  */
21289 #include <$ac_header>
21290 _ACEOF
21291 if { (ac_try="$ac_cpp conftest.$ac_ext"
21292 case "(($ac_try" in
21293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294   *) ac_try_echo=$ac_try;;
21295 esac
21296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21298   ac_status=$?
21299   grep -v '^ *+' conftest.er1 >conftest.err
21300   rm -f conftest.er1
21301   cat conftest.err >&5
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); } >/dev/null && {
21304          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21305          test ! -s conftest.err
21306        }; then
21307   ac_header_preproc=yes
21308 else
21309   echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312   ac_header_preproc=no
21313 fi
21314
21315 rm -f conftest.err conftest.$ac_ext
21316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21317 echo "${ECHO_T}$ac_header_preproc" >&6; }
21318
21319 # So?  What about this header?
21320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21321   yes:no: )
21322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21326     ac_header_preproc=yes
21327     ;;
21328   no:yes:* )
21329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21331     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21332 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21333     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21335     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21336 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21339     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21341
21342     ;;
21343 esac
21344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21347   echo $ECHO_N "(cached) $ECHO_C" >&6
21348 else
21349   eval "$as_ac_Header=\$ac_header_preproc"
21350 fi
21351 ac_res=`eval echo '${'$as_ac_Header'}'`
21352                { echo "$as_me:$LINENO: result: $ac_res" >&5
21353 echo "${ECHO_T}$ac_res" >&6; }
21354
21355 fi
21356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21357   cat >>confdefs.h <<_ACEOF
21358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21359 _ACEOF
21360
21361 fi
21362
21363 done
21364
21365
21366 REGEX=no
21367 if test "${ac_cv_header_regex_h+set}" = set; then
21368   { echo "$as_me:$LINENO: checking for regex.h" >&5
21369 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21370 if test "${ac_cv_header_regex_h+set}" = set; then
21371   echo $ECHO_N "(cached) $ECHO_C" >&6
21372 fi
21373 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21374 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21375 else
21376   # Is the header compilable?
21377 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21378 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21379 cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h.  */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h.  */
21385 $ac_includes_default
21386 #include <regex.h>
21387 _ACEOF
21388 rm -f conftest.$ac_objext
21389 if { (ac_try="$ac_compile"
21390 case "(($ac_try" in
21391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392   *) ac_try_echo=$ac_try;;
21393 esac
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395   (eval "$ac_compile") 2>conftest.er1
21396   ac_status=$?
21397   grep -v '^ *+' conftest.er1 >conftest.err
21398   rm -f conftest.er1
21399   cat conftest.err >&5
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); } && {
21402          test -z "$ac_c_werror_flag" ||
21403          test ! -s conftest.err
21404        } && test -s conftest.$ac_objext; then
21405   ac_header_compiler=yes
21406 else
21407   echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21409
21410         ac_header_compiler=no
21411 fi
21412
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21415 echo "${ECHO_T}$ac_header_compiler" >&6; }
21416
21417 # Is the header present?
21418 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21419 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h.  */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h.  */
21426 #include <regex.h>
21427 _ACEOF
21428 if { (ac_try="$ac_cpp conftest.$ac_ext"
21429 case "(($ac_try" in
21430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431   *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21435   ac_status=$?
21436   grep -v '^ *+' conftest.er1 >conftest.err
21437   rm -f conftest.er1
21438   cat conftest.err >&5
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); } >/dev/null && {
21441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21442          test ! -s conftest.err
21443        }; then
21444   ac_header_preproc=yes
21445 else
21446   echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449   ac_header_preproc=no
21450 fi
21451
21452 rm -f conftest.err conftest.$ac_ext
21453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21454 echo "${ECHO_T}$ac_header_preproc" >&6; }
21455
21456 # So?  What about this header?
21457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21458   yes:no: )
21459     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21460 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21461     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21462 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21463     ac_header_preproc=yes
21464     ;;
21465   no:yes:* )
21466     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21467 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21468     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21469 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21470     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21471 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21472     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21473 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21474     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21475 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21476     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21477 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21478
21479     ;;
21480 esac
21481 { echo "$as_me:$LINENO: checking for regex.h" >&5
21482 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21483 if test "${ac_cv_header_regex_h+set}" = set; then
21484   echo $ECHO_N "(cached) $ECHO_C" >&6
21485 else
21486   ac_cv_header_regex_h=$ac_header_preproc
21487 fi
21488 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21489 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21490
21491 fi
21492 if test $ac_cv_header_regex_h = yes; then
21493   cat >>confdefs.h <<\_ACEOF
21494 #define HAVE_REGEX_H 1
21495 _ACEOF
21496
21497 fi
21498
21499
21500 if test "x$ac_cv_header_regex_h" = "xyes"; then
21501   REGEX_EXTENDED=no
21502   REGEX=yes
21503   cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h.  */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h.  */
21509 #include <regex.h>
21510      #ifdef REG_EXTENDED
21511        yes
21512      #endif
21513
21514 _ACEOF
21515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21516   $EGREP "yes" >/dev/null 2>&1; then
21517   cat >>confdefs.h <<\_ACEOF
21518 #define HAVE_REG_EXTENDED 1
21519 _ACEOF
21520  REGEX_EXTENDED=yes
21521 fi
21522 rm -f conftest*
21523
21524 fi
21525
21526
21527
21528 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21529 then
21530   cat >>confdefs.h <<\_ACEOF
21531 #define OSFC2 1
21532 _ACEOF
21533
21534 fi
21535
21536 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21537 then
21538   cat >>confdefs.h <<\_ACEOF
21539 #define OSFSIA 1
21540 _ACEOF
21541
21542 fi
21543
21544 OPENSSL_INCLUDE="-DNO_OPENSSL"
21545 if test "x$OPENSSL_LIBS" = "x"; then
21546     { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21547 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21548 else
21549     old_CPPFLAGS=$CPPFLAGS
21550     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21551         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21552     fi
21553         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21554
21555
21556
21557
21558 for ac_header in \
21559         openssl/ssl.h \
21560         openssl/crypto.h \
21561         openssl/err.h \
21562         openssl/engine.h
21563 do
21564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21566   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 fi
21571 ac_res=`eval echo '${'$as_ac_Header'}'`
21572                { echo "$as_me:$LINENO: result: $ac_res" >&5
21573 echo "${ECHO_T}$ac_res" >&6; }
21574 else
21575   # Is the header compilable?
21576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21578 cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584 $ac_includes_default
21585 #include <$ac_header>
21586 _ACEOF
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591   *) ac_try_echo=$ac_try;;
21592 esac
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594   (eval "$ac_compile") 2>conftest.er1
21595   ac_status=$?
21596   grep -v '^ *+' conftest.er1 >conftest.err
21597   rm -f conftest.er1
21598   cat conftest.err >&5
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } && {
21601          test -z "$ac_c_werror_flag" ||
21602          test ! -s conftest.err
21603        } && test -s conftest.$ac_objext; then
21604   ac_header_compiler=yes
21605 else
21606   echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609         ac_header_compiler=no
21610 fi
21611
21612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21614 echo "${ECHO_T}$ac_header_compiler" >&6; }
21615
21616 # Is the header present?
21617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21619 cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h.  */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h.  */
21625 #include <$ac_header>
21626 _ACEOF
21627 if { (ac_try="$ac_cpp conftest.$ac_ext"
21628 case "(($ac_try" in
21629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630   *) ac_try_echo=$ac_try;;
21631 esac
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21634   ac_status=$?
21635   grep -v '^ *+' conftest.er1 >conftest.err
21636   rm -f conftest.er1
21637   cat conftest.err >&5
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); } >/dev/null && {
21640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21641          test ! -s conftest.err
21642        }; then
21643   ac_header_preproc=yes
21644 else
21645   echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21647
21648   ac_header_preproc=no
21649 fi
21650
21651 rm -f conftest.err conftest.$ac_ext
21652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21653 echo "${ECHO_T}$ac_header_preproc" >&6; }
21654
21655 # So?  What about this header?
21656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21657   yes:no: )
21658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21662     ac_header_preproc=yes
21663     ;;
21664   no:yes:* )
21665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21677
21678     ;;
21679 esac
21680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21683   echo $ECHO_N "(cached) $ECHO_C" >&6
21684 else
21685   eval "$as_ac_Header=\$ac_header_preproc"
21686 fi
21687 ac_res=`eval echo '${'$as_ac_Header'}'`
21688                { echo "$as_me:$LINENO: result: $ac_res" >&5
21689 echo "${ECHO_T}$ac_res" >&6; }
21690
21691 fi
21692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21693   cat >>confdefs.h <<_ACEOF
21694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21695 _ACEOF
21696
21697 else
21698   OPENSSL_LIBS=
21699
21700 fi
21701
21702 done
21703
21704     if test "x$OPENSSL_LIBS" != "x"; then
21705         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21706 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
21707         cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h.  */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h.  */
21713 #include <openssl/crypto.h>
21714              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21715              yes
21716              #endif
21717
21718 _ACEOF
21719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21720   $EGREP "yes" >/dev/null 2>&1; then
21721   goodssl="yes"
21722 fi
21723 rm -f conftest*
21724
21725         if test "x$goodssl" != "xyes"; then
21726             { echo "$as_me:$LINENO: result: no" >&5
21727 echo "${ECHO_T}no" >&6; }
21728             OPENSSL_LIBS=
21729         else
21730             { echo "$as_me:$LINENO: result: yes" >&5
21731 echo "${ECHO_T}yes" >&6; }
21732             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21733                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21734             else
21735                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21736             fi
21737         fi
21738     fi
21739     CPPFLAGS=$old_CPPFLAGS
21740 fi
21741
21742
21743 export OPENSSL_LIBS
21744
21745
21746 { echo "$as_me:$LINENO: checking for off_t" >&5
21747 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21748 if test "${ac_cv_type_off_t+set}" = set; then
21749   echo $ECHO_N "(cached) $ECHO_C" >&6
21750 else
21751   cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h.  */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h.  */
21757 $ac_includes_default
21758 typedef off_t ac__type_new_;
21759 int
21760 main ()
21761 {
21762 if ((ac__type_new_ *) 0)
21763   return 0;
21764 if (sizeof (ac__type_new_))
21765   return 0;
21766   ;
21767   return 0;
21768 }
21769 _ACEOF
21770 rm -f conftest.$ac_objext
21771 if { (ac_try="$ac_compile"
21772 case "(($ac_try" in
21773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774   *) ac_try_echo=$ac_try;;
21775 esac
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777   (eval "$ac_compile") 2>conftest.er1
21778   ac_status=$?
21779   grep -v '^ *+' conftest.er1 >conftest.err
21780   rm -f conftest.er1
21781   cat conftest.err >&5
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); } && {
21784          test -z "$ac_c_werror_flag" ||
21785          test ! -s conftest.err
21786        } && test -s conftest.$ac_objext; then
21787   ac_cv_type_off_t=yes
21788 else
21789   echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21791
21792         ac_cv_type_off_t=no
21793 fi
21794
21795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21796 fi
21797 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21798 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21799 if test $ac_cv_type_off_t = yes; then
21800   :
21801 else
21802
21803 cat >>confdefs.h <<_ACEOF
21804 #define off_t long int
21805 _ACEOF
21806
21807 fi
21808
21809 { echo "$as_me:$LINENO: checking for pid_t" >&5
21810 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21811 if test "${ac_cv_type_pid_t+set}" = set; then
21812   echo $ECHO_N "(cached) $ECHO_C" >&6
21813 else
21814   cat >conftest.$ac_ext <<_ACEOF
21815 /* confdefs.h.  */
21816 _ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h.  */
21820 $ac_includes_default
21821 typedef pid_t ac__type_new_;
21822 int
21823 main ()
21824 {
21825 if ((ac__type_new_ *) 0)
21826   return 0;
21827 if (sizeof (ac__type_new_))
21828   return 0;
21829   ;
21830   return 0;
21831 }
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_compile") 2>conftest.er1
21841   ac_status=$?
21842   grep -v '^ *+' conftest.er1 >conftest.err
21843   rm -f conftest.er1
21844   cat conftest.err >&5
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); } && {
21847          test -z "$ac_c_werror_flag" ||
21848          test ! -s conftest.err
21849        } && test -s conftest.$ac_objext; then
21850   ac_cv_type_pid_t=yes
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855         ac_cv_type_pid_t=no
21856 fi
21857
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 fi
21860 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21861 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21862 if test $ac_cv_type_pid_t = yes; then
21863   :
21864 else
21865
21866 cat >>confdefs.h <<_ACEOF
21867 #define pid_t int
21868 _ACEOF
21869
21870 fi
21871
21872 { echo "$as_me:$LINENO: checking for size_t" >&5
21873 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21874 if test "${ac_cv_type_size_t+set}" = set; then
21875   echo $ECHO_N "(cached) $ECHO_C" >&6
21876 else
21877   cat >conftest.$ac_ext <<_ACEOF
21878 /* confdefs.h.  */
21879 _ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h.  */
21883 $ac_includes_default
21884 typedef size_t ac__type_new_;
21885 int
21886 main ()
21887 {
21888 if ((ac__type_new_ *) 0)
21889   return 0;
21890 if (sizeof (ac__type_new_))
21891   return 0;
21892   ;
21893   return 0;
21894 }
21895 _ACEOF
21896 rm -f conftest.$ac_objext
21897 if { (ac_try="$ac_compile"
21898 case "(($ac_try" in
21899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900   *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903   (eval "$ac_compile") 2>conftest.er1
21904   ac_status=$?
21905   grep -v '^ *+' conftest.er1 >conftest.err
21906   rm -f conftest.er1
21907   cat conftest.err >&5
21908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909   (exit $ac_status); } && {
21910          test -z "$ac_c_werror_flag" ||
21911          test ! -s conftest.err
21912        } && test -s conftest.$ac_objext; then
21913   ac_cv_type_size_t=yes
21914 else
21915   echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918         ac_cv_type_size_t=no
21919 fi
21920
21921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21922 fi
21923 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21924 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21925 if test $ac_cv_type_size_t = yes; then
21926   :
21927 else
21928
21929 cat >>confdefs.h <<_ACEOF
21930 #define size_t unsigned int
21931 _ACEOF
21932
21933 fi
21934
21935 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21936 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21937 if test "${ac_cv_type_uid_t+set}" = set; then
21938   echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940   cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h.  */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h.  */
21946 #include <sys/types.h>
21947
21948 _ACEOF
21949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21950   $EGREP "uid_t" >/dev/null 2>&1; then
21951   ac_cv_type_uid_t=yes
21952 else
21953   ac_cv_type_uid_t=no
21954 fi
21955 rm -f conftest*
21956
21957 fi
21958 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21959 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21960 if test $ac_cv_type_uid_t = no; then
21961
21962 cat >>confdefs.h <<\_ACEOF
21963 #define uid_t int
21964 _ACEOF
21965
21966
21967 cat >>confdefs.h <<\_ACEOF
21968 #define gid_t int
21969 _ACEOF
21970
21971 fi
21972
21973
21974
21975   { echo "$as_me:$LINENO: checking for socklen_t" >&5
21976 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21977 if test "${ac_cv_type_socklen_t+set}" = set; then
21978   echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980    ac_cv_type_socklen_t=no
21981       cat >conftest.$ac_ext <<_ACEOF
21982 /* confdefs.h.  */
21983 _ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h.  */
21987 #ifdef HAVE_SYS_TYPES_H
21988 #include <sys/types.h>
21989 #endif
21990 #ifdef HAVE_SYS_SOCKET_H
21991 #include <sys/socket.h>
21992 #endif
21993
21994 int
21995 main ()
21996 {
21997 socklen_t foo
21998   ;
21999   return 0;
22000 }
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006   *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009   (eval "$ac_compile") 2>conftest.er1
22010   ac_status=$?
22011   grep -v '^ *+' conftest.er1 >conftest.err
22012   rm -f conftest.er1
22013   cat conftest.err >&5
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } && {
22016          test -z "$ac_c_werror_flag" ||
22017          test ! -s conftest.err
22018        } && test -s conftest.$ac_objext; then
22019   ac_cv_type_socklen_t=yes
22020 else
22021   echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024
22025 fi
22026
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028
22029
22030 fi
22031 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22032 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22033
22034   if test "$ac_cv_type_socklen_t" != "yes"; then
22035          cat >>confdefs.h <<\_ACEOF
22036 #define socklen_t int
22037 _ACEOF
22038
22039   fi
22040
22041
22042
22043   { echo "$as_me:$LINENO: checking for uint8_t" >&5
22044 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22045 if test "${ac_cv_type_uint8_t+set}" = set; then
22046   echo $ECHO_N "(cached) $ECHO_C" >&6
22047 else
22048    ac_cv_type_uint8_t=no
22049       cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h.  */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h.  */
22055 #ifdef HAVE_INTTYPES_H
22056 #include <inttypes.h>
22057 #endif
22058 #ifdef HAVE_STDINT_H
22059 #include <stdint.h>
22060 #endif
22061
22062 int
22063 main ()
22064 {
22065 uint8_t foo
22066   ;
22067   return 0;
22068 }
22069 _ACEOF
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074   *) ac_try_echo=$ac_try;;
22075 esac
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077   (eval "$ac_compile") 2>conftest.er1
22078   ac_status=$?
22079   grep -v '^ *+' conftest.er1 >conftest.err
22080   rm -f conftest.er1
22081   cat conftest.err >&5
22082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); } && {
22084          test -z "$ac_c_werror_flag" ||
22085          test ! -s conftest.err
22086        } && test -s conftest.$ac_objext; then
22087   ac_cv_type_uint8_t=yes
22088 else
22089   echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22091
22092
22093 fi
22094
22095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096
22097
22098 fi
22099 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22100 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22101
22102   if test "$ac_cv_type_uint8_t" != "yes"; then
22103          cat >>confdefs.h <<\_ACEOF
22104 #define uint8_t unsigned char
22105 _ACEOF
22106
22107   fi
22108
22109
22110
22111   { echo "$as_me:$LINENO: checking for uint16_t" >&5
22112 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22113 if test "${ac_cv_type_uint16_t+set}" = set; then
22114   echo $ECHO_N "(cached) $ECHO_C" >&6
22115 else
22116    ac_cv_type_uint16_t=no
22117       cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h.  */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h.  */
22123 #ifdef HAVE_INTTYPES_H
22124 #include <inttypes.h>
22125 #endif
22126 #ifdef HAVE_STDINT_H
22127 #include <stdint.h>
22128 #endif
22129
22130 int
22131 main ()
22132 {
22133 uint16_t foo
22134   ;
22135   return 0;
22136 }
22137 _ACEOF
22138 rm -f conftest.$ac_objext
22139 if { (ac_try="$ac_compile"
22140 case "(($ac_try" in
22141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142   *) ac_try_echo=$ac_try;;
22143 esac
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145   (eval "$ac_compile") 2>conftest.er1
22146   ac_status=$?
22147   grep -v '^ *+' conftest.er1 >conftest.err
22148   rm -f conftest.er1
22149   cat conftest.err >&5
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); } && {
22152          test -z "$ac_c_werror_flag" ||
22153          test ! -s conftest.err
22154        } && test -s conftest.$ac_objext; then
22155   ac_cv_type_uint16_t=yes
22156 else
22157   echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22159
22160
22161 fi
22162
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164
22165
22166 fi
22167 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22168 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22169
22170   if test "$ac_cv_type_uint16_t" != "yes"; then
22171          cat >>confdefs.h <<\_ACEOF
22172 #define uint16_t unsigned short
22173 _ACEOF
22174
22175   fi
22176
22177
22178
22179   { echo "$as_me:$LINENO: checking for uint32_t" >&5
22180 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22181 if test "${ac_cv_type_uint32_t+set}" = set; then
22182   echo $ECHO_N "(cached) $ECHO_C" >&6
22183 else
22184    ac_cv_type_uint32_t=no
22185       cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h.  */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h.  */
22191 #ifdef HAVE_INTTYPES_H
22192 #include <inttypes.h>
22193 #endif
22194 #ifdef HAVE_STDINT_H
22195 #include <stdint.h>
22196 #endif
22197
22198 int
22199 main ()
22200 {
22201 uint32_t foo
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 rm -f conftest.$ac_objext
22207 if { (ac_try="$ac_compile"
22208 case "(($ac_try" in
22209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210   *) ac_try_echo=$ac_try;;
22211 esac
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213   (eval "$ac_compile") 2>conftest.er1
22214   ac_status=$?
22215   grep -v '^ *+' conftest.er1 >conftest.err
22216   rm -f conftest.er1
22217   cat conftest.err >&5
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } && {
22220          test -z "$ac_c_werror_flag" ||
22221          test ! -s conftest.err
22222        } && test -s conftest.$ac_objext; then
22223   ac_cv_type_uint32_t=yes
22224 else
22225   echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22227
22228
22229 fi
22230
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232
22233
22234 fi
22235 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22236 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22237
22238   if test "$ac_cv_type_uint32_t" != "yes"; then
22239          cat >>confdefs.h <<\_ACEOF
22240 #define uint32_t unsigned int
22241 _ACEOF
22242
22243   fi
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270 for ac_func in \
22271         getopt_long \
22272         lockf \
22273         strsignal \
22274         sigaction \
22275         sigprocmask \
22276         pthread_sigmask \
22277         snprintf \
22278         vsnprintf \
22279         setsid \
22280         strncasecmp \
22281         strcasecmp \
22282         localtime_r \
22283         ctime_r \
22284         gmtime_r \
22285         strsep \
22286         inet_aton \
22287         inet_pton \
22288         inet_ntop \
22289         gethostname \
22290         setlinebuf \
22291         setvbuf \
22292         getusershell \
22293         initgroups \
22294         closefrom
22295
22296 do
22297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22301   echo $ECHO_N "(cached) $ECHO_C" >&6
22302 else
22303   cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h.  */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h.  */
22309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22311 #define $ac_func innocuous_$ac_func
22312
22313 /* System header to define __stub macros and hopefully few prototypes,
22314     which can conflict with char $ac_func (); below.
22315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22316     <limits.h> exists even on freestanding compilers.  */
22317
22318 #ifdef __STDC__
22319 # include <limits.h>
22320 #else
22321 # include <assert.h>
22322 #endif
22323
22324 #undef $ac_func
22325
22326 /* Override any GCC internal prototype to avoid an error.
22327    Use char because int might match the return type of a GCC
22328    builtin and then its argument prototype would still apply.  */
22329 #ifdef __cplusplus
22330 extern "C"
22331 #endif
22332 char $ac_func ();
22333 /* The GNU C library defines this for functions which it implements
22334     to always fail with ENOSYS.  Some functions are actually named
22335     something starting with __ and the normal name is an alias.  */
22336 #if defined __stub_$ac_func || defined __stub___$ac_func
22337 choke me
22338 #endif
22339
22340 int
22341 main ()
22342 {
22343 return $ac_func ();
22344   ;
22345   return 0;
22346 }
22347 _ACEOF
22348 rm -f conftest.$ac_objext conftest$ac_exeext
22349 if { (ac_try="$ac_link"
22350 case "(($ac_try" in
22351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352   *) ac_try_echo=$ac_try;;
22353 esac
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355   (eval "$ac_link") 2>conftest.er1
22356   ac_status=$?
22357   grep -v '^ *+' conftest.er1 >conftest.err
22358   rm -f conftest.er1
22359   cat conftest.err >&5
22360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361   (exit $ac_status); } && {
22362          test -z "$ac_c_werror_flag" ||
22363          test ! -s conftest.err
22364        } && test -s conftest$ac_exeext &&
22365        $as_test_x conftest$ac_exeext; then
22366   eval "$as_ac_var=yes"
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371         eval "$as_ac_var=no"
22372 fi
22373
22374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22375       conftest$ac_exeext conftest.$ac_ext
22376 fi
22377 ac_res=`eval echo '${'$as_ac_var'}'`
22378                { echo "$as_me:$LINENO: result: $ac_res" >&5
22379 echo "${ECHO_T}$ac_res" >&6; }
22380 if test `eval echo '${'$as_ac_var'}'` = yes; then
22381   cat >>confdefs.h <<_ACEOF
22382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22383 _ACEOF
22384
22385 fi
22386 done
22387
22388 for ac_func in \
22389         crypt \
22390         strncasecmp \
22391         strcasecmp \
22392         inet_aton \
22393         gethostname \
22394         setlinebuf \
22395         getusershell \
22396         endusershell
22397
22398 do
22399 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22400 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
22401 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
22402   echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404   cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h.  */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h.  */
22410
22411 #include <stdio.h>
22412 #include <string.h>
22413 #ifdef HAVE_UNISTD_H
22414 #include <unistd.h>
22415 #endif
22416 #ifdef HAVE_CRYPT_H
22417 #include <crypt.h>
22418 #endif
22419 #ifdef HAVE_ERRNO_H
22420 #include <errno.h>
22421 #endif
22422 #ifdef HAVE_RESOURCE_H
22423 #include <resource.h>
22424 #endif
22425 #ifdef HAVE_GETOPT_H
22426 #include <getopt.h>
22427 #endif
22428 #ifdef HAVE_MALLOC_H
22429 #include <malloc.h>
22430 #endif
22431 #ifdef HAVE_UTMP_H
22432 #include <utmp.h>
22433 #endif
22434 #ifdef HAVE_UTMPX_H
22435 #include <utmpx.h>
22436 #endif
22437 #ifdef HAVE_SYS_SELECT_H
22438 #include <sys/select.h>
22439 #endif
22440 #ifdef HAVE_DLFCN_H
22441 #include <dlfcn.h>
22442 #endif
22443 #ifdef HAVE_REGEX_H
22444 #include <regex.h>
22445 #endif
22446 #ifdef HAVE_SYSLOG_H
22447 #include <syslog.h>
22448 #endif
22449 #ifdef HAVE_INTTYPES_H
22450 #include <inttypes.h>
22451 #endif
22452 #ifdef HAVE_STDINT_H
22453 #include <stdint.h>
22454 #endif
22455 #ifdef HAVE_ARPA_INET_H
22456 #include <arpa/inet.h>
22457 #endif
22458
22459 int
22460 main ()
22461 {
22462 char *(*pfn) = (char *(*)) $ac_func
22463   ;
22464   return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471   *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474   (eval "$ac_compile") 2>conftest.er1
22475   ac_status=$?
22476   grep -v '^ *+' conftest.er1 >conftest.err
22477   rm -f conftest.er1
22478   cat conftest.err >&5
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); } && {
22481          test -z "$ac_c_werror_flag" ||
22482          test ! -s conftest.err
22483        } && test -s conftest.$ac_objext; then
22484   eval "radius_cv_decl_needed_$ac_func=no"
22485 else
22486   echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489         eval "radius_cv_decl_needed_$ac_func=yes"
22490 fi
22491
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 fi
22494
22495 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22496   { echo "$as_me:$LINENO: result: yes" >&5
22497 echo "${ECHO_T}yes" >&6; }
22498   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22499   cat >>confdefs.h <<_ACEOF
22500 #define $radius_tr_decl 1
22501 _ACEOF
22502
22503 else
22504   { echo "$as_me:$LINENO: result: no" >&5
22505 echo "${ECHO_T}no" >&6; }
22506 fi
22507
22508 done
22509
22510
22511 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22512 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22513 if test "${ac_cv_type_signal+set}" = set; then
22514   echo $ECHO_N "(cached) $ECHO_C" >&6
22515 else
22516   cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h.  */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h.  */
22522 #include <sys/types.h>
22523 #include <signal.h>
22524
22525 int
22526 main ()
22527 {
22528 return *(signal (0, 0)) (0) == 1;
22529   ;
22530   return 0;
22531 }
22532 _ACEOF
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537   *) ac_try_echo=$ac_try;;
22538 esac
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540   (eval "$ac_compile") 2>conftest.er1
22541   ac_status=$?
22542   grep -v '^ *+' conftest.er1 >conftest.err
22543   rm -f conftest.er1
22544   cat conftest.err >&5
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); } && {
22547          test -z "$ac_c_werror_flag" ||
22548          test ! -s conftest.err
22549        } && test -s conftest.$ac_objext; then
22550   ac_cv_type_signal=int
22551 else
22552   echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22554
22555         ac_cv_type_signal=void
22556 fi
22557
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 fi
22560 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22561 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22562
22563 cat >>confdefs.h <<_ACEOF
22564 #define RETSIGTYPE $ac_cv_type_signal
22565 _ACEOF
22566
22567
22568
22569 if test "x$ac_cv_header_utmpx_h" = "xyes"
22570 then
22571
22572   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22573 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
22574
22575
22576   cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h.  */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h.  */
22582
22583 #include <utmpx.h>
22584 #ifndef offsetof
22585 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22586 #endif
22587
22588 int
22589 main ()
22590 {
22591  int foo = offsetof(struct utmpx, ut_xtime)
22592   ;
22593   return 0;
22594 }
22595 _ACEOF
22596 rm -f conftest.$ac_objext
22597 if { (ac_try="$ac_compile"
22598 case "(($ac_try" in
22599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600   *) ac_try_echo=$ac_try;;
22601 esac
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603   (eval "$ac_compile") 2>conftest.er1
22604   ac_status=$?
22605   grep -v '^ *+' conftest.er1 >conftest.err
22606   rm -f conftest.er1
22607   cat conftest.err >&5
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); } && {
22610          test -z "$ac_c_werror_flag" ||
22611          test ! -s conftest.err
22612        } && test -s conftest.$ac_objext; then
22613   has_element=" "
22614 else
22615   echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22617
22618         has_element=
22619 fi
22620
22621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22622
22623   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22624   if test "x$has_element" != "x"; then
22625     { echo "$as_me:$LINENO: result: yes" >&5
22626 echo "${ECHO_T}yes" >&6; }
22627     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22628   else
22629     { echo "$as_me:$LINENO: result: no" >&5
22630 echo "${ECHO_T}no" >&6; }
22631     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22632  fi
22633
22634  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22635  then
22636    cat >>confdefs.h <<\_ACEOF
22637 #define ut_xtime ut_tv.tv_sec
22638 _ACEOF
22639
22640  fi
22641 fi
22642
22643
22644   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22645 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
22646
22647
22648   cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654
22655 #include <netinet/in.h>
22656 #ifndef offsetof
22657 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22658 #endif
22659
22660 int
22661 main ()
22662 {
22663  int foo = offsetof(struct in_pktinfo, ipi_addr)
22664   ;
22665   return 0;
22666 }
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672   *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675   (eval "$ac_compile") 2>conftest.er1
22676   ac_status=$?
22677   grep -v '^ *+' conftest.er1 >conftest.err
22678   rm -f conftest.er1
22679   cat conftest.err >&5
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); } && {
22682          test -z "$ac_c_werror_flag" ||
22683          test ! -s conftest.err
22684        } && test -s conftest.$ac_objext; then
22685   has_element=" "
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690         has_element=
22691 fi
22692
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694
22695   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22696   if test "x$has_element" != "x"; then
22697     { echo "$as_me:$LINENO: result: yes" >&5
22698 echo "${ECHO_T}yes" >&6; }
22699     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22700   else
22701     { echo "$as_me:$LINENO: result: no" >&5
22702 echo "${ECHO_T}no" >&6; }
22703     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22704  fi
22705
22706 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22707 then
22708         cat >>confdefs.h <<\_ACEOF
22709 #define HAVE_IP_PKTINFO 1
22710 _ACEOF
22711
22712 fi
22713
22714
22715 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22716 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22717 if test "${ac_cv_c_const+set}" = set; then
22718   echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720   cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h.  */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h.  */
22726
22727 int
22728 main ()
22729 {
22730 /* FIXME: Include the comments suggested by Paul. */
22731 #ifndef __cplusplus
22732   /* Ultrix mips cc rejects this.  */
22733   typedef int charset[2];
22734   const charset cs;
22735   /* SunOS 4.1.1 cc rejects this.  */
22736   char const *const *pcpcc;
22737   char **ppc;
22738   /* NEC SVR4.0.2 mips cc rejects this.  */
22739   struct point {int x, y;};
22740   static struct point const zero = {0,0};
22741   /* AIX XL C 1.02.0.0 rejects this.
22742      It does not let you subtract one const X* pointer from another in
22743      an arm of an if-expression whose if-part is not a constant
22744      expression */
22745   const char *g = "string";
22746   pcpcc = &g + (g ? g-g : 0);
22747   /* HPUX 7.0 cc rejects these. */
22748   ++pcpcc;
22749   ppc = (char**) pcpcc;
22750   pcpcc = (char const *const *) ppc;
22751   { /* SCO 3.2v4 cc rejects this.  */
22752     char *t;
22753     char const *s = 0 ? (char *) 0 : (char const *) 0;
22754
22755     *t++ = 0;
22756     if (s) return 0;
22757   }
22758   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22759     int x[] = {25, 17};
22760     const int *foo = &x[0];
22761     ++foo;
22762   }
22763   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22764     typedef const int *iptr;
22765     iptr p = 0;
22766     ++p;
22767   }
22768   { /* AIX XL C 1.02.0.0 rejects this saying
22769        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22770     struct s { int j; const int *ap[3]; };
22771     struct s *b; b->j = 5;
22772   }
22773   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22774     const int foo = 10;
22775     if (!foo) return 0;
22776   }
22777   return !cs[0] && !zero.x;
22778 #endif
22779
22780   ;
22781   return 0;
22782 }
22783 _ACEOF
22784 rm -f conftest.$ac_objext
22785 if { (ac_try="$ac_compile"
22786 case "(($ac_try" in
22787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788   *) ac_try_echo=$ac_try;;
22789 esac
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791   (eval "$ac_compile") 2>conftest.er1
22792   ac_status=$?
22793   grep -v '^ *+' conftest.er1 >conftest.err
22794   rm -f conftest.er1
22795   cat conftest.err >&5
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); } && {
22798          test -z "$ac_c_werror_flag" ||
22799          test ! -s conftest.err
22800        } && test -s conftest.$ac_objext; then
22801   ac_cv_c_const=yes
22802 else
22803   echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806         ac_cv_c_const=no
22807 fi
22808
22809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810 fi
22811 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22812 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22813 if test $ac_cv_c_const = no; then
22814
22815 cat >>confdefs.h <<\_ACEOF
22816 #define const
22817 _ACEOF
22818
22819 fi
22820
22821
22822 { echo "$as_me:$LINENO: checking type of OS" >&5
22823 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
22824 OS=`uname -s`
22825 { echo "$as_me:$LINENO: result: $OS" >&5
22826 echo "${ECHO_T}$OS" >&6; }
22827 if test "$OS" = "OS/2"; then
22828         LIBPREFIX=
22829 else
22830         LIBPREFIX=lib
22831 fi
22832
22833
22834 if test "x$GCC" = "xyes"; then
22835     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22836 fi
22837
22838 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22839 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
22840 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22841   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22842   CFLAGS="$CFLAGS $devflags"
22843   INSTALLSTRIP=""
22844   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22845 echo "${ECHO_T}yes.  Using $devflags" >&6; }
22846 else
22847   devflags=""
22848   CFLAGS="$CFLAGS -DNDEBUG"
22849   INSTALLSTRIP="-s"
22850   { echo "$as_me:$LINENO: result: no." >&5
22851 echo "${ECHO_T}no." >&6; }
22852 fi
22853
22854
22855 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22856 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22857 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22858   echo $ECHO_N "(cached) $ECHO_C" >&6
22859 else
22860   ac_check_lib_save_LIBS=$LIBS
22861 LIBS="-lcrypt  $LIBS"
22862 cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h.  */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h.  */
22868
22869 /* Override any GCC internal prototype to avoid an error.
22870    Use char because int might match the return type of a GCC
22871    builtin and then its argument prototype would still apply.  */
22872 #ifdef __cplusplus
22873 extern "C"
22874 #endif
22875 char crypt ();
22876 int
22877 main ()
22878 {
22879 return crypt ();
22880   ;
22881   return 0;
22882 }
22883 _ACEOF
22884 rm -f conftest.$ac_objext conftest$ac_exeext
22885 if { (ac_try="$ac_link"
22886 case "(($ac_try" in
22887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888   *) ac_try_echo=$ac_try;;
22889 esac
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891   (eval "$ac_link") 2>conftest.er1
22892   ac_status=$?
22893   grep -v '^ *+' conftest.er1 >conftest.err
22894   rm -f conftest.er1
22895   cat conftest.err >&5
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); } && {
22898          test -z "$ac_c_werror_flag" ||
22899          test ! -s conftest.err
22900        } && test -s conftest$ac_exeext &&
22901        $as_test_x conftest$ac_exeext; then
22902   ac_cv_lib_crypt_crypt=yes
22903 else
22904   echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22906
22907         ac_cv_lib_crypt_crypt=no
22908 fi
22909
22910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22911       conftest$ac_exeext conftest.$ac_ext
22912 LIBS=$ac_check_lib_save_LIBS
22913 fi
22914 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22915 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22916 if test $ac_cv_lib_crypt_crypt = yes; then
22917   CRYPTLIB="-lcrypt"
22918
22919 fi
22920
22921 if test "$CRYPTLIB" != ""; then
22922   cat >>confdefs.h <<\_ACEOF
22923 #define HAVE_CRYPT 1
22924 _ACEOF
22925
22926 else
22927   { echo "$as_me:$LINENO: checking for crypt" >&5
22928 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
22929 if test "${ac_cv_func_crypt+set}" = set; then
22930   echo $ECHO_N "(cached) $ECHO_C" >&6
22931 else
22932   cat >conftest.$ac_ext <<_ACEOF
22933 /* confdefs.h.  */
22934 _ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h.  */
22938 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22940 #define crypt innocuous_crypt
22941
22942 /* System header to define __stub macros and hopefully few prototypes,
22943     which can conflict with char crypt (); below.
22944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22945     <limits.h> exists even on freestanding compilers.  */
22946
22947 #ifdef __STDC__
22948 # include <limits.h>
22949 #else
22950 # include <assert.h>
22951 #endif
22952
22953 #undef crypt
22954
22955 /* Override any GCC internal prototype to avoid an error.
22956    Use char because int might match the return type of a GCC
22957    builtin and then its argument prototype would still apply.  */
22958 #ifdef __cplusplus
22959 extern "C"
22960 #endif
22961 char crypt ();
22962 /* The GNU C library defines this for functions which it implements
22963     to always fail with ENOSYS.  Some functions are actually named
22964     something starting with __ and the normal name is an alias.  */
22965 #if defined __stub_crypt || defined __stub___crypt
22966 choke me
22967 #endif
22968
22969 int
22970 main ()
22971 {
22972 return crypt ();
22973   ;
22974   return 0;
22975 }
22976 _ACEOF
22977 rm -f conftest.$ac_objext conftest$ac_exeext
22978 if { (ac_try="$ac_link"
22979 case "(($ac_try" in
22980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981   *) ac_try_echo=$ac_try;;
22982 esac
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984   (eval "$ac_link") 2>conftest.er1
22985   ac_status=$?
22986   grep -v '^ *+' conftest.er1 >conftest.err
22987   rm -f conftest.er1
22988   cat conftest.err >&5
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); } && {
22991          test -z "$ac_c_werror_flag" ||
22992          test ! -s conftest.err
22993        } && test -s conftest$ac_exeext &&
22994        $as_test_x conftest$ac_exeext; then
22995   ac_cv_func_crypt=yes
22996 else
22997   echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
22999
23000         ac_cv_func_crypt=no
23001 fi
23002
23003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23004       conftest$ac_exeext conftest.$ac_ext
23005 fi
23006 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23007 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
23008 if test $ac_cv_func_crypt = yes; then
23009   cat >>confdefs.h <<\_ACEOF
23010 #define HAVE_CRYPT 1
23011 _ACEOF
23012
23013 fi
23014
23015 fi
23016
23017 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23018 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
23019 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23020   echo $ECHO_N "(cached) $ECHO_C" >&6
23021 else
23022   ac_check_lib_save_LIBS=$LIBS
23023 LIBS="-lcipher  $LIBS"
23024 cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h.  */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h.  */
23030
23031 /* Override any GCC internal prototype to avoid an error.
23032    Use char because int might match the return type of a GCC
23033    builtin and then its argument prototype would still apply.  */
23034 #ifdef __cplusplus
23035 extern "C"
23036 #endif
23037 char setkey ();
23038 int
23039 main ()
23040 {
23041 return setkey ();
23042   ;
23043   return 0;
23044 }
23045 _ACEOF
23046 rm -f conftest.$ac_objext conftest$ac_exeext
23047 if { (ac_try="$ac_link"
23048 case "(($ac_try" in
23049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050   *) ac_try_echo=$ac_try;;
23051 esac
23052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053   (eval "$ac_link") 2>conftest.er1
23054   ac_status=$?
23055   grep -v '^ *+' conftest.er1 >conftest.err
23056   rm -f conftest.er1
23057   cat conftest.err >&5
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); } && {
23060          test -z "$ac_c_werror_flag" ||
23061          test ! -s conftest.err
23062        } && test -s conftest$ac_exeext &&
23063        $as_test_x conftest$ac_exeext; then
23064   ac_cv_lib_cipher_setkey=yes
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069         ac_cv_lib_cipher_setkey=no
23070 fi
23071
23072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23073       conftest$ac_exeext conftest.$ac_ext
23074 LIBS=$ac_check_lib_save_LIBS
23075 fi
23076 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23077 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
23078 if test $ac_cv_lib_cipher_setkey = yes; then
23079   CRYPTLIB="${CRYPTLIB} -lcipher"
23080
23081 fi
23082
23083
23084
23085 if test "x$WITH_SNMP" = "xyes"; then
23086
23087
23088
23089
23090 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23091 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
23092
23093 cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h.  */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h.  */
23099
23100 #ifdef HAVE_SYS_TYPES_H
23101 #include <sys/types.h>
23102 #endif
23103 #ifdef HAVE_STDINT_H
23104 #include <stdint.h>
23105 #endif
23106 #ifdef HAVE_STDIO_H
23107 #include <stdio.h>
23108 #endif
23109 #ifdef HAVE_NETDB_H
23110 #include <netdb.h>
23111 #endif
23112 #ifdef HAVE_UNISTD_H
23113 #include <unistd.h>
23114 #endif
23115 #include <ucd-snmp/ucd-snmp-config.h>
23116 #include <ucd-snmp/asn1.h>
23117 #include <ucd-snmp/snmp.h>
23118 #include <ucd-snmp/snmp_impl.h>
23119 int
23120 main ()
23121 {
23122  int a = 1;
23123   ;
23124   return 0;
23125 }
23126 _ACEOF
23127 rm -f conftest.$ac_objext
23128 if { (ac_try="$ac_compile"
23129 case "(($ac_try" in
23130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131   *) ac_try_echo=$ac_try;;
23132 esac
23133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23134   (eval "$ac_compile") 2>conftest.er1
23135   ac_status=$?
23136   grep -v '^ *+' conftest.er1 >conftest.err
23137   rm -f conftest.er1
23138   cat conftest.err >&5
23139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140   (exit $ac_status); } && {
23141          test -z "$ac_c_werror_flag" ||
23142          test ! -s conftest.err
23143        } && test -s conftest.$ac_objext; then
23144   SNMP_INCLUDE="";ucdsnmp=yes
23145 else
23146   echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23148
23149         ucdsnmp=
23150 fi
23151
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23153
23154 if test "x$ucdsnmp" = "x"; then
23155   old_CFLAGS="$CFLAGS"
23156   for try in /usr/include /usr/local/include $with_snmp_include_dir; do
23157     CFLAGS="$old_CFLAGS -I$try"
23158     cat >conftest.$ac_ext <<_ACEOF
23159 /* confdefs.h.  */
23160 _ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h.  */
23164
23165 #ifdef HAVE_SYS_TYPES_H
23166 #include <sys/types.h>
23167 #endif
23168 #ifdef HAVE_STDINT_H
23169 #include <stdint.h>
23170 #endif
23171 #ifdef HAVE_STDIO_H
23172 #include <stdio.h>
23173 #endif
23174 #ifdef HAVE_NETDB_H
23175 #include <netdb.h>
23176 #endif
23177 #ifdef HAVE_UNISTD_H
23178 #include <unistd.h>
23179 #endif
23180 #include <ucd-snmp/ucd-snmp-config.h>
23181 #include <ucd-snmp/asn1.h>
23182 #include <ucd-snmp/snmp.h>
23183 #include <ucd-snmp/snmp_impl.h>
23184 int
23185 main ()
23186 {
23187  int a = 1;
23188   ;
23189   return 0;
23190 }
23191 _ACEOF
23192 rm -f conftest.$ac_objext
23193 if { (ac_try="$ac_compile"
23194 case "(($ac_try" in
23195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196   *) ac_try_echo=$ac_try;;
23197 esac
23198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199   (eval "$ac_compile") 2>conftest.er1
23200   ac_status=$?
23201   grep -v '^ *+' conftest.er1 >conftest.err
23202   rm -f conftest.er1
23203   cat conftest.err >&5
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); } && {
23206          test -z "$ac_c_werror_flag" ||
23207          test ! -s conftest.err
23208        } && test -s conftest.$ac_objext; then
23209   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23210 else
23211   echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23213
23214         ucdsnmp=
23215 fi
23216
23217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23218     if test "x$ucdsnmp" != "x"; then
23219       break;
23220     fi
23221   done
23222   CFLAGS="$old_CFLAGS"
23223 fi
23224
23225 if test "x$ucdsnmp" = "x"; then
23226   old_CFLAGS="$CFLAGS"
23227   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23228     CFLAGS="$old_CFLAGS -I$try"
23229 cat >conftest.$ac_ext <<_ACEOF
23230 /* confdefs.h.  */
23231 _ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h.  */
23235
23236 #ifdef HAVE_SYS_TYPES_H
23237 #include <sys/types.h>
23238 #endif
23239 #ifdef HAVE_STDINT_H
23240 #include <stdint.h>
23241 #endif
23242 #ifdef HAVE_STDIO_H
23243 #include <stdio.h>
23244 #endif
23245 #ifdef HAVE_NETDB_H
23246 #include <netdb.h>
23247 #endif
23248 #ifdef HAVE_UNISTD_H
23249 #include <unistd.h>
23250 #endif
23251 #include <asn1.h>
23252 #include <snmp.h>
23253 #include <snmp_impl.h>
23254 int
23255 main ()
23256 {
23257  int a = 1;
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest.$ac_objext
23263 if { (ac_try="$ac_compile"
23264 case "(($ac_try" in
23265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266   *) ac_try_echo=$ac_try;;
23267 esac
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269   (eval "$ac_compile") 2>conftest.er1
23270   ac_status=$?
23271   grep -v '^ *+' conftest.er1 >conftest.err
23272   rm -f conftest.er1
23273   cat conftest.err >&5
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); } && {
23276          test -z "$ac_c_werror_flag" ||
23277          test ! -s conftest.err
23278        } && test -s conftest.$ac_objext; then
23279   SNMP_INCLUDE="";ucdsnmp=no
23280 else
23281   echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23283
23284         ucdsnmp=
23285 fi
23286
23287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23288     if test "x$ucdsnmp" != "x"; then
23289       break;
23290     fi
23291   done
23292   CFLAGS="$old_CFLAGS"
23293 fi
23294
23295 if test "x$ucdsnmp" = "x"; then
23296   old_CFLAGS="$CFLAGS"
23297   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23298     CFLAGS="$old_CFLAGS -I$try"
23299     cat >conftest.$ac_ext <<_ACEOF
23300 /* confdefs.h.  */
23301 _ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h.  */
23305
23306 #ifdef HAVE_SYS_TYPES_H
23307 #include <sys/types.h>
23308 #endif
23309 #ifdef HAVE_STDINT_H
23310 #include <stdint.h>
23311 #endif
23312 #ifdef HAVE_STDIO_H
23313 #include <stdio.h>
23314 #endif
23315 #ifdef HAVE_NETDB_H
23316 #include <netdb.h>
23317 #endif
23318 #ifdef HAVE_UNISTD_H
23319 #include <unistd.h>
23320 #endif
23321 #include <asn1.h>
23322 #include <snmp.h>
23323 #include <snmp_impl.h>
23324 int
23325 main ()
23326 {
23327  int a = 1;
23328   ;
23329   return 0;
23330 }
23331 _ACEOF
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336   *) ac_try_echo=$ac_try;;
23337 esac
23338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339   (eval "$ac_compile") 2>conftest.er1
23340   ac_status=$?
23341   grep -v '^ *+' conftest.er1 >conftest.err
23342   rm -f conftest.er1
23343   cat conftest.err >&5
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); } && {
23346          test -z "$ac_c_werror_flag" ||
23347          test ! -s conftest.err
23348        } && test -s conftest.$ac_objext; then
23349   SNMP_INCLUDE="-I$try";ucdsnmp=no
23350 else
23351   echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23353
23354         ucdsnmp=
23355 fi
23356
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358     if test "x$ucdsnmp" != "x"; then
23359       break;
23360     fi
23361   done
23362   CFLAGS="$old_CFLAGS"
23363 fi
23364
23365 if test "x$ucdsnmp" = "x"; then
23366   { echo "$as_me:$LINENO: result: no" >&5
23367 echo "${ECHO_T}no" >&6; }
23368 else
23369   if test "x$ucdsnmp" = "xyes"; then
23370     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23371 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
23372     cat >>confdefs.h <<\_ACEOF
23373 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
23374 _ACEOF
23375
23376   else
23377     { echo "$as_me:$LINENO: result: yes" >&5
23378 echo "${ECHO_T}yes" >&6; }
23379     cat >>confdefs.h <<\_ACEOF
23380 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
23381 _ACEOF
23382
23383   fi
23384   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23385 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
23386
23387   old_LIBS="$LIBS"
23388   LIBS="$old_LIBS -lsnmp"
23389   cat >conftest.$ac_ext <<_ACEOF
23390 /* confdefs.h.  */
23391 _ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h.  */
23395 extern char snmp_build_var_op();
23396 int
23397 main ()
23398 {
23399  snmp_build_var_op()
23400   ;
23401   return 0;
23402 }
23403 _ACEOF
23404 rm -f conftest.$ac_objext conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408   *) ac_try_echo=$ac_try;;
23409 esac
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411   (eval "$ac_link") 2>conftest.er1
23412   ac_status=$?
23413   grep -v '^ *+' conftest.er1 >conftest.err
23414   rm -f conftest.er1
23415   cat conftest.err >&5
23416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417   (exit $ac_status); } && {
23418          test -z "$ac_c_werror_flag" ||
23419          test ! -s conftest.err
23420        } && test -s conftest$ac_exeext &&
23421        $as_test_x conftest$ac_exeext; then
23422   SNMP_LIBS="-lsnmp"
23423 else
23424   echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427         SNMP_LIBS=
23428 fi
23429
23430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23431       conftest$ac_exeext conftest.$ac_ext
23432
23433   if test "x$SNMP_LIBS" = "x"; then
23434     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23435       LIBS="$old_LIBS -L$try -lsnmp"
23436       cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 extern char snmp_build_var_op();
23443 int
23444 main ()
23445 {
23446  snmp_build_var_op()
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext conftest$ac_exeext
23452 if { (ac_try="$ac_link"
23453 case "(($ac_try" in
23454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455   *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458   (eval "$ac_link") 2>conftest.er1
23459   ac_status=$?
23460   grep -v '^ *+' conftest.er1 >conftest.err
23461   rm -f conftest.er1
23462   cat conftest.err >&5
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); } && {
23465          test -z "$ac_c_werror_flag" ||
23466          test ! -s conftest.err
23467        } && test -s conftest$ac_exeext &&
23468        $as_test_x conftest$ac_exeext; then
23469   SNMP_LIBS="-L$try -lsnmp"
23470 else
23471   echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23473
23474         SNMP_LIBS=
23475 fi
23476
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23478       conftest$ac_exeext conftest.$ac_ext
23479       if test "x$SNMP_LIBS" != "x"; then
23480         break;
23481       fi
23482       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23483       cat >conftest.$ac_ext <<_ACEOF
23484 /* confdefs.h.  */
23485 _ACEOF
23486 cat confdefs.h >>conftest.$ac_ext
23487 cat >>conftest.$ac_ext <<_ACEOF
23488 /* end confdefs.h.  */
23489 extern char snmp_build_var_op();
23490 int
23491 main ()
23492 {
23493  snmp_build_var_op()
23494   ;
23495   return 0;
23496 }
23497 _ACEOF
23498 rm -f conftest.$ac_objext conftest$ac_exeext
23499 if { (ac_try="$ac_link"
23500 case "(($ac_try" in
23501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502   *) ac_try_echo=$ac_try;;
23503 esac
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505   (eval "$ac_link") 2>conftest.er1
23506   ac_status=$?
23507   grep -v '^ *+' conftest.er1 >conftest.err
23508   rm -f conftest.er1
23509   cat conftest.err >&5
23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511   (exit $ac_status); } && {
23512          test -z "$ac_c_werror_flag" ||
23513          test ! -s conftest.err
23514        } && test -s conftest$ac_exeext &&
23515        $as_test_x conftest$ac_exeext; then
23516   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23517 else
23518   echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521         SNMP_LIBS=
23522 fi
23523
23524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23525       conftest$ac_exeext conftest.$ac_ext
23526       if test "x$SNMP_LIBS" != "x"; then
23527         break;
23528       fi
23529       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23530       cat >conftest.$ac_ext <<_ACEOF
23531 /* confdefs.h.  */
23532 _ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h.  */
23536 extern char snmp_build_var_op();
23537 int
23538 main ()
23539 {
23540  snmp_build_var_op()
23541   ;
23542   return 0;
23543 }
23544 _ACEOF
23545 rm -f conftest.$ac_objext conftest$ac_exeext
23546 if { (ac_try="$ac_link"
23547 case "(($ac_try" in
23548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23549   *) ac_try_echo=$ac_try;;
23550 esac
23551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23552   (eval "$ac_link") 2>conftest.er1
23553   ac_status=$?
23554   grep -v '^ *+' conftest.er1 >conftest.err
23555   rm -f conftest.er1
23556   cat conftest.err >&5
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); } && {
23559          test -z "$ac_c_werror_flag" ||
23560          test ! -s conftest.err
23561        } && test -s conftest$ac_exeext &&
23562        $as_test_x conftest$ac_exeext; then
23563   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23564 else
23565   echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23567
23568         SNMP_LIBS=
23569 fi
23570
23571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23572       conftest$ac_exeext conftest.$ac_ext
23573       if test "x$SNMP_LIBS" != "x"; then
23574         break;
23575       fi
23576     done
23577   fi
23578   LIBS="$old_LIBS"
23579
23580           CFLAGS="$old_CFLAGS"
23581   if test "x$SNMP_LIBS" = "x"; then
23582     { echo "$as_me:$LINENO: result: no" >&5
23583 echo "${ECHO_T}no" >&6; }
23584     SNMP_INCLUDE=
23585   else
23586     { echo "$as_me:$LINENO: result: yes" >&5
23587 echo "${ECHO_T}yes" >&6; }
23588     cat >>confdefs.h <<\_ACEOF
23589 #define WITH_SNMP 1
23590 _ACEOF
23591
23592     cat >>confdefs.h <<\_ACEOF
23593 #define HAVE_LIBSNMP 1
23594 _ACEOF
23595
23596   fi
23597 fi
23598
23599 fi
23600
23601 gethostbyaddrrstyle=""
23602 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23603 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
23604 case "$host" in
23605 *-freebsd*)
23606         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
23607 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
23608 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
23609   echo $ECHO_N "(cached) $ECHO_C" >&6
23610 else
23611   cat >conftest.$ac_ext <<_ACEOF
23612 /* confdefs.h.  */
23613 _ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h.  */
23617
23618 #ifdef HAVE_NETDB_H
23619 #include <netdb.h>
23620 #endif
23621
23622
23623 int
23624 main ()
23625 {
23626 #ifndef gethostbyaddr_r
23627   (void) gethostbyaddr_r;
23628 #endif
23629
23630   ;
23631   return 0;
23632 }
23633 _ACEOF
23634 rm -f conftest.$ac_objext
23635 if { (ac_try="$ac_compile"
23636 case "(($ac_try" in
23637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638   *) ac_try_echo=$ac_try;;
23639 esac
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641   (eval "$ac_compile") 2>conftest.er1
23642   ac_status=$?
23643   grep -v '^ *+' conftest.er1 >conftest.err
23644   rm -f conftest.er1
23645   cat conftest.err >&5
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); } && {
23648          test -z "$ac_c_werror_flag" ||
23649          test ! -s conftest.err
23650        } && test -s conftest.$ac_objext; then
23651   ac_cv_have_decl_gethostbyaddr_r=yes
23652 else
23653   echo "$as_me: failed program was:" >&5
23654 sed 's/^/| /' conftest.$ac_ext >&5
23655
23656         ac_cv_have_decl_gethostbyaddr_r=no
23657 fi
23658
23659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 fi
23661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
23662 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
23663 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
23664
23665 cat >>confdefs.h <<_ACEOF
23666 #define HAVE_DECL_GETHOSTBYADDR_R 1
23667 _ACEOF
23668
23669
23670 else
23671   cat >>confdefs.h <<_ACEOF
23672 #define HAVE_DECL_GETHOSTBYADDR_R 0
23673 _ACEOF
23674
23675
23676
23677 cat >>confdefs.h <<\_ACEOF
23678 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23679 _ACEOF
23680
23681                 gethostbyaddrrstyle=BSD
23682                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23683 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23684
23685 fi
23686
23687
23688         ;;
23689 esac
23690 if test "x$gethostbyaddrrstyle" = "x"; then
23691         cat >conftest.$ac_ext <<_ACEOF
23692 /* confdefs.h.  */
23693 _ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h.  */
23697
23698 #include <stdio.h>
23699 #include <netdb.h>
23700
23701 int
23702 main ()
23703 {
23704  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23705   ;
23706   return 0;
23707 }
23708 _ACEOF
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (ac_try="$ac_link"
23711 case "(($ac_try" in
23712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713   *) ac_try_echo=$ac_try;;
23714 esac
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716   (eval "$ac_link") 2>conftest.er1
23717   ac_status=$?
23718   grep -v '^ *+' conftest.er1 >conftest.err
23719   rm -f conftest.er1
23720   cat conftest.err >&5
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); } && {
23723          test -z "$ac_c_werror_flag" ||
23724          test ! -s conftest.err
23725        } && test -s conftest$ac_exeext &&
23726        $as_test_x conftest$ac_exeext; then
23727
23728         cat >>confdefs.h <<\_ACEOF
23729 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23730 _ACEOF
23731
23732         gethostbyaddrrstyle=GNU
23733
23734 else
23735   echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23737
23738
23739 fi
23740
23741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23742       conftest$ac_exeext conftest.$ac_ext
23743 fi
23744 if test "x$gethostbyaddrrstyle" = "x"; then
23745         cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h.  */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h.  */
23751
23752 #include <stdio.h>
23753 #include <netdb.h>
23754
23755 int
23756 main ()
23757 {
23758  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23759   ;
23760   return 0;
23761 }
23762 _ACEOF
23763 rm -f conftest.$ac_objext conftest$ac_exeext
23764 if { (ac_try="$ac_link"
23765 case "(($ac_try" in
23766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767   *) ac_try_echo=$ac_try;;
23768 esac
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770   (eval "$ac_link") 2>conftest.er1
23771   ac_status=$?
23772   grep -v '^ *+' conftest.er1 >conftest.err
23773   rm -f conftest.er1
23774   cat conftest.err >&5
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); } && {
23777          test -z "$ac_c_werror_flag" ||
23778          test ! -s conftest.err
23779        } && test -s conftest$ac_exeext &&
23780        $as_test_x conftest$ac_exeext; then
23781
23782                 cat >>confdefs.h <<\_ACEOF
23783 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23784 _ACEOF
23785
23786                 gethostbyaddrrstyle=SYSV
23787
23788 else
23789   echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23791
23792
23793 fi
23794
23795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23796       conftest$ac_exeext conftest.$ac_ext
23797 fi
23798 if test "x$gethostbyaddrrstyle" = "x"; then
23799         cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h.  */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h.  */
23805
23806 #include <stdio.h>
23807 #include <netdb.h>
23808
23809 int
23810 main ()
23811 {
23812  gethostbyaddr(NULL, 0, 0)
23813   ;
23814   return 0;
23815 }
23816 _ACEOF
23817 rm -f conftest.$ac_objext conftest$ac_exeext
23818 if { (ac_try="$ac_link"
23819 case "(($ac_try" in
23820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23821   *) ac_try_echo=$ac_try;;
23822 esac
23823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23824   (eval "$ac_link") 2>conftest.er1
23825   ac_status=$?
23826   grep -v '^ *+' conftest.er1 >conftest.err
23827   rm -f conftest.er1
23828   cat conftest.err >&5
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } && {
23831          test -z "$ac_c_werror_flag" ||
23832          test ! -s conftest.err
23833        } && test -s conftest$ac_exeext &&
23834        $as_test_x conftest$ac_exeext; then
23835
23836                 cat >>confdefs.h <<\_ACEOF
23837 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23838 _ACEOF
23839
23840                 gethostbyaddrrstyle=BSD
23841
23842 else
23843   echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23845
23846
23847 fi
23848
23849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23850       conftest$ac_exeext conftest.$ac_ext
23851 fi
23852
23853 if test "x$gethostbyaddrrstyle" = "x"; then
23854         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23855 echo "${ECHO_T}none!  It must not exist, here." >&6; }
23856 else
23857         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23858 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
23859 fi
23860
23861 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23862         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23863 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23864 fi
23865
23866 gethostbynamerstyle=""
23867 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23868 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
23869 cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h.  */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h.  */
23875
23876 #include <stdio.h>
23877 #include <netdb.h>
23878
23879 int
23880 main ()
23881 {
23882  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23883   ;
23884   return 0;
23885 }
23886 _ACEOF
23887 rm -f conftest.$ac_objext conftest$ac_exeext
23888 if { (ac_try="$ac_link"
23889 case "(($ac_try" in
23890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891   *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894   (eval "$ac_link") 2>conftest.er1
23895   ac_status=$?
23896   grep -v '^ *+' conftest.er1 >conftest.err
23897   rm -f conftest.er1
23898   cat conftest.err >&5
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); } && {
23901          test -z "$ac_c_werror_flag" ||
23902          test ! -s conftest.err
23903        } && test -s conftest$ac_exeext &&
23904        $as_test_x conftest$ac_exeext; then
23905
23906         cat >>confdefs.h <<\_ACEOF
23907 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23908 _ACEOF
23909
23910         gethostbynamerstyle=GNU
23911
23912 else
23913   echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23915
23916
23917 fi
23918
23919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23920       conftest$ac_exeext conftest.$ac_ext
23921 if test "x$gethostbynamerstyle" = "x"; then
23922         cat >conftest.$ac_ext <<_ACEOF
23923 /* confdefs.h.  */
23924 _ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h.  */
23928
23929 #include <stdio.h>
23930 #include <netdb.h>
23931
23932 int
23933 main ()
23934 {
23935  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23936   ;
23937   return 0;
23938 }
23939 _ACEOF
23940 rm -f conftest.$ac_objext conftest$ac_exeext
23941 if { (ac_try="$ac_link"
23942 case "(($ac_try" in
23943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944   *) ac_try_echo=$ac_try;;
23945 esac
23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947   (eval "$ac_link") 2>conftest.er1
23948   ac_status=$?
23949   grep -v '^ *+' conftest.er1 >conftest.err
23950   rm -f conftest.er1
23951   cat conftest.err >&5
23952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953   (exit $ac_status); } && {
23954          test -z "$ac_c_werror_flag" ||
23955          test ! -s conftest.err
23956        } && test -s conftest$ac_exeext &&
23957        $as_test_x conftest$ac_exeext; then
23958
23959                 cat >>confdefs.h <<\_ACEOF
23960 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23961 _ACEOF
23962
23963                 gethostbynamerstyle=SYSV
23964
23965 else
23966   echo "$as_me: failed program was:" >&5
23967 sed 's/^/| /' conftest.$ac_ext >&5
23968
23969
23970 fi
23971
23972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23973       conftest$ac_exeext conftest.$ac_ext
23974 fi
23975 if test "x$gethostbynamerstyle" = "x"; then
23976         cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h.  */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h.  */
23982
23983 #include <stdio.h>
23984 #include <netdb.h>
23985
23986 int
23987 main ()
23988 {
23989  gethostbyname(NULL)
23990   ;
23991   return 0;
23992 }
23993 _ACEOF
23994 rm -f conftest.$ac_objext conftest$ac_exeext
23995 if { (ac_try="$ac_link"
23996 case "(($ac_try" in
23997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998   *) ac_try_echo=$ac_try;;
23999 esac
24000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24001   (eval "$ac_link") 2>conftest.er1
24002   ac_status=$?
24003   grep -v '^ *+' conftest.er1 >conftest.err
24004   rm -f conftest.er1
24005   cat conftest.err >&5
24006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007   (exit $ac_status); } && {
24008          test -z "$ac_c_werror_flag" ||
24009          test ! -s conftest.err
24010        } && test -s conftest$ac_exeext &&
24011        $as_test_x conftest$ac_exeext; then
24012
24013                 cat >>confdefs.h <<\_ACEOF
24014 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24015 _ACEOF
24016
24017                 gethostbynamerstyle=BSD
24018
24019 else
24020   echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023
24024 fi
24025
24026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24027       conftest$ac_exeext conftest.$ac_ext
24028 fi
24029
24030 if test "x$gethostbynamerstyle" = "x"; then
24031         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24032 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24033 else
24034         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24035 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
24036 fi
24037
24038 if test "x$gethostbynamerstyle" = "xBSD"; then
24039         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24040 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24041 fi
24042
24043 ctimerstyle=""
24044 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24045 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
24046 cat >conftest.$ac_ext <<_ACEOF
24047 /* confdefs.h.  */
24048 _ACEOF
24049 cat confdefs.h >>conftest.$ac_ext
24050 cat >>conftest.$ac_ext <<_ACEOF
24051 /* end confdefs.h.  */
24052
24053 #include <time.h>
24054
24055 int
24056 main ()
24057 {
24058  ctime_r(NULL, NULL, 0)
24059   ;
24060   return 0;
24061 }
24062 _ACEOF
24063 rm -f conftest.$ac_objext conftest$ac_exeext
24064 if { (ac_try="$ac_link"
24065 case "(($ac_try" in
24066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067   *) ac_try_echo=$ac_try;;
24068 esac
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070   (eval "$ac_link") 2>conftest.er1
24071   ac_status=$?
24072   grep -v '^ *+' conftest.er1 >conftest.err
24073   rm -f conftest.er1
24074   cat conftest.err >&5
24075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076   (exit $ac_status); } && {
24077          test -z "$ac_c_werror_flag" ||
24078          test ! -s conftest.err
24079        } && test -s conftest$ac_exeext &&
24080        $as_test_x conftest$ac_exeext; then
24081
24082         cat >>confdefs.h <<\_ACEOF
24083 #define CTIMERSTYLE SOLARISSTYLE
24084 _ACEOF
24085
24086         ctimerstyle="SOLARIS"
24087
24088 else
24089   echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24091
24092
24093 fi
24094
24095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24096       conftest$ac_exeext conftest.$ac_ext
24097 if test "x$ctimerstyle" = "x"; then
24098         cat >conftest.$ac_ext <<_ACEOF
24099 /* confdefs.h.  */
24100 _ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h.  */
24104
24105 #include <time.h>
24106
24107 int
24108 main ()
24109 {
24110  ctime_r(NULL, NULL)
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext conftest$ac_exeext
24116 if { (ac_try="$ac_link"
24117 case "(($ac_try" in
24118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119   *) ac_try_echo=$ac_try;;
24120 esac
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122   (eval "$ac_link") 2>conftest.er1
24123   ac_status=$?
24124   grep -v '^ *+' conftest.er1 >conftest.err
24125   rm -f conftest.er1
24126   cat conftest.err >&5
24127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128   (exit $ac_status); } && {
24129          test -z "$ac_c_werror_flag" ||
24130          test ! -s conftest.err
24131        } && test -s conftest$ac_exeext &&
24132        $as_test_x conftest$ac_exeext; then
24133
24134                 cat >>confdefs.h <<\_ACEOF
24135 #define CTIMERSTYLE POSIXSTYLE
24136 _ACEOF
24137
24138                 ctimerstyle="POSIX"
24139
24140 else
24141   echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144
24145 fi
24146
24147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24148       conftest$ac_exeext conftest.$ac_ext
24149 fi
24150
24151 if test "x$ctimerstyle" = "x"; then
24152         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24153 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24154 else
24155         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24156 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
24157 fi
24158
24159
24160 if test x"$rad_enable_largefiles" = xyes ; then
24161     { echo "$as_me:$LINENO: checking for largefile linkage" >&5
24162 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
24163     case "$host" in
24164     *-aix4.01*)
24165         { echo "$as_me:$LINENO: result: no" >&5
24166 echo "${ECHO_T}no" >&6; }
24167         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
24168 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
24169    { (exit 1); exit 1; }; }
24170         ;;
24171     *-aix4*)
24172         { echo "$as_me:$LINENO: result: ok" >&5
24173 echo "${ECHO_T}ok" >&6; }
24174         LFS_CFLAGS="-D_LARGE_FILES"
24175         LFS_LDFLAGS=""
24176         LFS_LIBS=""
24177         ;;
24178     *-hpux*)
24179         { echo "$as_me:$LINENO: result: ok" >&5
24180 echo "${ECHO_T}ok" >&6; }
24181         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24182         LFS_LDFLAGS=""
24183         LFS_LIBS=""
24184         ;;
24185     *-irix*)
24186         { echo "$as_me:$LINENO: result: no" >&5
24187 echo "${ECHO_T}no" >&6; }
24188         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
24189 echo "$as_me: error: Large files not supported on this platform" >&2;}
24190    { (exit 1); exit 1; }; }
24191         ;;
24192     *-linux*)
24193         { echo "$as_me:$LINENO: result: maybe" >&5
24194 echo "${ECHO_T}maybe" >&6; }
24195         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24196         LFS_LDFLAGS=""
24197         LFS_LIBS=""
24198
24199 cat >>confdefs.h <<\_ACEOF
24200 #define _GNU_SOURCE 1
24201 _ACEOF
24202
24203         ;;
24204     *-solaris*)
24205         { echo "$as_me:$LINENO: result: ok" >&5
24206 echo "${ECHO_T}ok" >&6; }
24207         # Extract the first word of "getconf", so it can be a program name with args.
24208 set dummy getconf; ac_word=$2
24209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24211 if test "${ac_cv_path_GETCONF+set}" = set; then
24212   echo $ECHO_N "(cached) $ECHO_C" >&6
24213 else
24214   case $GETCONF in
24215   [\\/]* | ?:[\\/]*)
24216   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
24217   ;;
24218   *)
24219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24220 for as_dir in $PATH
24221 do
24222   IFS=$as_save_IFS
24223   test -z "$as_dir" && as_dir=.
24224   for ac_exec_ext in '' $ac_executable_extensions; do
24225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24226     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
24227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24228     break 2
24229   fi
24230 done
24231 done
24232 IFS=$as_save_IFS
24233
24234   ;;
24235 esac
24236 fi
24237 GETCONF=$ac_cv_path_GETCONF
24238 if test -n "$GETCONF"; then
24239   { echo "$as_me:$LINENO: result: $GETCONF" >&5
24240 echo "${ECHO_T}$GETCONF" >&6; }
24241 else
24242   { echo "$as_me:$LINENO: result: no" >&5
24243 echo "${ECHO_T}no" >&6; }
24244 fi
24245
24246
24247         if test -z "$GETCONF" ; then
24248             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
24249 echo "$as_me: error: getconf required to configure large file support" >&2;}
24250    { (exit 1); exit 1; }; }
24251         fi
24252         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
24253         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
24254         LFS_LIBS=`$GETCONF LFS_LIBS`
24255         ;;
24256     *)
24257         { echo "$as_me:$LINENO: result: maybe" >&5
24258 echo "${ECHO_T}maybe" >&6; }
24259         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24260         LFS_LDFLAGS=""
24261         LFS_LIBS=""
24262         ;;
24263     esac
24264
24265
24266
24267 fi
24268
24269 HOSTINFO=$host
24270
24271
24272
24273 top_builddir=`pwd`
24274 export top_builddir
24275 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24276 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
24277
24278
24279
24280
24281
24282 mysubdirs=
24283 if test "x$EXPERIMENTAL" = "xyes"; then
24284   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24285     mysubdirs=`echo $bar`
24286 else
24287         for bar in `cat src/modules/stable`; do
24288     if test -f src/modules/$bar/configure; then
24289       mysubdirs="$mysubdirs src/modules/$bar"
24290     fi
24291   done
24292 fi
24293
24294 if test "x$EXPERIMENTAL" = "xyes"; then
24295   for foo in `ls -1 src/modules | grep rlm_`; do
24296     MODULES="$MODULES $foo"
24297   done
24298 else
24299             for foo in `cat src/modules/stable`; do
24300     MODULES="$MODULES $foo"
24301    done
24302 fi
24303
24304 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24305
24306
24307
24308
24309
24310
24311
24312 USE_SHARED_LIBS=$enable_shared
24313
24314 USE_STATIC_LIBS=$enable_static
24315
24316
24317
24318
24319
24320 export CFLAGS LIBS
24321
24322 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"
24323
24324 cat >confcache <<\_ACEOF
24325 # This file is a shell script that caches the results of configure
24326 # tests run on this system so they can be shared between configure
24327 # scripts and configure runs, see configure's option --config-cache.
24328 # It is not useful on other systems.  If it contains results you don't
24329 # want to keep, you may remove or edit it.
24330 #
24331 # config.status only pays attention to the cache file if you give it
24332 # the --recheck option to rerun configure.
24333 #
24334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24336 # following values.
24337
24338 _ACEOF
24339
24340 # The following way of writing the cache mishandles newlines in values,
24341 # but we know of no workaround that is simple, portable, and efficient.
24342 # So, we kill variables containing newlines.
24343 # Ultrix sh set writes to stderr and can't be redirected directly,
24344 # and sets the high bit in the cache file unless we assign to the vars.
24345 (
24346   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24347     eval ac_val=\$$ac_var
24348     case $ac_val in #(
24349     *${as_nl}*)
24350       case $ac_var in #(
24351       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24352 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24353       esac
24354       case $ac_var in #(
24355       _ | IFS | as_nl) ;; #(
24356       *) $as_unset $ac_var ;;
24357       esac ;;
24358     esac
24359   done
24360
24361   (set) 2>&1 |
24362     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24363     *${as_nl}ac_space=\ *)
24364       # `set' does not quote correctly, so add quotes (double-quote
24365       # substitution turns \\\\ into \\, and sed turns \\ into \).
24366       sed -n \
24367         "s/'/'\\\\''/g;
24368           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24369       ;; #(
24370     *)
24371       # `set' quotes correctly as required by POSIX, so do not add quotes.
24372       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24373       ;;
24374     esac |
24375     sort
24376 ) |
24377   sed '
24378      /^ac_cv_env_/b end
24379      t clear
24380      :clear
24381      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24382      t end
24383      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24384      :end' >>confcache
24385 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24386   if test -w "$cache_file"; then
24387     test "x$cache_file" != "x/dev/null" &&
24388       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24389 echo "$as_me: updating cache $cache_file" >&6;}
24390     cat confcache >$cache_file
24391   else
24392     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24393 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24394   fi
24395 fi
24396 rm -f confcache
24397
24398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24399 # Let make expand exec_prefix.
24400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24401
24402 DEFS=-DHAVE_CONFIG_H
24403
24404 ac_libobjs=
24405 ac_ltlibobjs=
24406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24407   # 1. Remove the extension, and $U if already installed.
24408   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24409   ac_i=`echo "$ac_i" | sed "$ac_script"`
24410   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24411   #    will be set to the directory where LIBOBJS objects are built.
24412   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24413   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24414 done
24415 LIBOBJS=$ac_libobjs
24416
24417 LTLIBOBJS=$ac_ltlibobjs
24418
24419
24420
24421 : ${CONFIG_STATUS=./config.status}
24422 ac_clean_files_save=$ac_clean_files
24423 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24424 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24425 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24426 cat >$CONFIG_STATUS <<_ACEOF
24427 #! $SHELL
24428 # Generated by $as_me.
24429 # Run this file to recreate the current configuration.
24430 # Compiler output produced by configure, useful for debugging
24431 # configure, is in config.log if it exists.
24432
24433 debug=false
24434 ac_cs_recheck=false
24435 ac_cs_silent=false
24436 SHELL=\${CONFIG_SHELL-$SHELL}
24437 _ACEOF
24438
24439 cat >>$CONFIG_STATUS <<\_ACEOF
24440 ## --------------------- ##
24441 ## M4sh Initialization.  ##
24442 ## --------------------- ##
24443
24444 # Be more Bourne compatible
24445 DUALCASE=1; export DUALCASE # for MKS sh
24446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24447   emulate sh
24448   NULLCMD=:
24449   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24450   # is contrary to our usage.  Disable this feature.
24451   alias -g '${1+"$@"}'='"$@"'
24452   setopt NO_GLOB_SUBST
24453 else
24454   case `(set -o) 2>/dev/null` in
24455   *posix*) set -o posix ;;
24456 esac
24457
24458 fi
24459
24460
24461
24462
24463 # PATH needs CR
24464 # Avoid depending upon Character Ranges.
24465 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24466 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24467 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24468 as_cr_digits='0123456789'
24469 as_cr_alnum=$as_cr_Letters$as_cr_digits
24470
24471 # The user is always right.
24472 if test "${PATH_SEPARATOR+set}" != set; then
24473   echo "#! /bin/sh" >conf$$.sh
24474   echo  "exit 0"   >>conf$$.sh
24475   chmod +x conf$$.sh
24476   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24477     PATH_SEPARATOR=';'
24478   else
24479     PATH_SEPARATOR=:
24480   fi
24481   rm -f conf$$.sh
24482 fi
24483
24484 # Support unset when possible.
24485 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24486   as_unset=unset
24487 else
24488   as_unset=false
24489 fi
24490
24491
24492 # IFS
24493 # We need space, tab and new line, in precisely that order.  Quoting is
24494 # there to prevent editors from complaining about space-tab.
24495 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24496 # splitting by setting IFS to empty value.)
24497 as_nl='
24498 '
24499 IFS=" ""        $as_nl"
24500
24501 # Find who we are.  Look in the path if we contain no directory separator.
24502 case $0 in
24503   *[\\/]* ) as_myself=$0 ;;
24504   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24505 for as_dir in $PATH
24506 do
24507   IFS=$as_save_IFS
24508   test -z "$as_dir" && as_dir=.
24509   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24510 done
24511 IFS=$as_save_IFS
24512
24513      ;;
24514 esac
24515 # We did not find ourselves, most probably we were run as `sh COMMAND'
24516 # in which case we are not to be found in the path.
24517 if test "x$as_myself" = x; then
24518   as_myself=$0
24519 fi
24520 if test ! -f "$as_myself"; then
24521   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24522   { (exit 1); exit 1; }
24523 fi
24524
24525 # Work around bugs in pre-3.0 UWIN ksh.
24526 for as_var in ENV MAIL MAILPATH
24527 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24528 done
24529 PS1='$ '
24530 PS2='> '
24531 PS4='+ '
24532
24533 # NLS nuisances.
24534 for as_var in \
24535   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24536   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24537   LC_TELEPHONE LC_TIME
24538 do
24539   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24540     eval $as_var=C; export $as_var
24541   else
24542     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24543   fi
24544 done
24545
24546 # Required to use basename.
24547 if expr a : '\(a\)' >/dev/null 2>&1 &&
24548    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24549   as_expr=expr
24550 else
24551   as_expr=false
24552 fi
24553
24554 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24555   as_basename=basename
24556 else
24557   as_basename=false
24558 fi
24559
24560
24561 # Name of the executable.
24562 as_me=`$as_basename -- "$0" ||
24563 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24564          X"$0" : 'X\(//\)$' \| \
24565          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24566 echo X/"$0" |
24567     sed '/^.*\/\([^/][^/]*\)\/*$/{
24568             s//\1/
24569             q
24570           }
24571           /^X\/\(\/\/\)$/{
24572             s//\1/
24573             q
24574           }
24575           /^X\/\(\/\).*/{
24576             s//\1/
24577             q
24578           }
24579           s/.*/./; q'`
24580
24581 # CDPATH.
24582 $as_unset CDPATH
24583
24584
24585
24586   as_lineno_1=$LINENO
24587   as_lineno_2=$LINENO
24588   test "x$as_lineno_1" != "x$as_lineno_2" &&
24589   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24590
24591   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24592   # uniformly replaced by the line number.  The first 'sed' inserts a
24593   # line-number line after each line using $LINENO; the second 'sed'
24594   # does the real work.  The second script uses 'N' to pair each
24595   # line-number line with the line containing $LINENO, and appends
24596   # trailing '-' during substitution so that $LINENO is not a special
24597   # case at line end.
24598   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24599   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24600   # E. McMahon (1931-1989) for sed's syntax.  :-)
24601   sed -n '
24602     p
24603     /[$]LINENO/=
24604   ' <$as_myself |
24605     sed '
24606       s/[$]LINENO.*/&-/
24607       t lineno
24608       b
24609       :lineno
24610       N
24611       :loop
24612       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24613       t loop
24614       s/-\n.*//
24615     ' >$as_me.lineno &&
24616   chmod +x "$as_me.lineno" ||
24617     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24618    { (exit 1); exit 1; }; }
24619
24620   # Don't try to exec as it changes $[0], causing all sort of problems
24621   # (the dirname of $[0] is not the place where we might find the
24622   # original and so on.  Autoconf is especially sensitive to this).
24623   . "./$as_me.lineno"
24624   # Exit status is that of the last command.
24625   exit
24626 }
24627
24628
24629 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24630   as_dirname=dirname
24631 else
24632   as_dirname=false
24633 fi
24634
24635 ECHO_C= ECHO_N= ECHO_T=
24636 case `echo -n x` in
24637 -n*)
24638   case `echo 'x\c'` in
24639   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24640   *)   ECHO_C='\c';;
24641   esac;;
24642 *)
24643   ECHO_N='-n';;
24644 esac
24645
24646 if expr a : '\(a\)' >/dev/null 2>&1 &&
24647    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24648   as_expr=expr
24649 else
24650   as_expr=false
24651 fi
24652
24653 rm -f conf$$ conf$$.exe conf$$.file
24654 if test -d conf$$.dir; then
24655   rm -f conf$$.dir/conf$$.file
24656 else
24657   rm -f conf$$.dir
24658   mkdir conf$$.dir
24659 fi
24660 echo >conf$$.file
24661 if ln -s conf$$.file conf$$ 2>/dev/null; then
24662   as_ln_s='ln -s'
24663   # ... but there are two gotchas:
24664   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24665   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24666   # In both cases, we have to default to `cp -p'.
24667   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24668     as_ln_s='cp -p'
24669 elif ln conf$$.file conf$$ 2>/dev/null; then
24670   as_ln_s=ln
24671 else
24672   as_ln_s='cp -p'
24673 fi
24674 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24675 rmdir conf$$.dir 2>/dev/null
24676
24677 if mkdir -p . 2>/dev/null; then
24678   as_mkdir_p=:
24679 else
24680   test -d ./-p && rmdir ./-p
24681   as_mkdir_p=false
24682 fi
24683
24684 if test -x / >/dev/null 2>&1; then
24685   as_test_x='test -x'
24686 else
24687   if ls -dL / >/dev/null 2>&1; then
24688     as_ls_L_option=L
24689   else
24690     as_ls_L_option=
24691   fi
24692   as_test_x='
24693     eval sh -c '\''
24694       if test -d "$1"; then
24695         test -d "$1/.";
24696       else
24697         case $1 in
24698         -*)set "./$1";;
24699         esac;
24700         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24701         ???[sx]*):;;*)false;;esac;fi
24702     '\'' sh
24703   '
24704 fi
24705 as_executable_p=$as_test_x
24706
24707 # Sed expression to map a string onto a valid CPP name.
24708 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24709
24710 # Sed expression to map a string onto a valid variable name.
24711 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24712
24713
24714 exec 6>&1
24715
24716 # Save the log message, to keep $[0] and so on meaningful, and to
24717 # report actual input values of CONFIG_FILES etc. instead of their
24718 # values after options handling.
24719 ac_log="
24720 This file was extended by $as_me, which was
24721 generated by GNU Autoconf 2.61.  Invocation command line was
24722
24723   CONFIG_FILES    = $CONFIG_FILES
24724   CONFIG_HEADERS  = $CONFIG_HEADERS
24725   CONFIG_LINKS    = $CONFIG_LINKS
24726   CONFIG_COMMANDS = $CONFIG_COMMANDS
24727   $ $0 $@
24728
24729 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24730 "
24731
24732 _ACEOF
24733
24734 cat >>$CONFIG_STATUS <<_ACEOF
24735 # Files that config.status was made for.
24736 config_files="$ac_config_files"
24737 config_headers="$ac_config_headers"
24738
24739 _ACEOF
24740
24741 cat >>$CONFIG_STATUS <<\_ACEOF
24742 ac_cs_usage="\
24743 \`$as_me' instantiates files from templates according to the
24744 current configuration.
24745
24746 Usage: $0 [OPTIONS] [FILE]...
24747
24748   -h, --help       print this help, then exit
24749   -V, --version    print version number and configuration settings, then exit
24750   -q, --quiet      do not print progress messages
24751   -d, --debug      don't remove temporary files
24752       --recheck    update $as_me by reconfiguring in the same conditions
24753   --file=FILE[:TEMPLATE]
24754                    instantiate the configuration file FILE
24755   --header=FILE[:TEMPLATE]
24756                    instantiate the configuration header FILE
24757
24758 Configuration files:
24759 $config_files
24760
24761 Configuration headers:
24762 $config_headers
24763
24764 Report bugs to <bug-autoconf@gnu.org>."
24765
24766 _ACEOF
24767 cat >>$CONFIG_STATUS <<_ACEOF
24768 ac_cs_version="\\
24769 config.status
24770 configured by $0, generated by GNU Autoconf 2.61,
24771   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24772
24773 Copyright (C) 2006 Free Software Foundation, Inc.
24774 This config.status script is free software; the Free Software Foundation
24775 gives unlimited permission to copy, distribute and modify it."
24776
24777 ac_pwd='$ac_pwd'
24778 srcdir='$srcdir'
24779 _ACEOF
24780
24781 cat >>$CONFIG_STATUS <<\_ACEOF
24782 # If no file are specified by the user, then we need to provide default
24783 # value.  By we need to know if files were specified by the user.
24784 ac_need_defaults=:
24785 while test $# != 0
24786 do
24787   case $1 in
24788   --*=*)
24789     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24790     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24791     ac_shift=:
24792     ;;
24793   *)
24794     ac_option=$1
24795     ac_optarg=$2
24796     ac_shift=shift
24797     ;;
24798   esac
24799
24800   case $ac_option in
24801   # Handling of the options.
24802   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24803     ac_cs_recheck=: ;;
24804   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24805     echo "$ac_cs_version"; exit ;;
24806   --debug | --debu | --deb | --de | --d | -d )
24807     debug=: ;;
24808   --file | --fil | --fi | --f )
24809     $ac_shift
24810     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24811     ac_need_defaults=false;;
24812   --header | --heade | --head | --hea )
24813     $ac_shift
24814     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24815     ac_need_defaults=false;;
24816   --he | --h)
24817     # Conflict between --help and --header
24818     { echo "$as_me: error: ambiguous option: $1
24819 Try \`$0 --help' for more information." >&2
24820    { (exit 1); exit 1; }; };;
24821   --help | --hel | -h )
24822     echo "$ac_cs_usage"; exit ;;
24823   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24824   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24825     ac_cs_silent=: ;;
24826
24827   # This is an error.
24828   -*) { echo "$as_me: error: unrecognized option: $1
24829 Try \`$0 --help' for more information." >&2
24830    { (exit 1); exit 1; }; } ;;
24831
24832   *) ac_config_targets="$ac_config_targets $1"
24833      ac_need_defaults=false ;;
24834
24835   esac
24836   shift
24837 done
24838
24839 ac_configure_extra_args=
24840
24841 if $ac_cs_silent; then
24842   exec 6>/dev/null
24843   ac_configure_extra_args="$ac_configure_extra_args --silent"
24844 fi
24845
24846 _ACEOF
24847 cat >>$CONFIG_STATUS <<_ACEOF
24848 if \$ac_cs_recheck; then
24849   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24850   CONFIG_SHELL=$SHELL
24851   export CONFIG_SHELL
24852   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24853 fi
24854
24855 _ACEOF
24856 cat >>$CONFIG_STATUS <<\_ACEOF
24857 exec 5>>config.log
24858 {
24859   echo
24860   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24861 ## Running $as_me. ##
24862 _ASBOX
24863   echo "$ac_log"
24864 } >&5
24865
24866 _ACEOF
24867 cat >>$CONFIG_STATUS <<_ACEOF
24868 _ACEOF
24869
24870 cat >>$CONFIG_STATUS <<\_ACEOF
24871
24872 # Handling of arguments.
24873 for ac_config_target in $ac_config_targets
24874 do
24875   case $ac_config_target in
24876     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24877     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24878     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24879     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24880     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24881     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24882     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24883     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24884     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24885     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24886     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24887     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24888     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24889     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24890     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24891
24892   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24893 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24894    { (exit 1); exit 1; }; };;
24895   esac
24896 done
24897
24898
24899 # If the user did not use the arguments to specify the items to instantiate,
24900 # then the envvar interface is used.  Set only those that are not.
24901 # We use the long form for the default assignment because of an extremely
24902 # bizarre bug on SunOS 4.1.3.
24903 if $ac_need_defaults; then
24904   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24905   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24906 fi
24907
24908 # Have a temporary directory for convenience.  Make it in the build tree
24909 # simply because there is no reason against having it here, and in addition,
24910 # creating and moving files from /tmp can sometimes cause problems.
24911 # Hook for its removal unless debugging.
24912 # Note that there is a small window in which the directory will not be cleaned:
24913 # after its creation but before its name has been assigned to `$tmp'.
24914 $debug ||
24915 {
24916   tmp=
24917   trap 'exit_status=$?
24918   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24919 ' 0
24920   trap '{ (exit 1); exit 1; }' 1 2 13 15
24921 }
24922 # Create a (secure) tmp directory for tmp files.
24923
24924 {
24925   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24926   test -n "$tmp" && test -d "$tmp"
24927 }  ||
24928 {
24929   tmp=./conf$$-$RANDOM
24930   (umask 077 && mkdir "$tmp")
24931 } ||
24932 {
24933    echo "$me: cannot create a temporary directory in ." >&2
24934    { (exit 1); exit 1; }
24935 }
24936
24937 #
24938 # Set up the sed scripts for CONFIG_FILES section.
24939 #
24940
24941 # No need to generate the scripts if there are no CONFIG_FILES.
24942 # This happens for instance when ./config.status config.h
24943 if test -n "$CONFIG_FILES"; then
24944
24945 _ACEOF
24946
24947
24948
24949 ac_delim='%!_!# '
24950 for ac_last_try in false false false false false :; do
24951   cat >conf$$subs.sed <<_ACEOF
24952 SHELL!$SHELL$ac_delim
24953 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24954 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24955 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24956 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24957 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24958 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24959 exec_prefix!$exec_prefix$ac_delim
24960 prefix!$prefix$ac_delim
24961 program_transform_name!$program_transform_name$ac_delim
24962 bindir!$bindir$ac_delim
24963 sbindir!$sbindir$ac_delim
24964 libexecdir!$libexecdir$ac_delim
24965 datarootdir!$datarootdir$ac_delim
24966 datadir!$datadir$ac_delim
24967 sysconfdir!$sysconfdir$ac_delim
24968 sharedstatedir!$sharedstatedir$ac_delim
24969 localstatedir!$localstatedir$ac_delim
24970 includedir!$includedir$ac_delim
24971 oldincludedir!$oldincludedir$ac_delim
24972 docdir!$docdir$ac_delim
24973 infodir!$infodir$ac_delim
24974 htmldir!$htmldir$ac_delim
24975 dvidir!$dvidir$ac_delim
24976 pdfdir!$pdfdir$ac_delim
24977 psdir!$psdir$ac_delim
24978 libdir!$libdir$ac_delim
24979 localedir!$localedir$ac_delim
24980 mandir!$mandir$ac_delim
24981 DEFS!$DEFS$ac_delim
24982 ECHO_C!$ECHO_C$ac_delim
24983 ECHO_N!$ECHO_N$ac_delim
24984 ECHO_T!$ECHO_T$ac_delim
24985 LIBS!$LIBS$ac_delim
24986 build_alias!$build_alias$ac_delim
24987 host_alias!$host_alias$ac_delim
24988 target_alias!$target_alias$ac_delim
24989 CC!$CC$ac_delim
24990 CFLAGS!$CFLAGS$ac_delim
24991 LDFLAGS!$LDFLAGS$ac_delim
24992 CPPFLAGS!$CPPFLAGS$ac_delim
24993 ac_ct_CC!$ac_ct_CC$ac_delim
24994 EXEEXT!$EXEEXT$ac_delim
24995 OBJEXT!$OBJEXT$ac_delim
24996 CPP!$CPP$ac_delim
24997 GREP!$GREP$ac_delim
24998 EGREP!$EGREP$ac_delim
24999 RANLIB!$RANLIB$ac_delim
25000 abs_top_builddir!$abs_top_builddir$ac_delim
25001 GMAKE!$GMAKE$ac_delim
25002 MAKE!$MAKE$ac_delim
25003 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
25004 LIBTOOL!$LIBTOOL$ac_delim
25005 build!$build$ac_delim
25006 build_cpu!$build_cpu$ac_delim
25007 build_vendor!$build_vendor$ac_delim
25008 build_os!$build_os$ac_delim
25009 host!$host$ac_delim
25010 host_cpu!$host_cpu$ac_delim
25011 host_vendor!$host_vendor$ac_delim
25012 host_os!$host_os$ac_delim
25013 LN_S!$LN_S$ac_delim
25014 ECHO!$ECHO$ac_delim
25015 AR!$AR$ac_delim
25016 STRIP!$STRIP$ac_delim
25017 CXX!$CXX$ac_delim
25018 CXXFLAGS!$CXXFLAGS$ac_delim
25019 ac_ct_CXX!$ac_ct_CXX$ac_delim
25020 CXXCPP!$CXXCPP$ac_delim
25021 F77!$F77$ac_delim
25022 FFLAGS!$FFLAGS$ac_delim
25023 ac_ct_F77!$ac_ct_F77$ac_delim
25024 logdir!$logdir$ac_delim
25025 radacctdir!$radacctdir$ac_delim
25026 raddbdir!$raddbdir$ac_delim
25027 PERL!$PERL$ac_delim
25028 SNMPGET!$SNMPGET$ac_delim
25029 SNMPWALK!$SNMPWALK$ac_delim
25030 RUSERS!$RUSERS$ac_delim
25031 ACLOCAL!$ACLOCAL$ac_delim
25032 AUTOCONF!$AUTOCONF$ac_delim
25033 AUTOHEADER!$AUTOHEADER$ac_delim
25034 LOCATE!$LOCATE$ac_delim
25035 DIRNAME!$DIRNAME$ac_delim
25036 REGEX!$REGEX$ac_delim
25037 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
25038 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
25039 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
25040 LIBPREFIX!$LIBPREFIX$ac_delim
25041 CRYPTLIB!$CRYPTLIB$ac_delim
25042 SNMP_LIBS!$SNMP_LIBS$ac_delim
25043 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
25044 GETCONF!$GETCONF$ac_delim
25045 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
25046 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
25047 LFS_LIBS!$LFS_LIBS$ac_delim
25048 HOSTINFO!$HOSTINFO$ac_delim
25049 _ACEOF
25050
25051   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25052     break
25053   elif $ac_last_try; then
25054     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25055 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25056    { (exit 1); exit 1; }; }
25057   else
25058     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25059   fi
25060 done
25061
25062 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25063 if test -n "$ac_eof"; then
25064   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25065   ac_eof=`expr $ac_eof + 1`
25066 fi
25067
25068 cat >>$CONFIG_STATUS <<_ACEOF
25069 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25071 _ACEOF
25072 sed '
25073 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25074 s/^/s,@/; s/!/@,|#_!!_#|/
25075 :n
25076 t n
25077 s/'"$ac_delim"'$/,g/; t
25078 s/$/\\/; p
25079 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25080 ' >>$CONFIG_STATUS <conf$$subs.sed
25081 rm -f conf$$subs.sed
25082 cat >>$CONFIG_STATUS <<_ACEOF
25083 CEOF$ac_eof
25084 _ACEOF
25085
25086
25087 ac_delim='%!_!# '
25088 for ac_last_try in false false false false false :; do
25089   cat >conf$$subs.sed <<_ACEOF
25090 LIBLTDL!$LIBLTDL$ac_delim
25091 INCLTDL!$INCLTDL$ac_delim
25092 subdirs!$subdirs$ac_delim
25093 MODULES!$MODULES$ac_delim
25094 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
25095 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
25096 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
25097 STATIC_MODULES!$STATIC_MODULES$ac_delim
25098 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
25099 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
25100 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
25101 LIBOBJS!$LIBOBJS$ac_delim
25102 LTLIBOBJS!$LTLIBOBJS$ac_delim
25103 _ACEOF
25104
25105   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
25106     break
25107   elif $ac_last_try; then
25108     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25109 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25110    { (exit 1); exit 1; }; }
25111   else
25112     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25113   fi
25114 done
25115
25116 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25117 if test -n "$ac_eof"; then
25118   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25119   ac_eof=`expr $ac_eof + 1`
25120 fi
25121
25122 cat >>$CONFIG_STATUS <<_ACEOF
25123 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25125 _ACEOF
25126 sed '
25127 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25128 s/^/s,@/; s/!/@,|#_!!_#|/
25129 :n
25130 t n
25131 s/'"$ac_delim"'$/,g/; t
25132 s/$/\\/; p
25133 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25134 ' >>$CONFIG_STATUS <conf$$subs.sed
25135 rm -f conf$$subs.sed
25136 cat >>$CONFIG_STATUS <<_ACEOF
25137 :end
25138 s/|#_!!_#|//g
25139 CEOF$ac_eof
25140 _ACEOF
25141
25142
25143 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25144 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25145 # trailing colons and then remove the whole line if VPATH becomes empty
25146 # (actually we leave an empty line to preserve line numbers).
25147 if test "x$srcdir" = x.; then
25148   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25149 s/:*\$(srcdir):*/:/
25150 s/:*\${srcdir}:*/:/
25151 s/:*@srcdir@:*/:/
25152 s/^\([^=]*=[     ]*\):*/\1/
25153 s/:*$//
25154 s/^[^=]*=[       ]*$//
25155 }'
25156 fi
25157
25158 cat >>$CONFIG_STATUS <<\_ACEOF
25159 fi # test -n "$CONFIG_FILES"
25160
25161
25162 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
25163 do
25164   case $ac_tag in
25165   :[FHLC]) ac_mode=$ac_tag; continue;;
25166   esac
25167   case $ac_mode$ac_tag in
25168   :[FHL]*:*);;
25169   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25170 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25171    { (exit 1); exit 1; }; };;
25172   :[FH]-) ac_tag=-:-;;
25173   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25174   esac
25175   ac_save_IFS=$IFS
25176   IFS=:
25177   set x $ac_tag
25178   IFS=$ac_save_IFS
25179   shift
25180   ac_file=$1
25181   shift
25182
25183   case $ac_mode in
25184   :L) ac_source=$1;;
25185   :[FH])
25186     ac_file_inputs=
25187     for ac_f
25188     do
25189       case $ac_f in
25190       -) ac_f="$tmp/stdin";;
25191       *) # Look for the file first in the build tree, then in the source tree
25192          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25193          # because $ac_f cannot contain `:'.
25194          test -f "$ac_f" ||
25195            case $ac_f in
25196            [\\/$]*) false;;
25197            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25198            esac ||
25199            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25200 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25201    { (exit 1); exit 1; }; };;
25202       esac
25203       ac_file_inputs="$ac_file_inputs $ac_f"
25204     done
25205
25206     # Let's still pretend it is `configure' which instantiates (i.e., don't
25207     # use $as_me), people would be surprised to read:
25208     #    /* config.h.  Generated by config.status.  */
25209     configure_input="Generated from "`IFS=:
25210           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25211     if test x"$ac_file" != x-; then
25212       configure_input="$ac_file.  $configure_input"
25213       { echo "$as_me:$LINENO: creating $ac_file" >&5
25214 echo "$as_me: creating $ac_file" >&6;}
25215     fi
25216
25217     case $ac_tag in
25218     *:-:* | *:-) cat >"$tmp/stdin";;
25219     esac
25220     ;;
25221   esac
25222
25223   ac_dir=`$as_dirname -- "$ac_file" ||
25224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25225          X"$ac_file" : 'X\(//\)[^/]' \| \
25226          X"$ac_file" : 'X\(//\)$' \| \
25227          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25228 echo X"$ac_file" |
25229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25230             s//\1/
25231             q
25232           }
25233           /^X\(\/\/\)[^/].*/{
25234             s//\1/
25235             q
25236           }
25237           /^X\(\/\/\)$/{
25238             s//\1/
25239             q
25240           }
25241           /^X\(\/\).*/{
25242             s//\1/
25243             q
25244           }
25245           s/.*/./; q'`
25246   { as_dir="$ac_dir"
25247   case $as_dir in #(
25248   -*) as_dir=./$as_dir;;
25249   esac
25250   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25251     as_dirs=
25252     while :; do
25253       case $as_dir in #(
25254       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25255       *) as_qdir=$as_dir;;
25256       esac
25257       as_dirs="'$as_qdir' $as_dirs"
25258       as_dir=`$as_dirname -- "$as_dir" ||
25259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25260          X"$as_dir" : 'X\(//\)[^/]' \| \
25261          X"$as_dir" : 'X\(//\)$' \| \
25262          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25263 echo X"$as_dir" |
25264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25265             s//\1/
25266             q
25267           }
25268           /^X\(\/\/\)[^/].*/{
25269             s//\1/
25270             q
25271           }
25272           /^X\(\/\/\)$/{
25273             s//\1/
25274             q
25275           }
25276           /^X\(\/\).*/{
25277             s//\1/
25278             q
25279           }
25280           s/.*/./; q'`
25281       test -d "$as_dir" && break
25282     done
25283     test -z "$as_dirs" || eval "mkdir $as_dirs"
25284   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25285 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25286    { (exit 1); exit 1; }; }; }
25287   ac_builddir=.
25288
25289 case "$ac_dir" in
25290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25291 *)
25292   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25293   # A ".." for each directory in $ac_dir_suffix.
25294   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25295   case $ac_top_builddir_sub in
25296   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25297   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25298   esac ;;
25299 esac
25300 ac_abs_top_builddir=$ac_pwd
25301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25302 # for backward compatibility:
25303 ac_top_builddir=$ac_top_build_prefix
25304
25305 case $srcdir in
25306   .)  # We are building in place.
25307     ac_srcdir=.
25308     ac_top_srcdir=$ac_top_builddir_sub
25309     ac_abs_top_srcdir=$ac_pwd ;;
25310   [\\/]* | ?:[\\/]* )  # Absolute name.
25311     ac_srcdir=$srcdir$ac_dir_suffix;
25312     ac_top_srcdir=$srcdir
25313     ac_abs_top_srcdir=$srcdir ;;
25314   *) # Relative name.
25315     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25316     ac_top_srcdir=$ac_top_build_prefix$srcdir
25317     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25318 esac
25319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25320
25321
25322   case $ac_mode in
25323   :F)
25324   #
25325   # CONFIG_FILE
25326   #
25327
25328 _ACEOF
25329
25330 cat >>$CONFIG_STATUS <<\_ACEOF
25331 # If the template does not know about datarootdir, expand it.
25332 # FIXME: This hack should be removed a few years after 2.60.
25333 ac_datarootdir_hack=; ac_datarootdir_seen=
25334
25335 case `sed -n '/datarootdir/ {
25336   p
25337   q
25338 }
25339 /@datadir@/p
25340 /@docdir@/p
25341 /@infodir@/p
25342 /@localedir@/p
25343 /@mandir@/p
25344 ' $ac_file_inputs` in
25345 *datarootdir*) ac_datarootdir_seen=yes;;
25346 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25347   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25348 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25349 _ACEOF
25350 cat >>$CONFIG_STATUS <<_ACEOF
25351   ac_datarootdir_hack='
25352   s&@datadir@&$datadir&g
25353   s&@docdir@&$docdir&g
25354   s&@infodir@&$infodir&g
25355   s&@localedir@&$localedir&g
25356   s&@mandir@&$mandir&g
25357     s&\\\${datarootdir}&$datarootdir&g' ;;
25358 esac
25359 _ACEOF
25360
25361 # Neutralize VPATH when `$srcdir' = `.'.
25362 # Shell code in configure.ac might set extrasub.
25363 # FIXME: do we really want to maintain this feature?
25364 cat >>$CONFIG_STATUS <<_ACEOF
25365   sed "$ac_vpsub
25366 $extrasub
25367 _ACEOF
25368 cat >>$CONFIG_STATUS <<\_ACEOF
25369 :t
25370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25371 s&@configure_input@&$configure_input&;t t
25372 s&@top_builddir@&$ac_top_builddir_sub&;t t
25373 s&@srcdir@&$ac_srcdir&;t t
25374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25375 s&@top_srcdir@&$ac_top_srcdir&;t t
25376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25377 s&@builddir@&$ac_builddir&;t t
25378 s&@abs_builddir@&$ac_abs_builddir&;t t
25379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25380 $ac_datarootdir_hack
25381 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25382
25383 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25384   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25385   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25386   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25387 which seems to be undefined.  Please make sure it is defined." >&5
25388 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25389 which seems to be undefined.  Please make sure it is defined." >&2;}
25390
25391   rm -f "$tmp/stdin"
25392   case $ac_file in
25393   -) cat "$tmp/out"; rm -f "$tmp/out";;
25394   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25395   esac
25396  ;;
25397   :H)
25398   #
25399   # CONFIG_HEADER
25400   #
25401 _ACEOF
25402
25403 # Transform confdefs.h into a sed script `conftest.defines', that
25404 # substitutes the proper values into config.h.in to produce config.h.
25405 rm -f conftest.defines conftest.tail
25406 # First, append a space to every undef/define line, to ease matching.
25407 echo 's/$/ /' >conftest.defines
25408 # Then, protect against being on the right side of a sed subst, or in
25409 # an unquoted here document, in config.status.  If some macros were
25410 # called several times there might be several #defines for the same
25411 # symbol, which is useless.  But do not sort them, since the last
25412 # AC_DEFINE must be honored.
25413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25414 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25415 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25416 # PARAMS is the parameter list in the macro definition--in most cases, it's
25417 # just an empty string.
25418 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25419 ac_dB='\\)[      (].*,\\1define\\2'
25420 ac_dC=' '
25421 ac_dD=' ,'
25422
25423 uniq confdefs.h |
25424   sed -n '
25425         t rset
25426         :rset
25427         s/^[     ]*#[    ]*define[       ][      ]*//
25428         t ok
25429         d
25430         :ok
25431         s/[\\&,]/\\&/g
25432         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25433         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25434   ' >>conftest.defines
25435
25436 # Remove the space that was appended to ease matching.
25437 # Then replace #undef with comments.  This is necessary, for
25438 # example, in the case of _POSIX_SOURCE, which is predefined and required
25439 # on some systems where configure will not decide to define it.
25440 # (The regexp can be short, since the line contains either #define or #undef.)
25441 echo 's/ $//
25442 s,^[     #]*u.*,/* & */,' >>conftest.defines
25443
25444 # Break up conftest.defines:
25445 ac_max_sed_lines=50
25446
25447 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25448 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25449 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25450 # et cetera.
25451 ac_in='$ac_file_inputs'
25452 ac_out='"$tmp/out1"'
25453 ac_nxt='"$tmp/out2"'
25454
25455 while :
25456 do
25457   # Write a here document:
25458     cat >>$CONFIG_STATUS <<_ACEOF
25459     # First, check the format of the line:
25460     cat >"\$tmp/defines.sed" <<\\CEOF
25461 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25462 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25463 b
25464 :def
25465 _ACEOF
25466   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25467   echo 'CEOF
25468     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25469   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25470   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25471   grep . conftest.tail >/dev/null || break
25472   rm -f conftest.defines
25473   mv conftest.tail conftest.defines
25474 done
25475 rm -f conftest.defines conftest.tail
25476
25477 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25478 cat >>$CONFIG_STATUS <<\_ACEOF
25479   if test x"$ac_file" != x-; then
25480     echo "/* $configure_input  */" >"$tmp/config.h"
25481     cat "$ac_result" >>"$tmp/config.h"
25482     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25483       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25484 echo "$as_me: $ac_file is unchanged" >&6;}
25485     else
25486       rm -f $ac_file
25487       mv "$tmp/config.h" $ac_file
25488     fi
25489   else
25490     echo "/* $configure_input  */"
25491     cat "$ac_result"
25492   fi
25493   rm -f "$tmp/out12"
25494  ;;
25495
25496
25497   esac
25498
25499 done # for ac_tag
25500
25501
25502 { (exit 0); exit 0; }
25503 _ACEOF
25504 chmod +x $CONFIG_STATUS
25505 ac_clean_files=$ac_clean_files_save
25506
25507
25508 # configure is writing to config.log, and then calls config.status.
25509 # config.status does its own redirection, appending to config.log.
25510 # Unfortunately, on DOS this fails, as config.log is still kept open
25511 # by configure, so config.status won't be able to write to it; its
25512 # output is simply discarded.  So we exec the FD to /dev/null,
25513 # effectively closing config.log, so it can be properly (re)opened and
25514 # appended to by config.status.  When coming back to configure, we
25515 # need to make the FD available again.
25516 if test "$no_create" != yes; then
25517   ac_cs_success=:
25518   ac_config_status_args=
25519   test "$silent" = yes &&
25520     ac_config_status_args="$ac_config_status_args --quiet"
25521   exec 5>/dev/null
25522   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25523   exec 5>>config.log
25524   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25525   # would make configure fail if this is the last instruction.
25526   $ac_cs_success || { (exit 1); exit 1; }
25527 fi
25528
25529 #
25530 # CONFIG_SUBDIRS section.
25531 #
25532 if test "$no_recursion" != yes; then
25533
25534   # Remove --cache-file and --srcdir arguments so they do not pile up.
25535   ac_sub_configure_args=
25536   ac_prev=
25537   eval "set x $ac_configure_args"
25538   shift
25539   for ac_arg
25540   do
25541     if test -n "$ac_prev"; then
25542       ac_prev=
25543       continue
25544     fi
25545     case $ac_arg in
25546     -cache-file | --cache-file | --cache-fil | --cache-fi \
25547     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25548       ac_prev=cache_file ;;
25549     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25550     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25551     | --c=*)
25552       ;;
25553     --config-cache | -C)
25554       ;;
25555     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25556       ac_prev=srcdir ;;
25557     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25558       ;;
25559     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25560       ac_prev=prefix ;;
25561     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25562       ;;
25563     *)
25564       case $ac_arg in
25565       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25566       esac
25567       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25568     esac
25569   done
25570
25571   # Always prepend --prefix to ensure using the same prefix
25572   # in subdir configurations.
25573   ac_arg="--prefix=$prefix"
25574   case $ac_arg in
25575   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25576   esac
25577   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25578
25579   # Pass --silent
25580   if test "$silent" = yes; then
25581     ac_sub_configure_args="--silent $ac_sub_configure_args"
25582   fi
25583
25584   ac_popdir=`pwd`
25585   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25586
25587     # Do not complain, so a configure script can configure whichever
25588     # parts of a large source tree are present.
25589     test -d "$srcdir/$ac_dir" || continue
25590
25591     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25592     echo "$as_me:$LINENO: $ac_msg" >&5
25593     echo "$ac_msg" >&6
25594     { as_dir="$ac_dir"
25595   case $as_dir in #(
25596   -*) as_dir=./$as_dir;;
25597   esac
25598   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25599     as_dirs=
25600     while :; do
25601       case $as_dir in #(
25602       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25603       *) as_qdir=$as_dir;;
25604       esac
25605       as_dirs="'$as_qdir' $as_dirs"
25606       as_dir=`$as_dirname -- "$as_dir" ||
25607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25608          X"$as_dir" : 'X\(//\)[^/]' \| \
25609          X"$as_dir" : 'X\(//\)$' \| \
25610          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25611 echo X"$as_dir" |
25612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25613             s//\1/
25614             q
25615           }
25616           /^X\(\/\/\)[^/].*/{
25617             s//\1/
25618             q
25619           }
25620           /^X\(\/\/\)$/{
25621             s//\1/
25622             q
25623           }
25624           /^X\(\/\).*/{
25625             s//\1/
25626             q
25627           }
25628           s/.*/./; q'`
25629       test -d "$as_dir" && break
25630     done
25631     test -z "$as_dirs" || eval "mkdir $as_dirs"
25632   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25633 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25634    { (exit 1); exit 1; }; }; }
25635     ac_builddir=.
25636
25637 case "$ac_dir" in
25638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25639 *)
25640   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25641   # A ".." for each directory in $ac_dir_suffix.
25642   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25643   case $ac_top_builddir_sub in
25644   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25645   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25646   esac ;;
25647 esac
25648 ac_abs_top_builddir=$ac_pwd
25649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25650 # for backward compatibility:
25651 ac_top_builddir=$ac_top_build_prefix
25652
25653 case $srcdir in
25654   .)  # We are building in place.
25655     ac_srcdir=.
25656     ac_top_srcdir=$ac_top_builddir_sub
25657     ac_abs_top_srcdir=$ac_pwd ;;
25658   [\\/]* | ?:[\\/]* )  # Absolute name.
25659     ac_srcdir=$srcdir$ac_dir_suffix;
25660     ac_top_srcdir=$srcdir
25661     ac_abs_top_srcdir=$srcdir ;;
25662   *) # Relative name.
25663     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25664     ac_top_srcdir=$ac_top_build_prefix$srcdir
25665     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25666 esac
25667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25668
25669
25670     cd "$ac_dir"
25671
25672     # Check for guested configure; otherwise get Cygnus style configure.
25673     if test -f "$ac_srcdir/configure.gnu"; then
25674       ac_sub_configure=$ac_srcdir/configure.gnu
25675     elif test -f "$ac_srcdir/configure"; then
25676       ac_sub_configure=$ac_srcdir/configure
25677     elif test -f "$ac_srcdir/configure.in"; then
25678       # This should be Cygnus configure.
25679       ac_sub_configure=$ac_aux_dir/configure
25680     else
25681       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25682 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25683       ac_sub_configure=
25684     fi
25685
25686     # The recursion is here.
25687     if test -n "$ac_sub_configure"; then
25688       # Make the cache file name correct relative to the subdirectory.
25689       case $cache_file in
25690       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25691       *) # Relative name.
25692         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25693       esac
25694
25695       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25696 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25697       # The eval makes quoting arguments work.
25698       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25699            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25700         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25701 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25702    { (exit 1); exit 1; }; }
25703     fi
25704
25705     cd "$ac_popdir"
25706   done
25707 fi
25708
25709
25710 ac_config_commands="$ac_config_commands default-1"
25711
25712 ac_config_commands="$ac_config_commands default-2"
25713
25714 ac_config_commands="$ac_config_commands default-3"
25715
25716 ac_config_commands="$ac_config_commands default-4"
25717