What appears to be the definitive fix to libltl nonsense
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision.
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 CXX
816 CXXFLAGS
817 ac_ct_CXX
818 CPP
819 GREP
820 EGREP
821 RANLIB
822 GMAKE
823 MAKE
824 LTDL_SUBDIRS
825 LIBTOOL
826 build
827 build_cpu
828 build_vendor
829 build_os
830 host
831 host_cpu
832 host_vendor
833 host_os
834 SED
835 LN_S
836 ECHO
837 AR
838 STRIP
839 DSYMUTIL
840 NMEDIT
841 CXXCPP
842 F77
843 FFLAGS
844 ac_ct_F77
845 logdir
846 radacctdir
847 raddbdir
848 PERL
849 SNMPGET
850 SNMPWALK
851 RUSERS
852 ACLOCAL
853 AUTOCONF
854 AUTOHEADER
855 LOCATE
856 DIRNAME
857 LIBREADLINE
858 REGEX
859 REGEX_EXTENDED
860 OPENSSL_INCLUDE
861 OPENSSL_LIBS
862 PCAP_LIBS
863 LIBPREFIX
864 CRYPTLIB
865 HOSTINFO
866 LIBLTDL
867 INCLTDL
868 subdirs
869 MODULES
870 INSTALLSTRIP
871 USE_SHARED_LIBS
872 USE_STATIC_LIBS
873 STATIC_MODULES
874 RADIUSD_MAJOR_VERSION
875 RADIUSD_MINOR_VERSION
876 RADIUSD_VERSION
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CXX
889 CXXFLAGS
890 CCC
891 CPP
892 CXXCPP
893 F77
894 FFLAGS'
895 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=no ;;
1005
1006   -docdir | --docdir | --docdi | --doc | --do)
1007     ac_prev=docdir ;;
1008   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009     docdir=$ac_optarg ;;
1010
1011   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012     ac_prev=dvidir ;;
1013   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014     dvidir=$ac_optarg ;;
1015
1016   -enable-* | --enable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=\$ac_optarg ;;
1024
1025   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027   | --exec | --exe | --ex)
1028     ac_prev=exec_prefix ;;
1029   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031   | --exec=* | --exe=* | --ex=*)
1032     exec_prefix=$ac_optarg ;;
1033
1034   -gas | --gas | --ga | --g)
1035     # Obsolete; use --with-gas.
1036     with_gas=yes ;;
1037
1038   -help | --help | --hel | --he | -h)
1039     ac_init_help=long ;;
1040   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041     ac_init_help=recursive ;;
1042   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043     ac_init_help=short ;;
1044
1045   -host | --host | --hos | --ho)
1046     ac_prev=host_alias ;;
1047   -host=* | --host=* | --hos=* | --ho=*)
1048     host_alias=$ac_optarg ;;
1049
1050   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051     ac_prev=htmldir ;;
1052   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053   | --ht=*)
1054     htmldir=$ac_optarg ;;
1055
1056   -includedir | --includedir | --includedi | --included | --include \
1057   | --includ | --inclu | --incl | --inc)
1058     ac_prev=includedir ;;
1059   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060   | --includ=* | --inclu=* | --incl=* | --inc=*)
1061     includedir=$ac_optarg ;;
1062
1063   -infodir | --infodir | --infodi | --infod | --info | --inf)
1064     ac_prev=infodir ;;
1065   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066     infodir=$ac_optarg ;;
1067
1068   -libdir | --libdir | --libdi | --libd)
1069     ac_prev=libdir ;;
1070   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071     libdir=$ac_optarg ;;
1072
1073   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074   | --libexe | --libex | --libe)
1075     ac_prev=libexecdir ;;
1076   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077   | --libexe=* | --libex=* | --libe=*)
1078     libexecdir=$ac_optarg ;;
1079
1080   -localedir | --localedir | --localedi | --localed | --locale)
1081     ac_prev=localedir ;;
1082   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083     localedir=$ac_optarg ;;
1084
1085   -localstatedir | --localstatedir | --localstatedi | --localstated \
1086   | --localstate | --localstat | --localsta | --localst | --locals)
1087     ac_prev=localstatedir ;;
1088   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090     localstatedir=$ac_optarg ;;
1091
1092   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093     ac_prev=mandir ;;
1094   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095     mandir=$ac_optarg ;;
1096
1097   -nfp | --nfp | --nf)
1098     # Obsolete; use --without-fp.
1099     with_fp=no ;;
1100
1101   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102   | --no-cr | --no-c | -n)
1103     no_create=yes ;;
1104
1105   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107     no_recursion=yes ;;
1108
1109   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111   | --oldin | --oldi | --old | --ol | --o)
1112     ac_prev=oldincludedir ;;
1113   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116     oldincludedir=$ac_optarg ;;
1117
1118   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119     ac_prev=prefix ;;
1120   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121     prefix=$ac_optarg ;;
1122
1123   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124   | --program-pre | --program-pr | --program-p)
1125     ac_prev=program_prefix ;;
1126   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128     program_prefix=$ac_optarg ;;
1129
1130   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131   | --program-suf | --program-su | --program-s)
1132     ac_prev=program_suffix ;;
1133   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135     program_suffix=$ac_optarg ;;
1136
1137   -program-transform-name | --program-transform-name \
1138   | --program-transform-nam | --program-transform-na \
1139   | --program-transform-n | --program-transform- \
1140   | --program-transform | --program-transfor \
1141   | --program-transfo | --program-transf \
1142   | --program-trans | --program-tran \
1143   | --progr-tra | --program-tr | --program-t)
1144     ac_prev=program_transform_name ;;
1145   -program-transform-name=* | --program-transform-name=* \
1146   | --program-transform-nam=* | --program-transform-na=* \
1147   | --program-transform-n=* | --program-transform-=* \
1148   | --program-transform=* | --program-transfor=* \
1149   | --program-transfo=* | --program-transf=* \
1150   | --program-trans=* | --program-tran=* \
1151   | --progr-tra=* | --program-tr=* | --program-t=*)
1152     program_transform_name=$ac_optarg ;;
1153
1154   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155     ac_prev=pdfdir ;;
1156   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157     pdfdir=$ac_optarg ;;
1158
1159   -psdir | --psdir | --psdi | --psd | --ps)
1160     ac_prev=psdir ;;
1161   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162     psdir=$ac_optarg ;;
1163
1164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165   | -silent | --silent | --silen | --sile | --sil)
1166     silent=yes ;;
1167
1168   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169     ac_prev=sbindir ;;
1170   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171   | --sbi=* | --sb=*)
1172     sbindir=$ac_optarg ;;
1173
1174   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176   | --sharedst | --shareds | --shared | --share | --shar \
1177   | --sha | --sh)
1178     ac_prev=sharedstatedir ;;
1179   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182   | --sha=* | --sh=*)
1183     sharedstatedir=$ac_optarg ;;
1184
1185   -site | --site | --sit)
1186     ac_prev=site ;;
1187   -site=* | --site=* | --sit=*)
1188     site=$ac_optarg ;;
1189
1190   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191     ac_prev=srcdir ;;
1192   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193     srcdir=$ac_optarg ;;
1194
1195   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196   | --syscon | --sysco | --sysc | --sys | --sy)
1197     ac_prev=sysconfdir ;;
1198   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200     sysconfdir=$ac_optarg ;;
1201
1202   -target | --target | --targe | --targ | --tar | --ta | --t)
1203     ac_prev=target_alias ;;
1204   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205     target_alias=$ac_optarg ;;
1206
1207   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208     verbose=yes ;;
1209
1210   -version | --version | --versio | --versi | --vers | -V)
1211     ac_init_version=: ;;
1212
1213   -with-* | --with-*)
1214     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       { echo "$as_me: error: invalid package name: $ac_package" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220     eval with_$ac_package=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       { echo "$as_me: error: invalid package name: $ac_package" >&2
1227    { (exit 1); exit 1; }; }
1228     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229     eval with_$ac_package=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 # Be sure to have absolute directory names.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1285 do
1286   eval ac_val=\$$ac_var
1287   case $ac_val in
1288     [\\/$]* | ?:[\\/]* )  continue;;
1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290   esac
1291   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292    { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used." >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   { echo "$as_me: error: Working directory cannot be determined" >&2
1323    { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   { echo "$as_me: error: pwd does not report name of working directory" >&2
1326    { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$0" : 'X\(//\)[^/]' \| \
1336          X"$0" : 'X\(//\)$' \| \
1337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371    { (exit 1); exit 1; }; }
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR           user executables [EPREFIX/bin]
1432   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR       program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR           object code libraries [EPREFIX/lib]
1438   --includedir=DIR       C header files [PREFIX/include]
1439   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR          info documentation [DATAROOTDIR/info]
1443   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR           man documentation [DATAROOTDIR/man]
1445   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1446   --htmldir=DIR          html documentation [DOCDIR]
1447   --dvidir=DIR           dvi documentation [DOCDIR]
1448   --pdfdir=DIR           pdf documentation [DOCDIR]
1449   --psdir=DIR            ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461
1462   cat <<\_ACEOF
1463
1464 Optional Features:
1465   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1466   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1467   --disable-largefile     omit support for large files
1468   --enable-shared[=PKGS]  build shared libraries [default=yes]
1469   --enable-static[=PKGS]  build static libraries [default=yes]
1470   --enable-fast-install[=PKGS]
1471                           optimize for fast installation [default=yes]
1472   --disable-libtool-lock  avoid locking (might break parallel builds)
1473   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1474   --enable-developer               Enables features of interest to developers.
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-system-libltdl   Use the libltdl installed in your system (default=use our own)
1480   --with-system-libtool   Use the 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-vmps             Compile in VMPS support. (default=yes)
1492   --with-dhcp             Compile in DHCP support. (default=no)
1493   --with-static-modules=QUOTED-MODULE-LIST
1494  --with-modules=QUOTED-MODULE-LIST
1495   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1496   --with-openssl                   Use OpenSSL. (default=yes)
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
1503 Some influential environment variables:
1504   CC          C compiler command
1505   CFLAGS      C compiler flags
1506   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507               nonstandard directory <lib dir>
1508   LIBS        libraries to pass to the linker, e.g. -l<library>
1509   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510               you have headers in a nonstandard directory <include dir>
1511   CXX         C++ compiler command
1512   CXXFLAGS    C++ compiler flags
1513   CPP         C preprocessor
1514   CXXCPP      C++ preprocessor
1515   F77         Fortran 77 compiler command
1516   FFLAGS      Fortran 77 compiler flags
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526   # If there are subdirs, report their specific --help.
1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528     test -d "$ac_dir" || continue
1529     ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535   # A ".." for each directory in $ac_dir_suffix.
1536   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537   case $ac_top_builddir_sub in
1538   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540   esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548   .)  # We are building in place.
1549     ac_srcdir=.
1550     ac_top_srcdir=$ac_top_builddir_sub
1551     ac_abs_top_srcdir=$ac_pwd ;;
1552   [\\/]* | ?:[\\/]* )  # Absolute name.
1553     ac_srcdir=$srcdir$ac_dir_suffix;
1554     ac_top_srcdir=$srcdir
1555     ac_abs_top_srcdir=$srcdir ;;
1556   *) # Relative name.
1557     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558     ac_top_srcdir=$ac_top_build_prefix$srcdir
1559     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563     cd "$ac_dir" || { ac_status=$?; continue; }
1564     # Check for guested configure.
1565     if test -f "$ac_srcdir/configure.gnu"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568     elif test -f "$ac_srcdir/configure"; then
1569       echo &&
1570       $SHELL "$ac_srcdir/configure" --help=recursive
1571     else
1572       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573     fi || ac_status=$?
1574     cd "$ac_pwd" || { ac_status=$?; break; }
1575   done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580   cat <<\_ACEOF
1581 configure
1582 generated by GNU Autoconf 2.61
1583
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1594
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.61.  Invocation command line was
1597
1598   $ $0 $@
1599
1600 _ACEOF
1601 exec 5>>config.log
1602 {
1603 cat <<_ASUNAME
1604 ## --------- ##
1605 ## Platform. ##
1606 ## --------- ##
1607
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1616
1617 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1618 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1621 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1622 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1623 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1624
1625 _ASUNAME
1626
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630   IFS=$as_save_IFS
1631   test -z "$as_dir" && as_dir=.
1632   echo "PATH: $as_dir"
1633 done
1634 IFS=$as_save_IFS
1635
1636 } >&5
1637
1638 cat >&5 <<_ACEOF
1639
1640
1641 ## ----------- ##
1642 ## Core tests. ##
1643 ## ----------- ##
1644
1645 _ACEOF
1646
1647
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_configure_args=
1654 ac_configure_args0=
1655 ac_configure_args1=
1656 ac_must_keep_next=false
1657 for ac_pass in 1 2
1658 do
1659   for ac_arg
1660   do
1661     case $ac_arg in
1662     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664     | -silent | --silent | --silen | --sile | --sil)
1665       continue ;;
1666     *\'*)
1667       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668     esac
1669     case $ac_pass in
1670     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671     2)
1672       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673       if test $ac_must_keep_next = true; then
1674         ac_must_keep_next=false # Got value, back to normal.
1675       else
1676         case $ac_arg in
1677           *=* | --config-cache | -C | -disable-* | --disable-* \
1678           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680           | -with-* | --with-* | -without-* | --without-* | --x)
1681             case "$ac_configure_args0 " in
1682               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683             esac
1684             ;;
1685           -* ) ac_must_keep_next=true ;;
1686         esac
1687       fi
1688       ac_configure_args="$ac_configure_args '$ac_arg'"
1689       ;;
1690     esac
1691   done
1692 done
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log.  We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702   # Save into config.log some information that might help in debugging.
1703   {
1704     echo
1705
1706     cat <<\_ASBOX
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1710 _ASBOX
1711     echo
1712     # The following way of writing the cache mishandles newlines in values,
1713 (
1714   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715     eval ac_val=\$$ac_var
1716     case $ac_val in #(
1717     *${as_nl}*)
1718       case $ac_var in #(
1719       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721       esac
1722       case $ac_var in #(
1723       _ | IFS | as_nl) ;; #(
1724       *) $as_unset $ac_var ;;
1725       esac ;;
1726     esac
1727   done
1728   (set) 2>&1 |
1729     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730     *${as_nl}ac_space=\ *)
1731       sed -n \
1732         "s/'\''/'\''\\\\'\'''\''/g;
1733           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734       ;; #(
1735     *)
1736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737       ;;
1738     esac |
1739     sort
1740 )
1741     echo
1742
1743     cat <<\_ASBOX
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1747 _ASBOX
1748     echo
1749     for ac_var in $ac_subst_vars
1750     do
1751       eval ac_val=\$$ac_var
1752       case $ac_val in
1753       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754       esac
1755       echo "$ac_var='\''$ac_val'\''"
1756     done | sort
1757     echo
1758
1759     if test -n "$ac_subst_files"; then
1760       cat <<\_ASBOX
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1764 _ASBOX
1765       echo
1766       for ac_var in $ac_subst_files
1767       do
1768         eval ac_val=\$$ac_var
1769         case $ac_val in
1770         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771         esac
1772         echo "$ac_var='\''$ac_val'\''"
1773       done | sort
1774       echo
1775     fi
1776
1777     if test -s confdefs.h; then
1778       cat <<\_ASBOX
1779 ## ----------- ##
1780 ## confdefs.h. ##
1781 ## ----------- ##
1782 _ASBOX
1783       echo
1784       cat confdefs.h
1785       echo
1786     fi
1787     test "$ac_signal" != 0 &&
1788       echo "$as_me: caught signal $ac_signal"
1789     echo "$as_me: exit $exit_status"
1790   } >&5
1791   rm -f core *.core core.conftest.* &&
1792     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1793     exit $exit_status
1794 ' 0
1795 for ac_signal in 1 2 13 15; do
1796   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 done
1798 ac_signal=0
1799
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1802
1803 # Predefined preprocessor variables.
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 _ACEOF
1828
1829
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833   set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 else
1837   set x "$ac_default_prefix/share/config.site" \
1838         "$ac_default_prefix/etc/config.site"
1839 fi
1840 shift
1841 for ac_site_file
1842 do
1843   if test -r "$ac_site_file"; then
1844     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846     sed 's/^/| /' "$ac_site_file" >&5
1847     . "$ac_site_file"
1848   fi
1849 done
1850
1851 if test -r "$cache_file"; then
1852   # Some versions of bash will fail to source /dev/null (special
1853   # files actually), so we avoid doing that.
1854   if test -f "$cache_file"; then
1855     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1857     case $cache_file in
1858       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859       *)                      . "./$cache_file";;
1860     esac
1861   fi
1862 else
1863   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1865   >$cache_file
1866 fi
1867
1868 # Check that the precious variables saved in the cache have kept the same
1869 # value.
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873   eval ac_new_set=\$ac_env_${ac_var}_set
1874   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875   eval ac_new_val=\$ac_env_${ac_var}_value
1876   case $ac_old_set,$ac_new_set in
1877     set,)
1878       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880       ac_cache_corrupted=: ;;
1881     ,set)
1882       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884       ac_cache_corrupted=: ;;
1885     ,);;
1886     *)
1887       if test "x$ac_old_val" != "x$ac_new_val"; then
1888         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1891 echo "$as_me:   former value:  $ac_old_val" >&2;}
1892         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1893 echo "$as_me:   current value: $ac_new_val" >&2;}
1894         ac_cache_corrupted=:
1895       fi;;
1896   esac
1897   # Pass precious variables to config.status.
1898   if test "$ac_new_set" = set; then
1899     case $ac_new_val in
1900     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901     *) ac_arg=$ac_var=$ac_new_val ;;
1902     esac
1903     case " $ac_configure_args " in
1904       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1905       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906     esac
1907   fi
1908 done
1909 if $ac_cache_corrupted; then
1910   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914    { (exit 1); exit 1; }; }
1915 fi
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933 ac_ext=c
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938
1939
1940 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1941
1942
1943 RADIUSD_VERSION=`cat VERSION`
1944 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1945 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1946 PACKAGE=freeradius
1947
1948
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   if test -n "$CC"; then
1963   ac_cv_prog_CC="$CC" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968   IFS=$as_save_IFS
1969   test -z "$as_dir" && as_dir=.
1970   for ac_exec_ext in '' $ac_executable_extensions; do
1971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974     break 2
1975   fi
1976 done
1977 done
1978 IFS=$as_save_IFS
1979
1980 fi
1981 fi
1982 CC=$ac_cv_prog_CC
1983 if test -n "$CC"; then
1984   { echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6; }
1986 else
1987   { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1989 fi
1990
1991
1992 fi
1993 if test -z "$ac_cv_prog_CC"; then
1994   ac_ct_CC=$CC
1995   # Extract the first word of "gcc", so it can be a program name with args.
1996 set dummy gcc; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   if test -n "$ac_ct_CC"; then
2003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012     ac_cv_prog_ac_ct_CC="gcc"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018 IFS=$as_save_IFS
2019
2020 fi
2021 fi
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6; }
2026 else
2027   { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2029 fi
2030
2031   if test "x$ac_ct_CC" = x; then
2032     CC=""
2033   else
2034     case $cross_compiling:$ac_tool_warned in
2035 yes:)
2036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet.  If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&5
2039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet.  If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2042 ac_tool_warned=yes ;;
2043 esac
2044     CC=$ac_ct_CC
2045   fi
2046 else
2047   CC="$ac_cv_prog_CC"
2048 fi
2049
2050 if test -z "$CC"; then
2051           if test -n "$ac_tool_prefix"; then
2052     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$CC"; then
2060   ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069     ac_cv_prog_CC="${ac_tool_prefix}cc"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2083 else
2084   { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2086 fi
2087
2088
2089   fi
2090 fi
2091 if test -z "$CC"; then
2092   # Extract the first word of "cc", so it can be a program name with args.
2093 set dummy cc; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$CC"; then
2100   ac_cv_prog_CC="$CC" # Let the user override the test.
2101 else
2102   ac_prog_rejected=no
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2111        ac_prog_rejected=yes
2112        continue
2113      fi
2114     ac_cv_prog_CC="cc"
2115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120 IFS=$as_save_IFS
2121
2122 if test $ac_prog_rejected = yes; then
2123   # We found a bogon in the path, so make sure we never use it.
2124   set dummy $ac_cv_prog_CC
2125   shift
2126   if test $# != 0; then
2127     # We chose a different compiler from the bogus one.
2128     # However, it has the same basename, so the bogon will be chosen
2129     # first if we set CC to just the basename; use the full file name.
2130     shift
2131     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2132   fi
2133 fi
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138   { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2140 else
2141   { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146 fi
2147 if test -z "$CC"; then
2148   if test -n "$ac_tool_prefix"; then
2149   for ac_prog in cl.exe
2150   do
2151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 CC=$ac_cv_prog_CC
2179 if test -n "$CC"; then
2180   { echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6; }
2182 else
2183   { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187
2188     test -n "$CC" && break
2189   done
2190 fi
2191 if test -z "$CC"; then
2192   ac_ct_CC=$CC
2193   for ac_prog in cl.exe
2194 do
2195   # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   if test -n "$ac_ct_CC"; then
2203   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210   for ac_exec_ext in '' $ac_executable_extensions; do
2211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212     ac_cv_prog_ac_ct_CC="$ac_prog"
2213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214     break 2
2215   fi
2216 done
2217 done
2218 IFS=$as_save_IFS
2219
2220 fi
2221 fi
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6; }
2226 else
2227   { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2229 fi
2230
2231
2232   test -n "$ac_ct_CC" && break
2233 done
2234
2235   if test "x$ac_ct_CC" = x; then
2236     CC=""
2237   else
2238     case $cross_compiling:$ac_tool_warned in
2239 yes:)
2240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet.  If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&5
2243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet.  If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2246 ac_tool_warned=yes ;;
2247 esac
2248     CC=$ac_ct_CC
2249   fi
2250 fi
2251
2252 fi
2253
2254
2255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&2;}
2259    { (exit 1); exit 1; }; }
2260
2261 # Provide some information about the compiler.
2262 echo "$as_me:$LINENO: checking for C compiler version" >&5
2263 ac_compiler=`set X $ac_compile; echo $2`
2264 { (ac_try="$ac_compiler --version >&5"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_compiler --version >&5") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }
2274 { (ac_try="$ac_compiler -v >&5"
2275 case "(($ac_try" in
2276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277   *) ac_try_echo=$ac_try;;
2278 esac
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280   (eval "$ac_compiler -v >&5") 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }
2284 { (ac_try="$ac_compiler -V >&5"
2285 case "(($ac_try" in
2286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287   *) ac_try_echo=$ac_try;;
2288 esac
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290   (eval "$ac_compiler -V >&5") 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }
2294
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2314 # of exeext.
2315 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 #
2319 # List of possible output files, starting from the most likely.
2320 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2321 # only as a last resort.  b.out is created by i960 compilers.
2322 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2323 #
2324 # The IRIX 6 linker writes into existing files which may not be
2325 # executable, retaining their permissions.  Remove them first so a
2326 # subsequent execution test works.
2327 ac_rmfiles=
2328 for ac_file in $ac_files
2329 do
2330   case $ac_file in
2331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2332     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2333   esac
2334 done
2335 rm -f $ac_rmfiles
2336
2337 if { (ac_try="$ac_link_default"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343   (eval "$ac_link_default") 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; then
2347   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2349 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2350 # so that the user can short-circuit this test for compilers unknown to
2351 # Autoconf.
2352 for ac_file in $ac_files ''
2353 do
2354   test -f "$ac_file" || continue
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2357         ;;
2358     [ab].out )
2359         # We found the default executable, but exeext='' is most
2360         # certainly right.
2361         break;;
2362     *.* )
2363         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2364         then :; else
2365            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366         fi
2367         # We set ac_cv_exeext here because the later test for it is not
2368         # safe: cross compilers may not add the suffix if given an `-o'
2369         # argument, so we may need to know it at that point already.
2370         # Even if this section looks crufty: it has the advantage of
2371         # actually working.
2372         break;;
2373     * )
2374         break;;
2375   esac
2376 done
2377 test "$ac_cv_exeext" = no && ac_cv_exeext=
2378
2379 else
2380   ac_file=''
2381 fi
2382
2383 { echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6; }
2385 if test -z "$ac_file"; then
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393    { (exit 77); exit 77; }; }
2394 fi
2395
2396 ac_exeext=$ac_cv_exeext
2397
2398 # Check that the compiler produces executables we can run.  If not, either
2399 # the compiler is broken, or we cross compile.
2400 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403 # If not cross compiling, check that we can run a simple program.
2404 if test "$cross_compiling" != yes; then
2405   if { ac_try='./$ac_file'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415     cross_compiling=no
2416   else
2417     if test "$cross_compiling" = maybe; then
2418         cross_compiling=yes
2419     else
2420         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426    { (exit 1); exit 1; }; }
2427     fi
2428   fi
2429 fi
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2432
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_clean_files=$ac_clean_files_save
2435 # Check that the compiler produces executables we can run.  If not, either
2436 # the compiler is broken, or we cross compile.
2437 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2439 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6; }
2441
2442 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2444 if { (ac_try="$ac_link"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450   (eval "$ac_link") 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; then
2454   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 # `rm'.
2458 for ac_file in conftest.exe conftest conftest.*; do
2459   test -f "$ac_file" || continue
2460   case $ac_file in
2461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463           break;;
2464     * ) break;;
2465   esac
2466 done
2467 else
2468   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472    { (exit 1); exit 1; }; }
2473 fi
2474
2475 rm -f conftest$ac_cv_exeext
2476 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2478
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2481 ac_exeext=$EXEEXT
2482 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2484 if test "${ac_cv_objext+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.o conftest.obj
2503 if { (ac_try="$ac_compile"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_compile") 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   for ac_file in conftest.o conftest.obj conftest.*; do
2514   test -f "$ac_file" || continue;
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518        break;;
2519   esac
2520 done
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2531
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 fi
2534 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6; }
2536 OBJEXT=$ac_cv_objext
2537 ac_objext=$OBJEXT
2538 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553 #ifndef __GNUC__
2554        choke me
2555 #endif
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_compile") 2>conftest.er1
2569   ac_status=$?
2570   grep -v '^ *+' conftest.er1 >conftest.err
2571   rm -f conftest.er1
2572   cat conftest.err >&5
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } && {
2575          test -z "$ac_c_werror_flag" ||
2576          test ! -s conftest.err
2577        } && test -s conftest.$ac_objext; then
2578   ac_compiler_gnu=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583         ac_compiler_gnu=no
2584 fi
2585
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2588
2589 fi
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   ac_save_c_werror_flag=$ac_c_werror_flag
2601    ac_c_werror_flag=yes
2602    ac_cv_prog_cc_g=no
2603    CFLAGS="-g"
2604    cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610
2611 int
2612 main ()
2613 {
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2621 case "(($ac_try" in
2622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623   *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626   (eval "$ac_compile") 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } && {
2633          test -z "$ac_c_werror_flag" ||
2634          test ! -s conftest.err
2635        } && test -s conftest.$ac_objext; then
2636   ac_cv_prog_cc_g=yes
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641         CFLAGS=""
2642       cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } && {
2671          test -z "$ac_c_werror_flag" ||
2672          test ! -s conftest.err
2673        } && test -s conftest.$ac_objext; then
2674   :
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679         ac_c_werror_flag=$ac_save_c_werror_flag
2680          CFLAGS="-g"
2681          cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } && {
2710          test -z "$ac_c_werror_flag" ||
2711          test ! -s conftest.err
2712        } && test -s conftest.$ac_objext; then
2713   ac_cv_prog_cc_g=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718
2719 fi
2720
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 fi
2723
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728    ac_c_werror_flag=$ac_save_c_werror_flag
2729 fi
2730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2732 if test "$ac_test_CFLAGS" = set; then
2733   CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735   if test "$GCC" = yes; then
2736     CFLAGS="-g -O2"
2737   else
2738     CFLAGS="-g"
2739   fi
2740 else
2741   if test "$GCC" = yes; then
2742     CFLAGS="-O2"
2743   else
2744     CFLAGS=
2745   fi
2746 fi
2747 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2748 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_c89+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   ac_cv_prog_cc_c89=no
2753 ac_save_CC=$CC
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760 #include <stdarg.h>
2761 #include <stdio.h>
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2768      char **p;
2769      int i;
2770 {
2771   return p[i];
2772 }
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2774 {
2775   char *s;
2776   va_list v;
2777   va_start (v,p);
2778   s = g (p, va_arg (v,int));
2779   va_end (v);
2780   return s;
2781 }
2782
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2784    function prototypes and stuff, but not '\xHH' hex character constants.
2785    These don't provoke an error unfortunately, instead are silently treated
2786    as 'x'.  The following induces an error, until -std is added to get
2787    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2788    array size at least.  It's necessary to write '\x00'==0 to get something
2789    that's true only with -std.  */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791
2792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2793    inside strings and character constants.  */
2794 #define FOO(x) 'x'
2795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2796
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2801 int argc;
2802 char **argv;
2803 int
2804 main ()
2805 {
2806 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2812         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813 do
2814   CC="$ac_save_CC $ac_arg"
2815   rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2817 case "(($ac_try" in
2818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819   *) ac_try_echo=$ac_try;;
2820 esac
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822   (eval "$ac_compile") 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } && {
2829          test -z "$ac_c_werror_flag" ||
2830          test ! -s conftest.err
2831        } && test -s conftest.$ac_objext; then
2832   ac_cv_prog_cc_c89=$ac_arg
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837
2838 fi
2839
2840 rm -f core conftest.err conftest.$ac_objext
2841   test "x$ac_cv_prog_cc_c89" != "xno" && break
2842 done
2843 rm -f conftest.$ac_ext
2844 CC=$ac_save_CC
2845
2846 fi
2847 # AC_CACHE_VAL
2848 case "x$ac_cv_prog_cc_c89" in
2849   x)
2850     { echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6; } ;;
2852   xno)
2853     { echo "$as_me:$LINENO: result: unsupported" >&5
2854 echo "${ECHO_T}unsupported" >&6; } ;;
2855   *)
2856     CC="$CC $ac_cv_prog_cc_c89"
2857     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2859 esac
2860
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867
2868 ac_ext=cpp
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2873 if test -z "$CXX"; then
2874   if test -n "$CCC"; then
2875     CXX=$CCC
2876   else
2877     if test -n "$ac_tool_prefix"; then
2878   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2879   do
2880     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CXX+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887   if test -n "$CXX"; then
2888   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895   for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CXX=$ac_cv_prog_CXX
2908 if test -n "$CXX"; then
2909   { echo "$as_me:$LINENO: result: $CXX" >&5
2910 echo "${ECHO_T}$CXX" >&6; }
2911 else
2912   { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2914 fi
2915
2916
2917     test -n "$CXX" && break
2918   done
2919 fi
2920 if test -z "$CXX"; then
2921   ac_ct_CXX=$CXX
2922   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2923 do
2924   # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   if test -n "$ac_ct_CXX"; then
2932   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939   for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_prog_ac_ct_CXX="$ac_prog"
2942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2952 if test -n "$ac_ct_CXX"; then
2953   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2954 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2955 else
2956   { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2958 fi
2959
2960
2961   test -n "$ac_ct_CXX" && break
2962 done
2963
2964   if test "x$ac_ct_CXX" = x; then
2965     CXX="g++"
2966   else
2967     case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2970 whose name does not start with the host triplet.  If you think this
2971 configuration is useful to you, please write to autoconf@gnu.org." >&5
2972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2973 whose name does not start with the host triplet.  If you think this
2974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977     CXX=$ac_ct_CXX
2978   fi
2979 fi
2980
2981   fi
2982 fi
2983 # Provide some information about the compiler.
2984 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2985 ac_compiler=`set X $ac_compile; echo $2`
2986 { (ac_try="$ac_compiler --version >&5"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compiler --version >&5") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }
2996 { (ac_try="$ac_compiler -v >&5"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_compiler -v >&5") 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }
3006 { (ac_try="$ac_compiler -V >&5"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compiler -V >&5") 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }
3016
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3019 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032 #ifndef __GNUC__
3033        choke me
3034 #endif
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compile") 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
3051   cat conftest.err >&5
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } && {
3054          test -z "$ac_cxx_werror_flag" ||
3055          test ! -s conftest.err
3056        } && test -s conftest.$ac_objext; then
3057   ac_compiler_gnu=yes
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062         ac_compiler_gnu=no
3063 fi
3064
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3067
3068 fi
3069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3070 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3071 GXX=`test $ac_compiler_gnu = yes && echo yes`
3072 ac_test_CXXFLAGS=${CXXFLAGS+set}
3073 ac_save_CXXFLAGS=$CXXFLAGS
3074 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3075 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_cxx_g+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3080    ac_cxx_werror_flag=yes
3081    ac_cv_prog_cxx_g=no
3082    CXXFLAGS="-g"
3083    cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compile") 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } && {
3112          test -z "$ac_cxx_werror_flag" ||
3113          test ! -s conftest.err
3114        } && test -s conftest.$ac_objext; then
3115   ac_cv_prog_cxx_g=yes
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120         CXXFLAGS=""
3121       cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } && {
3150          test -z "$ac_cxx_werror_flag" ||
3151          test ! -s conftest.err
3152        } && test -s conftest.$ac_objext; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3159          CXXFLAGS="-g"
3160          cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } && {
3189          test -z "$ac_cxx_werror_flag" ||
3190          test ! -s conftest.err
3191        } && test -s conftest.$ac_objext; then
3192   ac_cv_prog_cxx_g=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3208 fi
3209 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3210 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3211 if test "$ac_test_CXXFLAGS" = set; then
3212   CXXFLAGS=$ac_save_CXXFLAGS
3213 elif test $ac_cv_prog_cxx_g = yes; then
3214   if test "$GXX" = yes; then
3215     CXXFLAGS="-g -O2"
3216   else
3217     CXXFLAGS="-g"
3218   fi
3219 else
3220   if test "$GXX" = yes; then
3221     CXXFLAGS="-O2"
3222   else
3223     CXXFLAGS=
3224   fi
3225 fi
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3243   CPP=
3244 fi
3245 if test -z "$CPP"; then
3246   if test "${ac_cv_prog_CPP+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249       # Double quotes because CPP needs to be expanded
3250     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251     do
3252       ac_preproc_ok=false
3253 for ac_c_preproc_warn_flag in '' yes
3254 do
3255   # Use a header file that comes with gcc, so configuring glibc
3256   # with a fresh cross-compiler works.
3257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258   # <limits.h> exists even on freestanding compilers.
3259   # On the NeXT, cc -E runs the code through the compiler's parser,
3260   # not just through cpp. "Syntax error" is here to catch this case.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #ifdef __STDC__
3268 # include <limits.h>
3269 #else
3270 # include <assert.h>
3271 #endif
3272                      Syntax error
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null && {
3287          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3288          test ! -s conftest.err
3289        }; then
3290   :
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295   # Broken: fails on valid input.
3296 continue
3297 fi
3298
3299 rm -f conftest.err conftest.$ac_ext
3300
3301   # OK, works on sane cases.  Now check whether nonexistent headers
3302   # can be detected and how.
3303   cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <ac_nonexistent.h>
3310 _ACEOF
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } >/dev/null && {
3324          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3325          test ! -s conftest.err
3326        }; then
3327   # Broken: success on invalid input.
3328 continue
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333   # Passes both tests.
3334 ac_preproc_ok=:
3335 break
3336 fi
3337
3338 rm -f conftest.err conftest.$ac_ext
3339
3340 done
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3344   break
3345 fi
3346
3347     done
3348     ac_cv_prog_CPP=$CPP
3349
3350 fi
3351   CPP=$ac_cv_prog_CPP
3352 else
3353   ac_cv_prog_CPP=$CPP
3354 fi
3355 { echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6; }
3357 ac_preproc_ok=false
3358 for ac_c_preproc_warn_flag in '' yes
3359 do
3360   # Use a header file that comes with gcc, so configuring glibc
3361   # with a fresh cross-compiler works.
3362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363   # <limits.h> exists even on freestanding compilers.
3364   # On the NeXT, cc -E runs the code through the compiler's parser,
3365   # not just through cpp. "Syntax error" is here to catch this case.
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #ifdef __STDC__
3373 # include <limits.h>
3374 #else
3375 # include <assert.h>
3376 #endif
3377                      Syntax error
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null && {
3392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393          test ! -s conftest.err
3394        }; then
3395   :
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400   # Broken: fails on valid input.
3401 continue
3402 fi
3403
3404 rm -f conftest.err conftest.$ac_ext
3405
3406   # OK, works on sane cases.  Now check whether nonexistent headers
3407   # can be detected and how.
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #include <ac_nonexistent.h>
3415 _ACEOF
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423   ac_status=$?
3424   grep -v '^ *+' conftest.er1 >conftest.err
3425   rm -f conftest.er1
3426   cat conftest.err >&5
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } >/dev/null && {
3429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430          test ! -s conftest.err
3431        }; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3466 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3467 if test "${ac_cv_path_GREP+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   # Extract the first word of "grep ggrep" to use in msg output
3471 if test -z "$GREP"; then
3472 set dummy grep ggrep; ac_prog_name=$2
3473 if test "${ac_cv_path_GREP+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   ac_path_GREP_found=false
3477 # Loop through the user's path and test for each of PROGNAME-LIST
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483   for ac_prog in grep ggrep; do
3484   for ac_exec_ext in '' $ac_executable_extensions; do
3485     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3486     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3487     # Check for GNU ac_path_GREP and select it if it is found.
3488   # Check for GNU $ac_path_GREP
3489 case `"$ac_path_GREP" --version 2>&1` in
3490 *GNU*)
3491   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3492 *)
3493   ac_count=0
3494   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3495   while :
3496   do
3497     cat "conftest.in" "conftest.in" >"conftest.tmp"
3498     mv "conftest.tmp" "conftest.in"
3499     cp "conftest.in" "conftest.nl"
3500     echo 'GREP' >> "conftest.nl"
3501     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3502     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3503     ac_count=`expr $ac_count + 1`
3504     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3505       # Best one so far, save it but keep looking for a better one
3506       ac_cv_path_GREP="$ac_path_GREP"
3507       ac_path_GREP_max=$ac_count
3508     fi
3509     # 10*(2^10) chars as input seems more than enough
3510     test $ac_count -gt 10 && break
3511   done
3512   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3513 esac
3514
3515
3516     $ac_path_GREP_found && break 3
3517   done
3518 done
3519
3520 done
3521 IFS=$as_save_IFS
3522
3523
3524 fi
3525
3526 GREP="$ac_cv_path_GREP"
3527 if test -z "$GREP"; then
3528   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3529 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3530    { (exit 1); exit 1; }; }
3531 fi
3532
3533 else
3534   ac_cv_path_GREP=$GREP
3535 fi
3536
3537
3538 fi
3539 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3540 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3541  GREP="$ac_cv_path_GREP"
3542
3543
3544 { echo "$as_me:$LINENO: checking for egrep" >&5
3545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3546 if test "${ac_cv_path_EGREP+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3550    then ac_cv_path_EGREP="$GREP -E"
3551    else
3552      # Extract the first word of "egrep" to use in msg output
3553 if test -z "$EGREP"; then
3554 set dummy egrep; ac_prog_name=$2
3555 if test "${ac_cv_path_EGREP+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   ac_path_EGREP_found=false
3559 # Loop through the user's path and test for each of PROGNAME-LIST
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_prog in egrep; do
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3568     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3569     # Check for GNU ac_path_EGREP and select it if it is found.
3570   # Check for GNU $ac_path_EGREP
3571 case `"$ac_path_EGREP" --version 2>&1` in
3572 *GNU*)
3573   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3574 *)
3575   ac_count=0
3576   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3577   while :
3578   do
3579     cat "conftest.in" "conftest.in" >"conftest.tmp"
3580     mv "conftest.tmp" "conftest.in"
3581     cp "conftest.in" "conftest.nl"
3582     echo 'EGREP' >> "conftest.nl"
3583     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3584     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3585     ac_count=`expr $ac_count + 1`
3586     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3587       # Best one so far, save it but keep looking for a better one
3588       ac_cv_path_EGREP="$ac_path_EGREP"
3589       ac_path_EGREP_max=$ac_count
3590     fi
3591     # 10*(2^10) chars as input seems more than enough
3592     test $ac_count -gt 10 && break
3593   done
3594   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595 esac
3596
3597
3598     $ac_path_EGREP_found && break 3
3599   done
3600 done
3601
3602 done
3603 IFS=$as_save_IFS
3604
3605
3606 fi
3607
3608 EGREP="$ac_cv_path_EGREP"
3609 if test -z "$EGREP"; then
3610   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3612    { (exit 1); exit 1; }; }
3613 fi
3614
3615 else
3616   ac_cv_path_EGREP=$EGREP
3617 fi
3618
3619
3620    fi
3621 fi
3622 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3623 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3624  EGREP="$ac_cv_path_EGREP"
3625
3626
3627
3628 { echo "$as_me:$LINENO: checking for AIX" >&5
3629 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #ifdef _AIX
3637   yes
3638 #endif
3639
3640 _ACEOF
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642   $EGREP "yes" >/dev/null 2>&1; then
3643   { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3645 cat >>confdefs.h <<\_ACEOF
3646 #define _ALL_SOURCE 1
3647 _ACEOF
3648
3649 else
3650   { echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6; }
3652 fi
3653 rm -f conftest*
3654
3655
3656
3657 if test $ac_cv_c_compiler_gnu = yes; then
3658     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3659 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663     ac_pattern="Autoconf.*'x'"
3664   cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 #include <sgtty.h>
3671 Autoconf TIOCGETP
3672 _ACEOF
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3675   ac_cv_prog_gcc_traditional=yes
3676 else
3677   ac_cv_prog_gcc_traditional=no
3678 fi
3679 rm -f conftest*
3680
3681
3682   if test $ac_cv_prog_gcc_traditional = no; then
3683     cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689 #include <termio.h>
3690 Autoconf TCGETA
3691 _ACEOF
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3694   ac_cv_prog_gcc_traditional=yes
3695 fi
3696 rm -f conftest*
3697
3698   fi
3699 fi
3700 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3701 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3702   if test $ac_cv_prog_gcc_traditional = yes; then
3703     CC="$CC -traditional"
3704   fi
3705 fi
3706
3707 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3708 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3709 if test "${ac_cv_prog_suncc+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   cat > conftest.c <<EOF
3713 #ifdef __SUNPRO_C
3714   yes;
3715 #endif
3716 EOF
3717 if { ac_try='${CC-cc} -E conftest.c'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3723   ac_cv_prog_suncc=yes
3724 else
3725   ac_cv_prog_suncc=no
3726 fi
3727 fi
3728 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3729 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3730 if test -n "$ac_tool_prefix"; then
3731   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3735 if test "${ac_cv_prog_RANLIB+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if test -n "$RANLIB"; then
3739   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 RANLIB=$ac_cv_prog_RANLIB
3759 if test -n "$RANLIB"; then
3760   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3761 echo "${ECHO_T}$RANLIB" >&6; }
3762 else
3763   { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3765 fi
3766
3767
3768 fi
3769 if test -z "$ac_cv_prog_RANLIB"; then
3770   ac_ct_RANLIB=$RANLIB
3771   # Extract the first word of "ranlib", so it can be a program name with args.
3772 set dummy ranlib; ac_word=$2
3773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3775 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   if test -n "$ac_ct_RANLIB"; then
3779   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788     ac_cv_prog_ac_ct_RANLIB="ranlib"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3799 if test -n "$ac_ct_RANLIB"; then
3800   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3801 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3802 else
3803   { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3805 fi
3806
3807   if test "x$ac_ct_RANLIB" = x; then
3808     RANLIB=":"
3809   else
3810     case $cross_compiling:$ac_tool_warned in
3811 yes:)
3812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3813 whose name does not start with the host triplet.  If you think this
3814 configuration is useful to you, please write to autoconf@gnu.org." >&5
3815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3816 whose name does not start with the host triplet.  If you think this
3817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820     RANLIB=$ac_ct_RANLIB
3821   fi
3822 else
3823   RANLIB="$ac_cv_prog_RANLIB"
3824 fi
3825
3826
3827 if test "x$GCC" = "xyes"; then
3828     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3829 fi
3830
3831 # Check whether --enable-largefile was given.
3832 if test "${enable_largefile+set}" = set; then
3833   enableval=$enable_largefile;
3834 fi
3835
3836 if test "$enable_largefile" != no; then
3837
3838   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3839 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3840 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   ac_cv_sys_largefile_CC=no
3844      if test "$GCC" != yes; then
3845        ac_save_CC=$CC
3846        while :; do
3847          # IRIX 6.2 and later do not support large files by default,
3848          # so use the C compiler's -n32 option if that helps.
3849          cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #include <sys/types.h>
3856  /* Check that off_t can represent 2**63 - 1 correctly.
3857     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3858     since some C++ compilers masquerading as C compilers
3859     incorrectly reject 9223372036854775807.  */
3860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3861   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3862                        && LARGE_OFF_T % 2147483647 == 1)
3863                       ? 1 : -1];
3864 int
3865 main ()
3866 {
3867
3868   ;
3869   return 0;
3870 }
3871 _ACEOF
3872          rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3874 case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879   (eval "$ac_compile") 2>conftest.er1
3880   ac_status=$?
3881   grep -v '^ *+' conftest.er1 >conftest.err
3882   rm -f conftest.er1
3883   cat conftest.err >&5
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); } && {
3886          test -z "$ac_c_werror_flag" ||
3887          test ! -s conftest.err
3888        } && test -s conftest.$ac_objext; then
3889   break
3890 else
3891   echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894
3895 fi
3896
3897 rm -f core conftest.err conftest.$ac_objext
3898          CC="$CC -n32"
3899          rm -f conftest.$ac_objext
3900 if { (ac_try="$ac_compile"
3901 case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906   (eval "$ac_compile") 2>conftest.er1
3907   ac_status=$?
3908   grep -v '^ *+' conftest.er1 >conftest.err
3909   rm -f conftest.er1
3910   cat conftest.err >&5
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } && {
3913          test -z "$ac_c_werror_flag" ||
3914          test ! -s conftest.err
3915        } && test -s conftest.$ac_objext; then
3916   ac_cv_sys_largefile_CC=' -n32'; break
3917 else
3918   echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921
3922 fi
3923
3924 rm -f core conftest.err conftest.$ac_objext
3925          break
3926        done
3927        CC=$ac_save_CC
3928        rm -f conftest.$ac_ext
3929     fi
3930 fi
3931 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3932 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3933   if test "$ac_cv_sys_largefile_CC" != no; then
3934     CC=$CC$ac_cv_sys_largefile_CC
3935   fi
3936
3937   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3938 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3939 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   while :; do
3943   cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <sys/types.h>
3950  /* Check that off_t can represent 2**63 - 1 correctly.
3951     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952     since some C++ compilers masquerading as C compilers
3953     incorrectly reject 9223372036854775807.  */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956                        && LARGE_OFF_T % 2147483647 == 1)
3957                       ? 1 : -1];
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973   (eval "$ac_compile") 2>conftest.er1
3974   ac_status=$?
3975   grep -v '^ *+' conftest.er1 >conftest.err
3976   rm -f conftest.er1
3977   cat conftest.err >&5
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } && {
3980          test -z "$ac_c_werror_flag" ||
3981          test ! -s conftest.err
3982        } && test -s conftest.$ac_objext; then
3983   ac_cv_sys_file_offset_bits=no; break
3984 else
3985   echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988
3989 fi
3990
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992   cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h.  */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h.  */
3998 #define _FILE_OFFSET_BITS 64
3999 #include <sys/types.h>
4000  /* Check that off_t can represent 2**63 - 1 correctly.
4001     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4002     since some C++ compilers masquerading as C compilers
4003     incorrectly reject 9223372036854775807.  */
4004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4005   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4006                        && LARGE_OFF_T % 2147483647 == 1)
4007                       ? 1 : -1];
4008 int
4009 main ()
4010 {
4011
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4018 case "(($ac_try" in
4019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020   *) ac_try_echo=$ac_try;;
4021 esac
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023   (eval "$ac_compile") 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } && {
4030          test -z "$ac_c_werror_flag" ||
4031          test ! -s conftest.err
4032        } && test -s conftest.$ac_objext; then
4033   ac_cv_sys_file_offset_bits=64; break
4034 else
4035   echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038
4039 fi
4040
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042   ac_cv_sys_file_offset_bits=unknown
4043   break
4044 done
4045 fi
4046 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4047 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4048 case $ac_cv_sys_file_offset_bits in #(
4049   no | unknown) ;;
4050   *)
4051 cat >>confdefs.h <<_ACEOF
4052 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4053 _ACEOF
4054 ;;
4055 esac
4056 rm -f conftest*
4057   if test $ac_cv_sys_file_offset_bits = unknown; then
4058     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4059 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4060 if test "${ac_cv_sys_large_files+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   while :; do
4064   cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070 #include <sys/types.h>
4071  /* Check that off_t can represent 2**63 - 1 correctly.
4072     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4073     since some C++ compilers masquerading as C compilers
4074     incorrectly reject 9223372036854775807.  */
4075 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4076   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4077                        && LARGE_OFF_T % 2147483647 == 1)
4078                       ? 1 : -1];
4079 int
4080 main ()
4081 {
4082
4083   ;
4084   return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_compile") 2>conftest.er1
4095   ac_status=$?
4096   grep -v '^ *+' conftest.er1 >conftest.err
4097   rm -f conftest.er1
4098   cat conftest.err >&5
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } && {
4101          test -z "$ac_c_werror_flag" ||
4102          test ! -s conftest.err
4103        } && test -s conftest.$ac_objext; then
4104   ac_cv_sys_large_files=no; break
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109
4110 fi
4111
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113   cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 #define _LARGE_FILES 1
4120 #include <sys/types.h>
4121  /* Check that off_t can represent 2**63 - 1 correctly.
4122     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4123     since some C++ compilers masquerading as C compilers
4124     incorrectly reject 9223372036854775807.  */
4125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4126   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4127                        && LARGE_OFF_T % 2147483647 == 1)
4128                       ? 1 : -1];
4129 int
4130 main ()
4131 {
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4139 case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_compile") 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } && {
4151          test -z "$ac_c_werror_flag" ||
4152          test ! -s conftest.err
4153        } && test -s conftest.$ac_objext; then
4154   ac_cv_sys_large_files=1; break
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159
4160 fi
4161
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163   ac_cv_sys_large_files=unknown
4164   break
4165 done
4166 fi
4167 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4168 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4169 case $ac_cv_sys_large_files in #(
4170   no | unknown) ;;
4171   *)
4172 cat >>confdefs.h <<_ACEOF
4173 #define _LARGE_FILES $ac_cv_sys_large_files
4174 _ACEOF
4175 ;;
4176 esac
4177 rm -f conftest*
4178   fi
4179 fi
4180
4181
4182 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4183 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4184 if test "${ac_cv_header_stdc+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 #include <stdlib.h>
4194 #include <stdarg.h>
4195 #include <string.h>
4196 #include <float.h>
4197
4198 int
4199 main ()
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4208 case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213   (eval "$ac_compile") 2>conftest.er1
4214   ac_status=$?
4215   grep -v '^ *+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } && {
4220          test -z "$ac_c_werror_flag" ||
4221          test ! -s conftest.err
4222        } && test -s conftest.$ac_objext; then
4223   ac_cv_header_stdc=yes
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228         ac_cv_header_stdc=no
4229 fi
4230
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232
4233 if test $ac_cv_header_stdc = yes; then
4234   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4235   cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241 #include <string.h>
4242
4243 _ACEOF
4244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245   $EGREP "memchr" >/dev/null 2>&1; then
4246   :
4247 else
4248   ac_cv_header_stdc=no
4249 fi
4250 rm -f conftest*
4251
4252 fi
4253
4254 if test $ac_cv_header_stdc = yes; then
4255   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4256   cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 #include <stdlib.h>
4263
4264 _ACEOF
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266   $EGREP "free" >/dev/null 2>&1; then
4267   :
4268 else
4269   ac_cv_header_stdc=no
4270 fi
4271 rm -f conftest*
4272
4273 fi
4274
4275 if test $ac_cv_header_stdc = yes; then
4276   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4277   if test "$cross_compiling" = yes; then
4278   :
4279 else
4280   cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 #include <ctype.h>
4287 #include <stdlib.h>
4288 #if ((' ' & 0x0FF) == 0x020)
4289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4291 #else
4292 # define ISLOWER(c) \
4293                    (('a' <= (c) && (c) <= 'i') \
4294                      || ('j' <= (c) && (c) <= 'r') \
4295                      || ('s' <= (c) && (c) <= 'z'))
4296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4297 #endif
4298
4299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4300 int
4301 main ()
4302 {
4303   int i;
4304   for (i = 0; i < 256; i++)
4305     if (XOR (islower (i), ISLOWER (i))
4306         || toupper (i) != TOUPPER (i))
4307       return 2;
4308   return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest$ac_exeext
4312 if { (ac_try="$ac_link"
4313 case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318   (eval "$ac_link") 2>&5
4319   ac_status=$?
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4322   { (case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327   (eval "$ac_try") 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); }; }; then
4331   :
4332 else
4333   echo "$as_me: program exited with status $ac_status" >&5
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 ( exit $ac_status )
4338 ac_cv_header_stdc=no
4339 fi
4340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4341 fi
4342
4343
4344 fi
4345 fi
4346 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4347 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4348 if test $ac_cv_header_stdc = yes; then
4349
4350 cat >>confdefs.h <<\_ACEOF
4351 #define STDC_HEADERS 1
4352 _ACEOF
4353
4354 fi
4355
4356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367                   inttypes.h stdint.h unistd.h
4368 do
4369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h.  */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h.  */
4381 $ac_includes_default
4382
4383 #include <$ac_header>
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (ac_try="$ac_compile"
4387 case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_compile") 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } && {
4399          test -z "$ac_c_werror_flag" ||
4400          test ! -s conftest.err
4401        } && test -s conftest.$ac_objext; then
4402   eval "$as_ac_Header=yes"
4403 else
4404   echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4406
4407         eval "$as_ac_Header=no"
4408 fi
4409
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 fi
4412 ac_res=`eval echo '${'$as_ac_Header'}'`
4413                { echo "$as_me:$LINENO: result: $ac_res" >&5
4414 echo "${ECHO_T}$ac_res" >&6; }
4415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4416   cat >>confdefs.h <<_ACEOF
4417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4418 _ACEOF
4419
4420 fi
4421
4422 done
4423
4424
4425 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4426 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4427 if test "${ac_cv_c_bigendian+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   # See if sys/param.h defines the BYTE_ORDER macro.
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h.  */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h.  */
4437 #include <sys/types.h>
4438 #include <sys/param.h>
4439
4440 int
4441 main ()
4442 {
4443 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4444         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4445  bogus endian macros
4446 #endif
4447
4448   ;
4449   return 0;
4450 }
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (ac_try="$ac_compile"
4454 case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459   (eval "$ac_compile") 2>conftest.er1
4460   ac_status=$?
4461   grep -v '^ *+' conftest.er1 >conftest.err
4462   rm -f conftest.er1
4463   cat conftest.err >&5
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } && {
4466          test -z "$ac_c_werror_flag" ||
4467          test ! -s conftest.err
4468        } && test -s conftest.$ac_objext; then
4469   # It does; now see whether it defined to BIG_ENDIAN or not.
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h.  */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h.  */
4476 #include <sys/types.h>
4477 #include <sys/param.h>
4478
4479 int
4480 main ()
4481 {
4482 #if BYTE_ORDER != BIG_ENDIAN
4483  not big endian
4484 #endif
4485
4486   ;
4487   return 0;
4488 }
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (ac_try="$ac_compile"
4492 case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497   (eval "$ac_compile") 2>conftest.er1
4498   ac_status=$?
4499   grep -v '^ *+' conftest.er1 >conftest.err
4500   rm -f conftest.er1
4501   cat conftest.err >&5
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); } && {
4504          test -z "$ac_c_werror_flag" ||
4505          test ! -s conftest.err
4506        } && test -s conftest.$ac_objext; then
4507   ac_cv_c_bigendian=yes
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512         ac_cv_c_bigendian=no
4513 fi
4514
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 else
4517   echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520         # It does not; compile a test program.
4521 if test "$cross_compiling" = yes; then
4522   # try to guess the endianness by grepping values into an object file
4523   ac_cv_c_bigendian=unknown
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4531 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4532 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4533 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4534 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4535 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4536 int
4537 main ()
4538 {
4539  _ascii (); _ebcdic ();
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (ac_try="$ac_compile"
4546 case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551   (eval "$ac_compile") 2>conftest.er1
4552   ac_status=$?
4553   grep -v '^ *+' conftest.er1 >conftest.err
4554   rm -f conftest.er1
4555   cat conftest.err >&5
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } && {
4558          test -z "$ac_c_werror_flag" ||
4559          test ! -s conftest.err
4560        } && test -s conftest.$ac_objext; then
4561   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4562   ac_cv_c_bigendian=yes
4563 fi
4564 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4565   if test "$ac_cv_c_bigendian" = unknown; then
4566     ac_cv_c_bigendian=no
4567   else
4568     # finding both strings is unlikely to happen, but who knows?
4569     ac_cv_c_bigendian=unknown
4570   fi
4571 fi
4572 else
4573   echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576
4577 fi
4578
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 else
4581   cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587 $ac_includes_default
4588 int
4589 main ()
4590 {
4591
4592   /* Are we little or big endian?  From Harbison&Steele.  */
4593   union
4594   {
4595     long int l;
4596     char c[sizeof (long int)];
4597   } u;
4598   u.l = 1;
4599   return u.c[sizeof (long int) - 1] == 1;
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest$ac_exeext
4606 if { (ac_try="$ac_link"
4607 case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_link") 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4616   { (case "(($ac_try" in
4617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618   *) ac_try_echo=$ac_try;;
4619 esac
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621   (eval "$ac_try") 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; }; then
4625   ac_cv_c_bigendian=no
4626 else
4627   echo "$as_me: program exited with status $ac_status" >&5
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 ( exit $ac_status )
4632 ac_cv_c_bigendian=yes
4633 fi
4634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4635 fi
4636
4637
4638 fi
4639
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 fi
4642 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4643 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4644 case $ac_cv_c_bigendian in
4645   yes)
4646
4647 cat >>confdefs.h <<\_ACEOF
4648 #define WORDS_BIGENDIAN 1
4649 _ACEOF
4650  ;;
4651   no)
4652      ;;
4653   *)
4654     { { echo "$as_me:$LINENO: error: unknown endianness
4655 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4656 echo "$as_me: error: unknown endianness
4657 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4658    { (exit 1); exit 1; }; } ;;
4659 esac
4660
4661
4662 # Extract the first word of "gmake", so it can be a program name with args.
4663 set dummy gmake; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_prog_GMAKE+set}" = set; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   if test -n "$GMAKE"; then
4670   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677   for ac_exec_ext in '' $ac_executable_extensions; do
4678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679     ac_cv_prog_GMAKE="yes"
4680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681     break 2
4682   fi
4683 done
4684 done
4685 IFS=$as_save_IFS
4686
4687   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4688 fi
4689 fi
4690 GMAKE=$ac_cv_prog_GMAKE
4691 if test -n "$GMAKE"; then
4692   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4693 echo "${ECHO_T}$GMAKE" >&6; }
4694 else
4695   { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4697 fi
4698
4699
4700 if test $GMAKE = no; then
4701   # Extract the first word of "make", so it can be a program name with args.
4702 set dummy make; ac_word=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_path_MAKE+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   case $MAKE in
4709   [\\/]* | ?:[\\/]*)
4710   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4711   ;;
4712   *)
4713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718   for ac_exec_ext in '' $ac_executable_extensions; do
4719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4729   ;;
4730 esac
4731 fi
4732 MAKE=$ac_cv_path_MAKE
4733 if test -n "$MAKE"; then
4734   { echo "$as_me:$LINENO: result: $MAKE" >&5
4735 echo "${ECHO_T}$MAKE" >&6; }
4736 else
4737   { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 fi
4740
4741
4742 else
4743   # Extract the first word of "gmake", so it can be a program name with args.
4744 set dummy gmake; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_path_MAKE+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   case $MAKE in
4751   [\\/]* | ?:[\\/]*)
4752   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4753   ;;
4754   *)
4755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760   for ac_exec_ext in '' $ac_executable_extensions; do
4761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764     break 2
4765   fi
4766 done
4767 done
4768 IFS=$as_save_IFS
4769
4770   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4771   ;;
4772 esac
4773 fi
4774 MAKE=$ac_cv_path_MAKE
4775 if test -n "$MAKE"; then
4776   { echo "$as_me:$LINENO: result: $MAKE" >&5
4777 echo "${ECHO_T}$MAKE" >&6; }
4778 else
4779   { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4781 fi
4782
4783
4784 fi
4785 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4786 if test -z "$makever"; then
4787   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4788                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4789 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4790                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4791    { (exit 1); exit 1; }; }
4792 fi
4793
4794
4795 # Check whether --with-system-libltdl was given.
4796 if test "${with_system_libltdl+set}" = set; then
4797   withval=$with_system_libltdl;
4798 LIBLTDL="-lltdl"
4799 INCLTDL=-DWITH_SYSTEM_LTDL
4800 LTDL_SUBDIRS=
4801
4802 else
4803
4804 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
4805   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4806 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4807 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   ac_check_lib_save_LIBS=$LIBS
4811 LIBS="-lltdl  $LIBS"
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h.  */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h.  */
4818
4819 /* Override any GCC internal prototype to avoid an error.
4820    Use char because int might match the return type of a GCC
4821    builtin and then its argument prototype would still apply.  */
4822 #ifdef __cplusplus
4823 extern "C"
4824 #endif
4825 char lt_dlinit ();
4826 int
4827 main ()
4828 {
4829 return lt_dlinit ();
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 rm -f conftest.$ac_objext conftest$ac_exeext
4835 if { (ac_try="$ac_link"
4836 case "(($ac_try" in
4837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838   *) ac_try_echo=$ac_try;;
4839 esac
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841   (eval "$ac_link") 2>conftest.er1
4842   ac_status=$?
4843   grep -v '^ *+' conftest.er1 >conftest.err
4844   rm -f conftest.er1
4845   cat conftest.err >&5
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); } && {
4848          test -z "$ac_c_werror_flag" ||
4849          test ! -s conftest.err
4850        } && test -s conftest$ac_exeext &&
4851        $as_test_x conftest$ac_exeext; then
4852   ac_cv_lib_ltdl_lt_dlinit=yes
4853 else
4854   echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4856
4857         ac_cv_lib_ltdl_lt_dlinit=no
4858 fi
4859
4860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4861       conftest$ac_exeext conftest.$ac_ext
4862 LIBS=$ac_check_lib_save_LIBS
4863 fi
4864 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4865 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4866 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4867   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4868 else
4869   if test x"$enable_ltdl_install" = xno; then
4870      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4871 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4872    else
4873      enable_ltdl_install=yes
4874    fi
4875
4876 fi
4877
4878   if test x"$enable_ltdl_install" = x"yes"; then
4879     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4880     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4881     LTDLINCL='-I${top_srcdir}/''libltdl'
4882   else
4883     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4884     LIBLTDL="-lltdl"
4885     LTDLINCL=
4886   fi
4887   # For backwards non-gettext consistent compatibility...
4888   INCLTDL="$LTDLINCL"
4889
4890
4891 if test x"$enable_ltdl_install" = x"yes"; then
4892   LTDL_SUBDIRS=libltdl
4893 fi
4894
4895 fi
4896
4897
4898
4899 # Check whether --enable-shared was given.
4900 if test "${enable_shared+set}" = set; then
4901   enableval=$enable_shared; p=${PACKAGE-default}
4902     case $enableval in
4903     yes) enable_shared=yes ;;
4904     no) enable_shared=no ;;
4905     *)
4906       enable_shared=no
4907       # Look at the argument we got.  We use all the common list separators.
4908       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4909       for pkg in $enableval; do
4910         IFS="$lt_save_ifs"
4911         if test "X$pkg" = "X$p"; then
4912           enable_shared=yes
4913         fi
4914       done
4915       IFS="$lt_save_ifs"
4916       ;;
4917     esac
4918 else
4919   enable_shared=yes
4920 fi
4921
4922
4923 # Check whether --enable-static was given.
4924 if test "${enable_static+set}" = set; then
4925   enableval=$enable_static; p=${PACKAGE-default}
4926     case $enableval in
4927     yes) enable_static=yes ;;
4928     no) enable_static=no ;;
4929     *)
4930      enable_static=no
4931       # Look at the argument we got.  We use all the common list separators.
4932       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4933       for pkg in $enableval; do
4934         IFS="$lt_save_ifs"
4935         if test "X$pkg" = "X$p"; then
4936           enable_static=yes
4937         fi
4938       done
4939       IFS="$lt_save_ifs"
4940       ;;
4941     esac
4942 else
4943   enable_static=yes
4944 fi
4945
4946
4947 # Check whether --enable-fast-install was given.
4948 if test "${enable_fast_install+set}" = set; then
4949   enableval=$enable_fast_install; p=${PACKAGE-default}
4950     case $enableval in
4951     yes) enable_fast_install=yes ;;
4952     no) enable_fast_install=no ;;
4953     *)
4954       enable_fast_install=no
4955       # Look at the argument we got.  We use all the common list separators.
4956       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4957       for pkg in $enableval; do
4958         IFS="$lt_save_ifs"
4959         if test "X$pkg" = "X$p"; then
4960           enable_fast_install=yes
4961         fi
4962       done
4963       IFS="$lt_save_ifs"
4964       ;;
4965     esac
4966 else
4967   enable_fast_install=yes
4968 fi
4969
4970
4971 ac_aux_dir=
4972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4973   if test -f "$ac_dir/install-sh"; then
4974     ac_aux_dir=$ac_dir
4975     ac_install_sh="$ac_aux_dir/install-sh -c"
4976     break
4977   elif test -f "$ac_dir/install.sh"; then
4978     ac_aux_dir=$ac_dir
4979     ac_install_sh="$ac_aux_dir/install.sh -c"
4980     break
4981   elif test -f "$ac_dir/shtool"; then
4982     ac_aux_dir=$ac_dir
4983     ac_install_sh="$ac_aux_dir/shtool install -c"
4984     break
4985   fi
4986 done
4987 if test -z "$ac_aux_dir"; then
4988   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4989 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4990    { (exit 1); exit 1; }; }
4991 fi
4992
4993 # These three variables are undocumented and unsupported,
4994 # and are intended to be withdrawn in a future Autoconf release.
4995 # They can cause serious problems if a builder's source tree is in a directory
4996 # whose full name contains unusual characters.
4997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4999 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5000
5001
5002 # Make sure we can run config.sub.
5003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5004   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5005 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5006    { (exit 1); exit 1; }; }
5007
5008 { echo "$as_me:$LINENO: checking build system type" >&5
5009 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5010 if test "${ac_cv_build+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   ac_build_alias=$build_alias
5014 test "x$ac_build_alias" = x &&
5015   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5016 test "x$ac_build_alias" = x &&
5017   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5018 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5019    { (exit 1); exit 1; }; }
5020 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5021   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5022 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5023    { (exit 1); exit 1; }; }
5024
5025 fi
5026 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5027 echo "${ECHO_T}$ac_cv_build" >&6; }
5028 case $ac_cv_build in
5029 *-*-*) ;;
5030 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5031 echo "$as_me: error: invalid value of canonical build" >&2;}
5032    { (exit 1); exit 1; }; };;
5033 esac
5034 build=$ac_cv_build
5035 ac_save_IFS=$IFS; IFS='-'
5036 set x $ac_cv_build
5037 shift
5038 build_cpu=$1
5039 build_vendor=$2
5040 shift; shift
5041 # Remember, the first character of IFS is used to create $*,
5042 # except with old shells:
5043 build_os=$*
5044 IFS=$ac_save_IFS
5045 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5046
5047
5048 { echo "$as_me:$LINENO: checking host system type" >&5
5049 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5050 if test "${ac_cv_host+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   if test "x$host_alias" = x; then
5054   ac_cv_host=$ac_cv_build
5055 else
5056   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5057     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5058 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5059    { (exit 1); exit 1; }; }
5060 fi
5061
5062 fi
5063 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5064 echo "${ECHO_T}$ac_cv_host" >&6; }
5065 case $ac_cv_host in
5066 *-*-*) ;;
5067 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5068 echo "$as_me: error: invalid value of canonical host" >&2;}
5069    { (exit 1); exit 1; }; };;
5070 esac
5071 host=$ac_cv_host
5072 ac_save_IFS=$IFS; IFS='-'
5073 set x $ac_cv_host
5074 shift
5075 host_cpu=$1
5076 host_vendor=$2
5077 shift; shift
5078 # Remember, the first character of IFS is used to create $*,
5079 # except with old shells:
5080 host_os=$*
5081 IFS=$ac_save_IFS
5082 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5083
5084
5085 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5086 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5087 if test "${lt_cv_path_SED+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   # Loop through the user's path and test for sed and gsed.
5091 # Then use that list of sed's as ones to test for truncation.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097   for lt_ac_prog in sed gsed; do
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5100         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5101       fi
5102     done
5103   done
5104 done
5105 IFS=$as_save_IFS
5106 lt_ac_max=0
5107 lt_ac_count=0
5108 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5109 # along with /bin/sed that truncates output.
5110 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5111   test ! -f $lt_ac_sed && continue
5112   cat /dev/null > conftest.in
5113   lt_ac_count=0
5114   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5115   # Check for GNU sed and select it if it is found.
5116   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5117     lt_cv_path_SED=$lt_ac_sed
5118     break
5119   fi
5120   while true; do
5121     cat conftest.in conftest.in >conftest.tmp
5122     mv conftest.tmp conftest.in
5123     cp conftest.in conftest.nl
5124     echo >>conftest.nl
5125     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5126     cmp -s conftest.out conftest.nl || break
5127     # 10000 chars as input seems more than enough
5128     test $lt_ac_count -gt 10 && break
5129     lt_ac_count=`expr $lt_ac_count + 1`
5130     if test $lt_ac_count -gt $lt_ac_max; then
5131       lt_ac_max=$lt_ac_count
5132       lt_cv_path_SED=$lt_ac_sed
5133     fi
5134   done
5135 done
5136
5137 fi
5138
5139 SED=$lt_cv_path_SED
5140
5141 { echo "$as_me:$LINENO: result: $SED" >&5
5142 echo "${ECHO_T}$SED" >&6; }
5143
5144
5145 # Check whether --with-gnu-ld was given.
5146 if test "${with_gnu_ld+set}" = set; then
5147   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5148 else
5149   with_gnu_ld=no
5150 fi
5151
5152 ac_prog=ld
5153 if test "$GCC" = yes; then
5154   # Check if gcc -print-prog-name=ld gives a path.
5155   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5156 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5157   case $host in
5158   *-*-mingw*)
5159     # gcc leaves a trailing carriage return which upsets mingw
5160     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5161   *)
5162     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5163   esac
5164   case $ac_prog in
5165     # Accept absolute paths.
5166     [\\/]* | ?:[\\/]*)
5167       re_direlt='/[^/][^/]*/\.\./'
5168       # Canonicalize the pathname of ld
5169       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5170       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5171         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5172       done
5173       test -z "$LD" && LD="$ac_prog"
5174       ;;
5175   "")
5176     # If it fails, then pretend we aren't using GCC.
5177     ac_prog=ld
5178     ;;
5179   *)
5180     # If it is relative, then search for the first ld in PATH.
5181     with_gnu_ld=unknown
5182     ;;
5183   esac
5184 elif test "$with_gnu_ld" = yes; then
5185   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5186 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5187 else
5188   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5189 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5190 fi
5191 if test "${lt_cv_path_LD+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   if test -z "$LD"; then
5195   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5196   for ac_dir in $PATH; do
5197     IFS="$lt_save_ifs"
5198     test -z "$ac_dir" && ac_dir=.
5199     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5200       lt_cv_path_LD="$ac_dir/$ac_prog"
5201       # Check to see if the program is GNU ld.  I'd rather use --version,
5202       # but apparently some variants of GNU ld only accept -v.
5203       # Break only if it was the GNU/non-GNU ld that we prefer.
5204       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5205       *GNU* | *'with BFD'*)
5206         test "$with_gnu_ld" != no && break
5207         ;;
5208       *)
5209         test "$with_gnu_ld" != yes && break
5210         ;;
5211       esac
5212     fi
5213   done
5214   IFS="$lt_save_ifs"
5215 else
5216   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5217 fi
5218 fi
5219
5220 LD="$lt_cv_path_LD"
5221 if test -n "$LD"; then
5222   { echo "$as_me:$LINENO: result: $LD" >&5
5223 echo "${ECHO_T}$LD" >&6; }
5224 else
5225   { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5227 fi
5228 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5229 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5230    { (exit 1); exit 1; }; }
5231 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5232 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5233 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5237 case `$LD -v 2>&1 </dev/null` in
5238 *GNU* | *'with BFD'*)
5239   lt_cv_prog_gnu_ld=yes
5240   ;;
5241 *)
5242   lt_cv_prog_gnu_ld=no
5243   ;;
5244 esac
5245 fi
5246 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5247 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5248 with_gnu_ld=$lt_cv_prog_gnu_ld
5249
5250
5251 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5252 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5253 if test "${lt_cv_ld_reload_flag+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   lt_cv_ld_reload_flag='-r'
5257 fi
5258 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5259 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5260 reload_flag=$lt_cv_ld_reload_flag
5261 case $reload_flag in
5262 "" | " "*) ;;
5263 *) reload_flag=" $reload_flag" ;;
5264 esac
5265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5266 case $host_os in
5267   darwin*)
5268     if test "$GCC" = yes; then
5269       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5270     else
5271       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272     fi
5273     ;;
5274 esac
5275
5276 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5277 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5278 if test "${lt_cv_path_NM+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   if test -n "$NM"; then
5282   # Let the user override the test.
5283   lt_cv_path_NM="$NM"
5284 else
5285   lt_nm_to_check="${ac_tool_prefix}nm"
5286   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5287     lt_nm_to_check="$lt_nm_to_check nm"
5288   fi
5289   for lt_tmp_nm in $lt_nm_to_check; do
5290     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5291     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5292       IFS="$lt_save_ifs"
5293       test -z "$ac_dir" && ac_dir=.
5294       tmp_nm="$ac_dir/$lt_tmp_nm"
5295       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5296         # Check to see if the nm accepts a BSD-compat flag.
5297         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5298         #   nm: unknown option "B" ignored
5299         # Tru64's nm complains that /dev/null is an invalid object file
5300         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5301         */dev/null* | *'Invalid file or object type'*)
5302           lt_cv_path_NM="$tmp_nm -B"
5303           break
5304           ;;
5305         *)
5306           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5307           */dev/null*)
5308             lt_cv_path_NM="$tmp_nm -p"
5309             break
5310             ;;
5311           *)
5312             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5313             continue # so that we can try to find one that supports BSD flags
5314             ;;
5315           esac
5316           ;;
5317         esac
5318       fi
5319     done
5320     IFS="$lt_save_ifs"
5321   done
5322   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5323 fi
5324 fi
5325 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5326 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5327 NM="$lt_cv_path_NM"
5328
5329 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5330 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5331 LN_S=$as_ln_s
5332 if test "$LN_S" = "ln -s"; then
5333   { echo "$as_me:$LINENO: result: yes" >&5
5334 echo "${ECHO_T}yes" >&6; }
5335 else
5336   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5337 echo "${ECHO_T}no, using $LN_S" >&6; }
5338 fi
5339
5340 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5341 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5342 if test "${lt_cv_deplibs_check_method+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   lt_cv_file_magic_cmd='$MAGIC_CMD'
5346 lt_cv_file_magic_test_file=
5347 lt_cv_deplibs_check_method='unknown'
5348 # Need to set the preceding variable on all platforms that support
5349 # interlibrary dependencies.
5350 # 'none' -- dependencies not supported.
5351 # `unknown' -- same as none, but documents that we really don't know.
5352 # 'pass_all' -- all dependencies passed with no checks.
5353 # 'test_compile' -- check by making test program.
5354 # 'file_magic [[regex]]' -- check by looking for files in library path
5355 # which responds to the $file_magic_cmd with a given extended regex.
5356 # If you have `file' or equivalent on your system and you're not sure
5357 # whether `pass_all' will *always* work, you probably want this one.
5358
5359 case $host_os in
5360 aix[4-9]*)
5361   lt_cv_deplibs_check_method=pass_all
5362   ;;
5363
5364 beos*)
5365   lt_cv_deplibs_check_method=pass_all
5366   ;;
5367
5368 bsdi[45]*)
5369   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5370   lt_cv_file_magic_cmd='/usr/bin/file -L'
5371   lt_cv_file_magic_test_file=/shlib/libc.so
5372   ;;
5373
5374 cygwin*)
5375   # func_win32_libid is a shell function defined in ltmain.sh
5376   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5377   lt_cv_file_magic_cmd='func_win32_libid'
5378   ;;
5379
5380 mingw* | pw32*)
5381   # Base MSYS/MinGW do not provide the 'file' command needed by
5382   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5383   # unless we find 'file', for example because we are cross-compiling.
5384   if ( file / ) >/dev/null 2>&1; then
5385     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5386     lt_cv_file_magic_cmd='func_win32_libid'
5387   else
5388     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5389     lt_cv_file_magic_cmd='$OBJDUMP -f'
5390   fi
5391   ;;
5392
5393 darwin* | rhapsody*)
5394   lt_cv_deplibs_check_method=pass_all
5395   ;;
5396
5397 freebsd* | dragonfly*)
5398   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5399     case $host_cpu in
5400     i*86 )
5401       # Not sure whether the presence of OpenBSD here was a mistake.
5402       # Let's accept both of them until this is cleared up.
5403       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5404       lt_cv_file_magic_cmd=/usr/bin/file
5405       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5406       ;;
5407     esac
5408   else
5409     lt_cv_deplibs_check_method=pass_all
5410   fi
5411   ;;
5412
5413 gnu*)
5414   lt_cv_deplibs_check_method=pass_all
5415   ;;
5416
5417 hpux10.20* | hpux11*)
5418   lt_cv_file_magic_cmd=/usr/bin/file
5419   case $host_cpu in
5420   ia64*)
5421     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5422     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5423     ;;
5424   hppa*64*)
5425     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]'
5426     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5427     ;;
5428   *)
5429     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5430     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5431     ;;
5432   esac
5433   ;;
5434
5435 interix[3-9]*)
5436   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5437   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5438   ;;
5439
5440 irix5* | irix6* | nonstopux*)
5441   case $LD in
5442   *-32|*"-32 ") libmagic=32-bit;;
5443   *-n32|*"-n32 ") libmagic=N32;;
5444   *-64|*"-64 ") libmagic=64-bit;;
5445   *) libmagic=never-match;;
5446   esac
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 # This must be Linux ELF.
5451 linux* | k*bsd*-gnu)
5452   lt_cv_deplibs_check_method=pass_all
5453   ;;
5454
5455 netbsd* | netbsdelf*-gnu)
5456   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5457     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5458   else
5459     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5460   fi
5461   ;;
5462
5463 newos6*)
5464   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5465   lt_cv_file_magic_cmd=/usr/bin/file
5466   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5467   ;;
5468
5469 nto-qnx*)
5470   lt_cv_deplibs_check_method=unknown
5471   ;;
5472
5473 openbsd*)
5474   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5475     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5476   else
5477     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5478   fi
5479   ;;
5480
5481 osf3* | osf4* | osf5*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 rdos*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 solaris*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492
5493 sysv4 | sysv4.3*)
5494   case $host_vendor in
5495   motorola)
5496     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]'
5497     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5498     ;;
5499   ncr)
5500     lt_cv_deplibs_check_method=pass_all
5501     ;;
5502   sequent)
5503     lt_cv_file_magic_cmd='/bin/file'
5504     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5505     ;;
5506   sni)
5507     lt_cv_file_magic_cmd='/bin/file'
5508     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5509     lt_cv_file_magic_test_file=/lib/libc.so
5510     ;;
5511   siemens)
5512     lt_cv_deplibs_check_method=pass_all
5513     ;;
5514   pc)
5515     lt_cv_deplibs_check_method=pass_all
5516     ;;
5517   esac
5518   ;;
5519
5520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5521   lt_cv_deplibs_check_method=pass_all
5522   ;;
5523 esac
5524
5525 fi
5526 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5527 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5528 file_magic_cmd=$lt_cv_file_magic_cmd
5529 deplibs_check_method=$lt_cv_deplibs_check_method
5530 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5531
5532
5533
5534
5535 # If no C compiler was specified, use CC.
5536 LTCC=${LTCC-"$CC"}
5537
5538 # If no C compiler flags were specified, use CFLAGS.
5539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5540
5541 # Allow CC to be a program name with arguments.
5542 compiler=$CC
5543
5544 # Check whether --enable-libtool-lock was given.
5545 if test "${enable_libtool_lock+set}" = set; then
5546   enableval=$enable_libtool_lock;
5547 fi
5548
5549 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5550
5551 # Some flags need to be propagated to the compiler or linker for good
5552 # libtool support.
5553 case $host in
5554 ia64-*-hpux*)
5555   # Find out which ABI we are using.
5556   echo 'int i;' > conftest.$ac_ext
5557   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558   (eval $ac_compile) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; then
5562     case `/usr/bin/file conftest.$ac_objext` in
5563     *ELF-32*)
5564       HPUX_IA64_MODE="32"
5565       ;;
5566     *ELF-64*)
5567       HPUX_IA64_MODE="64"
5568       ;;
5569     esac
5570   fi
5571   rm -rf conftest*
5572   ;;
5573 *-*-irix6*)
5574   # Find out which ABI we are using.
5575   echo '#line 5576 "configure"' > conftest.$ac_ext
5576   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577   (eval $ac_compile) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; then
5581    if test "$lt_cv_prog_gnu_ld" = yes; then
5582     case `/usr/bin/file conftest.$ac_objext` in
5583     *32-bit*)
5584       LD="${LD-ld} -melf32bsmip"
5585       ;;
5586     *N32*)
5587       LD="${LD-ld} -melf32bmipn32"
5588       ;;
5589     *64-bit*)
5590       LD="${LD-ld} -melf64bmip"
5591       ;;
5592     esac
5593    else
5594     case `/usr/bin/file conftest.$ac_objext` in
5595     *32-bit*)
5596       LD="${LD-ld} -32"
5597       ;;
5598     *N32*)
5599       LD="${LD-ld} -n32"
5600       ;;
5601     *64-bit*)
5602       LD="${LD-ld} -64"
5603       ;;
5604     esac
5605    fi
5606   fi
5607   rm -rf conftest*
5608   ;;
5609
5610 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5611 s390*-*linux*|sparc*-*linux*)
5612   # Find out which ABI we are using.
5613   echo 'int i;' > conftest.$ac_ext
5614   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615   (eval $ac_compile) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; then
5619     case `/usr/bin/file conftest.o` in
5620     *32-bit*)
5621       case $host in
5622         x86_64-*kfreebsd*-gnu)
5623           LD="${LD-ld} -m elf_i386_fbsd"
5624           ;;
5625         x86_64-*linux*)
5626           LD="${LD-ld} -m elf_i386"
5627           ;;
5628         ppc64-*linux*|powerpc64-*linux*)
5629           LD="${LD-ld} -m elf32ppclinux"
5630           ;;
5631         s390x-*linux*)
5632           LD="${LD-ld} -m elf_s390"
5633           ;;
5634         sparc64-*linux*)
5635           LD="${LD-ld} -m elf32_sparc"
5636           ;;
5637       esac
5638       ;;
5639     *64-bit*)
5640       case $host in
5641         x86_64-*kfreebsd*-gnu)
5642           LD="${LD-ld} -m elf_x86_64_fbsd"
5643           ;;
5644         x86_64-*linux*)
5645           LD="${LD-ld} -m elf_x86_64"
5646           ;;
5647         ppc*-*linux*|powerpc*-*linux*)
5648           LD="${LD-ld} -m elf64ppc"
5649           ;;
5650         s390*-*linux*)
5651           LD="${LD-ld} -m elf64_s390"
5652           ;;
5653         sparc*-*linux*)
5654           LD="${LD-ld} -m elf64_sparc"
5655           ;;
5656       esac
5657       ;;
5658     esac
5659   fi
5660   rm -rf conftest*
5661   ;;
5662
5663 *-*-sco3.2v5*)
5664   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5665   SAVE_CFLAGS="$CFLAGS"
5666   CFLAGS="$CFLAGS -belf"
5667   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5668 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5669 if test "${lt_cv_cc_needs_belf+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   ac_ext=c
5673 ac_cpp='$CPP $CPPFLAGS'
5674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677
5678      cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h.  */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h.  */
5684
5685 int
5686 main ()
5687 {
5688
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 rm -f conftest.$ac_objext conftest$ac_exeext
5694 if { (ac_try="$ac_link"
5695 case "(($ac_try" in
5696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697   *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700   (eval "$ac_link") 2>conftest.er1
5701   ac_status=$?
5702   grep -v '^ *+' conftest.er1 >conftest.err
5703   rm -f conftest.er1
5704   cat conftest.err >&5
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); } && {
5707          test -z "$ac_c_werror_flag" ||
5708          test ! -s conftest.err
5709        } && test -s conftest$ac_exeext &&
5710        $as_test_x conftest$ac_exeext; then
5711   lt_cv_cc_needs_belf=yes
5712 else
5713   echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716         lt_cv_cc_needs_belf=no
5717 fi
5718
5719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5720       conftest$ac_exeext conftest.$ac_ext
5721      ac_ext=c
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726
5727 fi
5728 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5729 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5730   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5731     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5732     CFLAGS="$SAVE_CFLAGS"
5733   fi
5734   ;;
5735 sparc*-*solaris*)
5736   # Find out which ABI we are using.
5737   echo 'int i;' > conftest.$ac_ext
5738   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739   (eval $ac_compile) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; then
5743     case `/usr/bin/file conftest.o` in
5744     *64-bit*)
5745       case $lt_cv_prog_gnu_ld in
5746       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5747       *)
5748         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5749           LD="${LD-ld} -64"
5750         fi
5751         ;;
5752       esac
5753       ;;
5754     esac
5755   fi
5756   rm -rf conftest*
5757   ;;
5758
5759
5760 esac
5761
5762 need_locks="$enable_libtool_lock"
5763
5764
5765
5766 for ac_header in dlfcn.h
5767 do
5768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5770   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 fi
5775 ac_res=`eval echo '${'$as_ac_Header'}'`
5776                { echo "$as_me:$LINENO: result: $ac_res" >&5
5777 echo "${ECHO_T}$ac_res" >&6; }
5778 else
5779   # Is the header compilable?
5780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 $ac_includes_default
5789 #include <$ac_header>
5790 _ACEOF
5791 rm -f conftest.$ac_objext
5792 if { (ac_try="$ac_compile"
5793 case "(($ac_try" in
5794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795   *) ac_try_echo=$ac_try;;
5796 esac
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798   (eval "$ac_compile") 2>conftest.er1
5799   ac_status=$?
5800   grep -v '^ *+' conftest.er1 >conftest.err
5801   rm -f conftest.er1
5802   cat conftest.err >&5
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } && {
5805          test -z "$ac_c_werror_flag" ||
5806          test ! -s conftest.err
5807        } && test -s conftest.$ac_objext; then
5808   ac_header_compiler=yes
5809 else
5810   echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5812
5813         ac_header_compiler=no
5814 fi
5815
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5818 echo "${ECHO_T}$ac_header_compiler" >&6; }
5819
5820 # Is the header present?
5821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 #include <$ac_header>
5830 _ACEOF
5831 if { (ac_try="$ac_cpp conftest.$ac_ext"
5832 case "(($ac_try" in
5833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834   *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5838   ac_status=$?
5839   grep -v '^ *+' conftest.er1 >conftest.err
5840   rm -f conftest.er1
5841   cat conftest.err >&5
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } >/dev/null && {
5844          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5845          test ! -s conftest.err
5846        }; then
5847   ac_header_preproc=yes
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852   ac_header_preproc=no
5853 fi
5854
5855 rm -f conftest.err conftest.$ac_ext
5856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5857 echo "${ECHO_T}$ac_header_preproc" >&6; }
5858
5859 # So?  What about this header?
5860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5861   yes:no: )
5862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5866     ac_header_preproc=yes
5867     ;;
5868   no:yes:* )
5869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5881
5882     ;;
5883 esac
5884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   eval "$as_ac_Header=\$ac_header_preproc"
5890 fi
5891 ac_res=`eval echo '${'$as_ac_Header'}'`
5892                { echo "$as_me:$LINENO: result: $ac_res" >&5
5893 echo "${ECHO_T}$ac_res" >&6; }
5894
5895 fi
5896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5897   cat >>confdefs.h <<_ACEOF
5898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5899 _ACEOF
5900
5901 fi
5902
5903 done
5904
5905
5906
5907 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5908     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5909     (test "X$CXX" != "Xg++"))) ; then
5910   ac_ext=cpp
5911 ac_cpp='$CXXCPP $CPPFLAGS'
5912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5915 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5916 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5917 if test -z "$CXXCPP"; then
5918   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921       # Double quotes because CXXCPP needs to be expanded
5922     for CXXCPP in "$CXX -E" "/lib/cpp"
5923     do
5924       ac_preproc_ok=false
5925 for ac_cxx_preproc_warn_flag in '' yes
5926 do
5927   # Use a header file that comes with gcc, so configuring glibc
5928   # with a fresh cross-compiler works.
5929   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930   # <limits.h> exists even on freestanding compilers.
5931   # On the NeXT, cc -E runs the code through the compiler's parser,
5932   # not just through cpp. "Syntax error" is here to catch this case.
5933   cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939 #ifdef __STDC__
5940 # include <limits.h>
5941 #else
5942 # include <assert.h>
5943 #endif
5944                      Syntax error
5945 _ACEOF
5946 if { (ac_try="$ac_cpp conftest.$ac_ext"
5947 case "(($ac_try" in
5948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949   *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } >/dev/null && {
5959          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5960          test ! -s conftest.err
5961        }; then
5962   :
5963 else
5964   echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967   # Broken: fails on valid input.
5968 continue
5969 fi
5970
5971 rm -f conftest.err conftest.$ac_ext
5972
5973   # OK, works on sane cases.  Now check whether nonexistent headers
5974   # can be detected and how.
5975   cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981 #include <ac_nonexistent.h>
5982 _ACEOF
5983 if { (ac_try="$ac_cpp conftest.$ac_ext"
5984 case "(($ac_try" in
5985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986   *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } >/dev/null && {
5996          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5997          test ! -s conftest.err
5998        }; then
5999   # Broken: success on invalid input.
6000 continue
6001 else
6002   echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005   # Passes both tests.
6006 ac_preproc_ok=:
6007 break
6008 fi
6009
6010 rm -f conftest.err conftest.$ac_ext
6011
6012 done
6013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6014 rm -f conftest.err conftest.$ac_ext
6015 if $ac_preproc_ok; then
6016   break
6017 fi
6018
6019     done
6020     ac_cv_prog_CXXCPP=$CXXCPP
6021
6022 fi
6023   CXXCPP=$ac_cv_prog_CXXCPP
6024 else
6025   ac_cv_prog_CXXCPP=$CXXCPP
6026 fi
6027 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6028 echo "${ECHO_T}$CXXCPP" >&6; }
6029 ac_preproc_ok=false
6030 for ac_cxx_preproc_warn_flag in '' yes
6031 do
6032   # Use a header file that comes with gcc, so configuring glibc
6033   # with a fresh cross-compiler works.
6034   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035   # <limits.h> exists even on freestanding compilers.
6036   # On the NeXT, cc -E runs the code through the compiler's parser,
6037   # not just through cpp. "Syntax error" is here to catch this case.
6038   cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044 #ifdef __STDC__
6045 # include <limits.h>
6046 #else
6047 # include <assert.h>
6048 #endif
6049                      Syntax error
6050 _ACEOF
6051 if { (ac_try="$ac_cpp conftest.$ac_ext"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } >/dev/null && {
6064          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6065          test ! -s conftest.err
6066        }; then
6067   :
6068 else
6069   echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072   # Broken: fails on valid input.
6073 continue
6074 fi
6075
6076 rm -f conftest.err conftest.$ac_ext
6077
6078   # OK, works on sane cases.  Now check whether nonexistent headers
6079   # can be detected and how.
6080   cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h.  */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h.  */
6086 #include <ac_nonexistent.h>
6087 _ACEOF
6088 if { (ac_try="$ac_cpp conftest.$ac_ext"
6089 case "(($ac_try" in
6090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091   *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6095   ac_status=$?
6096   grep -v '^ *+' conftest.er1 >conftest.err
6097   rm -f conftest.er1
6098   cat conftest.err >&5
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } >/dev/null && {
6101          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6102          test ! -s conftest.err
6103        }; then
6104   # Broken: success on invalid input.
6105 continue
6106 else
6107   echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110   # Passes both tests.
6111 ac_preproc_ok=:
6112 break
6113 fi
6114
6115 rm -f conftest.err conftest.$ac_ext
6116
6117 done
6118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6119 rm -f conftest.err conftest.$ac_ext
6120 if $ac_preproc_ok; then
6121   :
6122 else
6123   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6124 See \`config.log' for more details." >&5
6125 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6126 See \`config.log' for more details." >&2;}
6127    { (exit 1); exit 1; }; }
6128 fi
6129
6130 ac_ext=cpp
6131 ac_cpp='$CXXCPP $CPPFLAGS'
6132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6135
6136 fi
6137
6138
6139 ac_ext=f
6140 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6141 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6143 if test -n "$ac_tool_prefix"; then
6144   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
6145   do
6146     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_prog_F77+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   if test -n "$F77"; then
6154   ac_cv_prog_F77="$F77" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 F77=$ac_cv_prog_F77
6174 if test -n "$F77"; then
6175   { echo "$as_me:$LINENO: result: $F77" >&5
6176 echo "${ECHO_T}$F77" >&6; }
6177 else
6178   { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6180 fi
6181
6182
6183     test -n "$F77" && break
6184   done
6185 fi
6186 if test -z "$F77"; then
6187   ac_ct_F77=$F77
6188   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
6189 do
6190   # Extract the first word of "$ac_prog", so it can be a program name with args.
6191 set dummy $ac_prog; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if test -n "$ac_ct_F77"; then
6198   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205   for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_prog_ac_ct_F77="$ac_prog"
6208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6218 if test -n "$ac_ct_F77"; then
6219   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6220 echo "${ECHO_T}$ac_ct_F77" >&6; }
6221 else
6222   { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 fi
6225
6226
6227   test -n "$ac_ct_F77" && break
6228 done
6229
6230   if test "x$ac_ct_F77" = x; then
6231     F77=""
6232   else
6233     case $cross_compiling:$ac_tool_warned in
6234 yes:)
6235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6236 whose name does not start with the host triplet.  If you think this
6237 configuration is useful to you, please write to autoconf@gnu.org." >&5
6238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6239 whose name does not start with the host triplet.  If you think this
6240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243     F77=$ac_ct_F77
6244   fi
6245 fi
6246
6247
6248 # Provide some information about the compiler.
6249 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6250 ac_compiler=`set X $ac_compile; echo $2`
6251 { (ac_try="$ac_compiler --version >&5"
6252 case "(($ac_try" in
6253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254   *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257   (eval "$ac_compiler --version >&5") 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }
6261 { (ac_try="$ac_compiler -v >&5"
6262 case "(($ac_try" in
6263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264   *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267   (eval "$ac_compiler -v >&5") 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }
6271 { (ac_try="$ac_compiler -V >&5"
6272 case "(($ac_try" in
6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274   *) ac_try_echo=$ac_try;;
6275 esac
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277   (eval "$ac_compiler -V >&5") 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }
6281 rm -f a.out
6282
6283 # If we don't use `.F' as extension, the preprocessor is not run on the
6284 # input file.  (Note that this only needs to work for GNU compilers.)
6285 ac_save_ext=$ac_ext
6286 ac_ext=F
6287 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6288 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6289 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   cat >conftest.$ac_ext <<_ACEOF
6293       program main
6294 #ifndef __GNUC__
6295        choke me
6296 #endif
6297
6298       end
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (ac_try="$ac_compile"
6302 case "(($ac_try" in
6303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304   *) ac_try_echo=$ac_try;;
6305 esac
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307   (eval "$ac_compile") 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } && {
6314          test -z "$ac_f77_werror_flag" ||
6315          test ! -s conftest.err
6316        } && test -s conftest.$ac_objext; then
6317   ac_compiler_gnu=yes
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322         ac_compiler_gnu=no
6323 fi
6324
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6327
6328 fi
6329 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6330 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6331 ac_ext=$ac_save_ext
6332 ac_test_FFLAGS=${FFLAGS+set}
6333 ac_save_FFLAGS=$FFLAGS
6334 FFLAGS=
6335 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6336 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6337 if test "${ac_cv_prog_f77_g+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   FFLAGS=-g
6341 cat >conftest.$ac_ext <<_ACEOF
6342       program main
6343
6344       end
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (ac_try="$ac_compile"
6348 case "(($ac_try" in
6349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350   *) ac_try_echo=$ac_try;;
6351 esac
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353   (eval "$ac_compile") 2>conftest.er1
6354   ac_status=$?
6355   grep -v '^ *+' conftest.er1 >conftest.err
6356   rm -f conftest.er1
6357   cat conftest.err >&5
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); } && {
6360          test -z "$ac_f77_werror_flag" ||
6361          test ! -s conftest.err
6362        } && test -s conftest.$ac_objext; then
6363   ac_cv_prog_f77_g=yes
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368         ac_cv_prog_f77_g=no
6369 fi
6370
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372
6373 fi
6374 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6375 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6376 if test "$ac_test_FFLAGS" = set; then
6377   FFLAGS=$ac_save_FFLAGS
6378 elif test $ac_cv_prog_f77_g = yes; then
6379   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6380     FFLAGS="-g -O2"
6381   else
6382     FFLAGS="-g"
6383   fi
6384 else
6385   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6386     FFLAGS="-O2"
6387   else
6388     FFLAGS=
6389   fi
6390 fi
6391
6392 G77=`test $ac_compiler_gnu = yes && echo yes`
6393 ac_ext=c
6394 ac_cpp='$CPP $CPPFLAGS'
6395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6398
6399
6400
6401 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6402 # find the maximum length of command line arguments
6403 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6404 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6405 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408     i=0
6409   teststring="ABCD"
6410
6411   case $build_os in
6412   msdosdjgpp*)
6413     # On DJGPP, this test can blow up pretty badly due to problems in libc
6414     # (any single argument exceeding 2000 bytes causes a buffer overrun
6415     # during glob expansion).  Even if it were fixed, the result of this
6416     # check would be larger than it should be.
6417     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6418     ;;
6419
6420   gnu*)
6421     # Under GNU Hurd, this test is not required because there is
6422     # no limit to the length of command line arguments.
6423     # Libtool will interpret -1 as no limit whatsoever
6424     lt_cv_sys_max_cmd_len=-1;
6425     ;;
6426
6427   cygwin* | mingw*)
6428     # On Win9x/ME, this test blows up -- it succeeds, but takes
6429     # about 5 minutes as the teststring grows exponentially.
6430     # Worse, since 9x/ME are not pre-emptively multitasking,
6431     # you end up with a "frozen" computer, even though with patience
6432     # the test eventually succeeds (with a max line length of 256k).
6433     # Instead, let's just punt: use the minimum linelength reported by
6434     # all of the supported platforms: 8192 (on NT/2K/XP).
6435     lt_cv_sys_max_cmd_len=8192;
6436     ;;
6437
6438   amigaos*)
6439     # On AmigaOS with pdksh, this test takes hours, literally.
6440     # So we just punt and use a minimum line length of 8192.
6441     lt_cv_sys_max_cmd_len=8192;
6442     ;;
6443
6444   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6445     # This has been around since 386BSD, at least.  Likely further.
6446     if test -x /sbin/sysctl; then
6447       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6448     elif test -x /usr/sbin/sysctl; then
6449       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6450     else
6451       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6452     fi
6453     # And add a safety zone
6454     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6455     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6456     ;;
6457
6458   interix*)
6459     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6460     lt_cv_sys_max_cmd_len=196608
6461     ;;
6462
6463   osf*)
6464     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6465     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6466     # nice to cause kernel panics so lets avoid the loop below.
6467     # First set a reasonable default.
6468     lt_cv_sys_max_cmd_len=16384
6469     #
6470     if test -x /sbin/sysconfig; then
6471       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6472         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6473       esac
6474     fi
6475     ;;
6476   sco3.2v5*)
6477     lt_cv_sys_max_cmd_len=102400
6478     ;;
6479   sysv5* | sco5v6* | sysv4.2uw2*)
6480     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6481     if test -n "$kargmax"; then
6482       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6483     else
6484       lt_cv_sys_max_cmd_len=32768
6485     fi
6486     ;;
6487   *)
6488     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6489     if test -n "$lt_cv_sys_max_cmd_len"; then
6490       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6491       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6492     else
6493       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6494       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6495                = "XX$teststring") >/dev/null 2>&1 &&
6496               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6497               lt_cv_sys_max_cmd_len=$new_result &&
6498               test $i != 17 # 1/2 MB should be enough
6499       do
6500         i=`expr $i + 1`
6501         teststring=$teststring$teststring
6502       done
6503       teststring=
6504       # Add a significant safety factor because C++ compilers can tack on massive
6505       # amounts of additional arguments before passing them to the linker.
6506       # It appears as though 1/2 is a usable value.
6507       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6508     fi
6509     ;;
6510   esac
6511
6512 fi
6513
6514 if test -n $lt_cv_sys_max_cmd_len ; then
6515   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6516 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6517 else
6518   { echo "$as_me:$LINENO: result: none" >&5
6519 echo "${ECHO_T}none" >&6; }
6520 fi
6521
6522
6523
6524
6525
6526 # Check for command to grab the raw symbol name followed by C symbol from nm.
6527 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6528 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6529 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532
6533 # These are sane defaults that work on at least a few old systems.
6534 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6535
6536 # Character class describing NM global symbol codes.
6537 symcode='[BCDEGRST]'
6538
6539 # Regexp to match symbols that can be accessed directly from C.
6540 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6541
6542 # Transform an extracted symbol line into a proper C declaration
6543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6544
6545 # Transform an extracted symbol line into symbol name and symbol address
6546 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'"
6547
6548 # Define system-specific variables.
6549 case $host_os in
6550 aix*)
6551   symcode='[BCDT]'
6552   ;;
6553 cygwin* | mingw* | pw32*)
6554   symcode='[ABCDGISTW]'
6555   ;;
6556 hpux*) # Its linker distinguishes data from code symbols
6557   if test "$host_cpu" = ia64; then
6558     symcode='[ABCDEGRST]'
6559   fi
6560   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6561   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'"
6562   ;;
6563 linux* | k*bsd*-gnu)
6564   if test "$host_cpu" = ia64; then
6565     symcode='[ABCDGIRSTW]'
6566     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6567     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'"
6568   fi
6569   ;;
6570 irix* | nonstopux*)
6571   symcode='[BCDEGRST]'
6572   ;;
6573 osf*)
6574   symcode='[BCDEGQRST]'
6575   ;;
6576 solaris*)
6577   symcode='[BDRT]'
6578   ;;
6579 sco3.2v5*)
6580   symcode='[DT]'
6581   ;;
6582 sysv4.2uw2*)
6583   symcode='[DT]'
6584   ;;
6585 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6586   symcode='[ABDT]'
6587   ;;
6588 sysv4)
6589   symcode='[DFNSTU]'
6590   ;;
6591 esac
6592
6593 # Handle CRLF in mingw tool chain
6594 opt_cr=
6595 case $build_os in
6596 mingw*)
6597   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6598   ;;
6599 esac
6600
6601 # If we're using GNU nm, then use its standard symbol codes.
6602 case `$NM -V 2>&1` in
6603 *GNU* | *'with BFD'*)
6604   symcode='[ABCDGIRSTW]' ;;
6605 esac
6606
6607 # Try without a prefix undercore, then with it.
6608 for ac_symprfx in "" "_"; do
6609
6610   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6611   symxfrm="\\1 $ac_symprfx\\2 \\2"
6612
6613   # Write the raw and C identifiers.
6614   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6615
6616   # Check to see that the pipe works correctly.
6617   pipe_works=no
6618
6619   rm -f conftest*
6620   cat > conftest.$ac_ext <<EOF
6621 #ifdef __cplusplus
6622 extern "C" {
6623 #endif
6624 char nm_test_var;
6625 void nm_test_func(){}
6626 #ifdef __cplusplus
6627 }
6628 #endif
6629 int main(){nm_test_var='a';nm_test_func();return(0);}
6630 EOF
6631
6632   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633   (eval $ac_compile) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); }; then
6637     # Now try to grab the symbols.
6638     nlist=conftest.nm
6639     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6640   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } && test -s "$nlist"; then
6644       # Try sorting and uniquifying the output.
6645       if sort "$nlist" | uniq > "$nlist"T; then
6646         mv -f "$nlist"T "$nlist"
6647       else
6648         rm -f "$nlist"T
6649       fi
6650
6651       # Make sure that we snagged all the symbols we need.
6652       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6653         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6654           cat <<EOF > conftest.$ac_ext
6655 #ifdef __cplusplus
6656 extern "C" {
6657 #endif
6658
6659 EOF
6660           # Now generate the symbol file.
6661           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6662
6663           cat <<EOF >> conftest.$ac_ext
6664 #if defined (__STDC__) && __STDC__
6665 # define lt_ptr_t void *
6666 #else
6667 # define lt_ptr_t char *
6668 # define const
6669 #endif
6670
6671 /* The mapping between symbol names and symbols. */
6672 const struct {
6673   const char *name;
6674   lt_ptr_t address;
6675 }
6676 lt_preloaded_symbols[] =
6677 {
6678 EOF
6679           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6680           cat <<\EOF >> conftest.$ac_ext
6681   {0, (lt_ptr_t) 0}
6682 };
6683
6684 #ifdef __cplusplus
6685 }
6686 #endif
6687 EOF
6688           # Now try linking the two files.
6689           mv conftest.$ac_objext conftstm.$ac_objext
6690           lt_save_LIBS="$LIBS"
6691           lt_save_CFLAGS="$CFLAGS"
6692           LIBS="conftstm.$ac_objext"
6693           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6694           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695   (eval $ac_link) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6699             pipe_works=yes
6700           fi
6701           LIBS="$lt_save_LIBS"
6702           CFLAGS="$lt_save_CFLAGS"
6703         else
6704           echo "cannot find nm_test_func in $nlist" >&5
6705         fi
6706       else
6707         echo "cannot find nm_test_var in $nlist" >&5
6708       fi
6709     else
6710       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6711     fi
6712   else
6713     echo "$progname: failed program was:" >&5
6714     cat conftest.$ac_ext >&5
6715   fi
6716   rm -rf conftest* conftst*
6717
6718   # Do not use the global_symbol_pipe unless it works.
6719   if test "$pipe_works" = yes; then
6720     break
6721   else
6722     lt_cv_sys_global_symbol_pipe=
6723   fi
6724 done
6725
6726 fi
6727
6728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6729   lt_cv_sys_global_symbol_to_cdecl=
6730 fi
6731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6732   { echo "$as_me:$LINENO: result: failed" >&5
6733 echo "${ECHO_T}failed" >&6; }
6734 else
6735   { echo "$as_me:$LINENO: result: ok" >&5
6736 echo "${ECHO_T}ok" >&6; }
6737 fi
6738
6739 { echo "$as_me:$LINENO: checking for objdir" >&5
6740 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6741 if test "${lt_cv_objdir+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   rm -f .libs 2>/dev/null
6745 mkdir .libs 2>/dev/null
6746 if test -d .libs; then
6747   lt_cv_objdir=.libs
6748 else
6749   # MS-DOS does not allow filenames that begin with a dot.
6750   lt_cv_objdir=_libs
6751 fi
6752 rmdir .libs 2>/dev/null
6753 fi
6754 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6755 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6756 objdir=$lt_cv_objdir
6757
6758
6759
6760
6761
6762 case $host_os in
6763 aix3*)
6764   # AIX sometimes has problems with the GCC collect2 program.  For some
6765   # reason, if we set the COLLECT_NAMES environment variable, the problems
6766   # vanish in a puff of smoke.
6767   if test "X${COLLECT_NAMES+set}" != Xset; then
6768     COLLECT_NAMES=
6769     export COLLECT_NAMES
6770   fi
6771   ;;
6772 esac
6773
6774 # Sed substitution that helps us do robust quoting.  It backslashifies
6775 # metacharacters that are still active within double-quoted strings.
6776 Xsed='sed -e 1s/^X//'
6777 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6778
6779 # Same as above, but do not quote variable references.
6780 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6781
6782 # Sed substitution to delay expansion of an escaped shell variable in a
6783 # double_quote_subst'ed string.
6784 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6785
6786 # Sed substitution to avoid accidental globbing in evaled expressions
6787 no_glob_subst='s/\*/\\\*/g'
6788
6789 # Constants:
6790 rm="rm -f"
6791
6792 # Global variables:
6793 default_ofile=libtool
6794 can_build_shared=yes
6795
6796 # All known linkers require a `.a' archive for static linking (except MSVC,
6797 # which needs '.lib').
6798 libext=a
6799 ltmain="$ac_aux_dir/ltmain.sh"
6800 ofile="$default_ofile"
6801 with_gnu_ld="$lt_cv_prog_gnu_ld"
6802
6803 if test -n "$ac_tool_prefix"; then
6804   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}ar; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_prog_AR+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   if test -n "$AR"; then
6812   ac_cv_prog_AR="$AR" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_prog_AR="${ac_tool_prefix}ar"
6822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 AR=$ac_cv_prog_AR
6832 if test -n "$AR"; then
6833   { echo "$as_me:$LINENO: result: $AR" >&5
6834 echo "${ECHO_T}$AR" >&6; }
6835 else
6836   { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6838 fi
6839
6840
6841 fi
6842 if test -z "$ac_cv_prog_AR"; then
6843   ac_ct_AR=$AR
6844   # Extract the first word of "ar", so it can be a program name with args.
6845 set dummy ar; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6849   echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851   if test -n "$ac_ct_AR"; then
6852   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_prog_ac_ct_AR="ar"
6862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6872 if test -n "$ac_ct_AR"; then
6873   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6874 echo "${ECHO_T}$ac_ct_AR" >&6; }
6875 else
6876   { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6878 fi
6879
6880   if test "x$ac_ct_AR" = x; then
6881     AR="false"
6882   else
6883     case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6886 whose name does not start with the host triplet.  If you think this
6887 configuration is useful to you, please write to autoconf@gnu.org." >&5
6888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6889 whose name does not start with the host triplet.  If you think this
6890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893     AR=$ac_ct_AR
6894   fi
6895 else
6896   AR="$ac_cv_prog_AR"
6897 fi
6898
6899 if test -n "$ac_tool_prefix"; then
6900   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_RANLIB+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907   if test -n "$RANLIB"; then
6908   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913   IFS=$as_save_IFS
6914   test -z "$as_dir" && as_dir=.
6915   for ac_exec_ext in '' $ac_executable_extensions; do
6916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919     break 2
6920   fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 RANLIB=$ac_cv_prog_RANLIB
6928 if test -n "$RANLIB"; then
6929   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6930 echo "${ECHO_T}$RANLIB" >&6; }
6931 else
6932   { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_RANLIB"; then
6939   ac_ct_RANLIB=$RANLIB
6940   # Extract the first word of "ranlib", so it can be a program name with args.
6941 set dummy ranlib; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   if test -n "$ac_ct_RANLIB"; then
6948   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955   for ac_exec_ext in '' $ac_executable_extensions; do
6956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957     ac_cv_prog_ac_ct_RANLIB="ranlib"
6958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959     break 2
6960   fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6968 if test -n "$ac_ct_RANLIB"; then
6969   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6970 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6971 else
6972   { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6974 fi
6975
6976   if test "x$ac_ct_RANLIB" = x; then
6977     RANLIB=":"
6978   else
6979     case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6982 whose name does not start with the host triplet.  If you think this
6983 configuration is useful to you, please write to autoconf@gnu.org." >&5
6984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6985 whose name does not start with the host triplet.  If you think this
6986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989     RANLIB=$ac_ct_RANLIB
6990   fi
6991 else
6992   RANLIB="$ac_cv_prog_RANLIB"
6993 fi
6994
6995 if test -n "$ac_tool_prefix"; then
6996   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}strip; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_prog_STRIP+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   if test -n "$STRIP"; then
7004   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011   for ac_exec_ext in '' $ac_executable_extensions; do
7012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 STRIP=$ac_cv_prog_STRIP
7024 if test -n "$STRIP"; then
7025   { echo "$as_me:$LINENO: result: $STRIP" >&5
7026 echo "${ECHO_T}$STRIP" >&6; }
7027 else
7028   { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7030 fi
7031
7032
7033 fi
7034 if test -z "$ac_cv_prog_STRIP"; then
7035   ac_ct_STRIP=$STRIP
7036   # Extract the first word of "strip", so it can be a program name with args.
7037 set dummy strip; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   if test -n "$ac_ct_STRIP"; then
7044   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_prog_ac_ct_STRIP="strip"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7064 if test -n "$ac_ct_STRIP"; then
7065   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7066 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7067 else
7068   { echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6; }
7070 fi
7071
7072   if test "x$ac_ct_STRIP" = x; then
7073     STRIP=":"
7074   else
7075     case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7078 whose name does not start with the host triplet.  If you think this
7079 configuration is useful to you, please write to autoconf@gnu.org." >&5
7080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7081 whose name does not start with the host triplet.  If you think this
7082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7083 ac_tool_warned=yes ;;
7084 esac
7085     STRIP=$ac_ct_STRIP
7086   fi
7087 else
7088   STRIP="$ac_cv_prog_STRIP"
7089 fi
7090
7091
7092 old_CC="$CC"
7093 old_CFLAGS="$CFLAGS"
7094
7095 # Set sane defaults for various variables
7096 test -z "$AR" && AR=ar
7097 test -z "$AR_FLAGS" && AR_FLAGS=cru
7098 test -z "$AS" && AS=as
7099 test -z "$CC" && CC=cc
7100 test -z "$LTCC" && LTCC=$CC
7101 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7102 test -z "$DLLTOOL" && DLLTOOL=dlltool
7103 test -z "$LD" && LD=ld
7104 test -z "$LN_S" && LN_S="ln -s"
7105 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7106 test -z "$NM" && NM=nm
7107 test -z "$SED" && SED=sed
7108 test -z "$OBJDUMP" && OBJDUMP=objdump
7109 test -z "$RANLIB" && RANLIB=:
7110 test -z "$STRIP" && STRIP=:
7111 test -z "$ac_objext" && ac_objext=o
7112
7113 # Determine commands to create old-style static archives.
7114 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7115 old_postinstall_cmds='chmod 644 $oldlib'
7116 old_postuninstall_cmds=
7117
7118 if test -n "$RANLIB"; then
7119   case $host_os in
7120   openbsd*)
7121     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7122     ;;
7123   *)
7124     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7125     ;;
7126   esac
7127   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7128 fi
7129
7130 for cc_temp in $compiler""; do
7131   case $cc_temp in
7132     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7133     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7134     \-*) ;;
7135     *) break;;
7136   esac
7137 done
7138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7139
7140
7141 # Only perform the check for file, if the check method requires it
7142 case $deplibs_check_method in
7143 file_magic*)
7144   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7145     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7146 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7147 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   case $MAGIC_CMD in
7151 [\\/*] |  ?:[\\/]*)
7152   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7153   ;;
7154 *)
7155   lt_save_MAGIC_CMD="$MAGIC_CMD"
7156   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7157   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7158   for ac_dir in $ac_dummy; do
7159     IFS="$lt_save_ifs"
7160     test -z "$ac_dir" && ac_dir=.
7161     if test -f $ac_dir/${ac_tool_prefix}file; then
7162       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7163       if test -n "$file_magic_test_file"; then
7164         case $deplibs_check_method in
7165         "file_magic "*)
7166           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7167           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7168           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7169             $EGREP "$file_magic_regex" > /dev/null; then
7170             :
7171           else
7172             cat <<EOF 1>&2
7173
7174 *** Warning: the command libtool uses to detect shared libraries,
7175 *** $file_magic_cmd, produces output that libtool cannot recognize.
7176 *** The result is that libtool may fail to recognize shared libraries
7177 *** as such.  This will affect the creation of libtool libraries that
7178 *** depend on shared libraries, but programs linked with such libtool
7179 *** libraries will work regardless of this problem.  Nevertheless, you
7180 *** may want to report the problem to your system manager and/or to
7181 *** bug-libtool@gnu.org
7182
7183 EOF
7184           fi ;;
7185         esac
7186       fi
7187       break
7188     fi
7189   done
7190   IFS="$lt_save_ifs"
7191   MAGIC_CMD="$lt_save_MAGIC_CMD"
7192   ;;
7193 esac
7194 fi
7195
7196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7197 if test -n "$MAGIC_CMD"; then
7198   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7199 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7200 else
7201   { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7204
7205 if test -z "$lt_cv_path_MAGIC_CMD"; then
7206   if test -n "$ac_tool_prefix"; then
7207     { echo "$as_me:$LINENO: checking for file" >&5
7208 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7209 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   case $MAGIC_CMD in
7213 [\\/*] |  ?:[\\/]*)
7214   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7215   ;;
7216 *)
7217   lt_save_MAGIC_CMD="$MAGIC_CMD"
7218   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7219   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7220   for ac_dir in $ac_dummy; do
7221     IFS="$lt_save_ifs"
7222     test -z "$ac_dir" && ac_dir=.
7223     if test -f $ac_dir/file; then
7224       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7225       if test -n "$file_magic_test_file"; then
7226         case $deplibs_check_method in
7227         "file_magic "*)
7228           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7229           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7230           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7231             $EGREP "$file_magic_regex" > /dev/null; then
7232             :
7233           else
7234             cat <<EOF 1>&2
7235
7236 *** Warning: the command libtool uses to detect shared libraries,
7237 *** $file_magic_cmd, produces output that libtool cannot recognize.
7238 *** The result is that libtool may fail to recognize shared libraries
7239 *** as such.  This will affect the creation of libtool libraries that
7240 *** depend on shared libraries, but programs linked with such libtool
7241 *** libraries will work regardless of this problem.  Nevertheless, you
7242 *** may want to report the problem to your system manager and/or to
7243 *** bug-libtool@gnu.org
7244
7245 EOF
7246           fi ;;
7247         esac
7248       fi
7249       break
7250     fi
7251   done
7252   IFS="$lt_save_ifs"
7253   MAGIC_CMD="$lt_save_MAGIC_CMD"
7254   ;;
7255 esac
7256 fi
7257
7258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259 if test -n "$MAGIC_CMD"; then
7260   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7261 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7262 else
7263   { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7265 fi
7266
7267   else
7268     MAGIC_CMD=:
7269   fi
7270 fi
7271
7272   fi
7273   ;;
7274 esac
7275
7276
7277   case $host_os in
7278     rhapsody* | darwin*)
7279     if test -n "$ac_tool_prefix"; then
7280   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   if test -n "$DSYMUTIL"; then
7288   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7308 if test -n "$DSYMUTIL"; then
7309   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7310 echo "${ECHO_T}$DSYMUTIL" >&6; }
7311 else
7312   { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7314 fi
7315
7316
7317 fi
7318 if test -z "$ac_cv_prog_DSYMUTIL"; then
7319   ac_ct_DSYMUTIL=$DSYMUTIL
7320   # Extract the first word of "dsymutil", so it can be a program name with args.
7321 set dummy dsymutil; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   if test -n "$ac_ct_DSYMUTIL"; then
7328   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7348 if test -n "$ac_ct_DSYMUTIL"; then
7349   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7350 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7351 else
7352   { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7354 fi
7355
7356   if test "x$ac_ct_DSYMUTIL" = x; then
7357     DSYMUTIL=":"
7358   else
7359     case $cross_compiling:$ac_tool_warned in
7360 yes:)
7361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7362 whose name does not start with the host triplet.  If you think this
7363 configuration is useful to you, please write to autoconf@gnu.org." >&5
7364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7365 whose name does not start with the host triplet.  If you think this
7366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369     DSYMUTIL=$ac_ct_DSYMUTIL
7370   fi
7371 else
7372   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7373 fi
7374
7375     if test -n "$ac_tool_prefix"; then
7376   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   if test -n "$NMEDIT"; then
7384   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391   for ac_exec_ext in '' $ac_executable_extensions; do
7392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 NMEDIT=$ac_cv_prog_NMEDIT
7404 if test -n "$NMEDIT"; then
7405   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7406 echo "${ECHO_T}$NMEDIT" >&6; }
7407 else
7408   { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7410 fi
7411
7412
7413 fi
7414 if test -z "$ac_cv_prog_NMEDIT"; then
7415   ac_ct_NMEDIT=$NMEDIT
7416   # Extract the first word of "nmedit", so it can be a program name with args.
7417 set dummy nmedit; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   if test -n "$ac_ct_NMEDIT"; then
7424   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431   for ac_exec_ext in '' $ac_executable_extensions; do
7432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7444 if test -n "$ac_ct_NMEDIT"; then
7445   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7446 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452   if test "x$ac_ct_NMEDIT" = x; then
7453     NMEDIT=":"
7454   else
7455     case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7458 whose name does not start with the host triplet.  If you think this
7459 configuration is useful to you, please write to autoconf@gnu.org." >&5
7460 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7461 whose name does not start with the host triplet.  If you think this
7462 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7463 ac_tool_warned=yes ;;
7464 esac
7465     NMEDIT=$ac_ct_NMEDIT
7466   fi
7467 else
7468   NMEDIT="$ac_cv_prog_NMEDIT"
7469 fi
7470
7471
7472     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7473 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7474 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   lt_cv_apple_cc_single_mod=no
7478       if test -z "${LT_MULTI_MODULE}"; then
7479    # By default we will add the -single_module flag. You can override
7480    # by either setting the environment variable LT_MULTI_MODULE
7481    # non-empty at configure time, or by adding -multi_module to the
7482    # link flags.
7483    echo "int foo(void){return 1;}" > conftest.c
7484    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7485      -dynamiclib ${wl}-single_module conftest.c
7486    if test -f libconftest.dylib; then
7487      lt_cv_apple_cc_single_mod=yes
7488      rm -rf libconftest.dylib*
7489    fi
7490    rm conftest.c
7491       fi
7492 fi
7493 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7494 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7495     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7496 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7497 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   lt_cv_ld_exported_symbols_list=no
7501       save_LDFLAGS=$LDFLAGS
7502       echo "_main" > conftest.sym
7503       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7504       cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h.  */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h.  */
7510
7511 int
7512 main ()
7513 {
7514
7515   ;
7516   return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (ac_try="$ac_link"
7521 case "(($ac_try" in
7522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523   *) ac_try_echo=$ac_try;;
7524 esac
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526   (eval "$ac_link") 2>conftest.er1
7527   ac_status=$?
7528   grep -v '^ *+' conftest.er1 >conftest.err
7529   rm -f conftest.er1
7530   cat conftest.err >&5
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); } && {
7533          test -z "$ac_c_werror_flag" ||
7534          test ! -s conftest.err
7535        } && test -s conftest$ac_exeext &&
7536        $as_test_x conftest$ac_exeext; then
7537   lt_cv_ld_exported_symbols_list=yes
7538 else
7539   echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542         lt_cv_ld_exported_symbols_list=no
7543 fi
7544
7545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7546       conftest$ac_exeext conftest.$ac_ext
7547    LDFLAGS="$save_LDFLAGS"
7548
7549 fi
7550 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7551 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7552     case $host_os in
7553     rhapsody* | darwin1.[0123])
7554       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7555     darwin1.*)
7556      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7557     darwin*)
7558       # if running on 10.5 or later, the deployment target defaults
7559       # to the OS version, if on x86, and 10.4, the deployment
7560       # target defaults to 10.4. Don't you love it?
7561       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7562    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7563      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7564    10.[012]*)
7565      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7566    10.*)
7567      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7568       esac
7569     ;;
7570   esac
7571     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7572       _lt_dar_single_mod='$single_module'
7573     fi
7574     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7575       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7576     else
7577       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7578     fi
7579     if test "$DSYMUTIL" != ":"; then
7580       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7581     else
7582       _lt_dsymutil=
7583     fi
7584     ;;
7585   esac
7586
7587
7588 enable_dlopen=yes
7589 enable_win32_dll=no
7590
7591 # Check whether --enable-libtool-lock was given.
7592 if test "${enable_libtool_lock+set}" = set; then
7593   enableval=$enable_libtool_lock;
7594 fi
7595
7596 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7597
7598
7599 # Check whether --with-pic was given.
7600 if test "${with_pic+set}" = set; then
7601   withval=$with_pic; pic_mode="$withval"
7602 else
7603   pic_mode=default
7604 fi
7605
7606 test -z "$pic_mode" && pic_mode=default
7607
7608 # Use C for the default configuration in the libtool script
7609 tagname=
7610 lt_save_CC="$CC"
7611 ac_ext=c
7612 ac_cpp='$CPP $CPPFLAGS'
7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616
7617
7618 # Source file extension for C test sources.
7619 ac_ext=c
7620
7621 # Object file extension for compiled C test sources.
7622 objext=o
7623 objext=$objext
7624
7625 # Code to be used in simple compile tests
7626 lt_simple_compile_test_code="int some_variable = 0;"
7627
7628 # Code to be used in simple link tests
7629 lt_simple_link_test_code='int main(){return(0);}'
7630
7631
7632 # If no C compiler was specified, use CC.
7633 LTCC=${LTCC-"$CC"}
7634
7635 # If no C compiler flags were specified, use CFLAGS.
7636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7637
7638 # Allow CC to be a program name with arguments.
7639 compiler=$CC
7640
7641
7642 # save warnings/boilerplate of simple test code
7643 ac_outfile=conftest.$ac_objext
7644 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7646 _lt_compiler_boilerplate=`cat conftest.err`
7647 $rm conftest*
7648
7649 ac_outfile=conftest.$ac_objext
7650 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7652 _lt_linker_boilerplate=`cat conftest.err`
7653 $rm -r conftest*
7654
7655
7656
7657 lt_prog_compiler_no_builtin_flag=
7658
7659 if test "$GCC" = yes; then
7660   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7661
7662
7663 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7664 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7665 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   lt_cv_prog_compiler_rtti_exceptions=no
7669   ac_outfile=conftest.$ac_objext
7670    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7671    lt_compiler_flag="-fno-rtti -fno-exceptions"
7672    # Insert the option either (1) after the last *FLAGS variable, or
7673    # (2) before a word containing "conftest.", or (3) at the end.
7674    # Note that $ac_compile itself does not contain backslashes and begins
7675    # with a dollar sign (not a hyphen), so the echo should work correctly.
7676    # The option is referenced via a variable to avoid confusing sed.
7677    lt_compile=`echo "$ac_compile" | $SED \
7678    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7679    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7680    -e 's:$: $lt_compiler_flag:'`
7681    (eval echo "\"\$as_me:7682: $lt_compile\"" >&5)
7682    (eval "$lt_compile" 2>conftest.err)
7683    ac_status=$?
7684    cat conftest.err >&5
7685    echo "$as_me:7686: \$? = $ac_status" >&5
7686    if (exit $ac_status) && test -s "$ac_outfile"; then
7687      # The compiler can only warn and ignore the option if not recognized
7688      # So say no if there are warnings other than the usual output.
7689      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7690      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7691      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7692        lt_cv_prog_compiler_rtti_exceptions=yes
7693      fi
7694    fi
7695    $rm conftest*
7696
7697 fi
7698 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7699 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7700
7701 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7702     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7703 else
7704     :
7705 fi
7706
7707 fi
7708
7709 lt_prog_compiler_wl=
7710 lt_prog_compiler_pic=
7711 lt_prog_compiler_static=
7712
7713 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7714 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7715
7716   if test "$GCC" = yes; then
7717     lt_prog_compiler_wl='-Wl,'
7718     lt_prog_compiler_static='-static'
7719
7720     case $host_os in
7721       aix*)
7722       # All AIX code is PIC.
7723       if test "$host_cpu" = ia64; then
7724         # AIX 5 now supports IA64 processor
7725         lt_prog_compiler_static='-Bstatic'
7726       fi
7727       ;;
7728
7729     amigaos*)
7730       # FIXME: we need at least 68020 code to build shared libraries, but
7731       # adding the `-m68020' flag to GCC prevents building anything better,
7732       # like `-m68040'.
7733       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7734       ;;
7735
7736     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7737       # PIC is the default for these OSes.
7738       ;;
7739
7740     mingw* | cygwin* | pw32* | os2*)
7741       # This hack is so that the source file can tell whether it is being
7742       # built for inclusion in a dll (and should export symbols for example).
7743       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7744       # (--disable-auto-import) libraries
7745       lt_prog_compiler_pic='-DDLL_EXPORT'
7746       ;;
7747
7748     darwin* | rhapsody*)
7749       # PIC is the default on this platform
7750       # Common symbols not allowed in MH_DYLIB files
7751       lt_prog_compiler_pic='-fno-common'
7752       ;;
7753
7754     interix[3-9]*)
7755       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7756       # Instead, we relocate shared libraries at runtime.
7757       ;;
7758
7759     msdosdjgpp*)
7760       # Just because we use GCC doesn't mean we suddenly get shared libraries
7761       # on systems that don't support them.
7762       lt_prog_compiler_can_build_shared=no
7763       enable_shared=no
7764       ;;
7765
7766     sysv4*MP*)
7767       if test -d /usr/nec; then
7768         lt_prog_compiler_pic=-Kconform_pic
7769       fi
7770       ;;
7771
7772     hpux*)
7773       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7774       # not for PA HP-UX.
7775       case $host_cpu in
7776       hppa*64*|ia64*)
7777         # +Z the default
7778         ;;
7779       *)
7780         lt_prog_compiler_pic='-fPIC'
7781         ;;
7782       esac
7783       ;;
7784
7785     *)
7786       lt_prog_compiler_pic='-fPIC'
7787       ;;
7788     esac
7789   else
7790     # PORTME Check for flag to pass linker flags through the system compiler.
7791     case $host_os in
7792     aix*)
7793       lt_prog_compiler_wl='-Wl,'
7794       if test "$host_cpu" = ia64; then
7795         # AIX 5 now supports IA64 processor
7796         lt_prog_compiler_static='-Bstatic'
7797       else
7798         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7799       fi
7800       ;;
7801       darwin*)
7802         # PIC is the default on this platform
7803         # Common symbols not allowed in MH_DYLIB files
7804        case $cc_basename in
7805          xlc*)
7806          lt_prog_compiler_pic='-qnocommon'
7807          lt_prog_compiler_wl='-Wl,'
7808          ;;
7809        esac
7810        ;;
7811
7812     mingw* | cygwin* | pw32* | os2*)
7813       # This hack is so that the source file can tell whether it is being
7814       # built for inclusion in a dll (and should export symbols for example).
7815       lt_prog_compiler_pic='-DDLL_EXPORT'
7816       ;;
7817
7818     hpux9* | hpux10* | hpux11*)
7819       lt_prog_compiler_wl='-Wl,'
7820       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7821       # not for PA HP-UX.
7822       case $host_cpu in
7823       hppa*64*|ia64*)
7824         # +Z the default
7825         ;;
7826       *)
7827         lt_prog_compiler_pic='+Z'
7828         ;;
7829       esac
7830       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7831       lt_prog_compiler_static='${wl}-a ${wl}archive'
7832       ;;
7833
7834     irix5* | irix6* | nonstopux*)
7835       lt_prog_compiler_wl='-Wl,'
7836       # PIC (with -KPIC) is the default.
7837       lt_prog_compiler_static='-non_shared'
7838       ;;
7839
7840     newsos6)
7841       lt_prog_compiler_pic='-KPIC'
7842       lt_prog_compiler_static='-Bstatic'
7843       ;;
7844
7845     linux* | k*bsd*-gnu)
7846       case $cc_basename in
7847       icc* | ecc*)
7848         lt_prog_compiler_wl='-Wl,'
7849         lt_prog_compiler_pic='-KPIC'
7850         lt_prog_compiler_static='-static'
7851         ;;
7852       pgcc* | pgf77* | pgf90* | pgf95*)
7853         # Portland Group compilers (*not* the Pentium gcc compiler,
7854         # which looks to be a dead project)
7855         lt_prog_compiler_wl='-Wl,'
7856         lt_prog_compiler_pic='-fpic'
7857         lt_prog_compiler_static='-Bstatic'
7858         ;;
7859       ccc*)
7860         lt_prog_compiler_wl='-Wl,'
7861         # All Alpha code is PIC.
7862         lt_prog_compiler_static='-non_shared'
7863         ;;
7864       *)
7865         case `$CC -V 2>&1 | sed 5q` in
7866         *Sun\ C*)
7867           # Sun C 5.9
7868           lt_prog_compiler_pic='-KPIC'
7869           lt_prog_compiler_static='-Bstatic'
7870           lt_prog_compiler_wl='-Wl,'
7871           ;;
7872         *Sun\ F*)
7873           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7874           lt_prog_compiler_pic='-KPIC'
7875           lt_prog_compiler_static='-Bstatic'
7876           lt_prog_compiler_wl=''
7877           ;;
7878         esac
7879         ;;
7880       esac
7881       ;;
7882
7883     osf3* | osf4* | osf5*)
7884       lt_prog_compiler_wl='-Wl,'
7885       # All OSF/1 code is PIC.
7886       lt_prog_compiler_static='-non_shared'
7887       ;;
7888
7889     rdos*)
7890       lt_prog_compiler_static='-non_shared'
7891       ;;
7892
7893     solaris*)
7894       lt_prog_compiler_pic='-KPIC'
7895       lt_prog_compiler_static='-Bstatic'
7896       case $cc_basename in
7897       f77* | f90* | f95*)
7898         lt_prog_compiler_wl='-Qoption ld ';;
7899       *)
7900         lt_prog_compiler_wl='-Wl,';;
7901       esac
7902       ;;
7903
7904     sunos4*)
7905       lt_prog_compiler_wl='-Qoption ld '
7906       lt_prog_compiler_pic='-PIC'
7907       lt_prog_compiler_static='-Bstatic'
7908       ;;
7909
7910     sysv4 | sysv4.2uw2* | sysv4.3*)
7911       lt_prog_compiler_wl='-Wl,'
7912       lt_prog_compiler_pic='-KPIC'
7913       lt_prog_compiler_static='-Bstatic'
7914       ;;
7915
7916     sysv4*MP*)
7917       if test -d /usr/nec ;then
7918         lt_prog_compiler_pic='-Kconform_pic'
7919         lt_prog_compiler_static='-Bstatic'
7920       fi
7921       ;;
7922
7923     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7924       lt_prog_compiler_wl='-Wl,'
7925       lt_prog_compiler_pic='-KPIC'
7926       lt_prog_compiler_static='-Bstatic'
7927       ;;
7928
7929     unicos*)
7930       lt_prog_compiler_wl='-Wl,'
7931       lt_prog_compiler_can_build_shared=no
7932       ;;
7933
7934     uts4*)
7935       lt_prog_compiler_pic='-pic'
7936       lt_prog_compiler_static='-Bstatic'
7937       ;;
7938
7939     *)
7940       lt_prog_compiler_can_build_shared=no
7941       ;;
7942     esac
7943   fi
7944
7945 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7946 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7947
7948 #
7949 # Check to make sure the PIC flag actually works.
7950 #
7951 if test -n "$lt_prog_compiler_pic"; then
7952
7953 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7954 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7955 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   lt_cv_prog_compiler_pic_works=no
7959   ac_outfile=conftest.$ac_objext
7960    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7961    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7962    # Insert the option either (1) after the last *FLAGS variable, or
7963    # (2) before a word containing "conftest.", or (3) at the end.
7964    # Note that $ac_compile itself does not contain backslashes and begins
7965    # with a dollar sign (not a hyphen), so the echo should work correctly.
7966    # The option is referenced via a variable to avoid confusing sed.
7967    lt_compile=`echo "$ac_compile" | $SED \
7968    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7969    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7970    -e 's:$: $lt_compiler_flag:'`
7971    (eval echo "\"\$as_me:7972: $lt_compile\"" >&5)
7972    (eval "$lt_compile" 2>conftest.err)
7973    ac_status=$?
7974    cat conftest.err >&5
7975    echo "$as_me:7976: \$? = $ac_status" >&5
7976    if (exit $ac_status) && test -s "$ac_outfile"; then
7977      # The compiler can only warn and ignore the option if not recognized
7978      # So say no if there are warnings other than the usual output.
7979      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7980      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7981      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7982        lt_cv_prog_compiler_pic_works=yes
7983      fi
7984    fi
7985    $rm conftest*
7986
7987 fi
7988 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7989 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7990
7991 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7992     case $lt_prog_compiler_pic in
7993      "" | " "*) ;;
7994      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7995      esac
7996 else
7997     lt_prog_compiler_pic=
7998      lt_prog_compiler_can_build_shared=no
7999 fi
8000
8001 fi
8002 case $host_os in
8003   # For platforms which do not support PIC, -DPIC is meaningless:
8004   *djgpp*)
8005     lt_prog_compiler_pic=
8006     ;;
8007   *)
8008     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8009     ;;
8010 esac
8011
8012 #
8013 # Check to make sure the static flag actually works.
8014 #
8015 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8016 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8017 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8018 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   lt_cv_prog_compiler_static_works=no
8022    save_LDFLAGS="$LDFLAGS"
8023    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8024    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8025    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8026      # The linker can only warn and ignore the option if not recognized
8027      # So say no if there are warnings
8028      if test -s conftest.err; then
8029        # Append any errors to the config.log.
8030        cat conftest.err 1>&5
8031        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8032        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8033        if diff conftest.exp conftest.er2 >/dev/null; then
8034          lt_cv_prog_compiler_static_works=yes
8035        fi
8036      else
8037        lt_cv_prog_compiler_static_works=yes
8038      fi
8039    fi
8040    $rm -r conftest*
8041    LDFLAGS="$save_LDFLAGS"
8042
8043 fi
8044 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8045 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8046
8047 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8048     :
8049 else
8050     lt_prog_compiler_static=
8051 fi
8052
8053
8054 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8055 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8056 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   lt_cv_prog_compiler_c_o=no
8060    $rm -r conftest 2>/dev/null
8061    mkdir conftest
8062    cd conftest
8063    mkdir out
8064    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8065
8066    lt_compiler_flag="-o out/conftest2.$ac_objext"
8067    # Insert the option either (1) after the last *FLAGS variable, or
8068    # (2) before a word containing "conftest.", or (3) at the end.
8069    # Note that $ac_compile itself does not contain backslashes and begins
8070    # with a dollar sign (not a hyphen), so the echo should work correctly.
8071    lt_compile=`echo "$ac_compile" | $SED \
8072    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8073    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8074    -e 's:$: $lt_compiler_flag:'`
8075    (eval echo "\"\$as_me:8076: $lt_compile\"" >&5)
8076    (eval "$lt_compile" 2>out/conftest.err)
8077    ac_status=$?
8078    cat out/conftest.err >&5
8079    echo "$as_me:8080: \$? = $ac_status" >&5
8080    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8081    then
8082      # The compiler can only warn and ignore the option if not recognized
8083      # So say no if there are warnings
8084      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8085      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8086      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8087        lt_cv_prog_compiler_c_o=yes
8088      fi
8089    fi
8090    chmod u+w . 2>&5
8091    $rm conftest*
8092    # SGI C++ compiler will create directory out/ii_files/ for
8093    # template instantiation
8094    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8095    $rm out/* && rmdir out
8096    cd ..
8097    rmdir conftest
8098    $rm conftest*
8099
8100 fi
8101 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8102 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8103
8104
8105 hard_links="nottested"
8106 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8107   # do not overwrite the value of need_locks provided by the user
8108   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8109 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8110   hard_links=yes
8111   $rm conftest*
8112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8113   touch conftest.a
8114   ln conftest.a conftest.b 2>&5 || hard_links=no
8115   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8116   { echo "$as_me:$LINENO: result: $hard_links" >&5
8117 echo "${ECHO_T}$hard_links" >&6; }
8118   if test "$hard_links" = no; then
8119     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8120 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8121     need_locks=warn
8122   fi
8123 else
8124   need_locks=no
8125 fi
8126
8127 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8128 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8129
8130   runpath_var=
8131   allow_undefined_flag=
8132   enable_shared_with_static_runtimes=no
8133   archive_cmds=
8134   archive_expsym_cmds=
8135   old_archive_From_new_cmds=
8136   old_archive_from_expsyms_cmds=
8137   export_dynamic_flag_spec=
8138   whole_archive_flag_spec=
8139   thread_safe_flag_spec=
8140   hardcode_libdir_flag_spec=
8141   hardcode_libdir_flag_spec_ld=
8142   hardcode_libdir_separator=
8143   hardcode_direct=no
8144   hardcode_minus_L=no
8145   hardcode_shlibpath_var=unsupported
8146   link_all_deplibs=unknown
8147   hardcode_automatic=no
8148   module_cmds=
8149   module_expsym_cmds=
8150   always_export_symbols=no
8151   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8152   # include_expsyms should be a list of space-separated symbols to be *always*
8153   # included in the symbol list
8154   include_expsyms=
8155   # exclude_expsyms can be an extended regexp of symbols to exclude
8156   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8157   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8158   # as well as any symbol that contains `d'.
8159   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8160   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8161   # platforms (ab)use it in PIC code, but their linkers get confused if
8162   # the symbol is explicitly referenced.  Since portable code cannot
8163   # rely on this symbol name, it's probably fine to never include it in
8164   # preloaded symbol tables.
8165   # Exclude shared library initialization/finalization symbols.
8166   extract_expsyms_cmds=
8167   # Just being paranoid about ensuring that cc_basename is set.
8168   for cc_temp in $compiler""; do
8169   case $cc_temp in
8170     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8171     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8172     \-*) ;;
8173     *) break;;
8174   esac
8175 done
8176 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8177
8178   case $host_os in
8179   cygwin* | mingw* | pw32*)
8180     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8181     # When not using gcc, we currently assume that we are using
8182     # Microsoft Visual C++.
8183     if test "$GCC" != yes; then
8184       with_gnu_ld=no
8185     fi
8186     ;;
8187   interix*)
8188     # we just hope/assume this is gcc and not c89 (= MSVC++)
8189     with_gnu_ld=yes
8190     ;;
8191   openbsd*)
8192     with_gnu_ld=no
8193     ;;
8194   esac
8195
8196   ld_shlibs=yes
8197   if test "$with_gnu_ld" = yes; then
8198     # If archive_cmds runs LD, not CC, wlarc should be empty
8199     wlarc='${wl}'
8200
8201     # Set some defaults for GNU ld with shared library support. These
8202     # are reset later if shared libraries are not supported. Putting them
8203     # here allows them to be overridden if necessary.
8204     runpath_var=LD_RUN_PATH
8205     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8206     export_dynamic_flag_spec='${wl}--export-dynamic'
8207     # ancient GNU ld didn't support --whole-archive et. al.
8208     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8209         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8210       else
8211         whole_archive_flag_spec=
8212     fi
8213     supports_anon_versioning=no
8214     case `$LD -v 2>/dev/null` in
8215       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8216       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8217       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8218       *\ 2.11.*) ;; # other 2.11 versions
8219       *) supports_anon_versioning=yes ;;
8220     esac
8221
8222     # See if GNU ld supports shared libraries.
8223     case $host_os in
8224     aix[3-9]*)
8225       # On AIX/PPC, the GNU linker is very broken
8226       if test "$host_cpu" != ia64; then
8227         ld_shlibs=no
8228         cat <<EOF 1>&2
8229
8230 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8231 *** to be unable to reliably create shared libraries on AIX.
8232 *** Therefore, libtool is disabling shared libraries support.  If you
8233 *** really care for shared libraries, you may want to modify your PATH
8234 *** so that a non-GNU linker is found, and then restart.
8235
8236 EOF
8237       fi
8238       ;;
8239
8240     amigaos*)
8241       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)'
8242       hardcode_libdir_flag_spec='-L$libdir'
8243       hardcode_minus_L=yes
8244
8245       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8246       # that the semantics of dynamic libraries on AmigaOS, at least up
8247       # to version 4, is to share data among multiple programs linked
8248       # with the same dynamic library.  Since this doesn't match the
8249       # behavior of shared libraries on other platforms, we can't use
8250       # them.
8251       ld_shlibs=no
8252       ;;
8253
8254     beos*)
8255       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256         allow_undefined_flag=unsupported
8257         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8258         # support --undefined.  This deserves some investigation.  FIXME
8259         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260       else
8261         ld_shlibs=no
8262       fi
8263       ;;
8264
8265     cygwin* | mingw* | pw32*)
8266       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8267       # as there is no search path for DLLs.
8268       hardcode_libdir_flag_spec='-L$libdir'
8269       allow_undefined_flag=unsupported
8270       always_export_symbols=no
8271       enable_shared_with_static_runtimes=yes
8272       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8273
8274       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8275         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8276         # If the export-symbols file already is a .def file (1st line
8277         # is EXPORTS), use it as is; otherwise, prepend...
8278         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8279           cp $export_symbols $output_objdir/$soname.def;
8280         else
8281           echo EXPORTS > $output_objdir/$soname.def;
8282           cat $export_symbols >> $output_objdir/$soname.def;
8283         fi~
8284         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8285       else
8286         ld_shlibs=no
8287       fi
8288       ;;
8289
8290     interix[3-9]*)
8291       hardcode_direct=no
8292       hardcode_shlibpath_var=no
8293       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8294       export_dynamic_flag_spec='${wl}-E'
8295       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8296       # Instead, shared libraries are loaded at an image base (0x10000000 by
8297       # default) and relocated if they conflict, which is a slow very memory
8298       # consuming and fragmenting process.  To avoid this, we pick a random,
8299       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8300       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8301       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8302       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'
8303       ;;
8304
8305     gnu* | linux* | k*bsd*-gnu)
8306       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8307         tmp_addflag=
8308         case $cc_basename,$host_cpu in
8309         pgcc*)                          # Portland Group C compiler
8310           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'
8311           tmp_addflag=' $pic_flag'
8312           ;;
8313         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8314           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'
8315           tmp_addflag=' $pic_flag -Mnomain' ;;
8316         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8317           tmp_addflag=' -i_dynamic' ;;
8318         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8319           tmp_addflag=' -i_dynamic -nofor_main' ;;
8320         ifc* | ifort*)                  # Intel Fortran compiler
8321           tmp_addflag=' -nofor_main' ;;
8322         esac
8323         case `$CC -V 2>&1 | sed 5q` in
8324         *Sun\ C*)                       # Sun C 5.9
8325           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8326           tmp_sharedflag='-G' ;;
8327         *Sun\ F*)                       # Sun Fortran 8.3
8328           tmp_sharedflag='-G' ;;
8329         *)
8330           tmp_sharedflag='-shared' ;;
8331         esac
8332         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333
8334         if test $supports_anon_versioning = yes; then
8335           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8336   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8337   $echo "local: *; };" >> $output_objdir/$libname.ver~
8338           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8339         fi
8340         link_all_deplibs=no
8341       else
8342         ld_shlibs=no
8343       fi
8344       ;;
8345
8346     netbsd* | netbsdelf*-gnu)
8347       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8348         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8349         wlarc=
8350       else
8351         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353       fi
8354       ;;
8355
8356     solaris*)
8357       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8358         ld_shlibs=no
8359         cat <<EOF 1>&2
8360
8361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8362 *** create shared libraries on Solaris systems.  Therefore, libtool
8363 *** is disabling shared libraries support.  We urge you to upgrade GNU
8364 *** binutils to release 2.9.1 or newer.  Another option is to modify
8365 *** your PATH or compiler configuration so that the native linker is
8366 *** used, and then restart.
8367
8368 EOF
8369       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8370         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372       else
8373         ld_shlibs=no
8374       fi
8375       ;;
8376
8377     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8378       case `$LD -v 2>&1` in
8379         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8380         ld_shlibs=no
8381         cat <<_LT_EOF 1>&2
8382
8383 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8384 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8385 *** is disabling shared libraries support.  We urge you to upgrade GNU
8386 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8387 *** your PATH or compiler configuration so that the native linker is
8388 *** used, and then restart.
8389
8390 _LT_EOF
8391         ;;
8392         *)
8393           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8395             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8396             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8397           else
8398             ld_shlibs=no
8399           fi
8400         ;;
8401       esac
8402       ;;
8403
8404     sunos4*)
8405       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8406       wlarc=
8407       hardcode_direct=yes
8408       hardcode_shlibpath_var=no
8409       ;;
8410
8411     *)
8412       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8413         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8415       else
8416         ld_shlibs=no
8417       fi
8418       ;;
8419     esac
8420
8421     if test "$ld_shlibs" = no; then
8422       runpath_var=
8423       hardcode_libdir_flag_spec=
8424       export_dynamic_flag_spec=
8425       whole_archive_flag_spec=
8426     fi
8427   else
8428     # PORTME fill in a description of your system's linker (not GNU ld)
8429     case $host_os in
8430     aix3*)
8431       allow_undefined_flag=unsupported
8432       always_export_symbols=yes
8433       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'
8434       # Note: this linker hardcodes the directories in LIBPATH if there
8435       # are no directories specified by -L.
8436       hardcode_minus_L=yes
8437       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8438         # Neither direct hardcoding nor static linking is supported with a
8439         # broken collect2.
8440         hardcode_direct=unsupported
8441       fi
8442       ;;
8443
8444     aix[4-9]*)
8445       if test "$host_cpu" = ia64; then
8446         # On IA64, the linker does run time linking by default, so we don't
8447         # have to do anything special.
8448         aix_use_runtimelinking=no
8449         exp_sym_flag='-Bexport'
8450         no_entry_flag=""
8451       else
8452         # If we're using GNU nm, then we don't want the "-C" option.
8453         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8454         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8455           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'
8456         else
8457           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'
8458         fi
8459         aix_use_runtimelinking=no
8460
8461         # Test if we are trying to use run time linking or normal
8462         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8463         # need to do runtime linking.
8464         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8465           for ld_flag in $LDFLAGS; do
8466           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8467             aix_use_runtimelinking=yes
8468             break
8469           fi
8470           done
8471           ;;
8472         esac
8473
8474         exp_sym_flag='-bexport'
8475         no_entry_flag='-bnoentry'
8476       fi
8477
8478       # When large executables or shared objects are built, AIX ld can
8479       # have problems creating the table of contents.  If linking a library
8480       # or program results in "error TOC overflow" add -mminimal-toc to
8481       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8482       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8483
8484       archive_cmds=''
8485       hardcode_direct=yes
8486       hardcode_libdir_separator=':'
8487       link_all_deplibs=yes
8488
8489       if test "$GCC" = yes; then
8490         case $host_os in aix4.[012]|aix4.[012].*)
8491         # We only want to do this on AIX 4.2 and lower, the check
8492         # below for broken collect2 doesn't work under 4.3+
8493           collect2name=`${CC} -print-prog-name=collect2`
8494           if test -f "$collect2name" && \
8495            strings "$collect2name" | grep resolve_lib_name >/dev/null
8496           then
8497           # We have reworked collect2
8498           :
8499           else
8500           # We have old collect2
8501           hardcode_direct=unsupported
8502           # It fails to find uninstalled libraries when the uninstalled
8503           # path is not listed in the libpath.  Setting hardcode_minus_L
8504           # to unsupported forces relinking
8505           hardcode_minus_L=yes
8506           hardcode_libdir_flag_spec='-L$libdir'
8507           hardcode_libdir_separator=
8508           fi
8509           ;;
8510         esac
8511         shared_flag='-shared'
8512         if test "$aix_use_runtimelinking" = yes; then
8513           shared_flag="$shared_flag "'${wl}-G'
8514         fi
8515       else
8516         # not using gcc
8517         if test "$host_cpu" = ia64; then
8518         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8519         # chokes on -Wl,-G. The following line is correct:
8520           shared_flag='-G'
8521         else
8522           if test "$aix_use_runtimelinking" = yes; then
8523             shared_flag='${wl}-G'
8524           else
8525             shared_flag='${wl}-bM:SRE'
8526           fi
8527         fi
8528       fi
8529
8530       # It seems that -bexpall does not export symbols beginning with
8531       # underscore (_), so it is better to generate a list of symbols to export.
8532       always_export_symbols=yes
8533       if test "$aix_use_runtimelinking" = yes; then
8534         # Warning - without using the other runtime loading flags (-brtl),
8535         # -berok will link without error, but may produce a broken library.
8536         allow_undefined_flag='-berok'
8537        # Determine the default libpath from the value encoded in an empty executable.
8538        cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544
8545 int
8546 main ()
8547 {
8548
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (ac_try="$ac_link"
8555 case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_link") 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } && {
8567          test -z "$ac_c_werror_flag" ||
8568          test ! -s conftest.err
8569        } && test -s conftest$ac_exeext &&
8570        $as_test_x conftest$ac_exeext; then
8571
8572 lt_aix_libpath_sed='
8573     /Import File Strings/,/^$/ {
8574         /^0/ {
8575             s/^0  *\(.*\)$/\1/
8576             p
8577         }
8578     }'
8579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8580 # Check for a 64-bit object if we didn't find anything.
8581 if test -z "$aix_libpath"; then
8582   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8583 fi
8584 else
8585   echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588
8589 fi
8590
8591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592       conftest$ac_exeext conftest.$ac_ext
8593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8594
8595        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8596         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"
8597        else
8598         if test "$host_cpu" = ia64; then
8599           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8600           allow_undefined_flag="-z nodefs"
8601           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"
8602         else
8603          # Determine the default libpath from the value encoded in an empty executable.
8604          cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h.  */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h.  */
8610
8611 int
8612 main ()
8613 {
8614
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623   *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626   (eval "$ac_link") 2>conftest.er1
8627   ac_status=$?
8628   grep -v '^ *+' conftest.er1 >conftest.err
8629   rm -f conftest.er1
8630   cat conftest.err >&5
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } && {
8633          test -z "$ac_c_werror_flag" ||
8634          test ! -s conftest.err
8635        } && test -s conftest$ac_exeext &&
8636        $as_test_x conftest$ac_exeext; then
8637
8638 lt_aix_libpath_sed='
8639     /Import File Strings/,/^$/ {
8640         /^0/ {
8641             s/^0  *\(.*\)$/\1/
8642             p
8643         }
8644     }'
8645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8646 # Check for a 64-bit object if we didn't find anything.
8647 if test -z "$aix_libpath"; then
8648   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8649 fi
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654
8655 fi
8656
8657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8658       conftest$ac_exeext conftest.$ac_ext
8659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8660
8661          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8662           # Warning - without using the other run time loading flags,
8663           # -berok will link without error, but may produce a broken library.
8664           no_undefined_flag=' ${wl}-bernotok'
8665           allow_undefined_flag=' ${wl}-berok'
8666           # Exported symbols can be pulled into shared objects from archives
8667           whole_archive_flag_spec='$convenience'
8668           archive_cmds_need_lc=yes
8669           # This is similar to how AIX traditionally builds its shared libraries.
8670           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'
8671         fi
8672       fi
8673       ;;
8674
8675     amigaos*)
8676       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)'
8677       hardcode_libdir_flag_spec='-L$libdir'
8678       hardcode_minus_L=yes
8679       # see comment about different semantics on the GNU ld section
8680       ld_shlibs=no
8681       ;;
8682
8683     bsdi[45]*)
8684       export_dynamic_flag_spec=-rdynamic
8685       ;;
8686
8687     cygwin* | mingw* | pw32*)
8688       # When not using gcc, we currently assume that we are using
8689       # Microsoft Visual C++.
8690       # hardcode_libdir_flag_spec is actually meaningless, as there is
8691       # no search path for DLLs.
8692       hardcode_libdir_flag_spec=' '
8693       allow_undefined_flag=unsupported
8694       # Tell ltmain to make .lib files, not .a files.
8695       libext=lib
8696       # Tell ltmain to make .dll files, not .so files.
8697       shrext_cmds=".dll"
8698       # FIXME: Setting linknames here is a bad hack.
8699       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8700       # The linker will automatically build a .lib file if we build a DLL.
8701       old_archive_From_new_cmds='true'
8702       # FIXME: Should let the user specify the lib program.
8703       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8704       fix_srcfile_path='`cygpath -w "$srcfile"`'
8705       enable_shared_with_static_runtimes=yes
8706       ;;
8707
8708     darwin* | rhapsody*)
8709       case $host_os in
8710         rhapsody* | darwin1.[012])
8711          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8712          ;;
8713        *) # Darwin 1.3 on
8714          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8715            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8716          else
8717            case ${MACOSX_DEPLOYMENT_TARGET} in
8718              10.[012])
8719                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8720                ;;
8721              10.*)
8722                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8723                ;;
8724            esac
8725          fi
8726          ;;
8727       esac
8728       archive_cmds_need_lc=no
8729       hardcode_direct=no
8730       hardcode_automatic=yes
8731       hardcode_shlibpath_var=unsupported
8732       whole_archive_flag_spec=''
8733       link_all_deplibs=yes
8734     if test "$GCC" = yes ; then
8735         output_verbose_link_cmd='echo'
8736         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8737         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8738         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8739         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8740     else
8741       case $cc_basename in
8742         xlc*)
8743          output_verbose_link_cmd='echo'
8744          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8745          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8746           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8747          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8748           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}'
8749           ;;
8750        *)
8751          ld_shlibs=no
8752           ;;
8753       esac
8754     fi
8755       ;;
8756
8757     dgux*)
8758       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759       hardcode_libdir_flag_spec='-L$libdir'
8760       hardcode_shlibpath_var=no
8761       ;;
8762
8763     freebsd1*)
8764       ld_shlibs=no
8765       ;;
8766
8767     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8768     # support.  Future versions do this automatically, but an explicit c++rt0.o
8769     # does not break anything, and helps significantly (at the cost of a little
8770     # extra space).
8771     freebsd2.2*)
8772       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8773       hardcode_libdir_flag_spec='-R$libdir'
8774       hardcode_direct=yes
8775       hardcode_shlibpath_var=no
8776       ;;
8777
8778     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8779     freebsd2*)
8780       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8781       hardcode_direct=yes
8782       hardcode_minus_L=yes
8783       hardcode_shlibpath_var=no
8784       ;;
8785
8786     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8787     freebsd* | dragonfly*)
8788       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8789       hardcode_libdir_flag_spec='-R$libdir'
8790       hardcode_direct=yes
8791       hardcode_shlibpath_var=no
8792       ;;
8793
8794     hpux9*)
8795       if test "$GCC" = yes; then
8796         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'
8797       else
8798         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'
8799       fi
8800       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8801       hardcode_libdir_separator=:
8802       hardcode_direct=yes
8803
8804       # hardcode_minus_L: Not really in the search PATH,
8805       # but as the default location of the library.
8806       hardcode_minus_L=yes
8807       export_dynamic_flag_spec='${wl}-E'
8808       ;;
8809
8810     hpux10*)
8811       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8812         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8813       else
8814         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8815       fi
8816       if test "$with_gnu_ld" = no; then
8817         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8818         hardcode_libdir_separator=:
8819
8820         hardcode_direct=yes
8821         export_dynamic_flag_spec='${wl}-E'
8822
8823         # hardcode_minus_L: Not really in the search PATH,
8824         # but as the default location of the library.
8825         hardcode_minus_L=yes
8826       fi
8827       ;;
8828
8829     hpux11*)
8830       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8831         case $host_cpu in
8832         hppa*64*)
8833           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834           ;;
8835         ia64*)
8836           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8837           ;;
8838         *)
8839           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8840           ;;
8841         esac
8842       else
8843         case $host_cpu in
8844         hppa*64*)
8845           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846           ;;
8847         ia64*)
8848           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8849           ;;
8850         *)
8851           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8852           ;;
8853         esac
8854       fi
8855       if test "$with_gnu_ld" = no; then
8856         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8857         hardcode_libdir_separator=:
8858
8859         case $host_cpu in
8860         hppa*64*|ia64*)
8861           hardcode_libdir_flag_spec_ld='+b $libdir'
8862           hardcode_direct=no
8863           hardcode_shlibpath_var=no
8864           ;;
8865         *)
8866           hardcode_direct=yes
8867           export_dynamic_flag_spec='${wl}-E'
8868
8869           # hardcode_minus_L: Not really in the search PATH,
8870           # but as the default location of the library.
8871           hardcode_minus_L=yes
8872           ;;
8873         esac
8874       fi
8875       ;;
8876
8877     irix5* | irix6* | nonstopux*)
8878       if test "$GCC" = yes; then
8879         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'
8880       else
8881         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'
8882         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8883       fi
8884       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885       hardcode_libdir_separator=:
8886       link_all_deplibs=yes
8887       ;;
8888
8889     netbsd* | netbsdelf*-gnu)
8890       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8891         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8892       else
8893         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8894       fi
8895       hardcode_libdir_flag_spec='-R$libdir'
8896       hardcode_direct=yes
8897       hardcode_shlibpath_var=no
8898       ;;
8899
8900     newsos6)
8901       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8902       hardcode_direct=yes
8903       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904       hardcode_libdir_separator=:
8905       hardcode_shlibpath_var=no
8906       ;;
8907
8908     openbsd*)
8909       if test -f /usr/libexec/ld.so; then
8910         hardcode_direct=yes
8911         hardcode_shlibpath_var=no
8912         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8913           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8914           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8915           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916           export_dynamic_flag_spec='${wl}-E'
8917         else
8918           case $host_os in
8919            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8920              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8921              hardcode_libdir_flag_spec='-R$libdir'
8922              ;;
8923            *)
8924              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8925              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8926              ;;
8927           esac
8928         fi
8929       else
8930         ld_shlibs=no
8931       fi
8932       ;;
8933
8934     os2*)
8935       hardcode_libdir_flag_spec='-L$libdir'
8936       hardcode_minus_L=yes
8937       allow_undefined_flag=unsupported
8938       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'
8939       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8940       ;;
8941
8942     osf3*)
8943       if test "$GCC" = yes; then
8944         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8945         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'
8946       else
8947         allow_undefined_flag=' -expect_unresolved \*'
8948         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'
8949       fi
8950       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951       hardcode_libdir_separator=:
8952       ;;
8953
8954     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8955       if test "$GCC" = yes; then
8956         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8957         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'
8958         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959       else
8960         allow_undefined_flag=' -expect_unresolved \*'
8961         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'
8962         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8963         $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'
8964
8965         # Both c and cxx compiler support -rpath directly
8966         hardcode_libdir_flag_spec='-rpath $libdir'
8967       fi
8968       hardcode_libdir_separator=:
8969       ;;
8970
8971     solaris*)
8972       no_undefined_flag=' -z text'
8973       if test "$GCC" = yes; then
8974         wlarc='${wl}'
8975         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8977           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8978       else
8979         wlarc=''
8980         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8982         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8983       fi
8984       hardcode_libdir_flag_spec='-R$libdir'
8985       hardcode_shlibpath_var=no
8986       case $host_os in
8987       solaris2.[0-5] | solaris2.[0-5].*) ;;
8988       *)
8989         # The compiler driver will combine and reorder linker options,
8990         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8991         # but is careful enough not to reorder.
8992         # Supported since Solaris 2.6 (maybe 2.5.1?)
8993         if test "$GCC" = yes; then
8994           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8995         else
8996           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8997         fi
8998         ;;
8999       esac
9000       link_all_deplibs=yes
9001       ;;
9002
9003     sunos4*)
9004       if test "x$host_vendor" = xsequent; then
9005         # Use $CC to link under sequent, because it throws in some extra .o
9006         # files that make .init and .fini sections work.
9007         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9008       else
9009         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9010       fi
9011       hardcode_libdir_flag_spec='-L$libdir'
9012       hardcode_direct=yes
9013       hardcode_minus_L=yes
9014       hardcode_shlibpath_var=no
9015       ;;
9016
9017     sysv4)
9018       case $host_vendor in
9019         sni)
9020           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021           hardcode_direct=yes # is this really true???
9022         ;;
9023         siemens)
9024           ## LD is ld it makes a PLAMLIB
9025           ## CC just makes a GrossModule.
9026           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9027           reload_cmds='$CC -r -o $output$reload_objs'
9028           hardcode_direct=no
9029         ;;
9030         motorola)
9031           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9032           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9033         ;;
9034       esac
9035       runpath_var='LD_RUN_PATH'
9036       hardcode_shlibpath_var=no
9037       ;;
9038
9039     sysv4.3*)
9040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041       hardcode_shlibpath_var=no
9042       export_dynamic_flag_spec='-Bexport'
9043       ;;
9044
9045     sysv4*MP*)
9046       if test -d /usr/nec; then
9047         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048         hardcode_shlibpath_var=no
9049         runpath_var=LD_RUN_PATH
9050         hardcode_runpath_var=yes
9051         ld_shlibs=yes
9052       fi
9053       ;;
9054
9055     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9056       no_undefined_flag='${wl}-z,text'
9057       archive_cmds_need_lc=no
9058       hardcode_shlibpath_var=no
9059       runpath_var='LD_RUN_PATH'
9060
9061       if test "$GCC" = yes; then
9062         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064       else
9065         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067       fi
9068       ;;
9069
9070     sysv5* | sco3.2v5* | sco5v6*)
9071       # Note: We can NOT use -z defs as we might desire, because we do not
9072       # link with -lc, and that would cause any symbols used from libc to
9073       # always be unresolved, which means just about no library would
9074       # ever link correctly.  If we're not using GNU ld we use -z text
9075       # though, which does catch some bad symbols but isn't as heavy-handed
9076       # as -z defs.
9077       no_undefined_flag='${wl}-z,text'
9078       allow_undefined_flag='${wl}-z,nodefs'
9079       archive_cmds_need_lc=no
9080       hardcode_shlibpath_var=no
9081       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9082       hardcode_libdir_separator=':'
9083       link_all_deplibs=yes
9084       export_dynamic_flag_spec='${wl}-Bexport'
9085       runpath_var='LD_RUN_PATH'
9086
9087       if test "$GCC" = yes; then
9088         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9090       else
9091         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9092         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093       fi
9094       ;;
9095
9096     uts4*)
9097       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098       hardcode_libdir_flag_spec='-L$libdir'
9099       hardcode_shlibpath_var=no
9100       ;;
9101
9102     *)
9103       ld_shlibs=no
9104       ;;
9105     esac
9106   fi
9107
9108 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9109 echo "${ECHO_T}$ld_shlibs" >&6; }
9110 test "$ld_shlibs" = no && can_build_shared=no
9111
9112 #
9113 # Do we need to explicitly link libc?
9114 #
9115 case "x$archive_cmds_need_lc" in
9116 x|xyes)
9117   # Assume -lc should be added
9118   archive_cmds_need_lc=yes
9119
9120   if test "$enable_shared" = yes && test "$GCC" = yes; then
9121     case $archive_cmds in
9122     *'~'*)
9123       # FIXME: we may have to deal with multi-command sequences.
9124       ;;
9125     '$CC '*)
9126       # Test whether the compiler implicitly links with -lc since on some
9127       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9128       # to ld, don't add -lc before -lgcc.
9129       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9130 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9131       $rm conftest*
9132       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133
9134       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9135   (eval $ac_compile) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); } 2>conftest.err; then
9139         soname=conftest
9140         lib=conftest
9141         libobjs=conftest.$ac_objext
9142         deplibs=
9143         wl=$lt_prog_compiler_wl
9144         pic_flag=$lt_prog_compiler_pic
9145         compiler_flags=-v
9146         linker_flags=-v
9147         verstring=
9148         output_objdir=.
9149         libname=conftest
9150         lt_save_allow_undefined_flag=$allow_undefined_flag
9151         allow_undefined_flag=
9152         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9153   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); }
9157         then
9158           archive_cmds_need_lc=no
9159         else
9160           archive_cmds_need_lc=yes
9161         fi
9162         allow_undefined_flag=$lt_save_allow_undefined_flag
9163       else
9164         cat conftest.err 1>&5
9165       fi
9166       $rm conftest*
9167       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9168 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9169       ;;
9170     esac
9171   fi
9172   ;;
9173 esac
9174
9175 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9176 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9177 library_names_spec=
9178 libname_spec='lib$name'
9179 soname_spec=
9180 shrext_cmds=".so"
9181 postinstall_cmds=
9182 postuninstall_cmds=
9183 finish_cmds=
9184 finish_eval=
9185 shlibpath_var=
9186 shlibpath_overrides_runpath=unknown
9187 version_type=none
9188 dynamic_linker="$host_os ld.so"
9189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9190
9191 if test "$GCC" = yes; then
9192   case $host_os in
9193     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9194     *) lt_awk_arg="/^libraries:/" ;;
9195   esac
9196   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9197   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9198     # if the path contains ";" then we assume it to be the separator
9199     # otherwise default to the standard path separator (i.e. ":") - it is
9200     # assumed that no part of a normal pathname contains ";" but that should
9201     # okay in the real world where ";" in dirpaths is itself problematic.
9202     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9203   else
9204     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9205   fi
9206   # Ok, now we have the path, separated by spaces, we can step through it
9207   # and add multilib dir if necessary.
9208   lt_tmp_lt_search_path_spec=
9209   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9210   for lt_sys_path in $lt_search_path_spec; do
9211     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9212       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9213     else
9214       test -d "$lt_sys_path" && \
9215         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9216     fi
9217   done
9218   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9219 BEGIN {RS=" "; FS="/|\n";} {
9220   lt_foo="";
9221   lt_count=0;
9222   for (lt_i = NF; lt_i > 0; lt_i--) {
9223     if ($lt_i != "" && $lt_i != ".") {
9224       if ($lt_i == "..") {
9225         lt_count++;
9226       } else {
9227         if (lt_count == 0) {
9228           lt_foo="/" $lt_i lt_foo;
9229         } else {
9230           lt_count--;
9231         }
9232       }
9233     }
9234   }
9235   if (lt_foo != "") { lt_freq[lt_foo]++; }
9236   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9237 }'`
9238   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9239 else
9240   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9241 fi
9242 need_lib_prefix=unknown
9243 hardcode_into_libs=no
9244
9245 # when you set need_version to no, make sure it does not cause -set_version
9246 # flags to be left without arguments
9247 need_version=unknown
9248
9249 case $host_os in
9250 aix3*)
9251   version_type=linux
9252   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9253   shlibpath_var=LIBPATH
9254
9255   # AIX 3 has no versioning support, so we append a major version to the name.
9256   soname_spec='${libname}${release}${shared_ext}$major'
9257   ;;
9258
9259 aix[4-9]*)
9260   version_type=linux
9261   need_lib_prefix=no
9262   need_version=no
9263   hardcode_into_libs=yes
9264   if test "$host_cpu" = ia64; then
9265     # AIX 5 supports IA64
9266     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9267     shlibpath_var=LD_LIBRARY_PATH
9268   else
9269     # With GCC up to 2.95.x, collect2 would create an import file
9270     # for dependence libraries.  The import file would start with
9271     # the line `#! .'.  This would cause the generated library to
9272     # depend on `.', always an invalid library.  This was fixed in
9273     # development snapshots of GCC prior to 3.0.
9274     case $host_os in
9275       aix4 | aix4.[01] | aix4.[01].*)
9276       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9277            echo ' yes '
9278            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9279         :
9280       else
9281         can_build_shared=no
9282       fi
9283       ;;
9284     esac
9285     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9286     # soname into executable. Probably we can add versioning support to
9287     # collect2, so additional links can be useful in future.
9288     if test "$aix_use_runtimelinking" = yes; then
9289       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9290       # instead of lib<name>.a to let people know that these are not
9291       # typical AIX shared libraries.
9292       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293     else
9294       # We preserve .a as extension for shared libraries through AIX4.2
9295       # and later when we are not doing run time linking.
9296       library_names_spec='${libname}${release}.a $libname.a'
9297       soname_spec='${libname}${release}${shared_ext}$major'
9298     fi
9299     shlibpath_var=LIBPATH
9300   fi
9301   ;;
9302
9303 amigaos*)
9304   library_names_spec='$libname.ixlibrary $libname.a'
9305   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9306   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'
9307   ;;
9308
9309 beos*)
9310   library_names_spec='${libname}${shared_ext}'
9311   dynamic_linker="$host_os ld.so"
9312   shlibpath_var=LIBRARY_PATH
9313   ;;
9314
9315 bsdi[45]*)
9316   version_type=linux
9317   need_version=no
9318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319   soname_spec='${libname}${release}${shared_ext}$major'
9320   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9321   shlibpath_var=LD_LIBRARY_PATH
9322   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9323   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9324   # the default ld.so.conf also contains /usr/contrib/lib and
9325   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9326   # libtool to hard-code these into programs
9327   ;;
9328
9329 cygwin* | mingw* | pw32*)
9330   version_type=windows
9331   shrext_cmds=".dll"
9332   need_version=no
9333   need_lib_prefix=no
9334
9335   case $GCC,$host_os in
9336   yes,cygwin* | yes,mingw* | yes,pw32*)
9337     library_names_spec='$libname.dll.a'
9338     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9339     postinstall_cmds='base_file=`basename \${file}`~
9340       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9341       dldir=$destdir/`dirname \$dlpath`~
9342       test -d \$dldir || mkdir -p \$dldir~
9343       $install_prog $dir/$dlname \$dldir/$dlname~
9344       chmod a+x \$dldir/$dlname'
9345     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9346       dlpath=$dir/\$dldll~
9347        $rm \$dlpath'
9348     shlibpath_overrides_runpath=yes
9349
9350     case $host_os in
9351     cygwin*)
9352       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9353       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9354       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9355       ;;
9356     mingw*)
9357       # MinGW DLLs use traditional 'lib' prefix
9358       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9359       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9360       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9361         # It is most probably a Windows format PATH printed by
9362         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9363         # path with ; separators, and with drive letters. We can handle the
9364         # drive letters (cygwin fileutils understands them), so leave them,
9365         # especially as we might pass files found there to a mingw objdump,
9366         # which wouldn't understand a cygwinified path. Ahh.
9367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9368       else
9369         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9370       fi
9371       ;;
9372     pw32*)
9373       # pw32 DLLs use 'pw' prefix rather than 'lib'
9374       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9375       ;;
9376     esac
9377     ;;
9378
9379   *)
9380     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9381     ;;
9382   esac
9383   dynamic_linker='Win32 ld.exe'
9384   # FIXME: first we should search . and the directory the executable is in
9385   shlibpath_var=PATH
9386   ;;
9387
9388 darwin* | rhapsody*)
9389   dynamic_linker="$host_os dyld"
9390   version_type=darwin
9391   need_lib_prefix=no
9392   need_version=no
9393   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9394   soname_spec='${libname}${release}${major}$shared_ext'
9395   shlibpath_overrides_runpath=yes
9396   shlibpath_var=DYLD_LIBRARY_PATH
9397   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9398
9399   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9400   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9401   ;;
9402
9403 dgux*)
9404   version_type=linux
9405   need_lib_prefix=no
9406   need_version=no
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9408   soname_spec='${libname}${release}${shared_ext}$major'
9409   shlibpath_var=LD_LIBRARY_PATH
9410   ;;
9411
9412 freebsd1*)
9413   dynamic_linker=no
9414   ;;
9415
9416 freebsd* | dragonfly*)
9417   # DragonFly does not have aout.  When/if they implement a new
9418   # versioning mechanism, adjust this.
9419   if test -x /usr/bin/objformat; then
9420     objformat=`/usr/bin/objformat`
9421   else
9422     case $host_os in
9423     freebsd[123]*) objformat=aout ;;
9424     *) objformat=elf ;;
9425     esac
9426   fi
9427   version_type=freebsd-$objformat
9428   case $version_type in
9429     freebsd-elf*)
9430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9431       need_version=no
9432       need_lib_prefix=no
9433       ;;
9434     freebsd-*)
9435       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9436       need_version=yes
9437       ;;
9438   esac
9439   shlibpath_var=LD_LIBRARY_PATH
9440   case $host_os in
9441   freebsd2*)
9442     shlibpath_overrides_runpath=yes
9443     ;;
9444   freebsd3.[01]* | freebsdelf3.[01]*)
9445     shlibpath_overrides_runpath=yes
9446     hardcode_into_libs=yes
9447     ;;
9448   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9449   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9450     shlibpath_overrides_runpath=no
9451     hardcode_into_libs=yes
9452     ;;
9453   *) # from 4.6 on, and DragonFly
9454     shlibpath_overrides_runpath=yes
9455     hardcode_into_libs=yes
9456     ;;
9457   esac
9458   ;;
9459
9460 gnu*)
9461   version_type=linux
9462   need_lib_prefix=no
9463   need_version=no
9464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9465   soname_spec='${libname}${release}${shared_ext}$major'
9466   shlibpath_var=LD_LIBRARY_PATH
9467   hardcode_into_libs=yes
9468   ;;
9469
9470 hpux9* | hpux10* | hpux11*)
9471   # Give a soname corresponding to the major version so that dld.sl refuses to
9472   # link against other versions.
9473   version_type=sunos
9474   need_lib_prefix=no
9475   need_version=no
9476   case $host_cpu in
9477   ia64*)
9478     shrext_cmds='.so'
9479     hardcode_into_libs=yes
9480     dynamic_linker="$host_os dld.so"
9481     shlibpath_var=LD_LIBRARY_PATH
9482     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484     soname_spec='${libname}${release}${shared_ext}$major'
9485     if test "X$HPUX_IA64_MODE" = X32; then
9486       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9487     else
9488       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9489     fi
9490     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9491     ;;
9492    hppa*64*)
9493      shrext_cmds='.sl'
9494      hardcode_into_libs=yes
9495      dynamic_linker="$host_os dld.sl"
9496      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9497      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9498      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499      soname_spec='${libname}${release}${shared_ext}$major'
9500      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9501      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9502      ;;
9503    *)
9504     shrext_cmds='.sl'
9505     dynamic_linker="$host_os dld.sl"
9506     shlibpath_var=SHLIB_PATH
9507     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509     soname_spec='${libname}${release}${shared_ext}$major'
9510     ;;
9511   esac
9512   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9513   postinstall_cmds='chmod 555 $lib'
9514   ;;
9515
9516 interix[3-9]*)
9517   version_type=linux
9518   need_lib_prefix=no
9519   need_version=no
9520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9521   soname_spec='${libname}${release}${shared_ext}$major'
9522   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9523   shlibpath_var=LD_LIBRARY_PATH
9524   shlibpath_overrides_runpath=no
9525   hardcode_into_libs=yes
9526   ;;
9527
9528 irix5* | irix6* | nonstopux*)
9529   case $host_os in
9530     nonstopux*) version_type=nonstopux ;;
9531     *)
9532         if test "$lt_cv_prog_gnu_ld" = yes; then
9533                 version_type=linux
9534         else
9535                 version_type=irix
9536         fi ;;
9537   esac
9538   need_lib_prefix=no
9539   need_version=no
9540   soname_spec='${libname}${release}${shared_ext}$major'
9541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9542   case $host_os in
9543   irix5* | nonstopux*)
9544     libsuff= shlibsuff=
9545     ;;
9546   *)
9547     case $LD in # libtool.m4 will add one of these switches to LD
9548     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9549       libsuff= shlibsuff= libmagic=32-bit;;
9550     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9551       libsuff=32 shlibsuff=N32 libmagic=N32;;
9552     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9553       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9554     *) libsuff= shlibsuff= libmagic=never-match;;
9555     esac
9556     ;;
9557   esac
9558   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9559   shlibpath_overrides_runpath=no
9560   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9561   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9562   hardcode_into_libs=yes
9563   ;;
9564
9565 # No shared lib support for Linux oldld, aout, or coff.
9566 linux*oldld* | linux*aout* | linux*coff*)
9567   dynamic_linker=no
9568   ;;
9569
9570 # This must be Linux ELF.
9571 linux* | k*bsd*-gnu)
9572   version_type=linux
9573   need_lib_prefix=no
9574   need_version=no
9575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576   soname_spec='${libname}${release}${shared_ext}$major'
9577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9578   shlibpath_var=LD_LIBRARY_PATH
9579   shlibpath_overrides_runpath=no
9580   # This implies no fast_install, which is unacceptable.
9581   # Some rework will be needed to allow for fast_install
9582   # before this can be enabled.
9583   hardcode_into_libs=yes
9584
9585   # Append ld.so.conf contents to the search path
9586   if test -f /etc/ld.so.conf; then
9587     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9588     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9589   fi
9590
9591   # We used to test for /lib/ld.so.1 and disable shared libraries on
9592   # powerpc, because MkLinux only supported shared libraries with the
9593   # GNU dynamic linker.  Since this was broken with cross compilers,
9594   # most powerpc-linux boxes support dynamic linking these days and
9595   # people can always --disable-shared, the test was removed, and we
9596   # assume the GNU/Linux dynamic linker is in use.
9597   dynamic_linker='GNU/Linux ld.so'
9598   ;;
9599
9600 netbsdelf*-gnu)
9601   version_type=linux
9602   need_lib_prefix=no
9603   need_version=no
9604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9605   soname_spec='${libname}${release}${shared_ext}$major'
9606   shlibpath_var=LD_LIBRARY_PATH
9607   shlibpath_overrides_runpath=no
9608   hardcode_into_libs=yes
9609   dynamic_linker='NetBSD ld.elf_so'
9610   ;;
9611
9612 netbsd*)
9613   version_type=sunos
9614   need_lib_prefix=no
9615   need_version=no
9616   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9619     dynamic_linker='NetBSD (a.out) ld.so'
9620   else
9621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9622     soname_spec='${libname}${release}${shared_ext}$major'
9623     dynamic_linker='NetBSD ld.elf_so'
9624   fi
9625   shlibpath_var=LD_LIBRARY_PATH
9626   shlibpath_overrides_runpath=yes
9627   hardcode_into_libs=yes
9628   ;;
9629
9630 newsos6)
9631   version_type=linux
9632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633   shlibpath_var=LD_LIBRARY_PATH
9634   shlibpath_overrides_runpath=yes
9635   ;;
9636
9637 nto-qnx*)
9638   version_type=linux
9639   need_lib_prefix=no
9640   need_version=no
9641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642   soname_spec='${libname}${release}${shared_ext}$major'
9643   shlibpath_var=LD_LIBRARY_PATH
9644   shlibpath_overrides_runpath=yes
9645   ;;
9646
9647 openbsd*)
9648   version_type=sunos
9649   sys_lib_dlsearch_path_spec="/usr/lib"
9650   need_lib_prefix=no
9651   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9652   case $host_os in
9653     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9654     *)                         need_version=no  ;;
9655   esac
9656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9658   shlibpath_var=LD_LIBRARY_PATH
9659   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9660     case $host_os in
9661       openbsd2.[89] | openbsd2.[89].*)
9662         shlibpath_overrides_runpath=no
9663         ;;
9664       *)
9665         shlibpath_overrides_runpath=yes
9666         ;;
9667       esac
9668   else
9669     shlibpath_overrides_runpath=yes
9670   fi
9671   ;;
9672
9673 os2*)
9674   libname_spec='$name'
9675   shrext_cmds=".dll"
9676   need_lib_prefix=no
9677   library_names_spec='$libname${shared_ext} $libname.a'
9678   dynamic_linker='OS/2 ld.exe'
9679   shlibpath_var=LIBPATH
9680   ;;
9681
9682 osf3* | osf4* | osf5*)
9683   version_type=osf
9684   need_lib_prefix=no
9685   need_version=no
9686   soname_spec='${libname}${release}${shared_ext}$major'
9687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688   shlibpath_var=LD_LIBRARY_PATH
9689   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9690   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9691   ;;
9692
9693 rdos*)
9694   dynamic_linker=no
9695   ;;
9696
9697 solaris*)
9698   version_type=linux
9699   need_lib_prefix=no
9700   need_version=no
9701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702   soname_spec='${libname}${release}${shared_ext}$major'
9703   shlibpath_var=LD_LIBRARY_PATH
9704   shlibpath_overrides_runpath=yes
9705   hardcode_into_libs=yes
9706   # ldd complains unless libraries are executable
9707   postinstall_cmds='chmod +x $lib'
9708   ;;
9709
9710 sunos4*)
9711   version_type=sunos
9712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9713   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9714   shlibpath_var=LD_LIBRARY_PATH
9715   shlibpath_overrides_runpath=yes
9716   if test "$with_gnu_ld" = yes; then
9717     need_lib_prefix=no
9718   fi
9719   need_version=yes
9720   ;;
9721
9722 sysv4 | sysv4.3*)
9723   version_type=linux
9724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725   soname_spec='${libname}${release}${shared_ext}$major'
9726   shlibpath_var=LD_LIBRARY_PATH
9727   case $host_vendor in
9728     sni)
9729       shlibpath_overrides_runpath=no
9730       need_lib_prefix=no
9731       export_dynamic_flag_spec='${wl}-Blargedynsym'
9732       runpath_var=LD_RUN_PATH
9733       ;;
9734     siemens)
9735       need_lib_prefix=no
9736       ;;
9737     motorola)
9738       need_lib_prefix=no
9739       need_version=no
9740       shlibpath_overrides_runpath=no
9741       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9742       ;;
9743   esac
9744   ;;
9745
9746 sysv4*MP*)
9747   if test -d /usr/nec ;then
9748     version_type=linux
9749     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9750     soname_spec='$libname${shared_ext}.$major'
9751     shlibpath_var=LD_LIBRARY_PATH
9752   fi
9753   ;;
9754
9755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9756   version_type=freebsd-elf
9757   need_lib_prefix=no
9758   need_version=no
9759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9760   soname_spec='${libname}${release}${shared_ext}$major'
9761   shlibpath_var=LD_LIBRARY_PATH
9762   hardcode_into_libs=yes
9763   if test "$with_gnu_ld" = yes; then
9764     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9765     shlibpath_overrides_runpath=no
9766   else
9767     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9768     shlibpath_overrides_runpath=yes
9769     case $host_os in
9770       sco3.2v5*)
9771         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9772         ;;
9773     esac
9774   fi
9775   sys_lib_dlsearch_path_spec='/usr/lib'
9776   ;;
9777
9778 uts4*)
9779   version_type=linux
9780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781   soname_spec='${libname}${release}${shared_ext}$major'
9782   shlibpath_var=LD_LIBRARY_PATH
9783   ;;
9784
9785 *)
9786   dynamic_linker=no
9787   ;;
9788 esac
9789 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9790 echo "${ECHO_T}$dynamic_linker" >&6; }
9791 test "$dynamic_linker" = no && can_build_shared=no
9792
9793 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9797 fi
9798
9799 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9804 fi
9805
9806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9807
9808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9809 if test "$GCC" = yes; then
9810   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9811 fi
9812
9813 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9814 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9815 hardcode_action=
9816 if test -n "$hardcode_libdir_flag_spec" || \
9817    test -n "$runpath_var" || \
9818    test "X$hardcode_automatic" = "Xyes" ; then
9819
9820   # We can hardcode non-existant directories.
9821   if test "$hardcode_direct" != no &&
9822      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9823      # have to relink, otherwise we might link with an installed library
9824      # when we should be linking with a yet-to-be-installed one
9825      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9826      test "$hardcode_minus_L" != no; then
9827     # Linking always hardcodes the temporary library directory.
9828     hardcode_action=relink
9829   else
9830     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9831     hardcode_action=immediate
9832   fi
9833 else
9834   # We cannot hardcode anything, or else we can only hardcode existing
9835   # directories.
9836   hardcode_action=unsupported
9837 fi
9838 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9839 echo "${ECHO_T}$hardcode_action" >&6; }
9840
9841 if test "$hardcode_action" = relink; then
9842   # Fast installation is not supported
9843   enable_fast_install=no
9844 elif test "$shlibpath_overrides_runpath" = yes ||
9845      test "$enable_shared" = no; then
9846   # Fast installation is not necessary
9847   enable_fast_install=needless
9848 fi
9849
9850 striplib=
9851 old_striplib=
9852 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9853 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9854 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9855   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9856   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9857   { echo "$as_me:$LINENO: result: yes" >&5
9858 echo "${ECHO_T}yes" >&6; }
9859 else
9860 # FIXME - insert some real tests, host_os isn't really good enough
9861   case $host_os in
9862    darwin*)
9863        if test -n "$STRIP" ; then
9864          striplib="$STRIP -x"
9865          old_striplib="$STRIP -S"
9866          { echo "$as_me:$LINENO: result: yes" >&5
9867 echo "${ECHO_T}yes" >&6; }
9868        else
9869   { echo "$as_me:$LINENO: result: no" >&5
9870 echo "${ECHO_T}no" >&6; }
9871 fi
9872        ;;
9873    *)
9874   { echo "$as_me:$LINENO: result: no" >&5
9875 echo "${ECHO_T}no" >&6; }
9876     ;;
9877   esac
9878 fi
9879
9880 if test "x$enable_dlopen" != xyes; then
9881   enable_dlopen=unknown
9882   enable_dlopen_self=unknown
9883   enable_dlopen_self_static=unknown
9884 else
9885   lt_cv_dlopen=no
9886   lt_cv_dlopen_libs=
9887
9888   case $host_os in
9889   beos*)
9890     lt_cv_dlopen="load_add_on"
9891     lt_cv_dlopen_libs=
9892     lt_cv_dlopen_self=yes
9893     ;;
9894
9895   mingw* | pw32*)
9896     lt_cv_dlopen="LoadLibrary"
9897     lt_cv_dlopen_libs=
9898    ;;
9899
9900   cygwin*)
9901     lt_cv_dlopen="dlopen"
9902     lt_cv_dlopen_libs=
9903    ;;
9904
9905   darwin*)
9906   # if libdl is installed we need to link against it
9907     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9908 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   ac_check_lib_save_LIBS=$LIBS
9913 LIBS="-ldl  $LIBS"
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920
9921 /* Override any GCC internal prototype to avoid an error.
9922    Use char because int might match the return type of a GCC
9923    builtin and then its argument prototype would still apply.  */
9924 #ifdef __cplusplus
9925 extern "C"
9926 #endif
9927 char dlopen ();
9928 int
9929 main ()
9930 {
9931 return dlopen ();
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (ac_try="$ac_link"
9938 case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943   (eval "$ac_link") 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } && {
9950          test -z "$ac_c_werror_flag" ||
9951          test ! -s conftest.err
9952        } && test -s conftest$ac_exeext &&
9953        $as_test_x conftest$ac_exeext; then
9954   ac_cv_lib_dl_dlopen=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959         ac_cv_lib_dl_dlopen=no
9960 fi
9961
9962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9963       conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9965 fi
9966 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9967 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9968 if test $ac_cv_lib_dl_dlopen = yes; then
9969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9970 else
9971
9972     lt_cv_dlopen="dyld"
9973     lt_cv_dlopen_libs=
9974     lt_cv_dlopen_self=yes
9975
9976 fi
9977
9978    ;;
9979
9980   *)
9981     { echo "$as_me:$LINENO: checking for shl_load" >&5
9982 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9983 if test "${ac_cv_func_shl_load+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h.  */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h.  */
9992 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9994 #define shl_load innocuous_shl_load
9995
9996 /* System header to define __stub macros and hopefully few prototypes,
9997     which can conflict with char shl_load (); below.
9998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9999     <limits.h> exists even on freestanding compilers.  */
10000
10001 #ifdef __STDC__
10002 # include <limits.h>
10003 #else
10004 # include <assert.h>
10005 #endif
10006
10007 #undef shl_load
10008
10009 /* Override any GCC internal prototype to avoid an error.
10010    Use char because int might match the return type of a GCC
10011    builtin and then its argument prototype would still apply.  */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 char shl_load ();
10016 /* The GNU C library defines this for functions which it implements
10017     to always fail with ENOSYS.  Some functions are actually named
10018     something starting with __ and the normal name is an alias.  */
10019 #if defined __stub_shl_load || defined __stub___shl_load
10020 choke me
10021 #endif
10022
10023 int
10024 main ()
10025 {
10026 return shl_load ();
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (ac_try="$ac_link"
10033 case "(($ac_try" in
10034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035   *) ac_try_echo=$ac_try;;
10036 esac
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038   (eval "$ac_link") 2>conftest.er1
10039   ac_status=$?
10040   grep -v '^ *+' conftest.er1 >conftest.err
10041   rm -f conftest.er1
10042   cat conftest.err >&5
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } && {
10045          test -z "$ac_c_werror_flag" ||
10046          test ! -s conftest.err
10047        } && test -s conftest$ac_exeext &&
10048        $as_test_x conftest$ac_exeext; then
10049   ac_cv_func_shl_load=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054         ac_cv_func_shl_load=no
10055 fi
10056
10057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10058       conftest$ac_exeext conftest.$ac_ext
10059 fi
10060 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10061 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10062 if test $ac_cv_func_shl_load = yes; then
10063   lt_cv_dlopen="shl_load"
10064 else
10065   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10066 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-ldld  $LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h.  */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h.  */
10078
10079 /* Override any GCC internal prototype to avoid an error.
10080    Use char because int might match the return type of a GCC
10081    builtin and then its argument prototype would still apply.  */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 char shl_load ();
10086 int
10087 main ()
10088 {
10089 return shl_load ();
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098   *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101   (eval "$ac_link") 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } && {
10108          test -z "$ac_c_werror_flag" ||
10109          test ! -s conftest.err
10110        } && test -s conftest$ac_exeext &&
10111        $as_test_x conftest$ac_exeext; then
10112   ac_cv_lib_dld_shl_load=yes
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117         ac_cv_lib_dld_shl_load=no
10118 fi
10119
10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121       conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10123 fi
10124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10125 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10126 if test $ac_cv_lib_dld_shl_load = yes; then
10127   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10128 else
10129   { echo "$as_me:$LINENO: checking for dlopen" >&5
10130 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10131 if test "${ac_cv_func_dlopen+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h.  */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h.  */
10140 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10142 #define dlopen innocuous_dlopen
10143
10144 /* System header to define __stub macros and hopefully few prototypes,
10145     which can conflict with char dlopen (); below.
10146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147     <limits.h> exists even on freestanding compilers.  */
10148
10149 #ifdef __STDC__
10150 # include <limits.h>
10151 #else
10152 # include <assert.h>
10153 #endif
10154
10155 #undef dlopen
10156
10157 /* Override any GCC internal prototype to avoid an error.
10158    Use char because int might match the return type of a GCC
10159    builtin and then its argument prototype would still apply.  */
10160 #ifdef __cplusplus
10161 extern "C"
10162 #endif
10163 char dlopen ();
10164 /* The GNU C library defines this for functions which it implements
10165     to always fail with ENOSYS.  Some functions are actually named
10166     something starting with __ and the normal name is an alias.  */
10167 #if defined __stub_dlopen || defined __stub___dlopen
10168 choke me
10169 #endif
10170
10171 int
10172 main ()
10173 {
10174 return dlopen ();
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183   *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186   (eval "$ac_link") 2>conftest.er1
10187   ac_status=$?
10188   grep -v '^ *+' conftest.er1 >conftest.err
10189   rm -f conftest.er1
10190   cat conftest.err >&5
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } && {
10193          test -z "$ac_c_werror_flag" ||
10194          test ! -s conftest.err
10195        } && test -s conftest$ac_exeext &&
10196        $as_test_x conftest$ac_exeext; then
10197   ac_cv_func_dlopen=yes
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202         ac_cv_func_dlopen=no
10203 fi
10204
10205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10206       conftest$ac_exeext conftest.$ac_ext
10207 fi
10208 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10209 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10210 if test $ac_cv_func_dlopen = yes; then
10211   lt_cv_dlopen="dlopen"
10212 else
10213   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10214 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10215 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10216   echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218   ac_check_lib_save_LIBS=$LIBS
10219 LIBS="-ldl  $LIBS"
10220 cat >conftest.$ac_ext <<_ACEOF
10221 /* confdefs.h.  */
10222 _ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h.  */
10226
10227 /* Override any GCC internal prototype to avoid an error.
10228    Use char because int might match the return type of a GCC
10229    builtin and then its argument prototype would still apply.  */
10230 #ifdef __cplusplus
10231 extern "C"
10232 #endif
10233 char dlopen ();
10234 int
10235 main ()
10236 {
10237 return dlopen ();
10238   ;
10239   return 0;
10240 }
10241 _ACEOF
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_link") 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } && {
10256          test -z "$ac_c_werror_flag" ||
10257          test ! -s conftest.err
10258        } && test -s conftest$ac_exeext &&
10259        $as_test_x conftest$ac_exeext; then
10260   ac_cv_lib_dl_dlopen=yes
10261 else
10262   echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265         ac_cv_lib_dl_dlopen=no
10266 fi
10267
10268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10269       conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10271 fi
10272 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10273 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10274 if test $ac_cv_lib_dl_dlopen = yes; then
10275   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10276 else
10277   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10278 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10279 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-lsvld  $LIBS"
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290
10291 /* Override any GCC internal prototype to avoid an error.
10292    Use char because int might match the return type of a GCC
10293    builtin and then its argument prototype would still apply.  */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char dlopen ();
10298 int
10299 main ()
10300 {
10301 return dlopen ();
10302   ;
10303   return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310   *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313   (eval "$ac_link") 2>conftest.er1
10314   ac_status=$?
10315   grep -v '^ *+' conftest.er1 >conftest.err
10316   rm -f conftest.er1
10317   cat conftest.err >&5
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); } && {
10320          test -z "$ac_c_werror_flag" ||
10321          test ! -s conftest.err
10322        } && test -s conftest$ac_exeext &&
10323        $as_test_x conftest$ac_exeext; then
10324   ac_cv_lib_svld_dlopen=yes
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329         ac_cv_lib_svld_dlopen=no
10330 fi
10331
10332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10333       conftest$ac_exeext conftest.$ac_ext
10334 LIBS=$ac_check_lib_save_LIBS
10335 fi
10336 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10337 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10338 if test $ac_cv_lib_svld_dlopen = yes; then
10339   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10340 else
10341   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10342 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-ldld  $LIBS"
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354
10355 /* Override any GCC internal prototype to avoid an error.
10356    Use char because int might match the return type of a GCC
10357    builtin and then its argument prototype would still apply.  */
10358 #ifdef __cplusplus
10359 extern "C"
10360 #endif
10361 char dld_link ();
10362 int
10363 main ()
10364 {
10365 return dld_link ();
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (ac_try="$ac_link"
10372 case "(($ac_try" in
10373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374   *) ac_try_echo=$ac_try;;
10375 esac
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377   (eval "$ac_link") 2>conftest.er1
10378   ac_status=$?
10379   grep -v '^ *+' conftest.er1 >conftest.err
10380   rm -f conftest.er1
10381   cat conftest.err >&5
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } && {
10384          test -z "$ac_c_werror_flag" ||
10385          test ! -s conftest.err
10386        } && test -s conftest$ac_exeext &&
10387        $as_test_x conftest$ac_exeext; then
10388   ac_cv_lib_dld_dld_link=yes
10389 else
10390   echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10392
10393         ac_cv_lib_dld_dld_link=no
10394 fi
10395
10396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10397       conftest$ac_exeext conftest.$ac_ext
10398 LIBS=$ac_check_lib_save_LIBS
10399 fi
10400 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10401 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10402 if test $ac_cv_lib_dld_dld_link = yes; then
10403   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10404 fi
10405
10406
10407 fi
10408
10409
10410 fi
10411
10412
10413 fi
10414
10415
10416 fi
10417
10418
10419 fi
10420
10421     ;;
10422   esac
10423
10424   if test "x$lt_cv_dlopen" != xno; then
10425     enable_dlopen=yes
10426   else
10427     enable_dlopen=no
10428   fi
10429
10430   case $lt_cv_dlopen in
10431   dlopen)
10432     save_CPPFLAGS="$CPPFLAGS"
10433     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10434
10435     save_LDFLAGS="$LDFLAGS"
10436     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10437
10438     save_LIBS="$LIBS"
10439     LIBS="$lt_cv_dlopen_libs $LIBS"
10440
10441     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10442 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10443 if test "${lt_cv_dlopen_self+set}" = set; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446           if test "$cross_compiling" = yes; then :
10447   lt_cv_dlopen_self=cross
10448 else
10449   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10450   lt_status=$lt_dlunknown
10451   cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454
10455 #if HAVE_DLFCN_H
10456 #include <dlfcn.h>
10457 #endif
10458
10459 #include <stdio.h>
10460
10461 #ifdef RTLD_GLOBAL
10462 #  define LT_DLGLOBAL           RTLD_GLOBAL
10463 #else
10464 #  ifdef DL_GLOBAL
10465 #    define LT_DLGLOBAL         DL_GLOBAL
10466 #  else
10467 #    define LT_DLGLOBAL         0
10468 #  endif
10469 #endif
10470
10471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10472    find out it does not work in some platform. */
10473 #ifndef LT_DLLAZY_OR_NOW
10474 #  ifdef RTLD_LAZY
10475 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10476 #  else
10477 #    ifdef DL_LAZY
10478 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10479 #    else
10480 #      ifdef RTLD_NOW
10481 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10482 #      else
10483 #        ifdef DL_NOW
10484 #          define LT_DLLAZY_OR_NOW      DL_NOW
10485 #        else
10486 #          define LT_DLLAZY_OR_NOW      0
10487 #        endif
10488 #      endif
10489 #    endif
10490 #  endif
10491 #endif
10492
10493 #ifdef __cplusplus
10494 extern "C" void exit (int);
10495 #endif
10496
10497 void fnord() { int i=42;}
10498 int main ()
10499 {
10500   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10501   int status = $lt_dlunknown;
10502
10503   if (self)
10504     {
10505       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10506       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10507       /* dlclose (self); */
10508     }
10509   else
10510     puts (dlerror ());
10511
10512     exit (status);
10513 }
10514 EOF
10515   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516   (eval $ac_link) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10520     (./conftest; exit; ) >&5 2>/dev/null
10521     lt_status=$?
10522     case x$lt_status in
10523       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10524       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10525       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10526     esac
10527   else :
10528     # compilation failed
10529     lt_cv_dlopen_self=no
10530   fi
10531 fi
10532 rm -fr conftest*
10533
10534
10535 fi
10536 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10537 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10538
10539     if test "x$lt_cv_dlopen_self" = xyes; then
10540       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10541       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10542 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10543 if test "${lt_cv_dlopen_self_static+set}" = set; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546           if test "$cross_compiling" = yes; then :
10547   lt_cv_dlopen_self_static=cross
10548 else
10549   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10550   lt_status=$lt_dlunknown
10551   cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10554
10555 #if HAVE_DLFCN_H
10556 #include <dlfcn.h>
10557 #endif
10558
10559 #include <stdio.h>
10560
10561 #ifdef RTLD_GLOBAL
10562 #  define LT_DLGLOBAL           RTLD_GLOBAL
10563 #else
10564 #  ifdef DL_GLOBAL
10565 #    define LT_DLGLOBAL         DL_GLOBAL
10566 #  else
10567 #    define LT_DLGLOBAL         0
10568 #  endif
10569 #endif
10570
10571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10572    find out it does not work in some platform. */
10573 #ifndef LT_DLLAZY_OR_NOW
10574 #  ifdef RTLD_LAZY
10575 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10576 #  else
10577 #    ifdef DL_LAZY
10578 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10579 #    else
10580 #      ifdef RTLD_NOW
10581 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10582 #      else
10583 #        ifdef DL_NOW
10584 #          define LT_DLLAZY_OR_NOW      DL_NOW
10585 #        else
10586 #          define LT_DLLAZY_OR_NOW      0
10587 #        endif
10588 #      endif
10589 #    endif
10590 #  endif
10591 #endif
10592
10593 #ifdef __cplusplus
10594 extern "C" void exit (int);
10595 #endif
10596
10597 void fnord() { int i=42;}
10598 int main ()
10599 {
10600   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10601   int status = $lt_dlunknown;
10602
10603   if (self)
10604     {
10605       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10606       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10607       /* dlclose (self); */
10608     }
10609   else
10610     puts (dlerror ());
10611
10612     exit (status);
10613 }
10614 EOF
10615   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616   (eval $ac_link) 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10620     (./conftest; exit; ) >&5 2>/dev/null
10621     lt_status=$?
10622     case x$lt_status in
10623       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10624       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10625       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10626     esac
10627   else :
10628     # compilation failed
10629     lt_cv_dlopen_self_static=no
10630   fi
10631 fi
10632 rm -fr conftest*
10633
10634
10635 fi
10636 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10637 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10638     fi
10639
10640     CPPFLAGS="$save_CPPFLAGS"
10641     LDFLAGS="$save_LDFLAGS"
10642     LIBS="$save_LIBS"
10643     ;;
10644   esac
10645
10646   case $lt_cv_dlopen_self in
10647   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10648   *) enable_dlopen_self=unknown ;;
10649   esac
10650
10651   case $lt_cv_dlopen_self_static in
10652   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10653   *) enable_dlopen_self_static=unknown ;;
10654   esac
10655 fi
10656
10657
10658 # Report which library types will actually be built
10659 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10660 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10661 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10662 echo "${ECHO_T}$can_build_shared" >&6; }
10663
10664 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10665 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10666 test "$can_build_shared" = "no" && enable_shared=no
10667
10668 # On AIX, shared libraries and static libraries use the same namespace, and
10669 # are all built from PIC.
10670 case $host_os in
10671 aix3*)
10672   test "$enable_shared" = yes && enable_static=no
10673   if test -n "$RANLIB"; then
10674     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10675     postinstall_cmds='$RANLIB $lib'
10676   fi
10677   ;;
10678
10679 aix[4-9]*)
10680   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10681     test "$enable_shared" = yes && enable_static=no
10682   fi
10683     ;;
10684 esac
10685 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10686 echo "${ECHO_T}$enable_shared" >&6; }
10687
10688 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10689 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10690 # Make sure either enable_shared or enable_static is yes.
10691 test "$enable_shared" = yes || enable_static=yes
10692 { echo "$as_me:$LINENO: result: $enable_static" >&5
10693 echo "${ECHO_T}$enable_static" >&6; }
10694
10695 # The else clause should only fire when bootstrapping the
10696 # libtool distribution, otherwise you forgot to ship ltmain.sh
10697 # with your package, and you will get complaints that there are
10698 # no rules to generate ltmain.sh.
10699 if test -f "$ltmain"; then
10700   # See if we are running on zsh, and set the options which allow our commands through
10701   # without removal of \ escapes.
10702   if test -n "${ZSH_VERSION+set}" ; then
10703     setopt NO_GLOB_SUBST
10704   fi
10705   # Now quote all the things that may contain metacharacters while being
10706   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10707   # variables and quote the copies for generation of the libtool script.
10708   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10709     SED SHELL STRIP \
10710     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10711     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10712     deplibs_check_method reload_flag reload_cmds need_locks \
10713     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10714     lt_cv_sys_global_symbol_to_c_name_address \
10715     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10716     old_postinstall_cmds old_postuninstall_cmds \
10717     compiler \
10718     CC \
10719     LD \
10720     lt_prog_compiler_wl \
10721     lt_prog_compiler_pic \
10722     lt_prog_compiler_static \
10723     lt_prog_compiler_no_builtin_flag \
10724     export_dynamic_flag_spec \
10725     thread_safe_flag_spec \
10726     whole_archive_flag_spec \
10727     enable_shared_with_static_runtimes \
10728     old_archive_cmds \
10729     old_archive_from_new_cmds \
10730     predep_objects \
10731     postdep_objects \
10732     predeps \
10733     postdeps \
10734     compiler_lib_search_path \
10735     compiler_lib_search_dirs \
10736     archive_cmds \
10737     archive_expsym_cmds \
10738     postinstall_cmds \
10739     postuninstall_cmds \
10740     old_archive_from_expsyms_cmds \
10741     allow_undefined_flag \
10742     no_undefined_flag \
10743     export_symbols_cmds \
10744     hardcode_libdir_flag_spec \
10745     hardcode_libdir_flag_spec_ld \
10746     hardcode_libdir_separator \
10747     hardcode_automatic \
10748     module_cmds \
10749     module_expsym_cmds \
10750     lt_cv_prog_compiler_c_o \
10751     fix_srcfile_path \
10752     exclude_expsyms \
10753     include_expsyms; do
10754
10755     case $var in
10756     old_archive_cmds | \
10757     old_archive_from_new_cmds | \
10758     archive_cmds | \
10759     archive_expsym_cmds | \
10760     module_cmds | \
10761     module_expsym_cmds | \
10762     old_archive_from_expsyms_cmds | \
10763     export_symbols_cmds | \
10764     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10765     postinstall_cmds | postuninstall_cmds | \
10766     old_postinstall_cmds | old_postuninstall_cmds | \
10767     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10768       # Double-quote double-evaled strings.
10769       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10770       ;;
10771     *)
10772       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10773       ;;
10774     esac
10775   done
10776
10777   case $lt_echo in
10778   *'\$0 --fallback-echo"')
10779     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10780     ;;
10781   esac
10782
10783 cfgfile="${ofile}T"
10784   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10785   $rm -f "$cfgfile"
10786   { echo "$as_me:$LINENO: creating $ofile" >&5
10787 echo "$as_me: creating $ofile" >&6;}
10788
10789   cat <<__EOF__ >> "$cfgfile"
10790 #! $SHELL
10791
10792 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10793 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10794 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10795 #
10796 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10797 # Free Software Foundation, Inc.
10798 #
10799 # This file is part of GNU Libtool:
10800 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10801 #
10802 # This program is free software; you can redistribute it and/or modify
10803 # it under the terms of the GNU General Public License as published by
10804 # the Free Software Foundation; either version 2 of the License, or
10805 # (at your option) any later version.
10806 #
10807 # This program is distributed in the hope that it will be useful, but
10808 # WITHOUT ANY WARRANTY; without even the implied warranty of
10809 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10810 # General Public License for more details.
10811 #
10812 # You should have received a copy of the GNU General Public License
10813 # along with this program; if not, write to the Free Software
10814 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10815 #
10816 # As a special exception to the GNU General Public License, if you
10817 # distribute this file as part of a program that contains a
10818 # configuration script generated by Autoconf, you may include it under
10819 # the same distribution terms that you use for the rest of that program.
10820
10821 # A sed program that does not truncate output.
10822 SED=$lt_SED
10823
10824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10825 Xsed="$SED -e 1s/^X//"
10826
10827 # The HP-UX ksh and POSIX shell print the target directory to stdout
10828 # if CDPATH is set.
10829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10830
10831 # The names of the tagged configurations supported by this script.
10832 available_tags=
10833
10834 # ### BEGIN LIBTOOL CONFIG
10835
10836 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10837
10838 # Shell to use when invoking shell scripts.
10839 SHELL=$lt_SHELL
10840
10841 # Whether or not to build shared libraries.
10842 build_libtool_libs=$enable_shared
10843
10844 # Whether or not to build static libraries.
10845 build_old_libs=$enable_static
10846
10847 # Whether or not to add -lc for building shared libraries.
10848 build_libtool_need_lc=$archive_cmds_need_lc
10849
10850 # Whether or not to disallow shared libs when runtime libs are static
10851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10852
10853 # Whether or not to optimize for fast installation.
10854 fast_install=$enable_fast_install
10855
10856 # The host system.
10857 host_alias=$host_alias
10858 host=$host
10859 host_os=$host_os
10860
10861 # The build system.
10862 build_alias=$build_alias
10863 build=$build
10864 build_os=$build_os
10865
10866 # An echo program that does not interpret backslashes.
10867 echo=$lt_echo
10868
10869 # The archiver.
10870 AR=$lt_AR
10871 AR_FLAGS=$lt_AR_FLAGS
10872
10873 # A C compiler.
10874 LTCC=$lt_LTCC
10875
10876 # LTCC compiler flags.
10877 LTCFLAGS=$lt_LTCFLAGS
10878
10879 # A language-specific compiler.
10880 CC=$lt_compiler
10881
10882 # Is the compiler the GNU C compiler?
10883 with_gcc=$GCC
10884
10885 # An ERE matcher.
10886 EGREP=$lt_EGREP
10887
10888 # The linker used to build libraries.
10889 LD=$lt_LD
10890
10891 # Whether we need hard or soft links.
10892 LN_S=$lt_LN_S
10893
10894 # A BSD-compatible nm program.
10895 NM=$lt_NM
10896
10897 # A symbol stripping program
10898 STRIP=$lt_STRIP
10899
10900 # Used to examine libraries when file_magic_cmd begins "file"
10901 MAGIC_CMD=$MAGIC_CMD
10902
10903 # Used on cygwin: DLL creation program.
10904 DLLTOOL="$DLLTOOL"
10905
10906 # Used on cygwin: object dumper.
10907 OBJDUMP="$OBJDUMP"
10908
10909 # Used on cygwin: assembler.
10910 AS="$AS"
10911
10912 # The name of the directory that contains temporary libtool files.
10913 objdir=$objdir
10914
10915 # How to create reloadable object files.
10916 reload_flag=$lt_reload_flag
10917 reload_cmds=$lt_reload_cmds
10918
10919 # How to pass a linker flag through the compiler.
10920 wl=$lt_lt_prog_compiler_wl
10921
10922 # Object file suffix (normally "o").
10923 objext="$ac_objext"
10924
10925 # Old archive suffix (normally "a").
10926 libext="$libext"
10927
10928 # Shared library suffix (normally ".so").
10929 shrext_cmds='$shrext_cmds'
10930
10931 # Executable file suffix (normally "").
10932 exeext="$exeext"
10933
10934 # Additional compiler flags for building library objects.
10935 pic_flag=$lt_lt_prog_compiler_pic
10936 pic_mode=$pic_mode
10937
10938 # What is the maximum length of a command?
10939 max_cmd_len=$lt_cv_sys_max_cmd_len
10940
10941 # Does compiler simultaneously support -c and -o options?
10942 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10943
10944 # Must we lock files when doing compilation?
10945 need_locks=$lt_need_locks
10946
10947 # Do we need the lib prefix for modules?
10948 need_lib_prefix=$need_lib_prefix
10949
10950 # Do we need a version for libraries?
10951 need_version=$need_version
10952
10953 # Whether dlopen is supported.
10954 dlopen_support=$enable_dlopen
10955
10956 # Whether dlopen of programs is supported.
10957 dlopen_self=$enable_dlopen_self
10958
10959 # Whether dlopen of statically linked programs is supported.
10960 dlopen_self_static=$enable_dlopen_self_static
10961
10962 # Compiler flag to prevent dynamic linking.
10963 link_static_flag=$lt_lt_prog_compiler_static
10964
10965 # Compiler flag to turn off builtin functions.
10966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10967
10968 # Compiler flag to allow reflexive dlopens.
10969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10970
10971 # Compiler flag to generate shared objects directly from archives.
10972 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10973
10974 # Compiler flag to generate thread-safe objects.
10975 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10976
10977 # Library versioning type.
10978 version_type=$version_type
10979
10980 # Format of library name prefix.
10981 libname_spec=$lt_libname_spec
10982
10983 # List of archive names.  First name is the real one, the rest are links.
10984 # The last name is the one that the linker finds with -lNAME.
10985 library_names_spec=$lt_library_names_spec
10986
10987 # The coded name of the library, if different from the real name.
10988 soname_spec=$lt_soname_spec
10989
10990 # Commands used to build and install an old-style archive.
10991 RANLIB=$lt_RANLIB
10992 old_archive_cmds=$lt_old_archive_cmds
10993 old_postinstall_cmds=$lt_old_postinstall_cmds
10994 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10995
10996 # Create an old-style archive from a shared archive.
10997 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10998
10999 # Create a temporary old-style archive to link instead of a shared archive.
11000 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11001
11002 # Commands used to build and install a shared archive.
11003 archive_cmds=$lt_archive_cmds
11004 archive_expsym_cmds=$lt_archive_expsym_cmds
11005 postinstall_cmds=$lt_postinstall_cmds
11006 postuninstall_cmds=$lt_postuninstall_cmds
11007
11008 # Commands used to build a loadable module (assumed same as above if empty)
11009 module_cmds=$lt_module_cmds
11010 module_expsym_cmds=$lt_module_expsym_cmds
11011
11012 # Commands to strip libraries.
11013 old_striplib=$lt_old_striplib
11014 striplib=$lt_striplib
11015
11016 # Dependencies to place before the objects being linked to create a
11017 # shared library.
11018 predep_objects=$lt_predep_objects
11019
11020 # Dependencies to place after the objects being linked to create a
11021 # shared library.
11022 postdep_objects=$lt_postdep_objects
11023
11024 # Dependencies to place before the objects being linked to create a
11025 # shared library.
11026 predeps=$lt_predeps
11027
11028 # Dependencies to place after the objects being linked to create a
11029 # shared library.
11030 postdeps=$lt_postdeps
11031
11032 # The directories searched by this compiler when creating a shared
11033 # library
11034 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11035
11036 # The library search path used internally by the compiler when linking
11037 # a shared library.
11038 compiler_lib_search_path=$lt_compiler_lib_search_path
11039
11040 # Method to check whether dependent libraries are shared objects.
11041 deplibs_check_method=$lt_deplibs_check_method
11042
11043 # Command to use when deplibs_check_method == file_magic.
11044 file_magic_cmd=$lt_file_magic_cmd
11045
11046 # Flag that allows shared libraries with undefined symbols to be built.
11047 allow_undefined_flag=$lt_allow_undefined_flag
11048
11049 # Flag that forces no undefined symbols.
11050 no_undefined_flag=$lt_no_undefined_flag
11051
11052 # Commands used to finish a libtool library installation in a directory.
11053 finish_cmds=$lt_finish_cmds
11054
11055 # Same as above, but a single script fragment to be evaled but not shown.
11056 finish_eval=$lt_finish_eval
11057
11058 # Take the output of nm and produce a listing of raw symbols and C names.
11059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11060
11061 # Transform the output of nm in a proper C declaration
11062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11063
11064 # Transform the output of nm in a C name address pair
11065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11066
11067 # This is the shared library runtime path variable.
11068 runpath_var=$runpath_var
11069
11070 # This is the shared library path variable.
11071 shlibpath_var=$shlibpath_var
11072
11073 # Is shlibpath searched before the hard-coded library search path?
11074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11075
11076 # How to hardcode a shared library path into an executable.
11077 hardcode_action=$hardcode_action
11078
11079 # Whether we should hardcode library paths into libraries.
11080 hardcode_into_libs=$hardcode_into_libs
11081
11082 # Flag to hardcode \$libdir into a binary during linking.
11083 # This must work even if \$libdir does not exist.
11084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11085
11086 # If ld is used when linking, flag to hardcode \$libdir into
11087 # a binary during linking. This must work even if \$libdir does
11088 # not exist.
11089 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11090
11091 # Whether we need a single -rpath flag with a separated argument.
11092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11093
11094 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11095 # resulting binary.
11096 hardcode_direct=$hardcode_direct
11097
11098 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11099 # resulting binary.
11100 hardcode_minus_L=$hardcode_minus_L
11101
11102 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11103 # the resulting binary.
11104 hardcode_shlibpath_var=$hardcode_shlibpath_var
11105
11106 # Set to yes if building a shared library automatically hardcodes DIR into the library
11107 # and all subsequent libraries and executables linked against it.
11108 hardcode_automatic=$hardcode_automatic
11109
11110 # Variables whose values should be saved in libtool wrapper scripts and
11111 # restored at relink time.
11112 variables_saved_for_relink="$variables_saved_for_relink"
11113
11114 # Whether libtool must link a program against all its dependency libraries.
11115 link_all_deplibs=$link_all_deplibs
11116
11117 # Compile-time system search path for libraries
11118 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11119
11120 # Run-time system search path for libraries
11121 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11122
11123 # Fix the shell variable \$srcfile for the compiler.
11124 fix_srcfile_path=$lt_fix_srcfile_path
11125
11126 # Set to yes if exported symbols are required.
11127 always_export_symbols=$always_export_symbols
11128
11129 # The commands to list exported symbols.
11130 export_symbols_cmds=$lt_export_symbols_cmds
11131
11132 # The commands to extract the exported symbol list from a shared archive.
11133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11134
11135 # Symbols that should not be listed in the preloaded symbols.
11136 exclude_expsyms=$lt_exclude_expsyms
11137
11138 # Symbols that must always be exported.
11139 include_expsyms=$lt_include_expsyms
11140
11141 # ### END LIBTOOL CONFIG
11142
11143 __EOF__
11144
11145
11146   case $host_os in
11147   aix3*)
11148     cat <<\EOF >> "$cfgfile"
11149
11150 # AIX sometimes has problems with the GCC collect2 program.  For some
11151 # reason, if we set the COLLECT_NAMES environment variable, the problems
11152 # vanish in a puff of smoke.
11153 if test "X${COLLECT_NAMES+set}" != Xset; then
11154   COLLECT_NAMES=
11155   export COLLECT_NAMES
11156 fi
11157 EOF
11158     ;;
11159   esac
11160
11161   # We use sed instead of cat because bash on DJGPP gets confused if
11162   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11163   # text mode, it properly converts lines to CR/LF.  This bash problem
11164   # is reportedly fixed, but why not run on old versions too?
11165   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11166
11167   mv -f "$cfgfile" "$ofile" || \
11168     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11169   chmod +x "$ofile"
11170
11171 else
11172   # If there is no Makefile yet, we rely on a make rule to execute
11173   # `config.status --recheck' to rerun these tests and create the
11174   # libtool script then.
11175   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11176   if test -f "$ltmain_in"; then
11177     test -f Makefile && make "$ltmain"
11178   fi
11179 fi
11180
11181
11182 ac_ext=c
11183 ac_cpp='$CPP $CPPFLAGS'
11184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11187
11188 CC="$lt_save_CC"
11189
11190
11191 # Check whether --with-tags was given.
11192 if test "${with_tags+set}" = set; then
11193   withval=$with_tags; tagnames="$withval"
11194 fi
11195
11196
11197 if test -f "$ltmain" && test -n "$tagnames"; then
11198   if test ! -f "${ofile}"; then
11199     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11200 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11201   fi
11202
11203   if test -z "$LTCC"; then
11204     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11205     if test -z "$LTCC"; then
11206       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11207 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11208     else
11209       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11210 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11211     fi
11212   fi
11213   if test -z "$LTCFLAGS"; then
11214     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11215   fi
11216
11217   # Extract list of available tagged configurations in $ofile.
11218   # Note that this assumes the entire list is on one line.
11219   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11220
11221   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11222   for tagname in $tagnames; do
11223     IFS="$lt_save_ifs"
11224     # Check whether tagname contains only valid characters
11225     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11226     "") ;;
11227     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11228 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11229    { (exit 1); exit 1; }; }
11230         ;;
11231     esac
11232
11233     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11234     then
11235       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11236 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11237    { (exit 1); exit 1; }; }
11238     fi
11239
11240     # Update the list of available tags.
11241     if test -n "$tagname"; then
11242       echo appending configuration tag \"$tagname\" to $ofile
11243
11244       case $tagname in
11245       CXX)
11246         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11247             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11248             (test "X$CXX" != "Xg++"))) ; then
11249           ac_ext=cpp
11250 ac_cpp='$CXXCPP $CPPFLAGS'
11251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11254
11255
11256
11257
11258 archive_cmds_need_lc_CXX=no
11259 allow_undefined_flag_CXX=
11260 always_export_symbols_CXX=no
11261 archive_expsym_cmds_CXX=
11262 export_dynamic_flag_spec_CXX=
11263 hardcode_direct_CXX=no
11264 hardcode_libdir_flag_spec_CXX=
11265 hardcode_libdir_flag_spec_ld_CXX=
11266 hardcode_libdir_separator_CXX=
11267 hardcode_minus_L_CXX=no
11268 hardcode_shlibpath_var_CXX=unsupported
11269 hardcode_automatic_CXX=no
11270 module_cmds_CXX=
11271 module_expsym_cmds_CXX=
11272 link_all_deplibs_CXX=unknown
11273 old_archive_cmds_CXX=$old_archive_cmds
11274 no_undefined_flag_CXX=
11275 whole_archive_flag_spec_CXX=
11276 enable_shared_with_static_runtimes_CXX=no
11277
11278 # Dependencies to place before and after the object being linked:
11279 predep_objects_CXX=
11280 postdep_objects_CXX=
11281 predeps_CXX=
11282 postdeps_CXX=
11283 compiler_lib_search_path_CXX=
11284 compiler_lib_search_dirs_CXX=
11285
11286 # Source file extension for C++ test sources.
11287 ac_ext=cpp
11288
11289 # Object file extension for compiled C++ test sources.
11290 objext=o
11291 objext_CXX=$objext
11292
11293 # Code to be used in simple compile tests
11294 lt_simple_compile_test_code="int some_variable = 0;"
11295
11296 # Code to be used in simple link tests
11297 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11298
11299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11300
11301 # If no C compiler was specified, use CC.
11302 LTCC=${LTCC-"$CC"}
11303
11304 # If no C compiler flags were specified, use CFLAGS.
11305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11306
11307 # Allow CC to be a program name with arguments.
11308 compiler=$CC
11309
11310
11311 # save warnings/boilerplate of simple test code
11312 ac_outfile=conftest.$ac_objext
11313 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11315 _lt_compiler_boilerplate=`cat conftest.err`
11316 $rm conftest*
11317
11318 ac_outfile=conftest.$ac_objext
11319 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11321 _lt_linker_boilerplate=`cat conftest.err`
11322 $rm -r conftest*
11323
11324
11325 # Allow CC to be a program name with arguments.
11326 lt_save_CC=$CC
11327 lt_save_LD=$LD
11328 lt_save_GCC=$GCC
11329 GCC=$GXX
11330 lt_save_with_gnu_ld=$with_gnu_ld
11331 lt_save_path_LD=$lt_cv_path_LD
11332 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11333   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11334 else
11335   $as_unset lt_cv_prog_gnu_ld
11336 fi
11337 if test -n "${lt_cv_path_LDCXX+set}"; then
11338   lt_cv_path_LD=$lt_cv_path_LDCXX
11339 else
11340   $as_unset lt_cv_path_LD
11341 fi
11342 test -z "${LDCXX+set}" || LD=$LDCXX
11343 CC=${CXX-"c++"}
11344 compiler=$CC
11345 compiler_CXX=$CC
11346 for cc_temp in $compiler""; do
11347   case $cc_temp in
11348     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11349     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11350     \-*) ;;
11351     *) break;;
11352   esac
11353 done
11354 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11355
11356
11357 # We don't want -fno-exception wen compiling C++ code, so set the
11358 # no_builtin_flag separately
11359 if test "$GXX" = yes; then
11360   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11361 else
11362   lt_prog_compiler_no_builtin_flag_CXX=
11363 fi
11364
11365 if test "$GXX" = yes; then
11366   # Set up default GNU C++ configuration
11367
11368
11369 # Check whether --with-gnu-ld was given.
11370 if test "${with_gnu_ld+set}" = set; then
11371   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11372 else
11373   with_gnu_ld=no
11374 fi
11375
11376 ac_prog=ld
11377 if test "$GCC" = yes; then
11378   # Check if gcc -print-prog-name=ld gives a path.
11379   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11380 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11381   case $host in
11382   *-*-mingw*)
11383     # gcc leaves a trailing carriage return which upsets mingw
11384     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11385   *)
11386     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11387   esac
11388   case $ac_prog in
11389     # Accept absolute paths.
11390     [\\/]* | ?:[\\/]*)
11391       re_direlt='/[^/][^/]*/\.\./'
11392       # Canonicalize the pathname of ld
11393       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11394       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11395         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11396       done
11397       test -z "$LD" && LD="$ac_prog"
11398       ;;
11399   "")
11400     # If it fails, then pretend we aren't using GCC.
11401     ac_prog=ld
11402     ;;
11403   *)
11404     # If it is relative, then search for the first ld in PATH.
11405     with_gnu_ld=unknown
11406     ;;
11407   esac
11408 elif test "$with_gnu_ld" = yes; then
11409   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11410 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11411 else
11412   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11413 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11414 fi
11415 if test "${lt_cv_path_LD+set}" = set; then
11416   echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418   if test -z "$LD"; then
11419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11420   for ac_dir in $PATH; do
11421     IFS="$lt_save_ifs"
11422     test -z "$ac_dir" && ac_dir=.
11423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11424       lt_cv_path_LD="$ac_dir/$ac_prog"
11425       # Check to see if the program is GNU ld.  I'd rather use --version,
11426       # but apparently some variants of GNU ld only accept -v.
11427       # Break only if it was the GNU/non-GNU ld that we prefer.
11428       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11429       *GNU* | *'with BFD'*)
11430         test "$with_gnu_ld" != no && break
11431         ;;
11432       *)
11433         test "$with_gnu_ld" != yes && break
11434         ;;
11435       esac
11436     fi
11437   done
11438   IFS="$lt_save_ifs"
11439 else
11440   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11441 fi
11442 fi
11443
11444 LD="$lt_cv_path_LD"
11445 if test -n "$LD"; then
11446   { echo "$as_me:$LINENO: result: $LD" >&5
11447 echo "${ECHO_T}$LD" >&6; }
11448 else
11449   { echo "$as_me:$LINENO: result: no" >&5
11450 echo "${ECHO_T}no" >&6; }
11451 fi
11452 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11453 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11454    { (exit 1); exit 1; }; }
11455 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11456 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11457 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11461 case `$LD -v 2>&1 </dev/null` in
11462 *GNU* | *'with BFD'*)
11463   lt_cv_prog_gnu_ld=yes
11464   ;;
11465 *)
11466   lt_cv_prog_gnu_ld=no
11467   ;;
11468 esac
11469 fi
11470 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11471 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11472 with_gnu_ld=$lt_cv_prog_gnu_ld
11473
11474
11475
11476   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11477   # archiving commands below assume that GNU ld is being used.
11478   if test "$with_gnu_ld" = yes; then
11479     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11480     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'
11481
11482     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11483     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11484
11485     # If archive_cmds runs LD, not CC, wlarc should be empty
11486     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11487     #     investigate it a little bit more. (MM)
11488     wlarc='${wl}'
11489
11490     # ancient GNU ld didn't support --whole-archive et. al.
11491     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11492         grep 'no-whole-archive' > /dev/null; then
11493       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11494     else
11495       whole_archive_flag_spec_CXX=
11496     fi
11497   else
11498     with_gnu_ld=no
11499     wlarc=
11500
11501     # A generic and very simple default shared library creation
11502     # command for GNU C++ for the case where it uses the native
11503     # linker, instead of GNU ld.  If possible, this setting should
11504     # overridden to take advantage of the native linker features on
11505     # the platform it is being used on.
11506     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11507   fi
11508
11509   # Commands to make compiler produce verbose output that lists
11510   # what "hidden" libraries, object files and flags are used when
11511   # linking a shared library.
11512   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11513
11514 else
11515   GXX=no
11516   with_gnu_ld=no
11517   wlarc=
11518 fi
11519
11520 # PORTME: fill in a description of your system's C++ link characteristics
11521 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11522 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11523 ld_shlibs_CXX=yes
11524 case $host_os in
11525   aix3*)
11526     # FIXME: insert proper C++ library support
11527     ld_shlibs_CXX=no
11528     ;;
11529   aix[4-9]*)
11530     if test "$host_cpu" = ia64; then
11531       # On IA64, the linker does run time linking by default, so we don't
11532       # have to do anything special.
11533       aix_use_runtimelinking=no
11534       exp_sym_flag='-Bexport'
11535       no_entry_flag=""
11536     else
11537       aix_use_runtimelinking=no
11538
11539       # Test if we are trying to use run time linking or normal
11540       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11541       # need to do runtime linking.
11542       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11543         for ld_flag in $LDFLAGS; do
11544           case $ld_flag in
11545           *-brtl*)
11546             aix_use_runtimelinking=yes
11547             break
11548             ;;
11549           esac
11550         done
11551         ;;
11552       esac
11553
11554       exp_sym_flag='-bexport'
11555       no_entry_flag='-bnoentry'
11556     fi
11557
11558     # When large executables or shared objects are built, AIX ld can
11559     # have problems creating the table of contents.  If linking a library
11560     # or program results in "error TOC overflow" add -mminimal-toc to
11561     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11562     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11563
11564     archive_cmds_CXX=''
11565     hardcode_direct_CXX=yes
11566     hardcode_libdir_separator_CXX=':'
11567     link_all_deplibs_CXX=yes
11568
11569     if test "$GXX" = yes; then
11570       case $host_os in aix4.[012]|aix4.[012].*)
11571       # We only want to do this on AIX 4.2 and lower, the check
11572       # below for broken collect2 doesn't work under 4.3+
11573         collect2name=`${CC} -print-prog-name=collect2`
11574         if test -f "$collect2name" && \
11575            strings "$collect2name" | grep resolve_lib_name >/dev/null
11576         then
11577           # We have reworked collect2
11578           :
11579         else
11580           # We have old collect2
11581           hardcode_direct_CXX=unsupported
11582           # It fails to find uninstalled libraries when the uninstalled
11583           # path is not listed in the libpath.  Setting hardcode_minus_L
11584           # to unsupported forces relinking
11585           hardcode_minus_L_CXX=yes
11586           hardcode_libdir_flag_spec_CXX='-L$libdir'
11587           hardcode_libdir_separator_CXX=
11588         fi
11589         ;;
11590       esac
11591       shared_flag='-shared'
11592       if test "$aix_use_runtimelinking" = yes; then
11593         shared_flag="$shared_flag "'${wl}-G'
11594       fi
11595     else
11596       # not using gcc
11597       if test "$host_cpu" = ia64; then
11598         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11599         # chokes on -Wl,-G. The following line is correct:
11600         shared_flag='-G'
11601       else
11602         if test "$aix_use_runtimelinking" = yes; then
11603           shared_flag='${wl}-G'
11604         else
11605           shared_flag='${wl}-bM:SRE'
11606         fi
11607       fi
11608     fi
11609
11610     # It seems that -bexpall does not export symbols beginning with
11611     # underscore (_), so it is better to generate a list of symbols to export.
11612     always_export_symbols_CXX=yes
11613     if test "$aix_use_runtimelinking" = yes; then
11614       # Warning - without using the other runtime loading flags (-brtl),
11615       # -berok will link without error, but may produce a broken library.
11616       allow_undefined_flag_CXX='-berok'
11617       # Determine the default libpath from the value encoded in an empty executable.
11618       cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h.  */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h.  */
11624
11625 int
11626 main ()
11627 {
11628
11629   ;
11630   return 0;
11631 }
11632 _ACEOF
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (ac_try="$ac_link"
11635 case "(($ac_try" in
11636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637   *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640   (eval "$ac_link") 2>conftest.er1
11641   ac_status=$?
11642   grep -v '^ *+' conftest.er1 >conftest.err
11643   rm -f conftest.er1
11644   cat conftest.err >&5
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); } && {
11647          test -z "$ac_cxx_werror_flag" ||
11648          test ! -s conftest.err
11649        } && test -s conftest$ac_exeext &&
11650        $as_test_x conftest$ac_exeext; then
11651
11652 lt_aix_libpath_sed='
11653     /Import File Strings/,/^$/ {
11654         /^0/ {
11655             s/^0  *\(.*\)$/\1/
11656             p
11657         }
11658     }'
11659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11660 # Check for a 64-bit object if we didn't find anything.
11661 if test -z "$aix_libpath"; then
11662   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663 fi
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668
11669 fi
11670
11671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11672       conftest$ac_exeext conftest.$ac_ext
11673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11674
11675       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11676
11677       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"
11678      else
11679       if test "$host_cpu" = ia64; then
11680         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11681         allow_undefined_flag_CXX="-z nodefs"
11682         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"
11683       else
11684         # Determine the default libpath from the value encoded in an empty executable.
11685         cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691
11692 int
11693 main ()
11694 {
11695
11696   ;
11697   return 0;
11698 }
11699 _ACEOF
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (ac_try="$ac_link"
11702 case "(($ac_try" in
11703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704   *) ac_try_echo=$ac_try;;
11705 esac
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707   (eval "$ac_link") 2>conftest.er1
11708   ac_status=$?
11709   grep -v '^ *+' conftest.er1 >conftest.err
11710   rm -f conftest.er1
11711   cat conftest.err >&5
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); } && {
11714          test -z "$ac_cxx_werror_flag" ||
11715          test ! -s conftest.err
11716        } && test -s conftest$ac_exeext &&
11717        $as_test_x conftest$ac_exeext; then
11718
11719 lt_aix_libpath_sed='
11720     /Import File Strings/,/^$/ {
11721         /^0/ {
11722             s/^0  *\(.*\)$/\1/
11723             p
11724         }
11725     }'
11726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11727 # Check for a 64-bit object if we didn't find anything.
11728 if test -z "$aix_libpath"; then
11729   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11730 fi
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735
11736 fi
11737
11738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11739       conftest$ac_exeext conftest.$ac_ext
11740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11741
11742         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11743         # Warning - without using the other run time loading flags,
11744         # -berok will link without error, but may produce a broken library.
11745         no_undefined_flag_CXX=' ${wl}-bernotok'
11746         allow_undefined_flag_CXX=' ${wl}-berok'
11747         # Exported symbols can be pulled into shared objects from archives
11748         whole_archive_flag_spec_CXX='$convenience'
11749         archive_cmds_need_lc_CXX=yes
11750         # This is similar to how AIX traditionally builds its shared libraries.
11751         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'
11752       fi
11753     fi
11754     ;;
11755
11756   beos*)
11757     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11758       allow_undefined_flag_CXX=unsupported
11759       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11760       # support --undefined.  This deserves some investigation.  FIXME
11761       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11762     else
11763       ld_shlibs_CXX=no
11764     fi
11765     ;;
11766
11767   chorus*)
11768     case $cc_basename in
11769       *)
11770         # FIXME: insert proper C++ library support
11771         ld_shlibs_CXX=no
11772         ;;
11773     esac
11774     ;;
11775
11776   cygwin* | mingw* | pw32*)
11777     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11778     # as there is no search path for DLLs.
11779     hardcode_libdir_flag_spec_CXX='-L$libdir'
11780     allow_undefined_flag_CXX=unsupported
11781     always_export_symbols_CXX=no
11782     enable_shared_with_static_runtimes_CXX=yes
11783
11784     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11785       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'
11786       # If the export-symbols file already is a .def file (1st line
11787       # is EXPORTS), use it as is; otherwise, prepend...
11788       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11789         cp $export_symbols $output_objdir/$soname.def;
11790       else
11791         echo EXPORTS > $output_objdir/$soname.def;
11792         cat $export_symbols >> $output_objdir/$soname.def;
11793       fi~
11794       $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'
11795     else
11796       ld_shlibs_CXX=no
11797     fi
11798   ;;
11799       darwin* | rhapsody*)
11800       archive_cmds_need_lc_CXX=no
11801       hardcode_direct_CXX=no
11802       hardcode_automatic_CXX=yes
11803       hardcode_shlibpath_var_CXX=unsupported
11804       whole_archive_flag_spec_CXX=''
11805       link_all_deplibs_CXX=yes
11806       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11807       if test "$GXX" = yes ; then
11808       output_verbose_link_cmd='echo'
11809       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11810       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11811       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11812       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11813       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11814         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${_lt_dsymutil}"
11815         archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11816       fi
11817       else
11818       case $cc_basename in
11819         xlc*)
11820          output_verbose_link_cmd='echo'
11821           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11822           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11823           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11824           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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11825           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}'
11826           ;;
11827        *)
11828          ld_shlibs_CXX=no
11829           ;;
11830       esac
11831       fi
11832         ;;
11833
11834   dgux*)
11835     case $cc_basename in
11836       ec++*)
11837         # FIXME: insert proper C++ library support
11838         ld_shlibs_CXX=no
11839         ;;
11840       ghcx*)
11841         # Green Hills C++ Compiler
11842         # FIXME: insert proper C++ library support
11843         ld_shlibs_CXX=no
11844         ;;
11845       *)
11846         # FIXME: insert proper C++ library support
11847         ld_shlibs_CXX=no
11848         ;;
11849     esac
11850     ;;
11851   freebsd[12]*)
11852     # C++ shared libraries reported to be fairly broken before switch to ELF
11853     ld_shlibs_CXX=no
11854     ;;
11855   freebsd-elf*)
11856     archive_cmds_need_lc_CXX=no
11857     ;;
11858   freebsd* | dragonfly*)
11859     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11860     # conventions
11861     ld_shlibs_CXX=yes
11862     ;;
11863   gnu*)
11864     ;;
11865   hpux9*)
11866     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11867     hardcode_libdir_separator_CXX=:
11868     export_dynamic_flag_spec_CXX='${wl}-E'
11869     hardcode_direct_CXX=yes
11870     hardcode_minus_L_CXX=yes # Not in the search PATH,
11871                                 # but as the default
11872                                 # location of the library.
11873
11874     case $cc_basename in
11875     CC*)
11876       # FIXME: insert proper C++ library support
11877       ld_shlibs_CXX=no
11878       ;;
11879     aCC*)
11880       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'
11881       # Commands to make compiler produce verbose output that lists
11882       # what "hidden" libraries, object files and flags are used when
11883       # linking a shared library.
11884       #
11885       # There doesn't appear to be a way to prevent this compiler from
11886       # explicitly linking system object files so we need to strip them
11887       # from the output so that they don't get included in the library
11888       # dependencies.
11889       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'
11890       ;;
11891     *)
11892       if test "$GXX" = yes; then
11893         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'
11894       else
11895         # FIXME: insert proper C++ library support
11896         ld_shlibs_CXX=no
11897       fi
11898       ;;
11899     esac
11900     ;;
11901   hpux10*|hpux11*)
11902     if test $with_gnu_ld = no; then
11903       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11904       hardcode_libdir_separator_CXX=:
11905
11906       case $host_cpu in
11907       hppa*64*|ia64*) ;;
11908       *)
11909         export_dynamic_flag_spec_CXX='${wl}-E'
11910         ;;
11911       esac
11912     fi
11913     case $host_cpu in
11914     hppa*64*|ia64*)
11915       hardcode_direct_CXX=no
11916       hardcode_shlibpath_var_CXX=no
11917       ;;
11918     *)
11919       hardcode_direct_CXX=yes
11920       hardcode_minus_L_CXX=yes # Not in the search PATH,
11921                                               # but as the default
11922                                               # location of the library.
11923       ;;
11924     esac
11925
11926     case $cc_basename in
11927       CC*)
11928         # FIXME: insert proper C++ library support
11929         ld_shlibs_CXX=no
11930         ;;
11931       aCC*)
11932         case $host_cpu in
11933         hppa*64*)
11934           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11935           ;;
11936         ia64*)
11937           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11938           ;;
11939         *)
11940           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11941           ;;
11942         esac
11943         # Commands to make compiler produce verbose output that lists
11944         # what "hidden" libraries, object files and flags are used when
11945         # linking a shared library.
11946         #
11947         # There doesn't appear to be a way to prevent this compiler from
11948         # explicitly linking system object files so we need to strip them
11949         # from the output so that they don't get included in the library
11950         # dependencies.
11951         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'
11952         ;;
11953       *)
11954         if test "$GXX" = yes; then
11955           if test $with_gnu_ld = no; then
11956             case $host_cpu in
11957             hppa*64*)
11958               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11959               ;;
11960             ia64*)
11961               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11962               ;;
11963             *)
11964               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'
11965               ;;
11966             esac
11967           fi
11968         else
11969           # FIXME: insert proper C++ library support
11970           ld_shlibs_CXX=no
11971         fi
11972         ;;
11973     esac
11974     ;;
11975   interix[3-9]*)
11976     hardcode_direct_CXX=no
11977     hardcode_shlibpath_var_CXX=no
11978     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11979     export_dynamic_flag_spec_CXX='${wl}-E'
11980     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11981     # Instead, shared libraries are loaded at an image base (0x10000000 by
11982     # default) and relocated if they conflict, which is a slow very memory
11983     # consuming and fragmenting process.  To avoid this, we pick a random,
11984     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11985     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11986     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'
11987     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'
11988     ;;
11989   irix5* | irix6*)
11990     case $cc_basename in
11991       CC*)
11992         # SGI C++
11993         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'
11994
11995         # Archives containing C++ object files must be created using
11996         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11997         # necessary to make sure instantiated templates are included
11998         # in the archive.
11999         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12000         ;;
12001       *)
12002         if test "$GXX" = yes; then
12003           if test "$with_gnu_ld" = no; then
12004             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'
12005           else
12006             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'
12007           fi
12008         fi
12009         link_all_deplibs_CXX=yes
12010         ;;
12011     esac
12012     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12013     hardcode_libdir_separator_CXX=:
12014     ;;
12015   linux* | k*bsd*-gnu)
12016     case $cc_basename in
12017       KCC*)
12018         # Kuck and Associates, Inc. (KAI) C++ Compiler
12019
12020         # KCC will only create a shared library if the output file
12021         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12022         # to its proper name (with version) after linking.
12023         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'
12024         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'
12025         # Commands to make compiler produce verbose output that lists
12026         # what "hidden" libraries, object files and flags are used when
12027         # linking a shared library.
12028         #
12029         # There doesn't appear to be a way to prevent this compiler from
12030         # explicitly linking system object files so we need to strip them
12031         # from the output so that they don't get included in the library
12032         # dependencies.
12033         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'
12034
12035         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12036         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12037
12038         # Archives containing C++ object files must be created using
12039         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12040         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12041         ;;
12042       icpc*)
12043         # Intel C++
12044         with_gnu_ld=yes
12045         # version 8.0 and above of icpc choke on multiply defined symbols
12046         # if we add $predep_objects and $postdep_objects, however 7.1 and
12047         # earlier do not add the objects themselves.
12048         case `$CC -V 2>&1` in
12049         *"Version 7."*)
12050           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051           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'
12052           ;;
12053         *)  # Version 8.0 or newer
12054           tmp_idyn=
12055           case $host_cpu in
12056             ia64*) tmp_idyn=' -i_dynamic';;
12057           esac
12058           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059           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'
12060           ;;
12061         esac
12062         archive_cmds_need_lc_CXX=no
12063         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12064         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12065         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12066         ;;
12067       pgCC* | pgcpp*)
12068         # Portland Group C++ compiler
12069         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12070         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'
12071
12072         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12073         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12074         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'
12075         ;;
12076       cxx*)
12077         # Compaq C++
12078         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079         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'
12080
12081         runpath_var=LD_RUN_PATH
12082         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12083         hardcode_libdir_separator_CXX=:
12084
12085         # Commands to make compiler produce verbose output that lists
12086         # what "hidden" libraries, object files and flags are used when
12087         # linking a shared library.
12088         #
12089         # There doesn't appear to be a way to prevent this compiler from
12090         # explicitly linking system object files so we need to strip them
12091         # from the output so that they don't get included in the library
12092         # dependencies.
12093         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'
12094         ;;
12095       *)
12096         case `$CC -V 2>&1 | sed 5q` in
12097         *Sun\ C*)
12098           # Sun C++ 5.9
12099           no_undefined_flag_CXX=' -zdefs'
12100           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12101           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12102           hardcode_libdir_flag_spec_CXX='-R$libdir'
12103           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12104
12105           # Not sure whether something based on
12106           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12107           # would be better.
12108           output_verbose_link_cmd='echo'
12109
12110           # Archives containing C++ object files must be created using
12111           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12112           # necessary to make sure instantiated templates are included
12113           # in the archive.
12114           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12115           ;;
12116         esac
12117         ;;
12118     esac
12119     ;;
12120   lynxos*)
12121     # FIXME: insert proper C++ library support
12122     ld_shlibs_CXX=no
12123     ;;
12124   m88k*)
12125     # FIXME: insert proper C++ library support
12126     ld_shlibs_CXX=no
12127     ;;
12128   mvs*)
12129     case $cc_basename in
12130       cxx*)
12131         # FIXME: insert proper C++ library support
12132         ld_shlibs_CXX=no
12133         ;;
12134       *)
12135         # FIXME: insert proper C++ library support
12136         ld_shlibs_CXX=no
12137         ;;
12138     esac
12139     ;;
12140   netbsd* | netbsdelf*-gnu)
12141     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12142       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12143       wlarc=
12144       hardcode_libdir_flag_spec_CXX='-R$libdir'
12145       hardcode_direct_CXX=yes
12146       hardcode_shlibpath_var_CXX=no
12147     fi
12148     # Workaround some broken pre-1.5 toolchains
12149     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12150     ;;
12151   openbsd2*)
12152     # C++ shared libraries are fairly broken
12153     ld_shlibs_CXX=no
12154     ;;
12155   openbsd*)
12156     if test -f /usr/libexec/ld.so; then
12157       hardcode_direct_CXX=yes
12158       hardcode_shlibpath_var_CXX=no
12159       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12160       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12161       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12162         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12163         export_dynamic_flag_spec_CXX='${wl}-E'
12164         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12165       fi
12166       output_verbose_link_cmd='echo'
12167     else
12168       ld_shlibs_CXX=no
12169     fi
12170     ;;
12171   osf3*)
12172     case $cc_basename in
12173       KCC*)
12174         # Kuck and Associates, Inc. (KAI) C++ Compiler
12175
12176         # KCC will only create a shared library if the output file
12177         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12178         # to its proper name (with version) after linking.
12179         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'
12180
12181         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12182         hardcode_libdir_separator_CXX=:
12183
12184         # Archives containing C++ object files must be created using
12185         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12186         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12187
12188         ;;
12189       RCC*)
12190         # Rational C++ 2.4.1
12191         # FIXME: insert proper C++ library support
12192         ld_shlibs_CXX=no
12193         ;;
12194       cxx*)
12195         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12196         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'
12197
12198         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12199         hardcode_libdir_separator_CXX=:
12200
12201         # Commands to make compiler produce verbose output that lists
12202         # what "hidden" libraries, object files and flags are used when
12203         # linking a shared library.
12204         #
12205         # There doesn't appear to be a way to prevent this compiler from
12206         # explicitly linking system object files so we need to strip them
12207         # from the output so that they don't get included in the library
12208         # dependencies.
12209         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'
12210         ;;
12211       *)
12212         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12213           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12214           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'
12215
12216           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12217           hardcode_libdir_separator_CXX=:
12218
12219           # Commands to make compiler produce verbose output that lists
12220           # what "hidden" libraries, object files and flags are used when
12221           # linking a shared library.
12222           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12223
12224         else
12225           # FIXME: insert proper C++ library support
12226           ld_shlibs_CXX=no
12227         fi
12228         ;;
12229     esac
12230     ;;
12231   osf4* | osf5*)
12232     case $cc_basename in
12233       KCC*)
12234         # Kuck and Associates, Inc. (KAI) C++ Compiler
12235
12236         # KCC will only create a shared library if the output file
12237         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12238         # to its proper name (with version) after linking.
12239         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'
12240
12241         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242         hardcode_libdir_separator_CXX=:
12243
12244         # Archives containing C++ object files must be created using
12245         # the KAI C++ compiler.
12246         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12247         ;;
12248       RCC*)
12249         # Rational C++ 2.4.1
12250         # FIXME: insert proper C++ library support
12251         ld_shlibs_CXX=no
12252         ;;
12253       cxx*)
12254         allow_undefined_flag_CXX=' -expect_unresolved \*'
12255         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'
12256         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12257           echo "-hidden">> $lib.exp~
12258           $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~
12259           $rm $lib.exp'
12260
12261         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12262         hardcode_libdir_separator_CXX=:
12263
12264         # Commands to make compiler produce verbose output that lists
12265         # what "hidden" libraries, object files and flags are used when
12266         # linking a shared library.
12267         #
12268         # There doesn't appear to be a way to prevent this compiler from
12269         # explicitly linking system object files so we need to strip them
12270         # from the output so that they don't get included in the library
12271         # dependencies.
12272         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'
12273         ;;
12274       *)
12275         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12276           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12277          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'
12278
12279           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280           hardcode_libdir_separator_CXX=:
12281
12282           # Commands to make compiler produce verbose output that lists
12283           # what "hidden" libraries, object files and flags are used when
12284           # linking a shared library.
12285           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12286
12287         else
12288           # FIXME: insert proper C++ library support
12289           ld_shlibs_CXX=no
12290         fi
12291         ;;
12292     esac
12293     ;;
12294   psos*)
12295     # FIXME: insert proper C++ library support
12296     ld_shlibs_CXX=no
12297     ;;
12298   sunos4*)
12299     case $cc_basename in
12300       CC*)
12301         # Sun C++ 4.x
12302         # FIXME: insert proper C++ library support
12303         ld_shlibs_CXX=no
12304         ;;
12305       lcc*)
12306         # Lucid
12307         # FIXME: insert proper C++ library support
12308         ld_shlibs_CXX=no
12309         ;;
12310       *)
12311         # FIXME: insert proper C++ library support
12312         ld_shlibs_CXX=no
12313         ;;
12314     esac
12315     ;;
12316   solaris*)
12317     case $cc_basename in
12318       CC*)
12319         # Sun C++ 4.2, 5.x and Centerline C++
12320         archive_cmds_need_lc_CXX=yes
12321         no_undefined_flag_CXX=' -zdefs'
12322         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12323         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12324         $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'
12325
12326         hardcode_libdir_flag_spec_CXX='-R$libdir'
12327         hardcode_shlibpath_var_CXX=no
12328         case $host_os in
12329           solaris2.[0-5] | solaris2.[0-5].*) ;;
12330           *)
12331             # The compiler driver will combine and reorder linker options,
12332             # but understands `-z linker_flag'.
12333             # Supported since Solaris 2.6 (maybe 2.5.1?)
12334             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12335             ;;
12336         esac
12337         link_all_deplibs_CXX=yes
12338
12339         output_verbose_link_cmd='echo'
12340
12341         # Archives containing C++ object files must be created using
12342         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12343         # necessary to make sure instantiated templates are included
12344         # in the archive.
12345         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12346         ;;
12347       gcx*)
12348         # Green Hills C++ Compiler
12349         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12350
12351         # The C++ compiler must be used to create the archive.
12352         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12353         ;;
12354       *)
12355         # GNU C++ compiler with Solaris linker
12356         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12357           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12358           if $CC --version | grep -v '^2\.7' > /dev/null; then
12359             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12360             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12361                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12362
12363             # Commands to make compiler produce verbose output that lists
12364             # what "hidden" libraries, object files and flags are used when
12365             # linking a shared library.
12366             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12367           else
12368             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12369             # platform.
12370             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12371             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12372                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12373
12374             # Commands to make compiler produce verbose output that lists
12375             # what "hidden" libraries, object files and flags are used when
12376             # linking a shared library.
12377             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12378           fi
12379
12380           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12381           case $host_os in
12382           solaris2.[0-5] | solaris2.[0-5].*) ;;
12383           *)
12384             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12385             ;;
12386           esac
12387         fi
12388         ;;
12389     esac
12390     ;;
12391   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12392     no_undefined_flag_CXX='${wl}-z,text'
12393     archive_cmds_need_lc_CXX=no
12394     hardcode_shlibpath_var_CXX=no
12395     runpath_var='LD_RUN_PATH'
12396
12397     case $cc_basename in
12398       CC*)
12399         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12401         ;;
12402       *)
12403         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12404         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12405         ;;
12406     esac
12407     ;;
12408   sysv5* | sco3.2v5* | sco5v6*)
12409     # Note: We can NOT use -z defs as we might desire, because we do not
12410     # link with -lc, and that would cause any symbols used from libc to
12411     # always be unresolved, which means just about no library would
12412     # ever link correctly.  If we're not using GNU ld we use -z text
12413     # though, which does catch some bad symbols but isn't as heavy-handed
12414     # as -z defs.
12415     # For security reasons, it is highly recommended that you always
12416     # use absolute paths for naming shared libraries, and exclude the
12417     # DT_RUNPATH tag from executables and libraries.  But doing so
12418     # requires that you compile everything twice, which is a pain.
12419     # So that behaviour is only enabled if SCOABSPATH is set to a
12420     # non-empty value in the environment.  Most likely only useful for
12421     # creating official distributions of packages.
12422     # This is a hack until libtool officially supports absolute path
12423     # names for shared libraries.
12424     no_undefined_flag_CXX='${wl}-z,text'
12425     allow_undefined_flag_CXX='${wl}-z,nodefs'
12426     archive_cmds_need_lc_CXX=no
12427     hardcode_shlibpath_var_CXX=no
12428     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12429     hardcode_libdir_separator_CXX=':'
12430     link_all_deplibs_CXX=yes
12431     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12432     runpath_var='LD_RUN_PATH'
12433
12434     case $cc_basename in
12435       CC*)
12436         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12437         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12438         ;;
12439       *)
12440         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12441         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12442         ;;
12443     esac
12444     ;;
12445   tandem*)
12446     case $cc_basename in
12447       NCC*)
12448         # NonStop-UX NCC 3.20
12449         # FIXME: insert proper C++ library support
12450         ld_shlibs_CXX=no
12451         ;;
12452       *)
12453         # FIXME: insert proper C++ library support
12454         ld_shlibs_CXX=no
12455         ;;
12456     esac
12457     ;;
12458   vxworks*)
12459     # FIXME: insert proper C++ library support
12460     ld_shlibs_CXX=no
12461     ;;
12462   *)
12463     # FIXME: insert proper C++ library support
12464     ld_shlibs_CXX=no
12465     ;;
12466 esac
12467 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12468 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12469 test "$ld_shlibs_CXX" = no && can_build_shared=no
12470
12471 GCC_CXX="$GXX"
12472 LD_CXX="$LD"
12473
12474 cat > conftest.$ac_ext <<EOF
12475 class Foo
12476 {
12477 public:
12478   Foo (void) { a = 0; }
12479 private:
12480   int a;
12481 };
12482 EOF
12483
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485   (eval $ac_compile) 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); }; then
12489   # Parse the compiler output and extract the necessary
12490   # objects, libraries and library flags.
12491
12492   # Sentinel used to keep track of whether or not we are before
12493   # the conftest object file.
12494   pre_test_object_deps_done=no
12495
12496   # The `*' in the case matches for architectures that use `case' in
12497   # $output_verbose_cmd can trigger glob expansion during the loop
12498   # eval without this substitution.
12499   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12500
12501   for p in `eval $output_verbose_link_cmd`; do
12502     case $p in
12503
12504     -L* | -R* | -l*)
12505        # Some compilers place space between "-{L,R}" and the path.
12506        # Remove the space.
12507        if test $p = "-L" \
12508           || test $p = "-R"; then
12509          prev=$p
12510          continue
12511        else
12512          prev=
12513        fi
12514
12515        if test "$pre_test_object_deps_done" = no; then
12516          case $p in
12517          -L* | -R*)
12518            # Internal compiler library paths should come after those
12519            # provided the user.  The postdeps already come after the
12520            # user supplied libs so there is no need to process them.
12521            if test -z "$compiler_lib_search_path_CXX"; then
12522              compiler_lib_search_path_CXX="${prev}${p}"
12523            else
12524              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12525            fi
12526            ;;
12527          # The "-l" case would never come before the object being
12528          # linked, so don't bother handling this case.
12529          esac
12530        else
12531          if test -z "$postdeps_CXX"; then
12532            postdeps_CXX="${prev}${p}"
12533          else
12534            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12535          fi
12536        fi
12537        ;;
12538
12539     *.$objext)
12540        # This assumes that the test object file only shows up
12541        # once in the compiler output.
12542        if test "$p" = "conftest.$objext"; then
12543          pre_test_object_deps_done=yes
12544          continue
12545        fi
12546
12547        if test "$pre_test_object_deps_done" = no; then
12548          if test -z "$predep_objects_CXX"; then
12549            predep_objects_CXX="$p"
12550          else
12551            predep_objects_CXX="$predep_objects_CXX $p"
12552          fi
12553        else
12554          if test -z "$postdep_objects_CXX"; then
12555            postdep_objects_CXX="$p"
12556          else
12557            postdep_objects_CXX="$postdep_objects_CXX $p"
12558          fi
12559        fi
12560        ;;
12561
12562     *) ;; # Ignore the rest.
12563
12564     esac
12565   done
12566
12567   # Clean up.
12568   rm -f a.out a.exe
12569 else
12570   echo "libtool.m4: error: problem compiling CXX test program"
12571 fi
12572
12573 $rm -f confest.$objext
12574
12575 compiler_lib_search_dirs_CXX=
12576 if test -n "$compiler_lib_search_path_CXX"; then
12577   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12578 fi
12579
12580 # PORTME: override above test on systems where it is broken
12581 case $host_os in
12582 interix[3-9]*)
12583   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12584   # hack all around it, let's just trust "g++" to DTRT.
12585   predep_objects_CXX=
12586   postdep_objects_CXX=
12587   postdeps_CXX=
12588   ;;
12589
12590 linux*)
12591   case `$CC -V 2>&1 | sed 5q` in
12592   *Sun\ C*)
12593     # Sun C++ 5.9
12594     #
12595     # The more standards-conforming stlport4 library is
12596     # incompatible with the Cstd library. Avoid specifying
12597     # it if it's in CXXFLAGS. Ignore libCrun as
12598     # -library=stlport4 depends on it.
12599     case " $CXX $CXXFLAGS " in
12600     *" -library=stlport4 "*)
12601       solaris_use_stlport4=yes
12602       ;;
12603     esac
12604     if test "$solaris_use_stlport4" != yes; then
12605       postdeps_CXX='-library=Cstd -library=Crun'
12606     fi
12607     ;;
12608   esac
12609   ;;
12610
12611 solaris*)
12612   case $cc_basename in
12613   CC*)
12614     # The more standards-conforming stlport4 library is
12615     # incompatible with the Cstd library. Avoid specifying
12616     # it if it's in CXXFLAGS. Ignore libCrun as
12617     # -library=stlport4 depends on it.
12618     case " $CXX $CXXFLAGS " in
12619     *" -library=stlport4 "*)
12620       solaris_use_stlport4=yes
12621       ;;
12622     esac
12623
12624     # Adding this requires a known-good setup of shared libraries for
12625     # Sun compiler versions before 5.6, else PIC objects from an old
12626     # archive will be linked into the output, leading to subtle bugs.
12627     if test "$solaris_use_stlport4" != yes; then
12628       postdeps_CXX='-library=Cstd -library=Crun'
12629     fi
12630     ;;
12631   esac
12632   ;;
12633 esac
12634
12635 case " $postdeps_CXX " in
12636 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12637 esac
12638
12639 lt_prog_compiler_wl_CXX=
12640 lt_prog_compiler_pic_CXX=
12641 lt_prog_compiler_static_CXX=
12642
12643 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12644 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12645
12646   # C++ specific cases for pic, static, wl, etc.
12647   if test "$GXX" = yes; then
12648     lt_prog_compiler_wl_CXX='-Wl,'
12649     lt_prog_compiler_static_CXX='-static'
12650
12651     case $host_os in
12652     aix*)
12653       # All AIX code is PIC.
12654       if test "$host_cpu" = ia64; then
12655         # AIX 5 now supports IA64 processor
12656         lt_prog_compiler_static_CXX='-Bstatic'
12657       fi
12658       ;;
12659     amigaos*)
12660       # FIXME: we need at least 68020 code to build shared libraries, but
12661       # adding the `-m68020' flag to GCC prevents building anything better,
12662       # like `-m68040'.
12663       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12664       ;;
12665     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12666       # PIC is the default for these OSes.
12667       ;;
12668     mingw* | cygwin* | os2* | pw32*)
12669       # This hack is so that the source file can tell whether it is being
12670       # built for inclusion in a dll (and should export symbols for example).
12671       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12672       # (--disable-auto-import) libraries
12673       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12674       ;;
12675     darwin* | rhapsody*)
12676       # PIC is the default on this platform
12677       # Common symbols not allowed in MH_DYLIB files
12678       lt_prog_compiler_pic_CXX='-fno-common'
12679       ;;
12680     *djgpp*)
12681       # DJGPP does not support shared libraries at all
12682       lt_prog_compiler_pic_CXX=
12683       ;;
12684     interix[3-9]*)
12685       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12686       # Instead, we relocate shared libraries at runtime.
12687       ;;
12688     sysv4*MP*)
12689       if test -d /usr/nec; then
12690         lt_prog_compiler_pic_CXX=-Kconform_pic
12691       fi
12692       ;;
12693     hpux*)
12694       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12695       # not for PA HP-UX.
12696       case $host_cpu in
12697       hppa*64*|ia64*)
12698         ;;
12699       *)
12700         lt_prog_compiler_pic_CXX='-fPIC'
12701         ;;
12702       esac
12703       ;;
12704     *)
12705       lt_prog_compiler_pic_CXX='-fPIC'
12706       ;;
12707     esac
12708   else
12709     case $host_os in
12710       aix[4-9]*)
12711         # All AIX code is PIC.
12712         if test "$host_cpu" = ia64; then
12713           # AIX 5 now supports IA64 processor
12714           lt_prog_compiler_static_CXX='-Bstatic'
12715         else
12716           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12717         fi
12718         ;;
12719       chorus*)
12720         case $cc_basename in
12721         cxch68*)
12722           # Green Hills C++ Compiler
12723           # _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"
12724           ;;
12725         esac
12726         ;;
12727        darwin*)
12728          # PIC is the default on this platform
12729          # Common symbols not allowed in MH_DYLIB files
12730          case $cc_basename in
12731            xlc*)
12732            lt_prog_compiler_pic_CXX='-qnocommon'
12733            lt_prog_compiler_wl_CXX='-Wl,'
12734            ;;
12735          esac
12736        ;;
12737       dgux*)
12738         case $cc_basename in
12739           ec++*)
12740             lt_prog_compiler_pic_CXX='-KPIC'
12741             ;;
12742           ghcx*)
12743             # Green Hills C++ Compiler
12744             lt_prog_compiler_pic_CXX='-pic'
12745             ;;
12746           *)
12747             ;;
12748         esac
12749         ;;
12750       freebsd* | dragonfly*)
12751         # FreeBSD uses GNU C++
12752         ;;
12753       hpux9* | hpux10* | hpux11*)
12754         case $cc_basename in
12755           CC*)
12756             lt_prog_compiler_wl_CXX='-Wl,'
12757             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12758             if test "$host_cpu" != ia64; then
12759               lt_prog_compiler_pic_CXX='+Z'
12760             fi
12761             ;;
12762           aCC*)
12763             lt_prog_compiler_wl_CXX='-Wl,'
12764             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12765             case $host_cpu in
12766             hppa*64*|ia64*)
12767               # +Z the default
12768               ;;
12769             *)
12770               lt_prog_compiler_pic_CXX='+Z'
12771               ;;
12772             esac
12773             ;;
12774           *)
12775             ;;
12776         esac
12777         ;;
12778       interix*)
12779         # This is c89, which is MS Visual C++ (no shared libs)
12780         # Anyone wants to do a port?
12781         ;;
12782       irix5* | irix6* | nonstopux*)
12783         case $cc_basename in
12784           CC*)
12785             lt_prog_compiler_wl_CXX='-Wl,'
12786             lt_prog_compiler_static_CXX='-non_shared'
12787             # CC pic flag -KPIC is the default.
12788             ;;
12789           *)
12790             ;;
12791         esac
12792         ;;
12793       linux* | k*bsd*-gnu)
12794         case $cc_basename in
12795           KCC*)
12796             # KAI C++ Compiler
12797             lt_prog_compiler_wl_CXX='--backend -Wl,'
12798             lt_prog_compiler_pic_CXX='-fPIC'
12799             ;;
12800           icpc* | ecpc*)
12801             # Intel C++
12802             lt_prog_compiler_wl_CXX='-Wl,'
12803             lt_prog_compiler_pic_CXX='-KPIC'
12804             lt_prog_compiler_static_CXX='-static'
12805             ;;
12806           pgCC* | pgcpp*)
12807             # Portland Group C++ compiler.
12808             lt_prog_compiler_wl_CXX='-Wl,'
12809             lt_prog_compiler_pic_CXX='-fpic'
12810             lt_prog_compiler_static_CXX='-Bstatic'
12811             ;;
12812           cxx*)
12813             # Compaq C++
12814             # Make sure the PIC flag is empty.  It appears that all Alpha
12815             # Linux and Compaq Tru64 Unix objects are PIC.
12816             lt_prog_compiler_pic_CXX=
12817             lt_prog_compiler_static_CXX='-non_shared'
12818             ;;
12819           *)
12820             case `$CC -V 2>&1 | sed 5q` in
12821             *Sun\ C*)
12822               # Sun C++ 5.9
12823               lt_prog_compiler_pic_CXX='-KPIC'
12824               lt_prog_compiler_static_CXX='-Bstatic'
12825               lt_prog_compiler_wl_CXX='-Qoption ld '
12826               ;;
12827             esac
12828             ;;
12829         esac
12830         ;;
12831       lynxos*)
12832         ;;
12833       m88k*)
12834         ;;
12835       mvs*)
12836         case $cc_basename in
12837           cxx*)
12838             lt_prog_compiler_pic_CXX='-W c,exportall'
12839             ;;
12840           *)
12841             ;;
12842         esac
12843         ;;
12844       netbsd* | netbsdelf*-gnu)
12845         ;;
12846       osf3* | osf4* | osf5*)
12847         case $cc_basename in
12848           KCC*)
12849             lt_prog_compiler_wl_CXX='--backend -Wl,'
12850             ;;
12851           RCC*)
12852             # Rational C++ 2.4.1
12853             lt_prog_compiler_pic_CXX='-pic'
12854             ;;
12855           cxx*)
12856             # Digital/Compaq C++
12857             lt_prog_compiler_wl_CXX='-Wl,'
12858             # Make sure the PIC flag is empty.  It appears that all Alpha
12859             # Linux and Compaq Tru64 Unix objects are PIC.
12860             lt_prog_compiler_pic_CXX=
12861             lt_prog_compiler_static_CXX='-non_shared'
12862             ;;
12863           *)
12864             ;;
12865         esac
12866         ;;
12867       psos*)
12868         ;;
12869       solaris*)
12870         case $cc_basename in
12871           CC*)
12872             # Sun C++ 4.2, 5.x and Centerline C++
12873             lt_prog_compiler_pic_CXX='-KPIC'
12874             lt_prog_compiler_static_CXX='-Bstatic'
12875             lt_prog_compiler_wl_CXX='-Qoption ld '
12876             ;;
12877           gcx*)
12878             # Green Hills C++ Compiler
12879             lt_prog_compiler_pic_CXX='-PIC'
12880             ;;
12881           *)
12882             ;;
12883         esac
12884         ;;
12885       sunos4*)
12886         case $cc_basename in
12887           CC*)
12888             # Sun C++ 4.x
12889             lt_prog_compiler_pic_CXX='-pic'
12890             lt_prog_compiler_static_CXX='-Bstatic'
12891             ;;
12892           lcc*)
12893             # Lucid
12894             lt_prog_compiler_pic_CXX='-pic'
12895             ;;
12896           *)
12897             ;;
12898         esac
12899         ;;
12900       tandem*)
12901         case $cc_basename in
12902           NCC*)
12903             # NonStop-UX NCC 3.20
12904             lt_prog_compiler_pic_CXX='-KPIC'
12905             ;;
12906           *)
12907             ;;
12908         esac
12909         ;;
12910       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12911         case $cc_basename in
12912           CC*)
12913             lt_prog_compiler_wl_CXX='-Wl,'
12914             lt_prog_compiler_pic_CXX='-KPIC'
12915             lt_prog_compiler_static_CXX='-Bstatic'
12916             ;;
12917         esac
12918         ;;
12919       vxworks*)
12920         ;;
12921       *)
12922         lt_prog_compiler_can_build_shared_CXX=no
12923         ;;
12924     esac
12925   fi
12926
12927 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12928 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12929
12930 #
12931 # Check to make sure the PIC flag actually works.
12932 #
12933 if test -n "$lt_prog_compiler_pic_CXX"; then
12934
12935 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12936 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12937 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12938   echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940   lt_cv_prog_compiler_pic_works_CXX=no
12941   ac_outfile=conftest.$ac_objext
12942    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12943    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12944    # Insert the option either (1) after the last *FLAGS variable, or
12945    # (2) before a word containing "conftest.", or (3) at the end.
12946    # Note that $ac_compile itself does not contain backslashes and begins
12947    # with a dollar sign (not a hyphen), so the echo should work correctly.
12948    # The option is referenced via a variable to avoid confusing sed.
12949    lt_compile=`echo "$ac_compile" | $SED \
12950    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12952    -e 's:$: $lt_compiler_flag:'`
12953    (eval echo "\"\$as_me:12954: $lt_compile\"" >&5)
12954    (eval "$lt_compile" 2>conftest.err)
12955    ac_status=$?
12956    cat conftest.err >&5
12957    echo "$as_me:12958: \$? = $ac_status" >&5
12958    if (exit $ac_status) && test -s "$ac_outfile"; then
12959      # The compiler can only warn and ignore the option if not recognized
12960      # So say no if there are warnings other than the usual output.
12961      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12962      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12963      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12964        lt_cv_prog_compiler_pic_works_CXX=yes
12965      fi
12966    fi
12967    $rm conftest*
12968
12969 fi
12970 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12971 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12972
12973 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12974     case $lt_prog_compiler_pic_CXX in
12975      "" | " "*) ;;
12976      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12977      esac
12978 else
12979     lt_prog_compiler_pic_CXX=
12980      lt_prog_compiler_can_build_shared_CXX=no
12981 fi
12982
12983 fi
12984 case $host_os in
12985   # For platforms which do not support PIC, -DPIC is meaningless:
12986   *djgpp*)
12987     lt_prog_compiler_pic_CXX=
12988     ;;
12989   *)
12990     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12991     ;;
12992 esac
12993
12994 #
12995 # Check to make sure the static flag actually works.
12996 #
12997 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12998 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12999 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13000 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13001   echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003   lt_cv_prog_compiler_static_works_CXX=no
13004    save_LDFLAGS="$LDFLAGS"
13005    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13006    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13007    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13008      # The linker can only warn and ignore the option if not recognized
13009      # So say no if there are warnings
13010      if test -s conftest.err; then
13011        # Append any errors to the config.log.
13012        cat conftest.err 1>&5
13013        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13014        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13015        if diff conftest.exp conftest.er2 >/dev/null; then
13016          lt_cv_prog_compiler_static_works_CXX=yes
13017        fi
13018      else
13019        lt_cv_prog_compiler_static_works_CXX=yes
13020      fi
13021    fi
13022    $rm -r conftest*
13023    LDFLAGS="$save_LDFLAGS"
13024
13025 fi
13026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13027 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13028
13029 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13030     :
13031 else
13032     lt_prog_compiler_static_CXX=
13033 fi
13034
13035
13036 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13037 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13038 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13039   echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041   lt_cv_prog_compiler_c_o_CXX=no
13042    $rm -r conftest 2>/dev/null
13043    mkdir conftest
13044    cd conftest
13045    mkdir out
13046    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13047
13048    lt_compiler_flag="-o out/conftest2.$ac_objext"
13049    # Insert the option either (1) after the last *FLAGS variable, or
13050    # (2) before a word containing "conftest.", or (3) at the end.
13051    # Note that $ac_compile itself does not contain backslashes and begins
13052    # with a dollar sign (not a hyphen), so the echo should work correctly.
13053    lt_compile=`echo "$ac_compile" | $SED \
13054    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13056    -e 's:$: $lt_compiler_flag:'`
13057    (eval echo "\"\$as_me:13058: $lt_compile\"" >&5)
13058    (eval "$lt_compile" 2>out/conftest.err)
13059    ac_status=$?
13060    cat out/conftest.err >&5
13061    echo "$as_me:13062: \$? = $ac_status" >&5
13062    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13063    then
13064      # The compiler can only warn and ignore the option if not recognized
13065      # So say no if there are warnings
13066      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13067      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13068      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13069        lt_cv_prog_compiler_c_o_CXX=yes
13070      fi
13071    fi
13072    chmod u+w . 2>&5
13073    $rm conftest*
13074    # SGI C++ compiler will create directory out/ii_files/ for
13075    # template instantiation
13076    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13077    $rm out/* && rmdir out
13078    cd ..
13079    rmdir conftest
13080    $rm conftest*
13081
13082 fi
13083 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13085
13086
13087 hard_links="nottested"
13088 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13089   # do not overwrite the value of need_locks provided by the user
13090   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13091 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13092   hard_links=yes
13093   $rm conftest*
13094   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13095   touch conftest.a
13096   ln conftest.a conftest.b 2>&5 || hard_links=no
13097   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13098   { echo "$as_me:$LINENO: result: $hard_links" >&5
13099 echo "${ECHO_T}$hard_links" >&6; }
13100   if test "$hard_links" = no; then
13101     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13102 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13103     need_locks=warn
13104   fi
13105 else
13106   need_locks=no
13107 fi
13108
13109 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13110 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13111
13112   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13113   case $host_os in
13114   aix[4-9]*)
13115     # If we're using GNU nm, then we don't want the "-C" option.
13116     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13117     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13118       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'
13119     else
13120       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'
13121     fi
13122     ;;
13123   pw32*)
13124     export_symbols_cmds_CXX="$ltdll_cmds"
13125   ;;
13126   cygwin* | mingw*)
13127     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'
13128   ;;
13129   linux* | k*bsd*-gnu)
13130     link_all_deplibs_CXX=no
13131   ;;
13132   *)
13133     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13134   ;;
13135   esac
13136   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13137
13138 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13139 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13140 test "$ld_shlibs_CXX" = no && can_build_shared=no
13141
13142 #
13143 # Do we need to explicitly link libc?
13144 #
13145 case "x$archive_cmds_need_lc_CXX" in
13146 x|xyes)
13147   # Assume -lc should be added
13148   archive_cmds_need_lc_CXX=yes
13149
13150   if test "$enable_shared" = yes && test "$GCC" = yes; then
13151     case $archive_cmds_CXX in
13152     *'~'*)
13153       # FIXME: we may have to deal with multi-command sequences.
13154       ;;
13155     '$CC '*)
13156       # Test whether the compiler implicitly links with -lc since on some
13157       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13158       # to ld, don't add -lc before -lgcc.
13159       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13160 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13161       $rm conftest*
13162       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13163
13164       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165   (eval $ac_compile) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } 2>conftest.err; then
13169         soname=conftest
13170         lib=conftest
13171         libobjs=conftest.$ac_objext
13172         deplibs=
13173         wl=$lt_prog_compiler_wl_CXX
13174         pic_flag=$lt_prog_compiler_pic_CXX
13175         compiler_flags=-v
13176         linker_flags=-v
13177         verstring=
13178         output_objdir=.
13179         libname=conftest
13180         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13181         allow_undefined_flag_CXX=
13182         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13183   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13184   ac_status=$?
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); }
13187         then
13188           archive_cmds_need_lc_CXX=no
13189         else
13190           archive_cmds_need_lc_CXX=yes
13191         fi
13192         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13193       else
13194         cat conftest.err 1>&5
13195       fi
13196       $rm conftest*
13197       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13198 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13199       ;;
13200     esac
13201   fi
13202   ;;
13203 esac
13204
13205 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13206 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13207 library_names_spec=
13208 libname_spec='lib$name'
13209 soname_spec=
13210 shrext_cmds=".so"
13211 postinstall_cmds=
13212 postuninstall_cmds=
13213 finish_cmds=
13214 finish_eval=
13215 shlibpath_var=
13216 shlibpath_overrides_runpath=unknown
13217 version_type=none
13218 dynamic_linker="$host_os ld.so"
13219 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13220
13221 need_lib_prefix=unknown
13222 hardcode_into_libs=no
13223
13224 # when you set need_version to no, make sure it does not cause -set_version
13225 # flags to be left without arguments
13226 need_version=unknown
13227
13228 case $host_os in
13229 aix3*)
13230   version_type=linux
13231   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13232   shlibpath_var=LIBPATH
13233
13234   # AIX 3 has no versioning support, so we append a major version to the name.
13235   soname_spec='${libname}${release}${shared_ext}$major'
13236   ;;
13237
13238 aix[4-9]*)
13239   version_type=linux
13240   need_lib_prefix=no
13241   need_version=no
13242   hardcode_into_libs=yes
13243   if test "$host_cpu" = ia64; then
13244     # AIX 5 supports IA64
13245     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13246     shlibpath_var=LD_LIBRARY_PATH
13247   else
13248     # With GCC up to 2.95.x, collect2 would create an import file
13249     # for dependence libraries.  The import file would start with
13250     # the line `#! .'.  This would cause the generated library to
13251     # depend on `.', always an invalid library.  This was fixed in
13252     # development snapshots of GCC prior to 3.0.
13253     case $host_os in
13254       aix4 | aix4.[01] | aix4.[01].*)
13255       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13256            echo ' yes '
13257            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13258         :
13259       else
13260         can_build_shared=no
13261       fi
13262       ;;
13263     esac
13264     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13265     # soname into executable. Probably we can add versioning support to
13266     # collect2, so additional links can be useful in future.
13267     if test "$aix_use_runtimelinking" = yes; then
13268       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13269       # instead of lib<name>.a to let people know that these are not
13270       # typical AIX shared libraries.
13271       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13272     else
13273       # We preserve .a as extension for shared libraries through AIX4.2
13274       # and later when we are not doing run time linking.
13275       library_names_spec='${libname}${release}.a $libname.a'
13276       soname_spec='${libname}${release}${shared_ext}$major'
13277     fi
13278     shlibpath_var=LIBPATH
13279   fi
13280   ;;
13281
13282 amigaos*)
13283   library_names_spec='$libname.ixlibrary $libname.a'
13284   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13285   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'
13286   ;;
13287
13288 beos*)
13289   library_names_spec='${libname}${shared_ext}'
13290   dynamic_linker="$host_os ld.so"
13291   shlibpath_var=LIBRARY_PATH
13292   ;;
13293
13294 bsdi[45]*)
13295   version_type=linux
13296   need_version=no
13297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298   soname_spec='${libname}${release}${shared_ext}$major'
13299   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13300   shlibpath_var=LD_LIBRARY_PATH
13301   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13302   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13303   # the default ld.so.conf also contains /usr/contrib/lib and
13304   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13305   # libtool to hard-code these into programs
13306   ;;
13307
13308 cygwin* | mingw* | pw32*)
13309   version_type=windows
13310   shrext_cmds=".dll"
13311   need_version=no
13312   need_lib_prefix=no
13313
13314   case $GCC,$host_os in
13315   yes,cygwin* | yes,mingw* | yes,pw32*)
13316     library_names_spec='$libname.dll.a'
13317     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13318     postinstall_cmds='base_file=`basename \${file}`~
13319       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13320       dldir=$destdir/`dirname \$dlpath`~
13321       test -d \$dldir || mkdir -p \$dldir~
13322       $install_prog $dir/$dlname \$dldir/$dlname~
13323       chmod a+x \$dldir/$dlname'
13324     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13325       dlpath=$dir/\$dldll~
13326        $rm \$dlpath'
13327     shlibpath_overrides_runpath=yes
13328
13329     case $host_os in
13330     cygwin*)
13331       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13332       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13333       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13334       ;;
13335     mingw*)
13336       # MinGW DLLs use traditional 'lib' prefix
13337       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13338       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13339       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13340         # It is most probably a Windows format PATH printed by
13341         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13342         # path with ; separators, and with drive letters. We can handle the
13343         # drive letters (cygwin fileutils understands them), so leave them,
13344         # especially as we might pass files found there to a mingw objdump,
13345         # which wouldn't understand a cygwinified path. Ahh.
13346         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13347       else
13348         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13349       fi
13350       ;;
13351     pw32*)
13352       # pw32 DLLs use 'pw' prefix rather than 'lib'
13353       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13354       ;;
13355     esac
13356     ;;
13357
13358   *)
13359     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13360     ;;
13361   esac
13362   dynamic_linker='Win32 ld.exe'
13363   # FIXME: first we should search . and the directory the executable is in
13364   shlibpath_var=PATH
13365   ;;
13366
13367 darwin* | rhapsody*)
13368   dynamic_linker="$host_os dyld"
13369   version_type=darwin
13370   need_lib_prefix=no
13371   need_version=no
13372   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13373   soname_spec='${libname}${release}${major}$shared_ext'
13374   shlibpath_overrides_runpath=yes
13375   shlibpath_var=DYLD_LIBRARY_PATH
13376   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13377
13378   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13379   ;;
13380
13381 dgux*)
13382   version_type=linux
13383   need_lib_prefix=no
13384   need_version=no
13385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13386   soname_spec='${libname}${release}${shared_ext}$major'
13387   shlibpath_var=LD_LIBRARY_PATH
13388   ;;
13389
13390 freebsd1*)
13391   dynamic_linker=no
13392   ;;
13393
13394 freebsd* | dragonfly*)
13395   # DragonFly does not have aout.  When/if they implement a new
13396   # versioning mechanism, adjust this.
13397   if test -x /usr/bin/objformat; then
13398     objformat=`/usr/bin/objformat`
13399   else
13400     case $host_os in
13401     freebsd[123]*) objformat=aout ;;
13402     *) objformat=elf ;;
13403     esac
13404   fi
13405   version_type=freebsd-$objformat
13406   case $version_type in
13407     freebsd-elf*)
13408       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13409       need_version=no
13410       need_lib_prefix=no
13411       ;;
13412     freebsd-*)
13413       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13414       need_version=yes
13415       ;;
13416   esac
13417   shlibpath_var=LD_LIBRARY_PATH
13418   case $host_os in
13419   freebsd2*)
13420     shlibpath_overrides_runpath=yes
13421     ;;
13422   freebsd3.[01]* | freebsdelf3.[01]*)
13423     shlibpath_overrides_runpath=yes
13424     hardcode_into_libs=yes
13425     ;;
13426   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13427   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13428     shlibpath_overrides_runpath=no
13429     hardcode_into_libs=yes
13430     ;;
13431   *) # from 4.6 on, and DragonFly
13432     shlibpath_overrides_runpath=yes
13433     hardcode_into_libs=yes
13434     ;;
13435   esac
13436   ;;
13437
13438 gnu*)
13439   version_type=linux
13440   need_lib_prefix=no
13441   need_version=no
13442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13443   soname_spec='${libname}${release}${shared_ext}$major'
13444   shlibpath_var=LD_LIBRARY_PATH
13445   hardcode_into_libs=yes
13446   ;;
13447
13448 hpux9* | hpux10* | hpux11*)
13449   # Give a soname corresponding to the major version so that dld.sl refuses to
13450   # link against other versions.
13451   version_type=sunos
13452   need_lib_prefix=no
13453   need_version=no
13454   case $host_cpu in
13455   ia64*)
13456     shrext_cmds='.so'
13457     hardcode_into_libs=yes
13458     dynamic_linker="$host_os dld.so"
13459     shlibpath_var=LD_LIBRARY_PATH
13460     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462     soname_spec='${libname}${release}${shared_ext}$major'
13463     if test "X$HPUX_IA64_MODE" = X32; then
13464       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13465     else
13466       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13467     fi
13468     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13469     ;;
13470    hppa*64*)
13471      shrext_cmds='.sl'
13472      hardcode_into_libs=yes
13473      dynamic_linker="$host_os dld.sl"
13474      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13475      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13476      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477      soname_spec='${libname}${release}${shared_ext}$major'
13478      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13479      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13480      ;;
13481    *)
13482     shrext_cmds='.sl'
13483     dynamic_linker="$host_os dld.sl"
13484     shlibpath_var=SHLIB_PATH
13485     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487     soname_spec='${libname}${release}${shared_ext}$major'
13488     ;;
13489   esac
13490   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13491   postinstall_cmds='chmod 555 $lib'
13492   ;;
13493
13494 interix[3-9]*)
13495   version_type=linux
13496   need_lib_prefix=no
13497   need_version=no
13498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13499   soname_spec='${libname}${release}${shared_ext}$major'
13500   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13501   shlibpath_var=LD_LIBRARY_PATH
13502   shlibpath_overrides_runpath=no
13503   hardcode_into_libs=yes
13504   ;;
13505
13506 irix5* | irix6* | nonstopux*)
13507   case $host_os in
13508     nonstopux*) version_type=nonstopux ;;
13509     *)
13510         if test "$lt_cv_prog_gnu_ld" = yes; then
13511                 version_type=linux
13512         else
13513                 version_type=irix
13514         fi ;;
13515   esac
13516   need_lib_prefix=no
13517   need_version=no
13518   soname_spec='${libname}${release}${shared_ext}$major'
13519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13520   case $host_os in
13521   irix5* | nonstopux*)
13522     libsuff= shlibsuff=
13523     ;;
13524   *)
13525     case $LD in # libtool.m4 will add one of these switches to LD
13526     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13527       libsuff= shlibsuff= libmagic=32-bit;;
13528     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13529       libsuff=32 shlibsuff=N32 libmagic=N32;;
13530     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13531       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13532     *) libsuff= shlibsuff= libmagic=never-match;;
13533     esac
13534     ;;
13535   esac
13536   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13537   shlibpath_overrides_runpath=no
13538   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13539   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13540   hardcode_into_libs=yes
13541   ;;
13542
13543 # No shared lib support for Linux oldld, aout, or coff.
13544 linux*oldld* | linux*aout* | linux*coff*)
13545   dynamic_linker=no
13546   ;;
13547
13548 # This must be Linux ELF.
13549 linux* | k*bsd*-gnu)
13550   version_type=linux
13551   need_lib_prefix=no
13552   need_version=no
13553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554   soname_spec='${libname}${release}${shared_ext}$major'
13555   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13556   shlibpath_var=LD_LIBRARY_PATH
13557   shlibpath_overrides_runpath=no
13558   # This implies no fast_install, which is unacceptable.
13559   # Some rework will be needed to allow for fast_install
13560   # before this can be enabled.
13561   hardcode_into_libs=yes
13562
13563   # Append ld.so.conf contents to the search path
13564   if test -f /etc/ld.so.conf; then
13565     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13566     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13567   fi
13568
13569   # We used to test for /lib/ld.so.1 and disable shared libraries on
13570   # powerpc, because MkLinux only supported shared libraries with the
13571   # GNU dynamic linker.  Since this was broken with cross compilers,
13572   # most powerpc-linux boxes support dynamic linking these days and
13573   # people can always --disable-shared, the test was removed, and we
13574   # assume the GNU/Linux dynamic linker is in use.
13575   dynamic_linker='GNU/Linux ld.so'
13576   ;;
13577
13578 netbsdelf*-gnu)
13579   version_type=linux
13580   need_lib_prefix=no
13581   need_version=no
13582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13583   soname_spec='${libname}${release}${shared_ext}$major'
13584   shlibpath_var=LD_LIBRARY_PATH
13585   shlibpath_overrides_runpath=no
13586   hardcode_into_libs=yes
13587   dynamic_linker='NetBSD ld.elf_so'
13588   ;;
13589
13590 netbsd*)
13591   version_type=sunos
13592   need_lib_prefix=no
13593   need_version=no
13594   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13596     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13597     dynamic_linker='NetBSD (a.out) ld.so'
13598   else
13599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13600     soname_spec='${libname}${release}${shared_ext}$major'
13601     dynamic_linker='NetBSD ld.elf_so'
13602   fi
13603   shlibpath_var=LD_LIBRARY_PATH
13604   shlibpath_overrides_runpath=yes
13605   hardcode_into_libs=yes
13606   ;;
13607
13608 newsos6)
13609   version_type=linux
13610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611   shlibpath_var=LD_LIBRARY_PATH
13612   shlibpath_overrides_runpath=yes
13613   ;;
13614
13615 nto-qnx*)
13616   version_type=linux
13617   need_lib_prefix=no
13618   need_version=no
13619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13620   soname_spec='${libname}${release}${shared_ext}$major'
13621   shlibpath_var=LD_LIBRARY_PATH
13622   shlibpath_overrides_runpath=yes
13623   ;;
13624
13625 openbsd*)
13626   version_type=sunos
13627   sys_lib_dlsearch_path_spec="/usr/lib"
13628   need_lib_prefix=no
13629   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13630   case $host_os in
13631     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13632     *)                         need_version=no  ;;
13633   esac
13634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13635   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13636   shlibpath_var=LD_LIBRARY_PATH
13637   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13638     case $host_os in
13639       openbsd2.[89] | openbsd2.[89].*)
13640         shlibpath_overrides_runpath=no
13641         ;;
13642       *)
13643         shlibpath_overrides_runpath=yes
13644         ;;
13645       esac
13646   else
13647     shlibpath_overrides_runpath=yes
13648   fi
13649   ;;
13650
13651 os2*)
13652   libname_spec='$name'
13653   shrext_cmds=".dll"
13654   need_lib_prefix=no
13655   library_names_spec='$libname${shared_ext} $libname.a'
13656   dynamic_linker='OS/2 ld.exe'
13657   shlibpath_var=LIBPATH
13658   ;;
13659
13660 osf3* | osf4* | osf5*)
13661   version_type=osf
13662   need_lib_prefix=no
13663   need_version=no
13664   soname_spec='${libname}${release}${shared_ext}$major'
13665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666   shlibpath_var=LD_LIBRARY_PATH
13667   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13668   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13669   ;;
13670
13671 rdos*)
13672   dynamic_linker=no
13673   ;;
13674
13675 solaris*)
13676   version_type=linux
13677   need_lib_prefix=no
13678   need_version=no
13679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13680   soname_spec='${libname}${release}${shared_ext}$major'
13681   shlibpath_var=LD_LIBRARY_PATH
13682   shlibpath_overrides_runpath=yes
13683   hardcode_into_libs=yes
13684   # ldd complains unless libraries are executable
13685   postinstall_cmds='chmod +x $lib'
13686   ;;
13687
13688 sunos4*)
13689   version_type=sunos
13690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13691   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13692   shlibpath_var=LD_LIBRARY_PATH
13693   shlibpath_overrides_runpath=yes
13694   if test "$with_gnu_ld" = yes; then
13695     need_lib_prefix=no
13696   fi
13697   need_version=yes
13698   ;;
13699
13700 sysv4 | sysv4.3*)
13701   version_type=linux
13702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13703   soname_spec='${libname}${release}${shared_ext}$major'
13704   shlibpath_var=LD_LIBRARY_PATH
13705   case $host_vendor in
13706     sni)
13707       shlibpath_overrides_runpath=no
13708       need_lib_prefix=no
13709       export_dynamic_flag_spec='${wl}-Blargedynsym'
13710       runpath_var=LD_RUN_PATH
13711       ;;
13712     siemens)
13713       need_lib_prefix=no
13714       ;;
13715     motorola)
13716       need_lib_prefix=no
13717       need_version=no
13718       shlibpath_overrides_runpath=no
13719       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13720       ;;
13721   esac
13722   ;;
13723
13724 sysv4*MP*)
13725   if test -d /usr/nec ;then
13726     version_type=linux
13727     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13728     soname_spec='$libname${shared_ext}.$major'
13729     shlibpath_var=LD_LIBRARY_PATH
13730   fi
13731   ;;
13732
13733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13734   version_type=freebsd-elf
13735   need_lib_prefix=no
13736   need_version=no
13737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13738   soname_spec='${libname}${release}${shared_ext}$major'
13739   shlibpath_var=LD_LIBRARY_PATH
13740   hardcode_into_libs=yes
13741   if test "$with_gnu_ld" = yes; then
13742     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13743     shlibpath_overrides_runpath=no
13744   else
13745     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13746     shlibpath_overrides_runpath=yes
13747     case $host_os in
13748       sco3.2v5*)
13749         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13750         ;;
13751     esac
13752   fi
13753   sys_lib_dlsearch_path_spec='/usr/lib'
13754   ;;
13755
13756 uts4*)
13757   version_type=linux
13758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759   soname_spec='${libname}${release}${shared_ext}$major'
13760   shlibpath_var=LD_LIBRARY_PATH
13761   ;;
13762
13763 *)
13764   dynamic_linker=no
13765   ;;
13766 esac
13767 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13768 echo "${ECHO_T}$dynamic_linker" >&6; }
13769 test "$dynamic_linker" = no && can_build_shared=no
13770
13771 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13775 fi
13776
13777 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13778 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13782 fi
13783
13784 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13785
13786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13787 if test "$GCC" = yes; then
13788   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13789 fi
13790
13791 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13792 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13793 hardcode_action_CXX=
13794 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13795    test -n "$runpath_var_CXX" || \
13796    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13797
13798   # We can hardcode non-existant directories.
13799   if test "$hardcode_direct_CXX" != no &&
13800      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13801      # have to relink, otherwise we might link with an installed library
13802      # when we should be linking with a yet-to-be-installed one
13803      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13804      test "$hardcode_minus_L_CXX" != no; then
13805     # Linking always hardcodes the temporary library directory.
13806     hardcode_action_CXX=relink
13807   else
13808     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13809     hardcode_action_CXX=immediate
13810   fi
13811 else
13812   # We cannot hardcode anything, or else we can only hardcode existing
13813   # directories.
13814   hardcode_action_CXX=unsupported
13815 fi
13816 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13817 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13818
13819 if test "$hardcode_action_CXX" = relink; then
13820   # Fast installation is not supported
13821   enable_fast_install=no
13822 elif test "$shlibpath_overrides_runpath" = yes ||
13823      test "$enable_shared" = no; then
13824   # Fast installation is not necessary
13825   enable_fast_install=needless
13826 fi
13827
13828
13829 # The else clause should only fire when bootstrapping the
13830 # libtool distribution, otherwise you forgot to ship ltmain.sh
13831 # with your package, and you will get complaints that there are
13832 # no rules to generate ltmain.sh.
13833 if test -f "$ltmain"; then
13834   # See if we are running on zsh, and set the options which allow our commands through
13835   # without removal of \ escapes.
13836   if test -n "${ZSH_VERSION+set}" ; then
13837     setopt NO_GLOB_SUBST
13838   fi
13839   # Now quote all the things that may contain metacharacters while being
13840   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13841   # variables and quote the copies for generation of the libtool script.
13842   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13843     SED SHELL STRIP \
13844     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13845     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13846     deplibs_check_method reload_flag reload_cmds need_locks \
13847     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13848     lt_cv_sys_global_symbol_to_c_name_address \
13849     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13850     old_postinstall_cmds old_postuninstall_cmds \
13851     compiler_CXX \
13852     CC_CXX \
13853     LD_CXX \
13854     lt_prog_compiler_wl_CXX \
13855     lt_prog_compiler_pic_CXX \
13856     lt_prog_compiler_static_CXX \
13857     lt_prog_compiler_no_builtin_flag_CXX \
13858     export_dynamic_flag_spec_CXX \
13859     thread_safe_flag_spec_CXX \
13860     whole_archive_flag_spec_CXX \
13861     enable_shared_with_static_runtimes_CXX \
13862     old_archive_cmds_CXX \
13863     old_archive_from_new_cmds_CXX \
13864     predep_objects_CXX \
13865     postdep_objects_CXX \
13866     predeps_CXX \
13867     postdeps_CXX \
13868     compiler_lib_search_path_CXX \
13869     compiler_lib_search_dirs_CXX \
13870     archive_cmds_CXX \
13871     archive_expsym_cmds_CXX \
13872     postinstall_cmds_CXX \
13873     postuninstall_cmds_CXX \
13874     old_archive_from_expsyms_cmds_CXX \
13875     allow_undefined_flag_CXX \
13876     no_undefined_flag_CXX \
13877     export_symbols_cmds_CXX \
13878     hardcode_libdir_flag_spec_CXX \
13879     hardcode_libdir_flag_spec_ld_CXX \
13880     hardcode_libdir_separator_CXX \
13881     hardcode_automatic_CXX \
13882     module_cmds_CXX \
13883     module_expsym_cmds_CXX \
13884     lt_cv_prog_compiler_c_o_CXX \
13885     fix_srcfile_path_CXX \
13886     exclude_expsyms_CXX \
13887     include_expsyms_CXX; do
13888
13889     case $var in
13890     old_archive_cmds_CXX | \
13891     old_archive_from_new_cmds_CXX | \
13892     archive_cmds_CXX | \
13893     archive_expsym_cmds_CXX | \
13894     module_cmds_CXX | \
13895     module_expsym_cmds_CXX | \
13896     old_archive_from_expsyms_cmds_CXX | \
13897     export_symbols_cmds_CXX | \
13898     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13899     postinstall_cmds | postuninstall_cmds | \
13900     old_postinstall_cmds | old_postuninstall_cmds | \
13901     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13902       # Double-quote double-evaled strings.
13903       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13904       ;;
13905     *)
13906       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13907       ;;
13908     esac
13909   done
13910
13911   case $lt_echo in
13912   *'\$0 --fallback-echo"')
13913     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13914     ;;
13915   esac
13916
13917 cfgfile="$ofile"
13918
13919   cat <<__EOF__ >> "$cfgfile"
13920 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13921
13922 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13923
13924 # Shell to use when invoking shell scripts.
13925 SHELL=$lt_SHELL
13926
13927 # Whether or not to build shared libraries.
13928 build_libtool_libs=$enable_shared
13929
13930 # Whether or not to build static libraries.
13931 build_old_libs=$enable_static
13932
13933 # Whether or not to add -lc for building shared libraries.
13934 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13935
13936 # Whether or not to disallow shared libs when runtime libs are static
13937 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13938
13939 # Whether or not to optimize for fast installation.
13940 fast_install=$enable_fast_install
13941
13942 # The host system.
13943 host_alias=$host_alias
13944 host=$host
13945 host_os=$host_os
13946
13947 # The build system.
13948 build_alias=$build_alias
13949 build=$build
13950 build_os=$build_os
13951
13952 # An echo program that does not interpret backslashes.
13953 echo=$lt_echo
13954
13955 # The archiver.
13956 AR=$lt_AR
13957 AR_FLAGS=$lt_AR_FLAGS
13958
13959 # A C compiler.
13960 LTCC=$lt_LTCC
13961
13962 # LTCC compiler flags.
13963 LTCFLAGS=$lt_LTCFLAGS
13964
13965 # A language-specific compiler.
13966 CC=$lt_compiler_CXX
13967
13968 # Is the compiler the GNU C compiler?
13969 with_gcc=$GCC_CXX
13970
13971 # An ERE matcher.
13972 EGREP=$lt_EGREP
13973
13974 # The linker used to build libraries.
13975 LD=$lt_LD_CXX
13976
13977 # Whether we need hard or soft links.
13978 LN_S=$lt_LN_S
13979
13980 # A BSD-compatible nm program.
13981 NM=$lt_NM
13982
13983 # A symbol stripping program
13984 STRIP=$lt_STRIP
13985
13986 # Used to examine libraries when file_magic_cmd begins "file"
13987 MAGIC_CMD=$MAGIC_CMD
13988
13989 # Used on cygwin: DLL creation program.
13990 DLLTOOL="$DLLTOOL"
13991
13992 # Used on cygwin: object dumper.
13993 OBJDUMP="$OBJDUMP"
13994
13995 # Used on cygwin: assembler.
13996 AS="$AS"
13997
13998 # The name of the directory that contains temporary libtool files.
13999 objdir=$objdir
14000
14001 # How to create reloadable object files.
14002 reload_flag=$lt_reload_flag
14003 reload_cmds=$lt_reload_cmds
14004
14005 # How to pass a linker flag through the compiler.
14006 wl=$lt_lt_prog_compiler_wl_CXX
14007
14008 # Object file suffix (normally "o").
14009 objext="$ac_objext"
14010
14011 # Old archive suffix (normally "a").
14012 libext="$libext"
14013
14014 # Shared library suffix (normally ".so").
14015 shrext_cmds='$shrext_cmds'
14016
14017 # Executable file suffix (normally "").
14018 exeext="$exeext"
14019
14020 # Additional compiler flags for building library objects.
14021 pic_flag=$lt_lt_prog_compiler_pic_CXX
14022 pic_mode=$pic_mode
14023
14024 # What is the maximum length of a command?
14025 max_cmd_len=$lt_cv_sys_max_cmd_len
14026
14027 # Does compiler simultaneously support -c and -o options?
14028 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14029
14030 # Must we lock files when doing compilation?
14031 need_locks=$lt_need_locks
14032
14033 # Do we need the lib prefix for modules?
14034 need_lib_prefix=$need_lib_prefix
14035
14036 # Do we need a version for libraries?
14037 need_version=$need_version
14038
14039 # Whether dlopen is supported.
14040 dlopen_support=$enable_dlopen
14041
14042 # Whether dlopen of programs is supported.
14043 dlopen_self=$enable_dlopen_self
14044
14045 # Whether dlopen of statically linked programs is supported.
14046 dlopen_self_static=$enable_dlopen_self_static
14047
14048 # Compiler flag to prevent dynamic linking.
14049 link_static_flag=$lt_lt_prog_compiler_static_CXX
14050
14051 # Compiler flag to turn off builtin functions.
14052 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14053
14054 # Compiler flag to allow reflexive dlopens.
14055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14056
14057 # Compiler flag to generate shared objects directly from archives.
14058 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14059
14060 # Compiler flag to generate thread-safe objects.
14061 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14062
14063 # Library versioning type.
14064 version_type=$version_type
14065
14066 # Format of library name prefix.
14067 libname_spec=$lt_libname_spec
14068
14069 # List of archive names.  First name is the real one, the rest are links.
14070 # The last name is the one that the linker finds with -lNAME.
14071 library_names_spec=$lt_library_names_spec
14072
14073 # The coded name of the library, if different from the real name.
14074 soname_spec=$lt_soname_spec
14075
14076 # Commands used to build and install an old-style archive.
14077 RANLIB=$lt_RANLIB
14078 old_archive_cmds=$lt_old_archive_cmds_CXX
14079 old_postinstall_cmds=$lt_old_postinstall_cmds
14080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14081
14082 # Create an old-style archive from a shared archive.
14083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14084
14085 # Create a temporary old-style archive to link instead of a shared archive.
14086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14087
14088 # Commands used to build and install a shared archive.
14089 archive_cmds=$lt_archive_cmds_CXX
14090 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14091 postinstall_cmds=$lt_postinstall_cmds
14092 postuninstall_cmds=$lt_postuninstall_cmds
14093
14094 # Commands used to build a loadable module (assumed same as above if empty)
14095 module_cmds=$lt_module_cmds_CXX
14096 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14097
14098 # Commands to strip libraries.
14099 old_striplib=$lt_old_striplib
14100 striplib=$lt_striplib
14101
14102 # Dependencies to place before the objects being linked to create a
14103 # shared library.
14104 predep_objects=$lt_predep_objects_CXX
14105
14106 # Dependencies to place after the objects being linked to create a
14107 # shared library.
14108 postdep_objects=$lt_postdep_objects_CXX
14109
14110 # Dependencies to place before the objects being linked to create a
14111 # shared library.
14112 predeps=$lt_predeps_CXX
14113
14114 # Dependencies to place after the objects being linked to create a
14115 # shared library.
14116 postdeps=$lt_postdeps_CXX
14117
14118 # The directories searched by this compiler when creating a shared
14119 # library
14120 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14121
14122 # The library search path used internally by the compiler when linking
14123 # a shared library.
14124 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14125
14126 # Method to check whether dependent libraries are shared objects.
14127 deplibs_check_method=$lt_deplibs_check_method
14128
14129 # Command to use when deplibs_check_method == file_magic.
14130 file_magic_cmd=$lt_file_magic_cmd
14131
14132 # Flag that allows shared libraries with undefined symbols to be built.
14133 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14134
14135 # Flag that forces no undefined symbols.
14136 no_undefined_flag=$lt_no_undefined_flag_CXX
14137
14138 # Commands used to finish a libtool library installation in a directory.
14139 finish_cmds=$lt_finish_cmds
14140
14141 # Same as above, but a single script fragment to be evaled but not shown.
14142 finish_eval=$lt_finish_eval
14143
14144 # Take the output of nm and produce a listing of raw symbols and C names.
14145 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14146
14147 # Transform the output of nm in a proper C declaration
14148 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14149
14150 # Transform the output of nm in a C name address pair
14151 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14152
14153 # This is the shared library runtime path variable.
14154 runpath_var=$runpath_var
14155
14156 # This is the shared library path variable.
14157 shlibpath_var=$shlibpath_var
14158
14159 # Is shlibpath searched before the hard-coded library search path?
14160 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14161
14162 # How to hardcode a shared library path into an executable.
14163 hardcode_action=$hardcode_action_CXX
14164
14165 # Whether we should hardcode library paths into libraries.
14166 hardcode_into_libs=$hardcode_into_libs
14167
14168 # Flag to hardcode \$libdir into a binary during linking.
14169 # This must work even if \$libdir does not exist.
14170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14171
14172 # If ld is used when linking, flag to hardcode \$libdir into
14173 # a binary during linking. This must work even if \$libdir does
14174 # not exist.
14175 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14176
14177 # Whether we need a single -rpath flag with a separated argument.
14178 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14179
14180 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14181 # resulting binary.
14182 hardcode_direct=$hardcode_direct_CXX
14183
14184 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14185 # resulting binary.
14186 hardcode_minus_L=$hardcode_minus_L_CXX
14187
14188 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14189 # the resulting binary.
14190 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14191
14192 # Set to yes if building a shared library automatically hardcodes DIR into the library
14193 # and all subsequent libraries and executables linked against it.
14194 hardcode_automatic=$hardcode_automatic_CXX
14195
14196 # Variables whose values should be saved in libtool wrapper scripts and
14197 # restored at relink time.
14198 variables_saved_for_relink="$variables_saved_for_relink"
14199
14200 # Whether libtool must link a program against all its dependency libraries.
14201 link_all_deplibs=$link_all_deplibs_CXX
14202
14203 # Compile-time system search path for libraries
14204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14205
14206 # Run-time system search path for libraries
14207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14208
14209 # Fix the shell variable \$srcfile for the compiler.
14210 fix_srcfile_path=$lt_fix_srcfile_path
14211
14212 # Set to yes if exported symbols are required.
14213 always_export_symbols=$always_export_symbols_CXX
14214
14215 # The commands to list exported symbols.
14216 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14217
14218 # The commands to extract the exported symbol list from a shared archive.
14219 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14220
14221 # Symbols that should not be listed in the preloaded symbols.
14222 exclude_expsyms=$lt_exclude_expsyms_CXX
14223
14224 # Symbols that must always be exported.
14225 include_expsyms=$lt_include_expsyms_CXX
14226
14227 # ### END LIBTOOL TAG CONFIG: $tagname
14228
14229 __EOF__
14230
14231
14232 else
14233   # If there is no Makefile yet, we rely on a make rule to execute
14234   # `config.status --recheck' to rerun these tests and create the
14235   # libtool script then.
14236   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14237   if test -f "$ltmain_in"; then
14238     test -f Makefile && make "$ltmain"
14239   fi
14240 fi
14241
14242
14243 ac_ext=c
14244 ac_cpp='$CPP $CPPFLAGS'
14245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14248
14249 CC=$lt_save_CC
14250 LDCXX=$LD
14251 LD=$lt_save_LD
14252 GCC=$lt_save_GCC
14253 with_gnu_ldcxx=$with_gnu_ld
14254 with_gnu_ld=$lt_save_with_gnu_ld
14255 lt_cv_path_LDCXX=$lt_cv_path_LD
14256 lt_cv_path_LD=$lt_save_path_LD
14257 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14258 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14259
14260         else
14261           tagname=""
14262         fi
14263         ;;
14264
14265       F77)
14266         if test -n "$F77" && test "X$F77" != "Xno"; then
14267
14268 ac_ext=f
14269 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14270 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14272
14273
14274 archive_cmds_need_lc_F77=no
14275 allow_undefined_flag_F77=
14276 always_export_symbols_F77=no
14277 archive_expsym_cmds_F77=
14278 export_dynamic_flag_spec_F77=
14279 hardcode_direct_F77=no
14280 hardcode_libdir_flag_spec_F77=
14281 hardcode_libdir_flag_spec_ld_F77=
14282 hardcode_libdir_separator_F77=
14283 hardcode_minus_L_F77=no
14284 hardcode_automatic_F77=no
14285 module_cmds_F77=
14286 module_expsym_cmds_F77=
14287 link_all_deplibs_F77=unknown
14288 old_archive_cmds_F77=$old_archive_cmds
14289 no_undefined_flag_F77=
14290 whole_archive_flag_spec_F77=
14291 enable_shared_with_static_runtimes_F77=no
14292
14293 # Source file extension for f77 test sources.
14294 ac_ext=f
14295
14296 # Object file extension for compiled f77 test sources.
14297 objext=o
14298 objext_F77=$objext
14299
14300 # Code to be used in simple compile tests
14301 lt_simple_compile_test_code="\
14302       subroutine t
14303       return
14304       end
14305 "
14306
14307 # Code to be used in simple link tests
14308 lt_simple_link_test_code="\
14309       program t
14310       end
14311 "
14312
14313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14314
14315 # If no C compiler was specified, use CC.
14316 LTCC=${LTCC-"$CC"}
14317
14318 # If no C compiler flags were specified, use CFLAGS.
14319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14320
14321 # Allow CC to be a program name with arguments.
14322 compiler=$CC
14323
14324
14325 # save warnings/boilerplate of simple test code
14326 ac_outfile=conftest.$ac_objext
14327 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329 _lt_compiler_boilerplate=`cat conftest.err`
14330 $rm conftest*
14331
14332 ac_outfile=conftest.$ac_objext
14333 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14335 _lt_linker_boilerplate=`cat conftest.err`
14336 $rm -r conftest*
14337
14338
14339 # Allow CC to be a program name with arguments.
14340 lt_save_CC="$CC"
14341 CC=${F77-"f77"}
14342 compiler=$CC
14343 compiler_F77=$CC
14344 for cc_temp in $compiler""; do
14345   case $cc_temp in
14346     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14347     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14348     \-*) ;;
14349     *) break;;
14350   esac
14351 done
14352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14353
14354
14355 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14356 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14357 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14358 echo "${ECHO_T}$can_build_shared" >&6; }
14359
14360 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14361 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14362 test "$can_build_shared" = "no" && enable_shared=no
14363
14364 # On AIX, shared libraries and static libraries use the same namespace, and
14365 # are all built from PIC.
14366 case $host_os in
14367 aix3*)
14368   test "$enable_shared" = yes && enable_static=no
14369   if test -n "$RANLIB"; then
14370     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14371     postinstall_cmds='$RANLIB $lib'
14372   fi
14373   ;;
14374 aix[4-9]*)
14375   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14376     test "$enable_shared" = yes && enable_static=no
14377   fi
14378   ;;
14379 esac
14380 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14381 echo "${ECHO_T}$enable_shared" >&6; }
14382
14383 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14385 # Make sure either enable_shared or enable_static is yes.
14386 test "$enable_shared" = yes || enable_static=yes
14387 { echo "$as_me:$LINENO: result: $enable_static" >&5
14388 echo "${ECHO_T}$enable_static" >&6; }
14389
14390 GCC_F77="$G77"
14391 LD_F77="$LD"
14392
14393 lt_prog_compiler_wl_F77=
14394 lt_prog_compiler_pic_F77=
14395 lt_prog_compiler_static_F77=
14396
14397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14399
14400   if test "$GCC" = yes; then
14401     lt_prog_compiler_wl_F77='-Wl,'
14402     lt_prog_compiler_static_F77='-static'
14403
14404     case $host_os in
14405       aix*)
14406       # All AIX code is PIC.
14407       if test "$host_cpu" = ia64; then
14408         # AIX 5 now supports IA64 processor
14409         lt_prog_compiler_static_F77='-Bstatic'
14410       fi
14411       ;;
14412
14413     amigaos*)
14414       # FIXME: we need at least 68020 code to build shared libraries, but
14415       # adding the `-m68020' flag to GCC prevents building anything better,
14416       # like `-m68040'.
14417       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14418       ;;
14419
14420     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14421       # PIC is the default for these OSes.
14422       ;;
14423
14424     mingw* | cygwin* | pw32* | os2*)
14425       # This hack is so that the source file can tell whether it is being
14426       # built for inclusion in a dll (and should export symbols for example).
14427       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14428       # (--disable-auto-import) libraries
14429       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14430       ;;
14431
14432     darwin* | rhapsody*)
14433       # PIC is the default on this platform
14434       # Common symbols not allowed in MH_DYLIB files
14435       lt_prog_compiler_pic_F77='-fno-common'
14436       ;;
14437
14438     interix[3-9]*)
14439       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14440       # Instead, we relocate shared libraries at runtime.
14441       ;;
14442
14443     msdosdjgpp*)
14444       # Just because we use GCC doesn't mean we suddenly get shared libraries
14445       # on systems that don't support them.
14446       lt_prog_compiler_can_build_shared_F77=no
14447       enable_shared=no
14448       ;;
14449
14450     sysv4*MP*)
14451       if test -d /usr/nec; then
14452         lt_prog_compiler_pic_F77=-Kconform_pic
14453       fi
14454       ;;
14455
14456     hpux*)
14457       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14458       # not for PA HP-UX.
14459       case $host_cpu in
14460       hppa*64*|ia64*)
14461         # +Z the default
14462         ;;
14463       *)
14464         lt_prog_compiler_pic_F77='-fPIC'
14465         ;;
14466       esac
14467       ;;
14468
14469     *)
14470       lt_prog_compiler_pic_F77='-fPIC'
14471       ;;
14472     esac
14473   else
14474     # PORTME Check for flag to pass linker flags through the system compiler.
14475     case $host_os in
14476     aix*)
14477       lt_prog_compiler_wl_F77='-Wl,'
14478       if test "$host_cpu" = ia64; then
14479         # AIX 5 now supports IA64 processor
14480         lt_prog_compiler_static_F77='-Bstatic'
14481       else
14482         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14483       fi
14484       ;;
14485       darwin*)
14486         # PIC is the default on this platform
14487         # Common symbols not allowed in MH_DYLIB files
14488        case $cc_basename in
14489          xlc*)
14490          lt_prog_compiler_pic_F77='-qnocommon'
14491          lt_prog_compiler_wl_F77='-Wl,'
14492          ;;
14493        esac
14494        ;;
14495
14496     mingw* | cygwin* | pw32* | os2*)
14497       # This hack is so that the source file can tell whether it is being
14498       # built for inclusion in a dll (and should export symbols for example).
14499       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14500       ;;
14501
14502     hpux9* | hpux10* | hpux11*)
14503       lt_prog_compiler_wl_F77='-Wl,'
14504       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14505       # not for PA HP-UX.
14506       case $host_cpu in
14507       hppa*64*|ia64*)
14508         # +Z the default
14509         ;;
14510       *)
14511         lt_prog_compiler_pic_F77='+Z'
14512         ;;
14513       esac
14514       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14515       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14516       ;;
14517
14518     irix5* | irix6* | nonstopux*)
14519       lt_prog_compiler_wl_F77='-Wl,'
14520       # PIC (with -KPIC) is the default.
14521       lt_prog_compiler_static_F77='-non_shared'
14522       ;;
14523
14524     newsos6)
14525       lt_prog_compiler_pic_F77='-KPIC'
14526       lt_prog_compiler_static_F77='-Bstatic'
14527       ;;
14528
14529     linux* | k*bsd*-gnu)
14530       case $cc_basename in
14531       icc* | ecc*)
14532         lt_prog_compiler_wl_F77='-Wl,'
14533         lt_prog_compiler_pic_F77='-KPIC'
14534         lt_prog_compiler_static_F77='-static'
14535         ;;
14536       pgcc* | pgf77* | pgf90* | pgf95*)
14537         # Portland Group compilers (*not* the Pentium gcc compiler,
14538         # which looks to be a dead project)
14539         lt_prog_compiler_wl_F77='-Wl,'
14540         lt_prog_compiler_pic_F77='-fpic'
14541         lt_prog_compiler_static_F77='-Bstatic'
14542         ;;
14543       ccc*)
14544         lt_prog_compiler_wl_F77='-Wl,'
14545         # All Alpha code is PIC.
14546         lt_prog_compiler_static_F77='-non_shared'
14547         ;;
14548       *)
14549         case `$CC -V 2>&1 | sed 5q` in
14550         *Sun\ C*)
14551           # Sun C 5.9
14552           lt_prog_compiler_pic_F77='-KPIC'
14553           lt_prog_compiler_static_F77='-Bstatic'
14554           lt_prog_compiler_wl_F77='-Wl,'
14555           ;;
14556         *Sun\ F*)
14557           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14558           lt_prog_compiler_pic_F77='-KPIC'
14559           lt_prog_compiler_static_F77='-Bstatic'
14560           lt_prog_compiler_wl_F77=''
14561           ;;
14562         esac
14563         ;;
14564       esac
14565       ;;
14566
14567     osf3* | osf4* | osf5*)
14568       lt_prog_compiler_wl_F77='-Wl,'
14569       # All OSF/1 code is PIC.
14570       lt_prog_compiler_static_F77='-non_shared'
14571       ;;
14572
14573     rdos*)
14574       lt_prog_compiler_static_F77='-non_shared'
14575       ;;
14576
14577     solaris*)
14578       lt_prog_compiler_pic_F77='-KPIC'
14579       lt_prog_compiler_static_F77='-Bstatic'
14580       case $cc_basename in
14581       f77* | f90* | f95*)
14582         lt_prog_compiler_wl_F77='-Qoption ld ';;
14583       *)
14584         lt_prog_compiler_wl_F77='-Wl,';;
14585       esac
14586       ;;
14587
14588     sunos4*)
14589       lt_prog_compiler_wl_F77='-Qoption ld '
14590       lt_prog_compiler_pic_F77='-PIC'
14591       lt_prog_compiler_static_F77='-Bstatic'
14592       ;;
14593
14594     sysv4 | sysv4.2uw2* | sysv4.3*)
14595       lt_prog_compiler_wl_F77='-Wl,'
14596       lt_prog_compiler_pic_F77='-KPIC'
14597       lt_prog_compiler_static_F77='-Bstatic'
14598       ;;
14599
14600     sysv4*MP*)
14601       if test -d /usr/nec ;then
14602         lt_prog_compiler_pic_F77='-Kconform_pic'
14603         lt_prog_compiler_static_F77='-Bstatic'
14604       fi
14605       ;;
14606
14607     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14608       lt_prog_compiler_wl_F77='-Wl,'
14609       lt_prog_compiler_pic_F77='-KPIC'
14610       lt_prog_compiler_static_F77='-Bstatic'
14611       ;;
14612
14613     unicos*)
14614       lt_prog_compiler_wl_F77='-Wl,'
14615       lt_prog_compiler_can_build_shared_F77=no
14616       ;;
14617
14618     uts4*)
14619       lt_prog_compiler_pic_F77='-pic'
14620       lt_prog_compiler_static_F77='-Bstatic'
14621       ;;
14622
14623     *)
14624       lt_prog_compiler_can_build_shared_F77=no
14625       ;;
14626     esac
14627   fi
14628
14629 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14630 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14631
14632 #
14633 # Check to make sure the PIC flag actually works.
14634 #
14635 if test -n "$lt_prog_compiler_pic_F77"; then
14636
14637 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14638 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14639 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642   lt_cv_prog_compiler_pic_works_F77=no
14643   ac_outfile=conftest.$ac_objext
14644    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14645    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14646    # Insert the option either (1) after the last *FLAGS variable, or
14647    # (2) before a word containing "conftest.", or (3) at the end.
14648    # Note that $ac_compile itself does not contain backslashes and begins
14649    # with a dollar sign (not a hyphen), so the echo should work correctly.
14650    # The option is referenced via a variable to avoid confusing sed.
14651    lt_compile=`echo "$ac_compile" | $SED \
14652    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14653    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14654    -e 's:$: $lt_compiler_flag:'`
14655    (eval echo "\"\$as_me:14656: $lt_compile\"" >&5)
14656    (eval "$lt_compile" 2>conftest.err)
14657    ac_status=$?
14658    cat conftest.err >&5
14659    echo "$as_me:14660: \$? = $ac_status" >&5
14660    if (exit $ac_status) && test -s "$ac_outfile"; then
14661      # The compiler can only warn and ignore the option if not recognized
14662      # So say no if there are warnings other than the usual output.
14663      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14664      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14665      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14666        lt_cv_prog_compiler_pic_works_F77=yes
14667      fi
14668    fi
14669    $rm conftest*
14670
14671 fi
14672 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14673 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14674
14675 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14676     case $lt_prog_compiler_pic_F77 in
14677      "" | " "*) ;;
14678      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14679      esac
14680 else
14681     lt_prog_compiler_pic_F77=
14682      lt_prog_compiler_can_build_shared_F77=no
14683 fi
14684
14685 fi
14686 case $host_os in
14687   # For platforms which do not support PIC, -DPIC is meaningless:
14688   *djgpp*)
14689     lt_prog_compiler_pic_F77=
14690     ;;
14691   *)
14692     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14693     ;;
14694 esac
14695
14696 #
14697 # Check to make sure the static flag actually works.
14698 #
14699 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14700 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14701 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14702 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14703   echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705   lt_cv_prog_compiler_static_works_F77=no
14706    save_LDFLAGS="$LDFLAGS"
14707    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14708    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14709    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14710      # The linker can only warn and ignore the option if not recognized
14711      # So say no if there are warnings
14712      if test -s conftest.err; then
14713        # Append any errors to the config.log.
14714        cat conftest.err 1>&5
14715        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14716        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14717        if diff conftest.exp conftest.er2 >/dev/null; then
14718          lt_cv_prog_compiler_static_works_F77=yes
14719        fi
14720      else
14721        lt_cv_prog_compiler_static_works_F77=yes
14722      fi
14723    fi
14724    $rm -r conftest*
14725    LDFLAGS="$save_LDFLAGS"
14726
14727 fi
14728 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14729 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14730
14731 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14732     :
14733 else
14734     lt_prog_compiler_static_F77=
14735 fi
14736
14737
14738 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14739 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14740 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14741   echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743   lt_cv_prog_compiler_c_o_F77=no
14744    $rm -r conftest 2>/dev/null
14745    mkdir conftest
14746    cd conftest
14747    mkdir out
14748    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14749
14750    lt_compiler_flag="-o out/conftest2.$ac_objext"
14751    # Insert the option either (1) after the last *FLAGS variable, or
14752    # (2) before a word containing "conftest.", or (3) at the end.
14753    # Note that $ac_compile itself does not contain backslashes and begins
14754    # with a dollar sign (not a hyphen), so the echo should work correctly.
14755    lt_compile=`echo "$ac_compile" | $SED \
14756    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14757    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14758    -e 's:$: $lt_compiler_flag:'`
14759    (eval echo "\"\$as_me:14760: $lt_compile\"" >&5)
14760    (eval "$lt_compile" 2>out/conftest.err)
14761    ac_status=$?
14762    cat out/conftest.err >&5
14763    echo "$as_me:14764: \$? = $ac_status" >&5
14764    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14765    then
14766      # The compiler can only warn and ignore the option if not recognized
14767      # So say no if there are warnings
14768      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14769      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14770      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14771        lt_cv_prog_compiler_c_o_F77=yes
14772      fi
14773    fi
14774    chmod u+w . 2>&5
14775    $rm conftest*
14776    # SGI C++ compiler will create directory out/ii_files/ for
14777    # template instantiation
14778    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14779    $rm out/* && rmdir out
14780    cd ..
14781    rmdir conftest
14782    $rm conftest*
14783
14784 fi
14785 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14786 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14787
14788
14789 hard_links="nottested"
14790 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14791   # do not overwrite the value of need_locks provided by the user
14792   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14793 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14794   hard_links=yes
14795   $rm conftest*
14796   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14797   touch conftest.a
14798   ln conftest.a conftest.b 2>&5 || hard_links=no
14799   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14800   { echo "$as_me:$LINENO: result: $hard_links" >&5
14801 echo "${ECHO_T}$hard_links" >&6; }
14802   if test "$hard_links" = no; then
14803     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14804 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14805     need_locks=warn
14806   fi
14807 else
14808   need_locks=no
14809 fi
14810
14811 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14812 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14813
14814   runpath_var=
14815   allow_undefined_flag_F77=
14816   enable_shared_with_static_runtimes_F77=no
14817   archive_cmds_F77=
14818   archive_expsym_cmds_F77=
14819   old_archive_From_new_cmds_F77=
14820   old_archive_from_expsyms_cmds_F77=
14821   export_dynamic_flag_spec_F77=
14822   whole_archive_flag_spec_F77=
14823   thread_safe_flag_spec_F77=
14824   hardcode_libdir_flag_spec_F77=
14825   hardcode_libdir_flag_spec_ld_F77=
14826   hardcode_libdir_separator_F77=
14827   hardcode_direct_F77=no
14828   hardcode_minus_L_F77=no
14829   hardcode_shlibpath_var_F77=unsupported
14830   link_all_deplibs_F77=unknown
14831   hardcode_automatic_F77=no
14832   module_cmds_F77=
14833   module_expsym_cmds_F77=
14834   always_export_symbols_F77=no
14835   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14836   # include_expsyms should be a list of space-separated symbols to be *always*
14837   # included in the symbol list
14838   include_expsyms_F77=
14839   # exclude_expsyms can be an extended regexp of symbols to exclude
14840   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14841   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14842   # as well as any symbol that contains `d'.
14843   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14844   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14845   # platforms (ab)use it in PIC code, but their linkers get confused if
14846   # the symbol is explicitly referenced.  Since portable code cannot
14847   # rely on this symbol name, it's probably fine to never include it in
14848   # preloaded symbol tables.
14849   # Exclude shared library initialization/finalization symbols.
14850   extract_expsyms_cmds=
14851   # Just being paranoid about ensuring that cc_basename is set.
14852   for cc_temp in $compiler""; do
14853   case $cc_temp in
14854     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14855     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14856     \-*) ;;
14857     *) break;;
14858   esac
14859 done
14860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14861
14862   case $host_os in
14863   cygwin* | mingw* | pw32*)
14864     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14865     # When not using gcc, we currently assume that we are using
14866     # Microsoft Visual C++.
14867     if test "$GCC" != yes; then
14868       with_gnu_ld=no
14869     fi
14870     ;;
14871   interix*)
14872     # we just hope/assume this is gcc and not c89 (= MSVC++)
14873     with_gnu_ld=yes
14874     ;;
14875   openbsd*)
14876     with_gnu_ld=no
14877     ;;
14878   esac
14879
14880   ld_shlibs_F77=yes
14881   if test "$with_gnu_ld" = yes; then
14882     # If archive_cmds runs LD, not CC, wlarc should be empty
14883     wlarc='${wl}'
14884
14885     # Set some defaults for GNU ld with shared library support. These
14886     # are reset later if shared libraries are not supported. Putting them
14887     # here allows them to be overridden if necessary.
14888     runpath_var=LD_RUN_PATH
14889     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14890     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14891     # ancient GNU ld didn't support --whole-archive et. al.
14892     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14893         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14894       else
14895         whole_archive_flag_spec_F77=
14896     fi
14897     supports_anon_versioning=no
14898     case `$LD -v 2>/dev/null` in
14899       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14900       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14901       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14902       *\ 2.11.*) ;; # other 2.11 versions
14903       *) supports_anon_versioning=yes ;;
14904     esac
14905
14906     # See if GNU ld supports shared libraries.
14907     case $host_os in
14908     aix[3-9]*)
14909       # On AIX/PPC, the GNU linker is very broken
14910       if test "$host_cpu" != ia64; then
14911         ld_shlibs_F77=no
14912         cat <<EOF 1>&2
14913
14914 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14915 *** to be unable to reliably create shared libraries on AIX.
14916 *** Therefore, libtool is disabling shared libraries support.  If you
14917 *** really care for shared libraries, you may want to modify your PATH
14918 *** so that a non-GNU linker is found, and then restart.
14919
14920 EOF
14921       fi
14922       ;;
14923
14924     amigaos*)
14925       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)'
14926       hardcode_libdir_flag_spec_F77='-L$libdir'
14927       hardcode_minus_L_F77=yes
14928
14929       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14930       # that the semantics of dynamic libraries on AmigaOS, at least up
14931       # to version 4, is to share data among multiple programs linked
14932       # with the same dynamic library.  Since this doesn't match the
14933       # behavior of shared libraries on other platforms, we can't use
14934       # them.
14935       ld_shlibs_F77=no
14936       ;;
14937
14938     beos*)
14939       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14940         allow_undefined_flag_F77=unsupported
14941         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14942         # support --undefined.  This deserves some investigation.  FIXME
14943         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944       else
14945         ld_shlibs_F77=no
14946       fi
14947       ;;
14948
14949     cygwin* | mingw* | pw32*)
14950       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14951       # as there is no search path for DLLs.
14952       hardcode_libdir_flag_spec_F77='-L$libdir'
14953       allow_undefined_flag_F77=unsupported
14954       always_export_symbols_F77=no
14955       enable_shared_with_static_runtimes_F77=yes
14956       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14957
14958       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14959         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14960         # If the export-symbols file already is a .def file (1st line
14961         # is EXPORTS), use it as is; otherwise, prepend...
14962         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14963           cp $export_symbols $output_objdir/$soname.def;
14964         else
14965           echo EXPORTS > $output_objdir/$soname.def;
14966           cat $export_symbols >> $output_objdir/$soname.def;
14967         fi~
14968         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14969       else
14970         ld_shlibs_F77=no
14971       fi
14972       ;;
14973
14974     interix[3-9]*)
14975       hardcode_direct_F77=no
14976       hardcode_shlibpath_var_F77=no
14977       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14978       export_dynamic_flag_spec_F77='${wl}-E'
14979       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14980       # Instead, shared libraries are loaded at an image base (0x10000000 by
14981       # default) and relocated if they conflict, which is a slow very memory
14982       # consuming and fragmenting process.  To avoid this, we pick a random,
14983       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14984       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14985       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'
14986       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'
14987       ;;
14988
14989     gnu* | linux* | k*bsd*-gnu)
14990       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14991         tmp_addflag=
14992         case $cc_basename,$host_cpu in
14993         pgcc*)                          # Portland Group C compiler
14994           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'
14995           tmp_addflag=' $pic_flag'
14996           ;;
14997         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14998           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'
14999           tmp_addflag=' $pic_flag -Mnomain' ;;
15000         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15001           tmp_addflag=' -i_dynamic' ;;
15002         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15003           tmp_addflag=' -i_dynamic -nofor_main' ;;
15004         ifc* | ifort*)                  # Intel Fortran compiler
15005           tmp_addflag=' -nofor_main' ;;
15006         esac
15007         case `$CC -V 2>&1 | sed 5q` in
15008         *Sun\ C*)                       # Sun C 5.9
15009           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15010           tmp_sharedflag='-G' ;;
15011         *Sun\ F*)                       # Sun Fortran 8.3
15012           tmp_sharedflag='-G' ;;
15013         *)
15014           tmp_sharedflag='-shared' ;;
15015         esac
15016         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15017
15018         if test $supports_anon_versioning = yes; then
15019           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15020   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15021   $echo "local: *; };" >> $output_objdir/$libname.ver~
15022           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15023         fi
15024         link_all_deplibs_F77=no
15025       else
15026         ld_shlibs_F77=no
15027       fi
15028       ;;
15029
15030     netbsd* | netbsdelf*-gnu)
15031       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15032         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15033         wlarc=
15034       else
15035         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15037       fi
15038       ;;
15039
15040     solaris*)
15041       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15042         ld_shlibs_F77=no
15043         cat <<EOF 1>&2
15044
15045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15046 *** create shared libraries on Solaris systems.  Therefore, libtool
15047 *** is disabling shared libraries support.  We urge you to upgrade GNU
15048 *** binutils to release 2.9.1 or newer.  Another option is to modify
15049 *** your PATH or compiler configuration so that the native linker is
15050 *** used, and then restart.
15051
15052 EOF
15053       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15056       else
15057         ld_shlibs_F77=no
15058       fi
15059       ;;
15060
15061     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15062       case `$LD -v 2>&1` in
15063         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15064         ld_shlibs_F77=no
15065         cat <<_LT_EOF 1>&2
15066
15067 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15068 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15069 *** is disabling shared libraries support.  We urge you to upgrade GNU
15070 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15071 *** your PATH or compiler configuration so that the native linker is
15072 *** used, and then restart.
15073
15074 _LT_EOF
15075         ;;
15076         *)
15077           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15078             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15079             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15080             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15081           else
15082             ld_shlibs_F77=no
15083           fi
15084         ;;
15085       esac
15086       ;;
15087
15088     sunos4*)
15089       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090       wlarc=
15091       hardcode_direct_F77=yes
15092       hardcode_shlibpath_var_F77=no
15093       ;;
15094
15095     *)
15096       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15097         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15098         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15099       else
15100         ld_shlibs_F77=no
15101       fi
15102       ;;
15103     esac
15104
15105     if test "$ld_shlibs_F77" = no; then
15106       runpath_var=
15107       hardcode_libdir_flag_spec_F77=
15108       export_dynamic_flag_spec_F77=
15109       whole_archive_flag_spec_F77=
15110     fi
15111   else
15112     # PORTME fill in a description of your system's linker (not GNU ld)
15113     case $host_os in
15114     aix3*)
15115       allow_undefined_flag_F77=unsupported
15116       always_export_symbols_F77=yes
15117       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'
15118       # Note: this linker hardcodes the directories in LIBPATH if there
15119       # are no directories specified by -L.
15120       hardcode_minus_L_F77=yes
15121       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15122         # Neither direct hardcoding nor static linking is supported with a
15123         # broken collect2.
15124         hardcode_direct_F77=unsupported
15125       fi
15126       ;;
15127
15128     aix[4-9]*)
15129       if test "$host_cpu" = ia64; then
15130         # On IA64, the linker does run time linking by default, so we don't
15131         # have to do anything special.
15132         aix_use_runtimelinking=no
15133         exp_sym_flag='-Bexport'
15134         no_entry_flag=""
15135       else
15136         # If we're using GNU nm, then we don't want the "-C" option.
15137         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15138         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15139           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'
15140         else
15141           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'
15142         fi
15143         aix_use_runtimelinking=no
15144
15145         # Test if we are trying to use run time linking or normal
15146         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15147         # need to do runtime linking.
15148         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15149           for ld_flag in $LDFLAGS; do
15150           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15151             aix_use_runtimelinking=yes
15152             break
15153           fi
15154           done
15155           ;;
15156         esac
15157
15158         exp_sym_flag='-bexport'
15159         no_entry_flag='-bnoentry'
15160       fi
15161
15162       # When large executables or shared objects are built, AIX ld can
15163       # have problems creating the table of contents.  If linking a library
15164       # or program results in "error TOC overflow" add -mminimal-toc to
15165       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15166       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15167
15168       archive_cmds_F77=''
15169       hardcode_direct_F77=yes
15170       hardcode_libdir_separator_F77=':'
15171       link_all_deplibs_F77=yes
15172
15173       if test "$GCC" = yes; then
15174         case $host_os in aix4.[012]|aix4.[012].*)
15175         # We only want to do this on AIX 4.2 and lower, the check
15176         # below for broken collect2 doesn't work under 4.3+
15177           collect2name=`${CC} -print-prog-name=collect2`
15178           if test -f "$collect2name" && \
15179            strings "$collect2name" | grep resolve_lib_name >/dev/null
15180           then
15181           # We have reworked collect2
15182           :
15183           else
15184           # We have old collect2
15185           hardcode_direct_F77=unsupported
15186           # It fails to find uninstalled libraries when the uninstalled
15187           # path is not listed in the libpath.  Setting hardcode_minus_L
15188           # to unsupported forces relinking
15189           hardcode_minus_L_F77=yes
15190           hardcode_libdir_flag_spec_F77='-L$libdir'
15191           hardcode_libdir_separator_F77=
15192           fi
15193           ;;
15194         esac
15195         shared_flag='-shared'
15196         if test "$aix_use_runtimelinking" = yes; then
15197           shared_flag="$shared_flag "'${wl}-G'
15198         fi
15199       else
15200         # not using gcc
15201         if test "$host_cpu" = ia64; then
15202         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15203         # chokes on -Wl,-G. The following line is correct:
15204           shared_flag='-G'
15205         else
15206           if test "$aix_use_runtimelinking" = yes; then
15207             shared_flag='${wl}-G'
15208           else
15209             shared_flag='${wl}-bM:SRE'
15210           fi
15211         fi
15212       fi
15213
15214       # It seems that -bexpall does not export symbols beginning with
15215       # underscore (_), so it is better to generate a list of symbols to export.
15216       always_export_symbols_F77=yes
15217       if test "$aix_use_runtimelinking" = yes; then
15218         # Warning - without using the other runtime loading flags (-brtl),
15219         # -berok will link without error, but may produce a broken library.
15220         allow_undefined_flag_F77='-berok'
15221        # Determine the default libpath from the value encoded in an empty executable.
15222        cat >conftest.$ac_ext <<_ACEOF
15223       program main
15224
15225       end
15226 _ACEOF
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (ac_try="$ac_link"
15229 case "(($ac_try" in
15230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231   *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234   (eval "$ac_link") 2>conftest.er1
15235   ac_status=$?
15236   grep -v '^ *+' conftest.er1 >conftest.err
15237   rm -f conftest.er1
15238   cat conftest.err >&5
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } && {
15241          test -z "$ac_f77_werror_flag" ||
15242          test ! -s conftest.err
15243        } && test -s conftest$ac_exeext &&
15244        $as_test_x conftest$ac_exeext; then
15245
15246 lt_aix_libpath_sed='
15247     /Import File Strings/,/^$/ {
15248         /^0/ {
15249             s/^0  *\(.*\)$/\1/
15250             p
15251         }
15252     }'
15253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15254 # Check for a 64-bit object if we didn't find anything.
15255 if test -z "$aix_libpath"; then
15256   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15257 fi
15258 else
15259   echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262
15263 fi
15264
15265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15266       conftest$ac_exeext conftest.$ac_ext
15267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15268
15269        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15270         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"
15271        else
15272         if test "$host_cpu" = ia64; then
15273           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15274           allow_undefined_flag_F77="-z nodefs"
15275           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"
15276         else
15277          # Determine the default libpath from the value encoded in an empty executable.
15278          cat >conftest.$ac_ext <<_ACEOF
15279       program main
15280
15281       end
15282 _ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (ac_try="$ac_link"
15285 case "(($ac_try" in
15286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287   *) ac_try_echo=$ac_try;;
15288 esac
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290   (eval "$ac_link") 2>conftest.er1
15291   ac_status=$?
15292   grep -v '^ *+' conftest.er1 >conftest.err
15293   rm -f conftest.er1
15294   cat conftest.err >&5
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); } && {
15297          test -z "$ac_f77_werror_flag" ||
15298          test ! -s conftest.err
15299        } && test -s conftest$ac_exeext &&
15300        $as_test_x conftest$ac_exeext; then
15301
15302 lt_aix_libpath_sed='
15303     /Import File Strings/,/^$/ {
15304         /^0/ {
15305             s/^0  *\(.*\)$/\1/
15306             p
15307         }
15308     }'
15309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15310 # Check for a 64-bit object if we didn't find anything.
15311 if test -z "$aix_libpath"; then
15312   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15313 fi
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318
15319 fi
15320
15321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15322       conftest$ac_exeext conftest.$ac_ext
15323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15324
15325          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15326           # Warning - without using the other run time loading flags,
15327           # -berok will link without error, but may produce a broken library.
15328           no_undefined_flag_F77=' ${wl}-bernotok'
15329           allow_undefined_flag_F77=' ${wl}-berok'
15330           # Exported symbols can be pulled into shared objects from archives
15331           whole_archive_flag_spec_F77='$convenience'
15332           archive_cmds_need_lc_F77=yes
15333           # This is similar to how AIX traditionally builds its shared libraries.
15334           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'
15335         fi
15336       fi
15337       ;;
15338
15339     amigaos*)
15340       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)'
15341       hardcode_libdir_flag_spec_F77='-L$libdir'
15342       hardcode_minus_L_F77=yes
15343       # see comment about different semantics on the GNU ld section
15344       ld_shlibs_F77=no
15345       ;;
15346
15347     bsdi[45]*)
15348       export_dynamic_flag_spec_F77=-rdynamic
15349       ;;
15350
15351     cygwin* | mingw* | pw32*)
15352       # When not using gcc, we currently assume that we are using
15353       # Microsoft Visual C++.
15354       # hardcode_libdir_flag_spec is actually meaningless, as there is
15355       # no search path for DLLs.
15356       hardcode_libdir_flag_spec_F77=' '
15357       allow_undefined_flag_F77=unsupported
15358       # Tell ltmain to make .lib files, not .a files.
15359       libext=lib
15360       # Tell ltmain to make .dll files, not .so files.
15361       shrext_cmds=".dll"
15362       # FIXME: Setting linknames here is a bad hack.
15363       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15364       # The linker will automatically build a .lib file if we build a DLL.
15365       old_archive_From_new_cmds_F77='true'
15366       # FIXME: Should let the user specify the lib program.
15367       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15368       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15369       enable_shared_with_static_runtimes_F77=yes
15370       ;;
15371
15372     darwin* | rhapsody*)
15373       case $host_os in
15374         rhapsody* | darwin1.[012])
15375          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15376          ;;
15377        *) # Darwin 1.3 on
15378          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15379            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15380          else
15381            case ${MACOSX_DEPLOYMENT_TARGET} in
15382              10.[012])
15383                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15384                ;;
15385              10.*)
15386                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15387                ;;
15388            esac
15389          fi
15390          ;;
15391       esac
15392       archive_cmds_need_lc_F77=no
15393       hardcode_direct_F77=no
15394       hardcode_automatic_F77=yes
15395       hardcode_shlibpath_var_F77=unsupported
15396       whole_archive_flag_spec_F77=''
15397       link_all_deplibs_F77=yes
15398     if test "$GCC" = yes ; then
15399         output_verbose_link_cmd='echo'
15400         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15401         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15402         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15403         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15404     else
15405       case $cc_basename in
15406         xlc*)
15407          output_verbose_link_cmd='echo'
15408          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15409          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15410           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15411          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15412           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}'
15413           ;;
15414        *)
15415          ld_shlibs_F77=no
15416           ;;
15417       esac
15418     fi
15419       ;;
15420
15421     dgux*)
15422       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15423       hardcode_libdir_flag_spec_F77='-L$libdir'
15424       hardcode_shlibpath_var_F77=no
15425       ;;
15426
15427     freebsd1*)
15428       ld_shlibs_F77=no
15429       ;;
15430
15431     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15432     # support.  Future versions do this automatically, but an explicit c++rt0.o
15433     # does not break anything, and helps significantly (at the cost of a little
15434     # extra space).
15435     freebsd2.2*)
15436       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15437       hardcode_libdir_flag_spec_F77='-R$libdir'
15438       hardcode_direct_F77=yes
15439       hardcode_shlibpath_var_F77=no
15440       ;;
15441
15442     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15443     freebsd2*)
15444       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15445       hardcode_direct_F77=yes
15446       hardcode_minus_L_F77=yes
15447       hardcode_shlibpath_var_F77=no
15448       ;;
15449
15450     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15451     freebsd* | dragonfly*)
15452       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15453       hardcode_libdir_flag_spec_F77='-R$libdir'
15454       hardcode_direct_F77=yes
15455       hardcode_shlibpath_var_F77=no
15456       ;;
15457
15458     hpux9*)
15459       if test "$GCC" = yes; then
15460         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'
15461       else
15462         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'
15463       fi
15464       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15465       hardcode_libdir_separator_F77=:
15466       hardcode_direct_F77=yes
15467
15468       # hardcode_minus_L: Not really in the search PATH,
15469       # but as the default location of the library.
15470       hardcode_minus_L_F77=yes
15471       export_dynamic_flag_spec_F77='${wl}-E'
15472       ;;
15473
15474     hpux10*)
15475       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15476         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15477       else
15478         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15479       fi
15480       if test "$with_gnu_ld" = no; then
15481         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15482         hardcode_libdir_separator_F77=:
15483
15484         hardcode_direct_F77=yes
15485         export_dynamic_flag_spec_F77='${wl}-E'
15486
15487         # hardcode_minus_L: Not really in the search PATH,
15488         # but as the default location of the library.
15489         hardcode_minus_L_F77=yes
15490       fi
15491       ;;
15492
15493     hpux11*)
15494       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15495         case $host_cpu in
15496         hppa*64*)
15497           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15498           ;;
15499         ia64*)
15500           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15501           ;;
15502         *)
15503           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15504           ;;
15505         esac
15506       else
15507         case $host_cpu in
15508         hppa*64*)
15509           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510           ;;
15511         ia64*)
15512           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15513           ;;
15514         *)
15515           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15516           ;;
15517         esac
15518       fi
15519       if test "$with_gnu_ld" = no; then
15520         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15521         hardcode_libdir_separator_F77=:
15522
15523         case $host_cpu in
15524         hppa*64*|ia64*)
15525           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15526           hardcode_direct_F77=no
15527           hardcode_shlibpath_var_F77=no
15528           ;;
15529         *)
15530           hardcode_direct_F77=yes
15531           export_dynamic_flag_spec_F77='${wl}-E'
15532
15533           # hardcode_minus_L: Not really in the search PATH,
15534           # but as the default location of the library.
15535           hardcode_minus_L_F77=yes
15536           ;;
15537         esac
15538       fi
15539       ;;
15540
15541     irix5* | irix6* | nonstopux*)
15542       if test "$GCC" = yes; then
15543         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'
15544       else
15545         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'
15546         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15547       fi
15548       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15549       hardcode_libdir_separator_F77=:
15550       link_all_deplibs_F77=yes
15551       ;;
15552
15553     netbsd* | netbsdelf*-gnu)
15554       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15555         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15556       else
15557         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15558       fi
15559       hardcode_libdir_flag_spec_F77='-R$libdir'
15560       hardcode_direct_F77=yes
15561       hardcode_shlibpath_var_F77=no
15562       ;;
15563
15564     newsos6)
15565       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15566       hardcode_direct_F77=yes
15567       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15568       hardcode_libdir_separator_F77=:
15569       hardcode_shlibpath_var_F77=no
15570       ;;
15571
15572     openbsd*)
15573       if test -f /usr/libexec/ld.so; then
15574         hardcode_direct_F77=yes
15575         hardcode_shlibpath_var_F77=no
15576         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15577           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15578           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15579           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15580           export_dynamic_flag_spec_F77='${wl}-E'
15581         else
15582           case $host_os in
15583            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15584              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15585              hardcode_libdir_flag_spec_F77='-R$libdir'
15586              ;;
15587            *)
15588              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15589              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15590              ;;
15591           esac
15592         fi
15593       else
15594         ld_shlibs_F77=no
15595       fi
15596       ;;
15597
15598     os2*)
15599       hardcode_libdir_flag_spec_F77='-L$libdir'
15600       hardcode_minus_L_F77=yes
15601       allow_undefined_flag_F77=unsupported
15602       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'
15603       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15604       ;;
15605
15606     osf3*)
15607       if test "$GCC" = yes; then
15608         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15609         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'
15610       else
15611         allow_undefined_flag_F77=' -expect_unresolved \*'
15612         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'
15613       fi
15614       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15615       hardcode_libdir_separator_F77=:
15616       ;;
15617
15618     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15619       if test "$GCC" = yes; then
15620         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15621         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'
15622         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15623       else
15624         allow_undefined_flag_F77=' -expect_unresolved \*'
15625         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'
15626         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~
15627         $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'
15628
15629         # Both c and cxx compiler support -rpath directly
15630         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15631       fi
15632       hardcode_libdir_separator_F77=:
15633       ;;
15634
15635     solaris*)
15636       no_undefined_flag_F77=' -z text'
15637       if test "$GCC" = yes; then
15638         wlarc='${wl}'
15639         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15640         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15641           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15642       else
15643         wlarc=''
15644         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15645         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15646         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15647       fi
15648       hardcode_libdir_flag_spec_F77='-R$libdir'
15649       hardcode_shlibpath_var_F77=no
15650       case $host_os in
15651       solaris2.[0-5] | solaris2.[0-5].*) ;;
15652       *)
15653         # The compiler driver will combine and reorder linker options,
15654         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15655         # but is careful enough not to reorder.
15656         # Supported since Solaris 2.6 (maybe 2.5.1?)
15657         if test "$GCC" = yes; then
15658           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15659         else
15660           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15661         fi
15662         ;;
15663       esac
15664       link_all_deplibs_F77=yes
15665       ;;
15666
15667     sunos4*)
15668       if test "x$host_vendor" = xsequent; then
15669         # Use $CC to link under sequent, because it throws in some extra .o
15670         # files that make .init and .fini sections work.
15671         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15672       else
15673         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15674       fi
15675       hardcode_libdir_flag_spec_F77='-L$libdir'
15676       hardcode_direct_F77=yes
15677       hardcode_minus_L_F77=yes
15678       hardcode_shlibpath_var_F77=no
15679       ;;
15680
15681     sysv4)
15682       case $host_vendor in
15683         sni)
15684           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685           hardcode_direct_F77=yes # is this really true???
15686         ;;
15687         siemens)
15688           ## LD is ld it makes a PLAMLIB
15689           ## CC just makes a GrossModule.
15690           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15691           reload_cmds_F77='$CC -r -o $output$reload_objs'
15692           hardcode_direct_F77=no
15693         ;;
15694         motorola)
15695           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15697         ;;
15698       esac
15699       runpath_var='LD_RUN_PATH'
15700       hardcode_shlibpath_var_F77=no
15701       ;;
15702
15703     sysv4.3*)
15704       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705       hardcode_shlibpath_var_F77=no
15706       export_dynamic_flag_spec_F77='-Bexport'
15707       ;;
15708
15709     sysv4*MP*)
15710       if test -d /usr/nec; then
15711         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15712         hardcode_shlibpath_var_F77=no
15713         runpath_var=LD_RUN_PATH
15714         hardcode_runpath_var=yes
15715         ld_shlibs_F77=yes
15716       fi
15717       ;;
15718
15719     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15720       no_undefined_flag_F77='${wl}-z,text'
15721       archive_cmds_need_lc_F77=no
15722       hardcode_shlibpath_var_F77=no
15723       runpath_var='LD_RUN_PATH'
15724
15725       if test "$GCC" = yes; then
15726         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728       else
15729         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731       fi
15732       ;;
15733
15734     sysv5* | sco3.2v5* | sco5v6*)
15735       # Note: We can NOT use -z defs as we might desire, because we do not
15736       # link with -lc, and that would cause any symbols used from libc to
15737       # always be unresolved, which means just about no library would
15738       # ever link correctly.  If we're not using GNU ld we use -z text
15739       # though, which does catch some bad symbols but isn't as heavy-handed
15740       # as -z defs.
15741       no_undefined_flag_F77='${wl}-z,text'
15742       allow_undefined_flag_F77='${wl}-z,nodefs'
15743       archive_cmds_need_lc_F77=no
15744       hardcode_shlibpath_var_F77=no
15745       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15746       hardcode_libdir_separator_F77=':'
15747       link_all_deplibs_F77=yes
15748       export_dynamic_flag_spec_F77='${wl}-Bexport'
15749       runpath_var='LD_RUN_PATH'
15750
15751       if test "$GCC" = yes; then
15752         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15753         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15754       else
15755         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757       fi
15758       ;;
15759
15760     uts4*)
15761       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762       hardcode_libdir_flag_spec_F77='-L$libdir'
15763       hardcode_shlibpath_var_F77=no
15764       ;;
15765
15766     *)
15767       ld_shlibs_F77=no
15768       ;;
15769     esac
15770   fi
15771
15772 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15773 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15774 test "$ld_shlibs_F77" = no && can_build_shared=no
15775
15776 #
15777 # Do we need to explicitly link libc?
15778 #
15779 case "x$archive_cmds_need_lc_F77" in
15780 x|xyes)
15781   # Assume -lc should be added
15782   archive_cmds_need_lc_F77=yes
15783
15784   if test "$enable_shared" = yes && test "$GCC" = yes; then
15785     case $archive_cmds_F77 in
15786     *'~'*)
15787       # FIXME: we may have to deal with multi-command sequences.
15788       ;;
15789     '$CC '*)
15790       # Test whether the compiler implicitly links with -lc since on some
15791       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15792       # to ld, don't add -lc before -lgcc.
15793       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15794 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15795       $rm conftest*
15796       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15797
15798       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15799   (eval $ac_compile) 2>&5
15800   ac_status=$?
15801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); } 2>conftest.err; then
15803         soname=conftest
15804         lib=conftest
15805         libobjs=conftest.$ac_objext
15806         deplibs=
15807         wl=$lt_prog_compiler_wl_F77
15808         pic_flag=$lt_prog_compiler_pic_F77
15809         compiler_flags=-v
15810         linker_flags=-v
15811         verstring=
15812         output_objdir=.
15813         libname=conftest
15814         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15815         allow_undefined_flag_F77=
15816         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15817   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15818   ac_status=$?
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); }
15821         then
15822           archive_cmds_need_lc_F77=no
15823         else
15824           archive_cmds_need_lc_F77=yes
15825         fi
15826         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15827       else
15828         cat conftest.err 1>&5
15829       fi
15830       $rm conftest*
15831       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15832 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15833       ;;
15834     esac
15835   fi
15836   ;;
15837 esac
15838
15839 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15840 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15841 library_names_spec=
15842 libname_spec='lib$name'
15843 soname_spec=
15844 shrext_cmds=".so"
15845 postinstall_cmds=
15846 postuninstall_cmds=
15847 finish_cmds=
15848 finish_eval=
15849 shlibpath_var=
15850 shlibpath_overrides_runpath=unknown
15851 version_type=none
15852 dynamic_linker="$host_os ld.so"
15853 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15854
15855 need_lib_prefix=unknown
15856 hardcode_into_libs=no
15857
15858 # when you set need_version to no, make sure it does not cause -set_version
15859 # flags to be left without arguments
15860 need_version=unknown
15861
15862 case $host_os in
15863 aix3*)
15864   version_type=linux
15865   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15866   shlibpath_var=LIBPATH
15867
15868   # AIX 3 has no versioning support, so we append a major version to the name.
15869   soname_spec='${libname}${release}${shared_ext}$major'
15870   ;;
15871
15872 aix[4-9]*)
15873   version_type=linux
15874   need_lib_prefix=no
15875   need_version=no
15876   hardcode_into_libs=yes
15877   if test "$host_cpu" = ia64; then
15878     # AIX 5 supports IA64
15879     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15880     shlibpath_var=LD_LIBRARY_PATH
15881   else
15882     # With GCC up to 2.95.x, collect2 would create an import file
15883     # for dependence libraries.  The import file would start with
15884     # the line `#! .'.  This would cause the generated library to
15885     # depend on `.', always an invalid library.  This was fixed in
15886     # development snapshots of GCC prior to 3.0.
15887     case $host_os in
15888       aix4 | aix4.[01] | aix4.[01].*)
15889       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15890            echo ' yes '
15891            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15892         :
15893       else
15894         can_build_shared=no
15895       fi
15896       ;;
15897     esac
15898     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15899     # soname into executable. Probably we can add versioning support to
15900     # collect2, so additional links can be useful in future.
15901     if test "$aix_use_runtimelinking" = yes; then
15902       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15903       # instead of lib<name>.a to let people know that these are not
15904       # typical AIX shared libraries.
15905       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906     else
15907       # We preserve .a as extension for shared libraries through AIX4.2
15908       # and later when we are not doing run time linking.
15909       library_names_spec='${libname}${release}.a $libname.a'
15910       soname_spec='${libname}${release}${shared_ext}$major'
15911     fi
15912     shlibpath_var=LIBPATH
15913   fi
15914   ;;
15915
15916 amigaos*)
15917   library_names_spec='$libname.ixlibrary $libname.a'
15918   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15919   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'
15920   ;;
15921
15922 beos*)
15923   library_names_spec='${libname}${shared_ext}'
15924   dynamic_linker="$host_os ld.so"
15925   shlibpath_var=LIBRARY_PATH
15926   ;;
15927
15928 bsdi[45]*)
15929   version_type=linux
15930   need_version=no
15931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15932   soname_spec='${libname}${release}${shared_ext}$major'
15933   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15934   shlibpath_var=LD_LIBRARY_PATH
15935   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15936   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15937   # the default ld.so.conf also contains /usr/contrib/lib and
15938   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15939   # libtool to hard-code these into programs
15940   ;;
15941
15942 cygwin* | mingw* | pw32*)
15943   version_type=windows
15944   shrext_cmds=".dll"
15945   need_version=no
15946   need_lib_prefix=no
15947
15948   case $GCC,$host_os in
15949   yes,cygwin* | yes,mingw* | yes,pw32*)
15950     library_names_spec='$libname.dll.a'
15951     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15952     postinstall_cmds='base_file=`basename \${file}`~
15953       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15954       dldir=$destdir/`dirname \$dlpath`~
15955       test -d \$dldir || mkdir -p \$dldir~
15956       $install_prog $dir/$dlname \$dldir/$dlname~
15957       chmod a+x \$dldir/$dlname'
15958     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15959       dlpath=$dir/\$dldll~
15960        $rm \$dlpath'
15961     shlibpath_overrides_runpath=yes
15962
15963     case $host_os in
15964     cygwin*)
15965       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15966       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15968       ;;
15969     mingw*)
15970       # MinGW DLLs use traditional 'lib' prefix
15971       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15972       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15973       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15974         # It is most probably a Windows format PATH printed by
15975         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15976         # path with ; separators, and with drive letters. We can handle the
15977         # drive letters (cygwin fileutils understands them), so leave them,
15978         # especially as we might pass files found there to a mingw objdump,
15979         # which wouldn't understand a cygwinified path. Ahh.
15980         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15981       else
15982         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15983       fi
15984       ;;
15985     pw32*)
15986       # pw32 DLLs use 'pw' prefix rather than 'lib'
15987       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15988       ;;
15989     esac
15990     ;;
15991
15992   *)
15993     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15994     ;;
15995   esac
15996   dynamic_linker='Win32 ld.exe'
15997   # FIXME: first we should search . and the directory the executable is in
15998   shlibpath_var=PATH
15999   ;;
16000
16001 darwin* | rhapsody*)
16002   dynamic_linker="$host_os dyld"
16003   version_type=darwin
16004   need_lib_prefix=no
16005   need_version=no
16006   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16007   soname_spec='${libname}${release}${major}$shared_ext'
16008   shlibpath_overrides_runpath=yes
16009   shlibpath_var=DYLD_LIBRARY_PATH
16010   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16011
16012   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16013   ;;
16014
16015 dgux*)
16016   version_type=linux
16017   need_lib_prefix=no
16018   need_version=no
16019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16020   soname_spec='${libname}${release}${shared_ext}$major'
16021   shlibpath_var=LD_LIBRARY_PATH
16022   ;;
16023
16024 freebsd1*)
16025   dynamic_linker=no
16026   ;;
16027
16028 freebsd* | dragonfly*)
16029   # DragonFly does not have aout.  When/if they implement a new
16030   # versioning mechanism, adjust this.
16031   if test -x /usr/bin/objformat; then
16032     objformat=`/usr/bin/objformat`
16033   else
16034     case $host_os in
16035     freebsd[123]*) objformat=aout ;;
16036     *) objformat=elf ;;
16037     esac
16038   fi
16039   version_type=freebsd-$objformat
16040   case $version_type in
16041     freebsd-elf*)
16042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16043       need_version=no
16044       need_lib_prefix=no
16045       ;;
16046     freebsd-*)
16047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16048       need_version=yes
16049       ;;
16050   esac
16051   shlibpath_var=LD_LIBRARY_PATH
16052   case $host_os in
16053   freebsd2*)
16054     shlibpath_overrides_runpath=yes
16055     ;;
16056   freebsd3.[01]* | freebsdelf3.[01]*)
16057     shlibpath_overrides_runpath=yes
16058     hardcode_into_libs=yes
16059     ;;
16060   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16061   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16062     shlibpath_overrides_runpath=no
16063     hardcode_into_libs=yes
16064     ;;
16065   *) # from 4.6 on, and DragonFly
16066     shlibpath_overrides_runpath=yes
16067     hardcode_into_libs=yes
16068     ;;
16069   esac
16070   ;;
16071
16072 gnu*)
16073   version_type=linux
16074   need_lib_prefix=no
16075   need_version=no
16076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16077   soname_spec='${libname}${release}${shared_ext}$major'
16078   shlibpath_var=LD_LIBRARY_PATH
16079   hardcode_into_libs=yes
16080   ;;
16081
16082 hpux9* | hpux10* | hpux11*)
16083   # Give a soname corresponding to the major version so that dld.sl refuses to
16084   # link against other versions.
16085   version_type=sunos
16086   need_lib_prefix=no
16087   need_version=no
16088   case $host_cpu in
16089   ia64*)
16090     shrext_cmds='.so'
16091     hardcode_into_libs=yes
16092     dynamic_linker="$host_os dld.so"
16093     shlibpath_var=LD_LIBRARY_PATH
16094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096     soname_spec='${libname}${release}${shared_ext}$major'
16097     if test "X$HPUX_IA64_MODE" = X32; then
16098       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16099     else
16100       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16101     fi
16102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16103     ;;
16104    hppa*64*)
16105      shrext_cmds='.sl'
16106      hardcode_into_libs=yes
16107      dynamic_linker="$host_os dld.sl"
16108      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16109      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16110      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111      soname_spec='${libname}${release}${shared_ext}$major'
16112      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16113      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16114      ;;
16115    *)
16116     shrext_cmds='.sl'
16117     dynamic_linker="$host_os dld.sl"
16118     shlibpath_var=SHLIB_PATH
16119     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121     soname_spec='${libname}${release}${shared_ext}$major'
16122     ;;
16123   esac
16124   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16125   postinstall_cmds='chmod 555 $lib'
16126   ;;
16127
16128 interix[3-9]*)
16129   version_type=linux
16130   need_lib_prefix=no
16131   need_version=no
16132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16133   soname_spec='${libname}${release}${shared_ext}$major'
16134   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   shlibpath_overrides_runpath=no
16137   hardcode_into_libs=yes
16138   ;;
16139
16140 irix5* | irix6* | nonstopux*)
16141   case $host_os in
16142     nonstopux*) version_type=nonstopux ;;
16143     *)
16144         if test "$lt_cv_prog_gnu_ld" = yes; then
16145                 version_type=linux
16146         else
16147                 version_type=irix
16148         fi ;;
16149   esac
16150   need_lib_prefix=no
16151   need_version=no
16152   soname_spec='${libname}${release}${shared_ext}$major'
16153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16154   case $host_os in
16155   irix5* | nonstopux*)
16156     libsuff= shlibsuff=
16157     ;;
16158   *)
16159     case $LD in # libtool.m4 will add one of these switches to LD
16160     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16161       libsuff= shlibsuff= libmagic=32-bit;;
16162     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16163       libsuff=32 shlibsuff=N32 libmagic=N32;;
16164     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16165       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16166     *) libsuff= shlibsuff= libmagic=never-match;;
16167     esac
16168     ;;
16169   esac
16170   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16171   shlibpath_overrides_runpath=no
16172   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16173   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16174   hardcode_into_libs=yes
16175   ;;
16176
16177 # No shared lib support for Linux oldld, aout, or coff.
16178 linux*oldld* | linux*aout* | linux*coff*)
16179   dynamic_linker=no
16180   ;;
16181
16182 # This must be Linux ELF.
16183 linux* | k*bsd*-gnu)
16184   version_type=linux
16185   need_lib_prefix=no
16186   need_version=no
16187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188   soname_spec='${libname}${release}${shared_ext}$major'
16189   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16190   shlibpath_var=LD_LIBRARY_PATH
16191   shlibpath_overrides_runpath=no
16192   # This implies no fast_install, which is unacceptable.
16193   # Some rework will be needed to allow for fast_install
16194   # before this can be enabled.
16195   hardcode_into_libs=yes
16196
16197   # Append ld.so.conf contents to the search path
16198   if test -f /etc/ld.so.conf; then
16199     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16200     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16201   fi
16202
16203   # We used to test for /lib/ld.so.1 and disable shared libraries on
16204   # powerpc, because MkLinux only supported shared libraries with the
16205   # GNU dynamic linker.  Since this was broken with cross compilers,
16206   # most powerpc-linux boxes support dynamic linking these days and
16207   # people can always --disable-shared, the test was removed, and we
16208   # assume the GNU/Linux dynamic linker is in use.
16209   dynamic_linker='GNU/Linux ld.so'
16210   ;;
16211
16212 netbsdelf*-gnu)
16213   version_type=linux
16214   need_lib_prefix=no
16215   need_version=no
16216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16217   soname_spec='${libname}${release}${shared_ext}$major'
16218   shlibpath_var=LD_LIBRARY_PATH
16219   shlibpath_overrides_runpath=no
16220   hardcode_into_libs=yes
16221   dynamic_linker='NetBSD ld.elf_so'
16222   ;;
16223
16224 netbsd*)
16225   version_type=sunos
16226   need_lib_prefix=no
16227   need_version=no
16228   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16230     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16231     dynamic_linker='NetBSD (a.out) ld.so'
16232   else
16233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16234     soname_spec='${libname}${release}${shared_ext}$major'
16235     dynamic_linker='NetBSD ld.elf_so'
16236   fi
16237   shlibpath_var=LD_LIBRARY_PATH
16238   shlibpath_overrides_runpath=yes
16239   hardcode_into_libs=yes
16240   ;;
16241
16242 newsos6)
16243   version_type=linux
16244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245   shlibpath_var=LD_LIBRARY_PATH
16246   shlibpath_overrides_runpath=yes
16247   ;;
16248
16249 nto-qnx*)
16250   version_type=linux
16251   need_lib_prefix=no
16252   need_version=no
16253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254   soname_spec='${libname}${release}${shared_ext}$major'
16255   shlibpath_var=LD_LIBRARY_PATH
16256   shlibpath_overrides_runpath=yes
16257   ;;
16258
16259 openbsd*)
16260   version_type=sunos
16261   sys_lib_dlsearch_path_spec="/usr/lib"
16262   need_lib_prefix=no
16263   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16264   case $host_os in
16265     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16266     *)                         need_version=no  ;;
16267   esac
16268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16269   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16270   shlibpath_var=LD_LIBRARY_PATH
16271   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16272     case $host_os in
16273       openbsd2.[89] | openbsd2.[89].*)
16274         shlibpath_overrides_runpath=no
16275         ;;
16276       *)
16277         shlibpath_overrides_runpath=yes
16278         ;;
16279       esac
16280   else
16281     shlibpath_overrides_runpath=yes
16282   fi
16283   ;;
16284
16285 os2*)
16286   libname_spec='$name'
16287   shrext_cmds=".dll"
16288   need_lib_prefix=no
16289   library_names_spec='$libname${shared_ext} $libname.a'
16290   dynamic_linker='OS/2 ld.exe'
16291   shlibpath_var=LIBPATH
16292   ;;
16293
16294 osf3* | osf4* | osf5*)
16295   version_type=osf
16296   need_lib_prefix=no
16297   need_version=no
16298   soname_spec='${libname}${release}${shared_ext}$major'
16299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300   shlibpath_var=LD_LIBRARY_PATH
16301   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16302   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16303   ;;
16304
16305 rdos*)
16306   dynamic_linker=no
16307   ;;
16308
16309 solaris*)
16310   version_type=linux
16311   need_lib_prefix=no
16312   need_version=no
16313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16314   soname_spec='${libname}${release}${shared_ext}$major'
16315   shlibpath_var=LD_LIBRARY_PATH
16316   shlibpath_overrides_runpath=yes
16317   hardcode_into_libs=yes
16318   # ldd complains unless libraries are executable
16319   postinstall_cmds='chmod +x $lib'
16320   ;;
16321
16322 sunos4*)
16323   version_type=sunos
16324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16325   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16326   shlibpath_var=LD_LIBRARY_PATH
16327   shlibpath_overrides_runpath=yes
16328   if test "$with_gnu_ld" = yes; then
16329     need_lib_prefix=no
16330   fi
16331   need_version=yes
16332   ;;
16333
16334 sysv4 | sysv4.3*)
16335   version_type=linux
16336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337   soname_spec='${libname}${release}${shared_ext}$major'
16338   shlibpath_var=LD_LIBRARY_PATH
16339   case $host_vendor in
16340     sni)
16341       shlibpath_overrides_runpath=no
16342       need_lib_prefix=no
16343       export_dynamic_flag_spec='${wl}-Blargedynsym'
16344       runpath_var=LD_RUN_PATH
16345       ;;
16346     siemens)
16347       need_lib_prefix=no
16348       ;;
16349     motorola)
16350       need_lib_prefix=no
16351       need_version=no
16352       shlibpath_overrides_runpath=no
16353       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16354       ;;
16355   esac
16356   ;;
16357
16358 sysv4*MP*)
16359   if test -d /usr/nec ;then
16360     version_type=linux
16361     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16362     soname_spec='$libname${shared_ext}.$major'
16363     shlibpath_var=LD_LIBRARY_PATH
16364   fi
16365   ;;
16366
16367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16368   version_type=freebsd-elf
16369   need_lib_prefix=no
16370   need_version=no
16371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16372   soname_spec='${libname}${release}${shared_ext}$major'
16373   shlibpath_var=LD_LIBRARY_PATH
16374   hardcode_into_libs=yes
16375   if test "$with_gnu_ld" = yes; then
16376     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16377     shlibpath_overrides_runpath=no
16378   else
16379     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16380     shlibpath_overrides_runpath=yes
16381     case $host_os in
16382       sco3.2v5*)
16383         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16384         ;;
16385     esac
16386   fi
16387   sys_lib_dlsearch_path_spec='/usr/lib'
16388   ;;
16389
16390 uts4*)
16391   version_type=linux
16392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393   soname_spec='${libname}${release}${shared_ext}$major'
16394   shlibpath_var=LD_LIBRARY_PATH
16395   ;;
16396
16397 *)
16398   dynamic_linker=no
16399   ;;
16400 esac
16401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16402 echo "${ECHO_T}$dynamic_linker" >&6; }
16403 test "$dynamic_linker" = no && can_build_shared=no
16404
16405 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16406   echo $ECHO_N "(cached) $ECHO_C" >&6
16407 else
16408   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16409 fi
16410
16411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16412 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16416 fi
16417
16418 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16419
16420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16421 if test "$GCC" = yes; then
16422   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16423 fi
16424
16425 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16426 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16427 hardcode_action_F77=
16428 if test -n "$hardcode_libdir_flag_spec_F77" || \
16429    test -n "$runpath_var_F77" || \
16430    test "X$hardcode_automatic_F77" = "Xyes" ; then
16431
16432   # We can hardcode non-existant directories.
16433   if test "$hardcode_direct_F77" != no &&
16434      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16435      # have to relink, otherwise we might link with an installed library
16436      # when we should be linking with a yet-to-be-installed one
16437      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16438      test "$hardcode_minus_L_F77" != no; then
16439     # Linking always hardcodes the temporary library directory.
16440     hardcode_action_F77=relink
16441   else
16442     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16443     hardcode_action_F77=immediate
16444   fi
16445 else
16446   # We cannot hardcode anything, or else we can only hardcode existing
16447   # directories.
16448   hardcode_action_F77=unsupported
16449 fi
16450 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16451 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16452
16453 if test "$hardcode_action_F77" = relink; then
16454   # Fast installation is not supported
16455   enable_fast_install=no
16456 elif test "$shlibpath_overrides_runpath" = yes ||
16457      test "$enable_shared" = no; then
16458   # Fast installation is not necessary
16459   enable_fast_install=needless
16460 fi
16461
16462
16463 # The else clause should only fire when bootstrapping the
16464 # libtool distribution, otherwise you forgot to ship ltmain.sh
16465 # with your package, and you will get complaints that there are
16466 # no rules to generate ltmain.sh.
16467 if test -f "$ltmain"; then
16468   # See if we are running on zsh, and set the options which allow our commands through
16469   # without removal of \ escapes.
16470   if test -n "${ZSH_VERSION+set}" ; then
16471     setopt NO_GLOB_SUBST
16472   fi
16473   # Now quote all the things that may contain metacharacters while being
16474   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16475   # variables and quote the copies for generation of the libtool script.
16476   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16477     SED SHELL STRIP \
16478     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16479     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16480     deplibs_check_method reload_flag reload_cmds need_locks \
16481     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16482     lt_cv_sys_global_symbol_to_c_name_address \
16483     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16484     old_postinstall_cmds old_postuninstall_cmds \
16485     compiler_F77 \
16486     CC_F77 \
16487     LD_F77 \
16488     lt_prog_compiler_wl_F77 \
16489     lt_prog_compiler_pic_F77 \
16490     lt_prog_compiler_static_F77 \
16491     lt_prog_compiler_no_builtin_flag_F77 \
16492     export_dynamic_flag_spec_F77 \
16493     thread_safe_flag_spec_F77 \
16494     whole_archive_flag_spec_F77 \
16495     enable_shared_with_static_runtimes_F77 \
16496     old_archive_cmds_F77 \
16497     old_archive_from_new_cmds_F77 \
16498     predep_objects_F77 \
16499     postdep_objects_F77 \
16500     predeps_F77 \
16501     postdeps_F77 \
16502     compiler_lib_search_path_F77 \
16503     compiler_lib_search_dirs_F77 \
16504     archive_cmds_F77 \
16505     archive_expsym_cmds_F77 \
16506     postinstall_cmds_F77 \
16507     postuninstall_cmds_F77 \
16508     old_archive_from_expsyms_cmds_F77 \
16509     allow_undefined_flag_F77 \
16510     no_undefined_flag_F77 \
16511     export_symbols_cmds_F77 \
16512     hardcode_libdir_flag_spec_F77 \
16513     hardcode_libdir_flag_spec_ld_F77 \
16514     hardcode_libdir_separator_F77 \
16515     hardcode_automatic_F77 \
16516     module_cmds_F77 \
16517     module_expsym_cmds_F77 \
16518     lt_cv_prog_compiler_c_o_F77 \
16519     fix_srcfile_path_F77 \
16520     exclude_expsyms_F77 \
16521     include_expsyms_F77; do
16522
16523     case $var in
16524     old_archive_cmds_F77 | \
16525     old_archive_from_new_cmds_F77 | \
16526     archive_cmds_F77 | \
16527     archive_expsym_cmds_F77 | \
16528     module_cmds_F77 | \
16529     module_expsym_cmds_F77 | \
16530     old_archive_from_expsyms_cmds_F77 | \
16531     export_symbols_cmds_F77 | \
16532     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16533     postinstall_cmds | postuninstall_cmds | \
16534     old_postinstall_cmds | old_postuninstall_cmds | \
16535     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16536       # Double-quote double-evaled strings.
16537       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16538       ;;
16539     *)
16540       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16541       ;;
16542     esac
16543   done
16544
16545   case $lt_echo in
16546   *'\$0 --fallback-echo"')
16547     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16548     ;;
16549   esac
16550
16551 cfgfile="$ofile"
16552
16553   cat <<__EOF__ >> "$cfgfile"
16554 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16555
16556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16557
16558 # Shell to use when invoking shell scripts.
16559 SHELL=$lt_SHELL
16560
16561 # Whether or not to build shared libraries.
16562 build_libtool_libs=$enable_shared
16563
16564 # Whether or not to build static libraries.
16565 build_old_libs=$enable_static
16566
16567 # Whether or not to add -lc for building shared libraries.
16568 build_libtool_need_lc=$archive_cmds_need_lc_F77
16569
16570 # Whether or not to disallow shared libs when runtime libs are static
16571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16572
16573 # Whether or not to optimize for fast installation.
16574 fast_install=$enable_fast_install
16575
16576 # The host system.
16577 host_alias=$host_alias
16578 host=$host
16579 host_os=$host_os
16580
16581 # The build system.
16582 build_alias=$build_alias
16583 build=$build
16584 build_os=$build_os
16585
16586 # An echo program that does not interpret backslashes.
16587 echo=$lt_echo
16588
16589 # The archiver.
16590 AR=$lt_AR
16591 AR_FLAGS=$lt_AR_FLAGS
16592
16593 # A C compiler.
16594 LTCC=$lt_LTCC
16595
16596 # LTCC compiler flags.
16597 LTCFLAGS=$lt_LTCFLAGS
16598
16599 # A language-specific compiler.
16600 CC=$lt_compiler_F77
16601
16602 # Is the compiler the GNU C compiler?
16603 with_gcc=$GCC_F77
16604
16605 # An ERE matcher.
16606 EGREP=$lt_EGREP
16607
16608 # The linker used to build libraries.
16609 LD=$lt_LD_F77
16610
16611 # Whether we need hard or soft links.
16612 LN_S=$lt_LN_S
16613
16614 # A BSD-compatible nm program.
16615 NM=$lt_NM
16616
16617 # A symbol stripping program
16618 STRIP=$lt_STRIP
16619
16620 # Used to examine libraries when file_magic_cmd begins "file"
16621 MAGIC_CMD=$MAGIC_CMD
16622
16623 # Used on cygwin: DLL creation program.
16624 DLLTOOL="$DLLTOOL"
16625
16626 # Used on cygwin: object dumper.
16627 OBJDUMP="$OBJDUMP"
16628
16629 # Used on cygwin: assembler.
16630 AS="$AS"
16631
16632 # The name of the directory that contains temporary libtool files.
16633 objdir=$objdir
16634
16635 # How to create reloadable object files.
16636 reload_flag=$lt_reload_flag
16637 reload_cmds=$lt_reload_cmds
16638
16639 # How to pass a linker flag through the compiler.
16640 wl=$lt_lt_prog_compiler_wl_F77
16641
16642 # Object file suffix (normally "o").
16643 objext="$ac_objext"
16644
16645 # Old archive suffix (normally "a").
16646 libext="$libext"
16647
16648 # Shared library suffix (normally ".so").
16649 shrext_cmds='$shrext_cmds'
16650
16651 # Executable file suffix (normally "").
16652 exeext="$exeext"
16653
16654 # Additional compiler flags for building library objects.
16655 pic_flag=$lt_lt_prog_compiler_pic_F77
16656 pic_mode=$pic_mode
16657
16658 # What is the maximum length of a command?
16659 max_cmd_len=$lt_cv_sys_max_cmd_len
16660
16661 # Does compiler simultaneously support -c and -o options?
16662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16663
16664 # Must we lock files when doing compilation?
16665 need_locks=$lt_need_locks
16666
16667 # Do we need the lib prefix for modules?
16668 need_lib_prefix=$need_lib_prefix
16669
16670 # Do we need a version for libraries?
16671 need_version=$need_version
16672
16673 # Whether dlopen is supported.
16674 dlopen_support=$enable_dlopen
16675
16676 # Whether dlopen of programs is supported.
16677 dlopen_self=$enable_dlopen_self
16678
16679 # Whether dlopen of statically linked programs is supported.
16680 dlopen_self_static=$enable_dlopen_self_static
16681
16682 # Compiler flag to prevent dynamic linking.
16683 link_static_flag=$lt_lt_prog_compiler_static_F77
16684
16685 # Compiler flag to turn off builtin functions.
16686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16687
16688 # Compiler flag to allow reflexive dlopens.
16689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16690
16691 # Compiler flag to generate shared objects directly from archives.
16692 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16693
16694 # Compiler flag to generate thread-safe objects.
16695 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16696
16697 # Library versioning type.
16698 version_type=$version_type
16699
16700 # Format of library name prefix.
16701 libname_spec=$lt_libname_spec
16702
16703 # List of archive names.  First name is the real one, the rest are links.
16704 # The last name is the one that the linker finds with -lNAME.
16705 library_names_spec=$lt_library_names_spec
16706
16707 # The coded name of the library, if different from the real name.
16708 soname_spec=$lt_soname_spec
16709
16710 # Commands used to build and install an old-style archive.
16711 RANLIB=$lt_RANLIB
16712 old_archive_cmds=$lt_old_archive_cmds_F77
16713 old_postinstall_cmds=$lt_old_postinstall_cmds
16714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16715
16716 # Create an old-style archive from a shared archive.
16717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16718
16719 # Create a temporary old-style archive to link instead of a shared archive.
16720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16721
16722 # Commands used to build and install a shared archive.
16723 archive_cmds=$lt_archive_cmds_F77
16724 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16725 postinstall_cmds=$lt_postinstall_cmds
16726 postuninstall_cmds=$lt_postuninstall_cmds
16727
16728 # Commands used to build a loadable module (assumed same as above if empty)
16729 module_cmds=$lt_module_cmds_F77
16730 module_expsym_cmds=$lt_module_expsym_cmds_F77
16731
16732 # Commands to strip libraries.
16733 old_striplib=$lt_old_striplib
16734 striplib=$lt_striplib
16735
16736 # Dependencies to place before the objects being linked to create a
16737 # shared library.
16738 predep_objects=$lt_predep_objects_F77
16739
16740 # Dependencies to place after the objects being linked to create a
16741 # shared library.
16742 postdep_objects=$lt_postdep_objects_F77
16743
16744 # Dependencies to place before the objects being linked to create a
16745 # shared library.
16746 predeps=$lt_predeps_F77
16747
16748 # Dependencies to place after the objects being linked to create a
16749 # shared library.
16750 postdeps=$lt_postdeps_F77
16751
16752 # The directories searched by this compiler when creating a shared
16753 # library
16754 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16755
16756 # The library search path used internally by the compiler when linking
16757 # a shared library.
16758 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16759
16760 # Method to check whether dependent libraries are shared objects.
16761 deplibs_check_method=$lt_deplibs_check_method
16762
16763 # Command to use when deplibs_check_method == file_magic.
16764 file_magic_cmd=$lt_file_magic_cmd
16765
16766 # Flag that allows shared libraries with undefined symbols to be built.
16767 allow_undefined_flag=$lt_allow_undefined_flag_F77
16768
16769 # Flag that forces no undefined symbols.
16770 no_undefined_flag=$lt_no_undefined_flag_F77
16771
16772 # Commands used to finish a libtool library installation in a directory.
16773 finish_cmds=$lt_finish_cmds
16774
16775 # Same as above, but a single script fragment to be evaled but not shown.
16776 finish_eval=$lt_finish_eval
16777
16778 # Take the output of nm and produce a listing of raw symbols and C names.
16779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16780
16781 # Transform the output of nm in a proper C declaration
16782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16783
16784 # Transform the output of nm in a C name address pair
16785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16786
16787 # This is the shared library runtime path variable.
16788 runpath_var=$runpath_var
16789
16790 # This is the shared library path variable.
16791 shlibpath_var=$shlibpath_var
16792
16793 # Is shlibpath searched before the hard-coded library search path?
16794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16795
16796 # How to hardcode a shared library path into an executable.
16797 hardcode_action=$hardcode_action_F77
16798
16799 # Whether we should hardcode library paths into libraries.
16800 hardcode_into_libs=$hardcode_into_libs
16801
16802 # Flag to hardcode \$libdir into a binary during linking.
16803 # This must work even if \$libdir does not exist.
16804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16805
16806 # If ld is used when linking, flag to hardcode \$libdir into
16807 # a binary during linking. This must work even if \$libdir does
16808 # not exist.
16809 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16810
16811 # Whether we need a single -rpath flag with a separated argument.
16812 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16813
16814 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16815 # resulting binary.
16816 hardcode_direct=$hardcode_direct_F77
16817
16818 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16819 # resulting binary.
16820 hardcode_minus_L=$hardcode_minus_L_F77
16821
16822 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16823 # the resulting binary.
16824 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16825
16826 # Set to yes if building a shared library automatically hardcodes DIR into the library
16827 # and all subsequent libraries and executables linked against it.
16828 hardcode_automatic=$hardcode_automatic_F77
16829
16830 # Variables whose values should be saved in libtool wrapper scripts and
16831 # restored at relink time.
16832 variables_saved_for_relink="$variables_saved_for_relink"
16833
16834 # Whether libtool must link a program against all its dependency libraries.
16835 link_all_deplibs=$link_all_deplibs_F77
16836
16837 # Compile-time system search path for libraries
16838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16839
16840 # Run-time system search path for libraries
16841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16842
16843 # Fix the shell variable \$srcfile for the compiler.
16844 fix_srcfile_path=$lt_fix_srcfile_path
16845
16846 # Set to yes if exported symbols are required.
16847 always_export_symbols=$always_export_symbols_F77
16848
16849 # The commands to list exported symbols.
16850 export_symbols_cmds=$lt_export_symbols_cmds_F77
16851
16852 # The commands to extract the exported symbol list from a shared archive.
16853 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16854
16855 # Symbols that should not be listed in the preloaded symbols.
16856 exclude_expsyms=$lt_exclude_expsyms_F77
16857
16858 # Symbols that must always be exported.
16859 include_expsyms=$lt_include_expsyms_F77
16860
16861 # ### END LIBTOOL TAG CONFIG: $tagname
16862
16863 __EOF__
16864
16865
16866 else
16867   # If there is no Makefile yet, we rely on a make rule to execute
16868   # `config.status --recheck' to rerun these tests and create the
16869   # libtool script then.
16870   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16871   if test -f "$ltmain_in"; then
16872     test -f Makefile && make "$ltmain"
16873   fi
16874 fi
16875
16876
16877 ac_ext=c
16878 ac_cpp='$CPP $CPPFLAGS'
16879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16882
16883 CC="$lt_save_CC"
16884
16885         else
16886           tagname=""
16887         fi
16888         ;;
16889
16890       GCJ)
16891         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16892
16893
16894 # Source file extension for Java test sources.
16895 ac_ext=java
16896
16897 # Object file extension for compiled Java test sources.
16898 objext=o
16899 objext_GCJ=$objext
16900
16901 # Code to be used in simple compile tests
16902 lt_simple_compile_test_code="class foo {}"
16903
16904 # Code to be used in simple link tests
16905 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16906
16907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16908
16909 # If no C compiler was specified, use CC.
16910 LTCC=${LTCC-"$CC"}
16911
16912 # If no C compiler flags were specified, use CFLAGS.
16913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16914
16915 # Allow CC to be a program name with arguments.
16916 compiler=$CC
16917
16918
16919 # save warnings/boilerplate of simple test code
16920 ac_outfile=conftest.$ac_objext
16921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16923 _lt_compiler_boilerplate=`cat conftest.err`
16924 $rm conftest*
16925
16926 ac_outfile=conftest.$ac_objext
16927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16929 _lt_linker_boilerplate=`cat conftest.err`
16930 $rm -r conftest*
16931
16932
16933 # Allow CC to be a program name with arguments.
16934 lt_save_CC="$CC"
16935 CC=${GCJ-"gcj"}
16936 compiler=$CC
16937 compiler_GCJ=$CC
16938 for cc_temp in $compiler""; do
16939   case $cc_temp in
16940     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16941     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16942     \-*) ;;
16943     *) break;;
16944   esac
16945 done
16946 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16947
16948
16949 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16950 archive_cmds_need_lc_GCJ=no
16951
16952 old_archive_cmds_GCJ=$old_archive_cmds
16953
16954
16955 lt_prog_compiler_no_builtin_flag_GCJ=
16956
16957 if test "$GCC" = yes; then
16958   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16959
16960
16961 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16962 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16963 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   lt_cv_prog_compiler_rtti_exceptions=no
16967   ac_outfile=conftest.$ac_objext
16968    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16969    lt_compiler_flag="-fno-rtti -fno-exceptions"
16970    # Insert the option either (1) after the last *FLAGS variable, or
16971    # (2) before a word containing "conftest.", or (3) at the end.
16972    # Note that $ac_compile itself does not contain backslashes and begins
16973    # with a dollar sign (not a hyphen), so the echo should work correctly.
16974    # The option is referenced via a variable to avoid confusing sed.
16975    lt_compile=`echo "$ac_compile" | $SED \
16976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16978    -e 's:$: $lt_compiler_flag:'`
16979    (eval echo "\"\$as_me:16980: $lt_compile\"" >&5)
16980    (eval "$lt_compile" 2>conftest.err)
16981    ac_status=$?
16982    cat conftest.err >&5
16983    echo "$as_me:16984: \$? = $ac_status" >&5
16984    if (exit $ac_status) && test -s "$ac_outfile"; then
16985      # The compiler can only warn and ignore the option if not recognized
16986      # So say no if there are warnings other than the usual output.
16987      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16988      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16989      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16990        lt_cv_prog_compiler_rtti_exceptions=yes
16991      fi
16992    fi
16993    $rm conftest*
16994
16995 fi
16996 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16997 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16998
16999 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17000     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17001 else
17002     :
17003 fi
17004
17005 fi
17006
17007 lt_prog_compiler_wl_GCJ=
17008 lt_prog_compiler_pic_GCJ=
17009 lt_prog_compiler_static_GCJ=
17010
17011 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17012 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17013
17014   if test "$GCC" = yes; then
17015     lt_prog_compiler_wl_GCJ='-Wl,'
17016     lt_prog_compiler_static_GCJ='-static'
17017
17018     case $host_os in
17019       aix*)
17020       # All AIX code is PIC.
17021       if test "$host_cpu" = ia64; then
17022         # AIX 5 now supports IA64 processor
17023         lt_prog_compiler_static_GCJ='-Bstatic'
17024       fi
17025       ;;
17026
17027     amigaos*)
17028       # FIXME: we need at least 68020 code to build shared libraries, but
17029       # adding the `-m68020' flag to GCC prevents building anything better,
17030       # like `-m68040'.
17031       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17032       ;;
17033
17034     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17035       # PIC is the default for these OSes.
17036       ;;
17037
17038     mingw* | cygwin* | pw32* | os2*)
17039       # This hack is so that the source file can tell whether it is being
17040       # built for inclusion in a dll (and should export symbols for example).
17041       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17042       # (--disable-auto-import) libraries
17043
17044       ;;
17045
17046     darwin* | rhapsody*)
17047       # PIC is the default on this platform
17048       # Common symbols not allowed in MH_DYLIB files
17049       lt_prog_compiler_pic_GCJ='-fno-common'
17050       ;;
17051
17052     interix[3-9]*)
17053       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17054       # Instead, we relocate shared libraries at runtime.
17055       ;;
17056
17057     msdosdjgpp*)
17058       # Just because we use GCC doesn't mean we suddenly get shared libraries
17059       # on systems that don't support them.
17060       lt_prog_compiler_can_build_shared_GCJ=no
17061       enable_shared=no
17062       ;;
17063
17064     sysv4*MP*)
17065       if test -d /usr/nec; then
17066         lt_prog_compiler_pic_GCJ=-Kconform_pic
17067       fi
17068       ;;
17069
17070     hpux*)
17071       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17072       # not for PA HP-UX.
17073       case $host_cpu in
17074       hppa*64*|ia64*)
17075         # +Z the default
17076         ;;
17077       *)
17078         lt_prog_compiler_pic_GCJ='-fPIC'
17079         ;;
17080       esac
17081       ;;
17082
17083     *)
17084       lt_prog_compiler_pic_GCJ='-fPIC'
17085       ;;
17086     esac
17087   else
17088     # PORTME Check for flag to pass linker flags through the system compiler.
17089     case $host_os in
17090     aix*)
17091       lt_prog_compiler_wl_GCJ='-Wl,'
17092       if test "$host_cpu" = ia64; then
17093         # AIX 5 now supports IA64 processor
17094         lt_prog_compiler_static_GCJ='-Bstatic'
17095       else
17096         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17097       fi
17098       ;;
17099       darwin*)
17100         # PIC is the default on this platform
17101         # Common symbols not allowed in MH_DYLIB files
17102        case $cc_basename in
17103          xlc*)
17104          lt_prog_compiler_pic_GCJ='-qnocommon'
17105          lt_prog_compiler_wl_GCJ='-Wl,'
17106          ;;
17107        esac
17108        ;;
17109
17110     mingw* | cygwin* | pw32* | os2*)
17111       # This hack is so that the source file can tell whether it is being
17112       # built for inclusion in a dll (and should export symbols for example).
17113
17114       ;;
17115
17116     hpux9* | hpux10* | hpux11*)
17117       lt_prog_compiler_wl_GCJ='-Wl,'
17118       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17119       # not for PA HP-UX.
17120       case $host_cpu in
17121       hppa*64*|ia64*)
17122         # +Z the default
17123         ;;
17124       *)
17125         lt_prog_compiler_pic_GCJ='+Z'
17126         ;;
17127       esac
17128       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17129       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17130       ;;
17131
17132     irix5* | irix6* | nonstopux*)
17133       lt_prog_compiler_wl_GCJ='-Wl,'
17134       # PIC (with -KPIC) is the default.
17135       lt_prog_compiler_static_GCJ='-non_shared'
17136       ;;
17137
17138     newsos6)
17139       lt_prog_compiler_pic_GCJ='-KPIC'
17140       lt_prog_compiler_static_GCJ='-Bstatic'
17141       ;;
17142
17143     linux* | k*bsd*-gnu)
17144       case $cc_basename in
17145       icc* | ecc*)
17146         lt_prog_compiler_wl_GCJ='-Wl,'
17147         lt_prog_compiler_pic_GCJ='-KPIC'
17148         lt_prog_compiler_static_GCJ='-static'
17149         ;;
17150       pgcc* | pgf77* | pgf90* | pgf95*)
17151         # Portland Group compilers (*not* the Pentium gcc compiler,
17152         # which looks to be a dead project)
17153         lt_prog_compiler_wl_GCJ='-Wl,'
17154         lt_prog_compiler_pic_GCJ='-fpic'
17155         lt_prog_compiler_static_GCJ='-Bstatic'
17156         ;;
17157       ccc*)
17158         lt_prog_compiler_wl_GCJ='-Wl,'
17159         # All Alpha code is PIC.
17160         lt_prog_compiler_static_GCJ='-non_shared'
17161         ;;
17162       *)
17163         case `$CC -V 2>&1 | sed 5q` in
17164         *Sun\ C*)
17165           # Sun C 5.9
17166           lt_prog_compiler_pic_GCJ='-KPIC'
17167           lt_prog_compiler_static_GCJ='-Bstatic'
17168           lt_prog_compiler_wl_GCJ='-Wl,'
17169           ;;
17170         *Sun\ F*)
17171           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17172           lt_prog_compiler_pic_GCJ='-KPIC'
17173           lt_prog_compiler_static_GCJ='-Bstatic'
17174           lt_prog_compiler_wl_GCJ=''
17175           ;;
17176         esac
17177         ;;
17178       esac
17179       ;;
17180
17181     osf3* | osf4* | osf5*)
17182       lt_prog_compiler_wl_GCJ='-Wl,'
17183       # All OSF/1 code is PIC.
17184       lt_prog_compiler_static_GCJ='-non_shared'
17185       ;;
17186
17187     rdos*)
17188       lt_prog_compiler_static_GCJ='-non_shared'
17189       ;;
17190
17191     solaris*)
17192       lt_prog_compiler_pic_GCJ='-KPIC'
17193       lt_prog_compiler_static_GCJ='-Bstatic'
17194       case $cc_basename in
17195       f77* | f90* | f95*)
17196         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17197       *)
17198         lt_prog_compiler_wl_GCJ='-Wl,';;
17199       esac
17200       ;;
17201
17202     sunos4*)
17203       lt_prog_compiler_wl_GCJ='-Qoption ld '
17204       lt_prog_compiler_pic_GCJ='-PIC'
17205       lt_prog_compiler_static_GCJ='-Bstatic'
17206       ;;
17207
17208     sysv4 | sysv4.2uw2* | sysv4.3*)
17209       lt_prog_compiler_wl_GCJ='-Wl,'
17210       lt_prog_compiler_pic_GCJ='-KPIC'
17211       lt_prog_compiler_static_GCJ='-Bstatic'
17212       ;;
17213
17214     sysv4*MP*)
17215       if test -d /usr/nec ;then
17216         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17217         lt_prog_compiler_static_GCJ='-Bstatic'
17218       fi
17219       ;;
17220
17221     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17222       lt_prog_compiler_wl_GCJ='-Wl,'
17223       lt_prog_compiler_pic_GCJ='-KPIC'
17224       lt_prog_compiler_static_GCJ='-Bstatic'
17225       ;;
17226
17227     unicos*)
17228       lt_prog_compiler_wl_GCJ='-Wl,'
17229       lt_prog_compiler_can_build_shared_GCJ=no
17230       ;;
17231
17232     uts4*)
17233       lt_prog_compiler_pic_GCJ='-pic'
17234       lt_prog_compiler_static_GCJ='-Bstatic'
17235       ;;
17236
17237     *)
17238       lt_prog_compiler_can_build_shared_GCJ=no
17239       ;;
17240     esac
17241   fi
17242
17243 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17244 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17245
17246 #
17247 # Check to make sure the PIC flag actually works.
17248 #
17249 if test -n "$lt_prog_compiler_pic_GCJ"; then
17250
17251 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17252 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17253 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17254   echo $ECHO_N "(cached) $ECHO_C" >&6
17255 else
17256   lt_cv_prog_compiler_pic_works_GCJ=no
17257   ac_outfile=conftest.$ac_objext
17258    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17259    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17260    # Insert the option either (1) after the last *FLAGS variable, or
17261    # (2) before a word containing "conftest.", or (3) at the end.
17262    # Note that $ac_compile itself does not contain backslashes and begins
17263    # with a dollar sign (not a hyphen), so the echo should work correctly.
17264    # The option is referenced via a variable to avoid confusing sed.
17265    lt_compile=`echo "$ac_compile" | $SED \
17266    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17267    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17268    -e 's:$: $lt_compiler_flag:'`
17269    (eval echo "\"\$as_me:17270: $lt_compile\"" >&5)
17270    (eval "$lt_compile" 2>conftest.err)
17271    ac_status=$?
17272    cat conftest.err >&5
17273    echo "$as_me:17274: \$? = $ac_status" >&5
17274    if (exit $ac_status) && test -s "$ac_outfile"; then
17275      # The compiler can only warn and ignore the option if not recognized
17276      # So say no if there are warnings other than the usual output.
17277      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17278      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17279      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17280        lt_cv_prog_compiler_pic_works_GCJ=yes
17281      fi
17282    fi
17283    $rm conftest*
17284
17285 fi
17286 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17287 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17288
17289 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17290     case $lt_prog_compiler_pic_GCJ in
17291      "" | " "*) ;;
17292      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17293      esac
17294 else
17295     lt_prog_compiler_pic_GCJ=
17296      lt_prog_compiler_can_build_shared_GCJ=no
17297 fi
17298
17299 fi
17300 case $host_os in
17301   # For platforms which do not support PIC, -DPIC is meaningless:
17302   *djgpp*)
17303     lt_prog_compiler_pic_GCJ=
17304     ;;
17305   *)
17306     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17307     ;;
17308 esac
17309
17310 #
17311 # Check to make sure the static flag actually works.
17312 #
17313 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17314 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17315 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17316 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319   lt_cv_prog_compiler_static_works_GCJ=no
17320    save_LDFLAGS="$LDFLAGS"
17321    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17322    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17323    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17324      # The linker can only warn and ignore the option if not recognized
17325      # So say no if there are warnings
17326      if test -s conftest.err; then
17327        # Append any errors to the config.log.
17328        cat conftest.err 1>&5
17329        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17330        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17331        if diff conftest.exp conftest.er2 >/dev/null; then
17332          lt_cv_prog_compiler_static_works_GCJ=yes
17333        fi
17334      else
17335        lt_cv_prog_compiler_static_works_GCJ=yes
17336      fi
17337    fi
17338    $rm -r conftest*
17339    LDFLAGS="$save_LDFLAGS"
17340
17341 fi
17342 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17343 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17344
17345 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17346     :
17347 else
17348     lt_prog_compiler_static_GCJ=
17349 fi
17350
17351
17352 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17353 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17354 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17355   echo $ECHO_N "(cached) $ECHO_C" >&6
17356 else
17357   lt_cv_prog_compiler_c_o_GCJ=no
17358    $rm -r conftest 2>/dev/null
17359    mkdir conftest
17360    cd conftest
17361    mkdir out
17362    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17363
17364    lt_compiler_flag="-o out/conftest2.$ac_objext"
17365    # Insert the option either (1) after the last *FLAGS variable, or
17366    # (2) before a word containing "conftest.", or (3) at the end.
17367    # Note that $ac_compile itself does not contain backslashes and begins
17368    # with a dollar sign (not a hyphen), so the echo should work correctly.
17369    lt_compile=`echo "$ac_compile" | $SED \
17370    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17371    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17372    -e 's:$: $lt_compiler_flag:'`
17373    (eval echo "\"\$as_me:17374: $lt_compile\"" >&5)
17374    (eval "$lt_compile" 2>out/conftest.err)
17375    ac_status=$?
17376    cat out/conftest.err >&5
17377    echo "$as_me:17378: \$? = $ac_status" >&5
17378    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17379    then
17380      # The compiler can only warn and ignore the option if not recognized
17381      # So say no if there are warnings
17382      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17383      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17384      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17385        lt_cv_prog_compiler_c_o_GCJ=yes
17386      fi
17387    fi
17388    chmod u+w . 2>&5
17389    $rm conftest*
17390    # SGI C++ compiler will create directory out/ii_files/ for
17391    # template instantiation
17392    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17393    $rm out/* && rmdir out
17394    cd ..
17395    rmdir conftest
17396    $rm conftest*
17397
17398 fi
17399 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17400 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17401
17402
17403 hard_links="nottested"
17404 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17405   # do not overwrite the value of need_locks provided by the user
17406   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17407 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17408   hard_links=yes
17409   $rm conftest*
17410   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17411   touch conftest.a
17412   ln conftest.a conftest.b 2>&5 || hard_links=no
17413   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17414   { echo "$as_me:$LINENO: result: $hard_links" >&5
17415 echo "${ECHO_T}$hard_links" >&6; }
17416   if test "$hard_links" = no; then
17417     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17418 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17419     need_locks=warn
17420   fi
17421 else
17422   need_locks=no
17423 fi
17424
17425 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17426 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17427
17428   runpath_var=
17429   allow_undefined_flag_GCJ=
17430   enable_shared_with_static_runtimes_GCJ=no
17431   archive_cmds_GCJ=
17432   archive_expsym_cmds_GCJ=
17433   old_archive_From_new_cmds_GCJ=
17434   old_archive_from_expsyms_cmds_GCJ=
17435   export_dynamic_flag_spec_GCJ=
17436   whole_archive_flag_spec_GCJ=
17437   thread_safe_flag_spec_GCJ=
17438   hardcode_libdir_flag_spec_GCJ=
17439   hardcode_libdir_flag_spec_ld_GCJ=
17440   hardcode_libdir_separator_GCJ=
17441   hardcode_direct_GCJ=no
17442   hardcode_minus_L_GCJ=no
17443   hardcode_shlibpath_var_GCJ=unsupported
17444   link_all_deplibs_GCJ=unknown
17445   hardcode_automatic_GCJ=no
17446   module_cmds_GCJ=
17447   module_expsym_cmds_GCJ=
17448   always_export_symbols_GCJ=no
17449   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17450   # include_expsyms should be a list of space-separated symbols to be *always*
17451   # included in the symbol list
17452   include_expsyms_GCJ=
17453   # exclude_expsyms can be an extended regexp of symbols to exclude
17454   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17455   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17456   # as well as any symbol that contains `d'.
17457   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17458   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17459   # platforms (ab)use it in PIC code, but their linkers get confused if
17460   # the symbol is explicitly referenced.  Since portable code cannot
17461   # rely on this symbol name, it's probably fine to never include it in
17462   # preloaded symbol tables.
17463   # Exclude shared library initialization/finalization symbols.
17464   extract_expsyms_cmds=
17465   # Just being paranoid about ensuring that cc_basename is set.
17466   for cc_temp in $compiler""; do
17467   case $cc_temp in
17468     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17469     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17470     \-*) ;;
17471     *) break;;
17472   esac
17473 done
17474 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17475
17476   case $host_os in
17477   cygwin* | mingw* | pw32*)
17478     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17479     # When not using gcc, we currently assume that we are using
17480     # Microsoft Visual C++.
17481     if test "$GCC" != yes; then
17482       with_gnu_ld=no
17483     fi
17484     ;;
17485   interix*)
17486     # we just hope/assume this is gcc and not c89 (= MSVC++)
17487     with_gnu_ld=yes
17488     ;;
17489   openbsd*)
17490     with_gnu_ld=no
17491     ;;
17492   esac
17493
17494   ld_shlibs_GCJ=yes
17495   if test "$with_gnu_ld" = yes; then
17496     # If archive_cmds runs LD, not CC, wlarc should be empty
17497     wlarc='${wl}'
17498
17499     # Set some defaults for GNU ld with shared library support. These
17500     # are reset later if shared libraries are not supported. Putting them
17501     # here allows them to be overridden if necessary.
17502     runpath_var=LD_RUN_PATH
17503     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17504     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17505     # ancient GNU ld didn't support --whole-archive et. al.
17506     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17507         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17508       else
17509         whole_archive_flag_spec_GCJ=
17510     fi
17511     supports_anon_versioning=no
17512     case `$LD -v 2>/dev/null` in
17513       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17514       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17515       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17516       *\ 2.11.*) ;; # other 2.11 versions
17517       *) supports_anon_versioning=yes ;;
17518     esac
17519
17520     # See if GNU ld supports shared libraries.
17521     case $host_os in
17522     aix[3-9]*)
17523       # On AIX/PPC, the GNU linker is very broken
17524       if test "$host_cpu" != ia64; then
17525         ld_shlibs_GCJ=no
17526         cat <<EOF 1>&2
17527
17528 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17529 *** to be unable to reliably create shared libraries on AIX.
17530 *** Therefore, libtool is disabling shared libraries support.  If you
17531 *** really care for shared libraries, you may want to modify your PATH
17532 *** so that a non-GNU linker is found, and then restart.
17533
17534 EOF
17535       fi
17536       ;;
17537
17538     amigaos*)
17539       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)'
17540       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541       hardcode_minus_L_GCJ=yes
17542
17543       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17544       # that the semantics of dynamic libraries on AmigaOS, at least up
17545       # to version 4, is to share data among multiple programs linked
17546       # with the same dynamic library.  Since this doesn't match the
17547       # behavior of shared libraries on other platforms, we can't use
17548       # them.
17549       ld_shlibs_GCJ=no
17550       ;;
17551
17552     beos*)
17553       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17554         allow_undefined_flag_GCJ=unsupported
17555         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17556         # support --undefined.  This deserves some investigation.  FIXME
17557         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17558       else
17559         ld_shlibs_GCJ=no
17560       fi
17561       ;;
17562
17563     cygwin* | mingw* | pw32*)
17564       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17565       # as there is no search path for DLLs.
17566       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17567       allow_undefined_flag_GCJ=unsupported
17568       always_export_symbols_GCJ=no
17569       enable_shared_with_static_runtimes_GCJ=yes
17570       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17571
17572       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17573         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17574         # If the export-symbols file already is a .def file (1st line
17575         # is EXPORTS), use it as is; otherwise, prepend...
17576         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17577           cp $export_symbols $output_objdir/$soname.def;
17578         else
17579           echo EXPORTS > $output_objdir/$soname.def;
17580           cat $export_symbols >> $output_objdir/$soname.def;
17581         fi~
17582         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17583       else
17584         ld_shlibs_GCJ=no
17585       fi
17586       ;;
17587
17588     interix[3-9]*)
17589       hardcode_direct_GCJ=no
17590       hardcode_shlibpath_var_GCJ=no
17591       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17592       export_dynamic_flag_spec_GCJ='${wl}-E'
17593       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17594       # Instead, shared libraries are loaded at an image base (0x10000000 by
17595       # default) and relocated if they conflict, which is a slow very memory
17596       # consuming and fragmenting process.  To avoid this, we pick a random,
17597       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17598       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17599       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'
17600       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'
17601       ;;
17602
17603     gnu* | linux* | k*bsd*-gnu)
17604       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17605         tmp_addflag=
17606         case $cc_basename,$host_cpu in
17607         pgcc*)                          # Portland Group C compiler
17608           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'
17609           tmp_addflag=' $pic_flag'
17610           ;;
17611         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17612           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'
17613           tmp_addflag=' $pic_flag -Mnomain' ;;
17614         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17615           tmp_addflag=' -i_dynamic' ;;
17616         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17617           tmp_addflag=' -i_dynamic -nofor_main' ;;
17618         ifc* | ifort*)                  # Intel Fortran compiler
17619           tmp_addflag=' -nofor_main' ;;
17620         esac
17621         case `$CC -V 2>&1 | sed 5q` in
17622         *Sun\ C*)                       # Sun C 5.9
17623           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17624           tmp_sharedflag='-G' ;;
17625         *Sun\ F*)                       # Sun Fortran 8.3
17626           tmp_sharedflag='-G' ;;
17627         *)
17628           tmp_sharedflag='-shared' ;;
17629         esac
17630         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17631
17632         if test $supports_anon_versioning = yes; then
17633           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17634   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17635   $echo "local: *; };" >> $output_objdir/$libname.ver~
17636           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17637         fi
17638         link_all_deplibs_GCJ=no
17639       else
17640         ld_shlibs_GCJ=no
17641       fi
17642       ;;
17643
17644     netbsd* | netbsdelf*-gnu)
17645       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17646         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17647         wlarc=
17648       else
17649         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17650         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17651       fi
17652       ;;
17653
17654     solaris*)
17655       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17656         ld_shlibs_GCJ=no
17657         cat <<EOF 1>&2
17658
17659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17660 *** create shared libraries on Solaris systems.  Therefore, libtool
17661 *** is disabling shared libraries support.  We urge you to upgrade GNU
17662 *** binutils to release 2.9.1 or newer.  Another option is to modify
17663 *** your PATH or compiler configuration so that the native linker is
17664 *** used, and then restart.
17665
17666 EOF
17667       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17668         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17669         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17670       else
17671         ld_shlibs_GCJ=no
17672       fi
17673       ;;
17674
17675     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17676       case `$LD -v 2>&1` in
17677         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17678         ld_shlibs_GCJ=no
17679         cat <<_LT_EOF 1>&2
17680
17681 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17682 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17683 *** is disabling shared libraries support.  We urge you to upgrade GNU
17684 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17685 *** your PATH or compiler configuration so that the native linker is
17686 *** used, and then restart.
17687
17688 _LT_EOF
17689         ;;
17690         *)
17691           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17692             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17693             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17694             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17695           else
17696             ld_shlibs_GCJ=no
17697           fi
17698         ;;
17699       esac
17700       ;;
17701
17702     sunos4*)
17703       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17704       wlarc=
17705       hardcode_direct_GCJ=yes
17706       hardcode_shlibpath_var_GCJ=no
17707       ;;
17708
17709     *)
17710       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17711         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17712         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17713       else
17714         ld_shlibs_GCJ=no
17715       fi
17716       ;;
17717     esac
17718
17719     if test "$ld_shlibs_GCJ" = no; then
17720       runpath_var=
17721       hardcode_libdir_flag_spec_GCJ=
17722       export_dynamic_flag_spec_GCJ=
17723       whole_archive_flag_spec_GCJ=
17724     fi
17725   else
17726     # PORTME fill in a description of your system's linker (not GNU ld)
17727     case $host_os in
17728     aix3*)
17729       allow_undefined_flag_GCJ=unsupported
17730       always_export_symbols_GCJ=yes
17731       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'
17732       # Note: this linker hardcodes the directories in LIBPATH if there
17733       # are no directories specified by -L.
17734       hardcode_minus_L_GCJ=yes
17735       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17736         # Neither direct hardcoding nor static linking is supported with a
17737         # broken collect2.
17738         hardcode_direct_GCJ=unsupported
17739       fi
17740       ;;
17741
17742     aix[4-9]*)
17743       if test "$host_cpu" = ia64; then
17744         # On IA64, the linker does run time linking by default, so we don't
17745         # have to do anything special.
17746         aix_use_runtimelinking=no
17747         exp_sym_flag='-Bexport'
17748         no_entry_flag=""
17749       else
17750         # If we're using GNU nm, then we don't want the "-C" option.
17751         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17752         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17753           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'
17754         else
17755           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'
17756         fi
17757         aix_use_runtimelinking=no
17758
17759         # Test if we are trying to use run time linking or normal
17760         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17761         # need to do runtime linking.
17762         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17763           for ld_flag in $LDFLAGS; do
17764           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17765             aix_use_runtimelinking=yes
17766             break
17767           fi
17768           done
17769           ;;
17770         esac
17771
17772         exp_sym_flag='-bexport'
17773         no_entry_flag='-bnoentry'
17774       fi
17775
17776       # When large executables or shared objects are built, AIX ld can
17777       # have problems creating the table of contents.  If linking a library
17778       # or program results in "error TOC overflow" add -mminimal-toc to
17779       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17780       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17781
17782       archive_cmds_GCJ=''
17783       hardcode_direct_GCJ=yes
17784       hardcode_libdir_separator_GCJ=':'
17785       link_all_deplibs_GCJ=yes
17786
17787       if test "$GCC" = yes; then
17788         case $host_os in aix4.[012]|aix4.[012].*)
17789         # We only want to do this on AIX 4.2 and lower, the check
17790         # below for broken collect2 doesn't work under 4.3+
17791           collect2name=`${CC} -print-prog-name=collect2`
17792           if test -f "$collect2name" && \
17793            strings "$collect2name" | grep resolve_lib_name >/dev/null
17794           then
17795           # We have reworked collect2
17796           :
17797           else
17798           # We have old collect2
17799           hardcode_direct_GCJ=unsupported
17800           # It fails to find uninstalled libraries when the uninstalled
17801           # path is not listed in the libpath.  Setting hardcode_minus_L
17802           # to unsupported forces relinking
17803           hardcode_minus_L_GCJ=yes
17804           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17805           hardcode_libdir_separator_GCJ=
17806           fi
17807           ;;
17808         esac
17809         shared_flag='-shared'
17810         if test "$aix_use_runtimelinking" = yes; then
17811           shared_flag="$shared_flag "'${wl}-G'
17812         fi
17813       else
17814         # not using gcc
17815         if test "$host_cpu" = ia64; then
17816         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17817         # chokes on -Wl,-G. The following line is correct:
17818           shared_flag='-G'
17819         else
17820           if test "$aix_use_runtimelinking" = yes; then
17821             shared_flag='${wl}-G'
17822           else
17823             shared_flag='${wl}-bM:SRE'
17824           fi
17825         fi
17826       fi
17827
17828       # It seems that -bexpall does not export symbols beginning with
17829       # underscore (_), so it is better to generate a list of symbols to export.
17830       always_export_symbols_GCJ=yes
17831       if test "$aix_use_runtimelinking" = yes; then
17832         # Warning - without using the other runtime loading flags (-brtl),
17833         # -berok will link without error, but may produce a broken library.
17834         allow_undefined_flag_GCJ='-berok'
17835        # Determine the default libpath from the value encoded in an empty executable.
17836        cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842
17843 int
17844 main ()
17845 {
17846
17847   ;
17848   return 0;
17849 }
17850 _ACEOF
17851 rm -f conftest.$ac_objext conftest$ac_exeext
17852 if { (ac_try="$ac_link"
17853 case "(($ac_try" in
17854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855   *) ac_try_echo=$ac_try;;
17856 esac
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858   (eval "$ac_link") 2>conftest.er1
17859   ac_status=$?
17860   grep -v '^ *+' conftest.er1 >conftest.err
17861   rm -f conftest.er1
17862   cat conftest.err >&5
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); } && {
17865          test -z "$ac_c_werror_flag" ||
17866          test ! -s conftest.err
17867        } && test -s conftest$ac_exeext &&
17868        $as_test_x conftest$ac_exeext; then
17869
17870 lt_aix_libpath_sed='
17871     /Import File Strings/,/^$/ {
17872         /^0/ {
17873             s/^0  *\(.*\)$/\1/
17874             p
17875         }
17876     }'
17877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17878 # Check for a 64-bit object if we didn't find anything.
17879 if test -z "$aix_libpath"; then
17880   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17881 fi
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886
17887 fi
17888
17889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17890       conftest$ac_exeext conftest.$ac_ext
17891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17892
17893        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17894         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"
17895        else
17896         if test "$host_cpu" = ia64; then
17897           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17898           allow_undefined_flag_GCJ="-z nodefs"
17899           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"
17900         else
17901          # Determine the default libpath from the value encoded in an empty executable.
17902          cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h.  */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h.  */
17908
17909 int
17910 main ()
17911 {
17912
17913   ;
17914   return 0;
17915 }
17916 _ACEOF
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (ac_try="$ac_link"
17919 case "(($ac_try" in
17920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921   *) ac_try_echo=$ac_try;;
17922 esac
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924   (eval "$ac_link") 2>conftest.er1
17925   ac_status=$?
17926   grep -v '^ *+' conftest.er1 >conftest.err
17927   rm -f conftest.er1
17928   cat conftest.err >&5
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); } && {
17931          test -z "$ac_c_werror_flag" ||
17932          test ! -s conftest.err
17933        } && test -s conftest$ac_exeext &&
17934        $as_test_x conftest$ac_exeext; then
17935
17936 lt_aix_libpath_sed='
17937     /Import File Strings/,/^$/ {
17938         /^0/ {
17939             s/^0  *\(.*\)$/\1/
17940             p
17941         }
17942     }'
17943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17944 # Check for a 64-bit object if we didn't find anything.
17945 if test -z "$aix_libpath"; then
17946   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17947 fi
17948 else
17949   echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17951
17952
17953 fi
17954
17955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17956       conftest$ac_exeext conftest.$ac_ext
17957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17958
17959          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17960           # Warning - without using the other run time loading flags,
17961           # -berok will link without error, but may produce a broken library.
17962           no_undefined_flag_GCJ=' ${wl}-bernotok'
17963           allow_undefined_flag_GCJ=' ${wl}-berok'
17964           # Exported symbols can be pulled into shared objects from archives
17965           whole_archive_flag_spec_GCJ='$convenience'
17966           archive_cmds_need_lc_GCJ=yes
17967           # This is similar to how AIX traditionally builds its shared libraries.
17968           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'
17969         fi
17970       fi
17971       ;;
17972
17973     amigaos*)
17974       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)'
17975       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17976       hardcode_minus_L_GCJ=yes
17977       # see comment about different semantics on the GNU ld section
17978       ld_shlibs_GCJ=no
17979       ;;
17980
17981     bsdi[45]*)
17982       export_dynamic_flag_spec_GCJ=-rdynamic
17983       ;;
17984
17985     cygwin* | mingw* | pw32*)
17986       # When not using gcc, we currently assume that we are using
17987       # Microsoft Visual C++.
17988       # hardcode_libdir_flag_spec is actually meaningless, as there is
17989       # no search path for DLLs.
17990       hardcode_libdir_flag_spec_GCJ=' '
17991       allow_undefined_flag_GCJ=unsupported
17992       # Tell ltmain to make .lib files, not .a files.
17993       libext=lib
17994       # Tell ltmain to make .dll files, not .so files.
17995       shrext_cmds=".dll"
17996       # FIXME: Setting linknames here is a bad hack.
17997       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17998       # The linker will automatically build a .lib file if we build a DLL.
17999       old_archive_From_new_cmds_GCJ='true'
18000       # FIXME: Should let the user specify the lib program.
18001       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18002       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18003       enable_shared_with_static_runtimes_GCJ=yes
18004       ;;
18005
18006     darwin* | rhapsody*)
18007       case $host_os in
18008         rhapsody* | darwin1.[012])
18009          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18010          ;;
18011        *) # Darwin 1.3 on
18012          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18013            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18014          else
18015            case ${MACOSX_DEPLOYMENT_TARGET} in
18016              10.[012])
18017                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18018                ;;
18019              10.*)
18020                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18021                ;;
18022            esac
18023          fi
18024          ;;
18025       esac
18026       archive_cmds_need_lc_GCJ=no
18027       hardcode_direct_GCJ=no
18028       hardcode_automatic_GCJ=yes
18029       hardcode_shlibpath_var_GCJ=unsupported
18030       whole_archive_flag_spec_GCJ=''
18031       link_all_deplibs_GCJ=yes
18032     if test "$GCC" = yes ; then
18033         output_verbose_link_cmd='echo'
18034         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18035         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18036         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18037         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18038     else
18039       case $cc_basename in
18040         xlc*)
18041          output_verbose_link_cmd='echo'
18042          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18043          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18044           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18045          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18046           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}'
18047           ;;
18048        *)
18049          ld_shlibs_GCJ=no
18050           ;;
18051       esac
18052     fi
18053       ;;
18054
18055     dgux*)
18056       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18057       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18058       hardcode_shlibpath_var_GCJ=no
18059       ;;
18060
18061     freebsd1*)
18062       ld_shlibs_GCJ=no
18063       ;;
18064
18065     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18066     # support.  Future versions do this automatically, but an explicit c++rt0.o
18067     # does not break anything, and helps significantly (at the cost of a little
18068     # extra space).
18069     freebsd2.2*)
18070       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18071       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18072       hardcode_direct_GCJ=yes
18073       hardcode_shlibpath_var_GCJ=no
18074       ;;
18075
18076     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18077     freebsd2*)
18078       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18079       hardcode_direct_GCJ=yes
18080       hardcode_minus_L_GCJ=yes
18081       hardcode_shlibpath_var_GCJ=no
18082       ;;
18083
18084     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18085     freebsd* | dragonfly*)
18086       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18087       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18088       hardcode_direct_GCJ=yes
18089       hardcode_shlibpath_var_GCJ=no
18090       ;;
18091
18092     hpux9*)
18093       if test "$GCC" = yes; then
18094         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'
18095       else
18096         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'
18097       fi
18098       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18099       hardcode_libdir_separator_GCJ=:
18100       hardcode_direct_GCJ=yes
18101
18102       # hardcode_minus_L: Not really in the search PATH,
18103       # but as the default location of the library.
18104       hardcode_minus_L_GCJ=yes
18105       export_dynamic_flag_spec_GCJ='${wl}-E'
18106       ;;
18107
18108     hpux10*)
18109       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18110         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18111       else
18112         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18113       fi
18114       if test "$with_gnu_ld" = no; then
18115         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18116         hardcode_libdir_separator_GCJ=:
18117
18118         hardcode_direct_GCJ=yes
18119         export_dynamic_flag_spec_GCJ='${wl}-E'
18120
18121         # hardcode_minus_L: Not really in the search PATH,
18122         # but as the default location of the library.
18123         hardcode_minus_L_GCJ=yes
18124       fi
18125       ;;
18126
18127     hpux11*)
18128       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18129         case $host_cpu in
18130         hppa*64*)
18131           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132           ;;
18133         ia64*)
18134           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18135           ;;
18136         *)
18137           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18138           ;;
18139         esac
18140       else
18141         case $host_cpu in
18142         hppa*64*)
18143           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144           ;;
18145         ia64*)
18146           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18147           ;;
18148         *)
18149           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18150           ;;
18151         esac
18152       fi
18153       if test "$with_gnu_ld" = no; then
18154         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18155         hardcode_libdir_separator_GCJ=:
18156
18157         case $host_cpu in
18158         hppa*64*|ia64*)
18159           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18160           hardcode_direct_GCJ=no
18161           hardcode_shlibpath_var_GCJ=no
18162           ;;
18163         *)
18164           hardcode_direct_GCJ=yes
18165           export_dynamic_flag_spec_GCJ='${wl}-E'
18166
18167           # hardcode_minus_L: Not really in the search PATH,
18168           # but as the default location of the library.
18169           hardcode_minus_L_GCJ=yes
18170           ;;
18171         esac
18172       fi
18173       ;;
18174
18175     irix5* | irix6* | nonstopux*)
18176       if test "$GCC" = yes; then
18177         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'
18178       else
18179         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'
18180         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18181       fi
18182       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18183       hardcode_libdir_separator_GCJ=:
18184       link_all_deplibs_GCJ=yes
18185       ;;
18186
18187     netbsd* | netbsdelf*-gnu)
18188       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18189         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18190       else
18191         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18192       fi
18193       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18194       hardcode_direct_GCJ=yes
18195       hardcode_shlibpath_var_GCJ=no
18196       ;;
18197
18198     newsos6)
18199       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18200       hardcode_direct_GCJ=yes
18201       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18202       hardcode_libdir_separator_GCJ=:
18203       hardcode_shlibpath_var_GCJ=no
18204       ;;
18205
18206     openbsd*)
18207       if test -f /usr/libexec/ld.so; then
18208         hardcode_direct_GCJ=yes
18209         hardcode_shlibpath_var_GCJ=no
18210         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18211           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18212           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18213           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18214           export_dynamic_flag_spec_GCJ='${wl}-E'
18215         else
18216           case $host_os in
18217            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18218              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18219              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18220              ;;
18221            *)
18222              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18223              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18224              ;;
18225           esac
18226         fi
18227       else
18228         ld_shlibs_GCJ=no
18229       fi
18230       ;;
18231
18232     os2*)
18233       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18234       hardcode_minus_L_GCJ=yes
18235       allow_undefined_flag_GCJ=unsupported
18236       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'
18237       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18238       ;;
18239
18240     osf3*)
18241       if test "$GCC" = yes; then
18242         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18243         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'
18244       else
18245         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18246         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'
18247       fi
18248       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18249       hardcode_libdir_separator_GCJ=:
18250       ;;
18251
18252     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18253       if test "$GCC" = yes; then
18254         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18255         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'
18256         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18257       else
18258         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18259         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'
18260         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~
18261         $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'
18262
18263         # Both c and cxx compiler support -rpath directly
18264         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18265       fi
18266       hardcode_libdir_separator_GCJ=:
18267       ;;
18268
18269     solaris*)
18270       no_undefined_flag_GCJ=' -z text'
18271       if test "$GCC" = yes; then
18272         wlarc='${wl}'
18273         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18274         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18275           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18276       else
18277         wlarc=''
18278         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18280         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18281       fi
18282       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18283       hardcode_shlibpath_var_GCJ=no
18284       case $host_os in
18285       solaris2.[0-5] | solaris2.[0-5].*) ;;
18286       *)
18287         # The compiler driver will combine and reorder linker options,
18288         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18289         # but is careful enough not to reorder.
18290         # Supported since Solaris 2.6 (maybe 2.5.1?)
18291         if test "$GCC" = yes; then
18292           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18293         else
18294           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18295         fi
18296         ;;
18297       esac
18298       link_all_deplibs_GCJ=yes
18299       ;;
18300
18301     sunos4*)
18302       if test "x$host_vendor" = xsequent; then
18303         # Use $CC to link under sequent, because it throws in some extra .o
18304         # files that make .init and .fini sections work.
18305         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18306       else
18307         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18308       fi
18309       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18310       hardcode_direct_GCJ=yes
18311       hardcode_minus_L_GCJ=yes
18312       hardcode_shlibpath_var_GCJ=no
18313       ;;
18314
18315     sysv4)
18316       case $host_vendor in
18317         sni)
18318           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18319           hardcode_direct_GCJ=yes # is this really true???
18320         ;;
18321         siemens)
18322           ## LD is ld it makes a PLAMLIB
18323           ## CC just makes a GrossModule.
18324           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18325           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18326           hardcode_direct_GCJ=no
18327         ;;
18328         motorola)
18329           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18330           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18331         ;;
18332       esac
18333       runpath_var='LD_RUN_PATH'
18334       hardcode_shlibpath_var_GCJ=no
18335       ;;
18336
18337     sysv4.3*)
18338       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18339       hardcode_shlibpath_var_GCJ=no
18340       export_dynamic_flag_spec_GCJ='-Bexport'
18341       ;;
18342
18343     sysv4*MP*)
18344       if test -d /usr/nec; then
18345         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346         hardcode_shlibpath_var_GCJ=no
18347         runpath_var=LD_RUN_PATH
18348         hardcode_runpath_var=yes
18349         ld_shlibs_GCJ=yes
18350       fi
18351       ;;
18352
18353     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18354       no_undefined_flag_GCJ='${wl}-z,text'
18355       archive_cmds_need_lc_GCJ=no
18356       hardcode_shlibpath_var_GCJ=no
18357       runpath_var='LD_RUN_PATH'
18358
18359       if test "$GCC" = yes; then
18360         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18361         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18362       else
18363         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18364         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18365       fi
18366       ;;
18367
18368     sysv5* | sco3.2v5* | sco5v6*)
18369       # Note: We can NOT use -z defs as we might desire, because we do not
18370       # link with -lc, and that would cause any symbols used from libc to
18371       # always be unresolved, which means just about no library would
18372       # ever link correctly.  If we're not using GNU ld we use -z text
18373       # though, which does catch some bad symbols but isn't as heavy-handed
18374       # as -z defs.
18375       no_undefined_flag_GCJ='${wl}-z,text'
18376       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18377       archive_cmds_need_lc_GCJ=no
18378       hardcode_shlibpath_var_GCJ=no
18379       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18380       hardcode_libdir_separator_GCJ=':'
18381       link_all_deplibs_GCJ=yes
18382       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18383       runpath_var='LD_RUN_PATH'
18384
18385       if test "$GCC" = yes; then
18386         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18387         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18388       else
18389         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18390         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18391       fi
18392       ;;
18393
18394     uts4*)
18395       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18396       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18397       hardcode_shlibpath_var_GCJ=no
18398       ;;
18399
18400     *)
18401       ld_shlibs_GCJ=no
18402       ;;
18403     esac
18404   fi
18405
18406 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18407 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18408 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18409
18410 #
18411 # Do we need to explicitly link libc?
18412 #
18413 case "x$archive_cmds_need_lc_GCJ" in
18414 x|xyes)
18415   # Assume -lc should be added
18416   archive_cmds_need_lc_GCJ=yes
18417
18418   if test "$enable_shared" = yes && test "$GCC" = yes; then
18419     case $archive_cmds_GCJ in
18420     *'~'*)
18421       # FIXME: we may have to deal with multi-command sequences.
18422       ;;
18423     '$CC '*)
18424       # Test whether the compiler implicitly links with -lc since on some
18425       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18426       # to ld, don't add -lc before -lgcc.
18427       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18428 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18429       $rm conftest*
18430       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18431
18432       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18433   (eval $ac_compile) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); } 2>conftest.err; then
18437         soname=conftest
18438         lib=conftest
18439         libobjs=conftest.$ac_objext
18440         deplibs=
18441         wl=$lt_prog_compiler_wl_GCJ
18442         pic_flag=$lt_prog_compiler_pic_GCJ
18443         compiler_flags=-v
18444         linker_flags=-v
18445         verstring=
18446         output_objdir=.
18447         libname=conftest
18448         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18449         allow_undefined_flag_GCJ=
18450         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18451   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); }
18455         then
18456           archive_cmds_need_lc_GCJ=no
18457         else
18458           archive_cmds_need_lc_GCJ=yes
18459         fi
18460         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18461       else
18462         cat conftest.err 1>&5
18463       fi
18464       $rm conftest*
18465       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18466 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18467       ;;
18468     esac
18469   fi
18470   ;;
18471 esac
18472
18473 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18474 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18475 library_names_spec=
18476 libname_spec='lib$name'
18477 soname_spec=
18478 shrext_cmds=".so"
18479 postinstall_cmds=
18480 postuninstall_cmds=
18481 finish_cmds=
18482 finish_eval=
18483 shlibpath_var=
18484 shlibpath_overrides_runpath=unknown
18485 version_type=none
18486 dynamic_linker="$host_os ld.so"
18487 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18488
18489 need_lib_prefix=unknown
18490 hardcode_into_libs=no
18491
18492 # when you set need_version to no, make sure it does not cause -set_version
18493 # flags to be left without arguments
18494 need_version=unknown
18495
18496 case $host_os in
18497 aix3*)
18498   version_type=linux
18499   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18500   shlibpath_var=LIBPATH
18501
18502   # AIX 3 has no versioning support, so we append a major version to the name.
18503   soname_spec='${libname}${release}${shared_ext}$major'
18504   ;;
18505
18506 aix[4-9]*)
18507   version_type=linux
18508   need_lib_prefix=no
18509   need_version=no
18510   hardcode_into_libs=yes
18511   if test "$host_cpu" = ia64; then
18512     # AIX 5 supports IA64
18513     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18514     shlibpath_var=LD_LIBRARY_PATH
18515   else
18516     # With GCC up to 2.95.x, collect2 would create an import file
18517     # for dependence libraries.  The import file would start with
18518     # the line `#! .'.  This would cause the generated library to
18519     # depend on `.', always an invalid library.  This was fixed in
18520     # development snapshots of GCC prior to 3.0.
18521     case $host_os in
18522       aix4 | aix4.[01] | aix4.[01].*)
18523       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18524            echo ' yes '
18525            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18526         :
18527       else
18528         can_build_shared=no
18529       fi
18530       ;;
18531     esac
18532     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18533     # soname into executable. Probably we can add versioning support to
18534     # collect2, so additional links can be useful in future.
18535     if test "$aix_use_runtimelinking" = yes; then
18536       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18537       # instead of lib<name>.a to let people know that these are not
18538       # typical AIX shared libraries.
18539       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540     else
18541       # We preserve .a as extension for shared libraries through AIX4.2
18542       # and later when we are not doing run time linking.
18543       library_names_spec='${libname}${release}.a $libname.a'
18544       soname_spec='${libname}${release}${shared_ext}$major'
18545     fi
18546     shlibpath_var=LIBPATH
18547   fi
18548   ;;
18549
18550 amigaos*)
18551   library_names_spec='$libname.ixlibrary $libname.a'
18552   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18553   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'
18554   ;;
18555
18556 beos*)
18557   library_names_spec='${libname}${shared_ext}'
18558   dynamic_linker="$host_os ld.so"
18559   shlibpath_var=LIBRARY_PATH
18560   ;;
18561
18562 bsdi[45]*)
18563   version_type=linux
18564   need_version=no
18565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566   soname_spec='${libname}${release}${shared_ext}$major'
18567   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18568   shlibpath_var=LD_LIBRARY_PATH
18569   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18570   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18571   # the default ld.so.conf also contains /usr/contrib/lib and
18572   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18573   # libtool to hard-code these into programs
18574   ;;
18575
18576 cygwin* | mingw* | pw32*)
18577   version_type=windows
18578   shrext_cmds=".dll"
18579   need_version=no
18580   need_lib_prefix=no
18581
18582   case $GCC,$host_os in
18583   yes,cygwin* | yes,mingw* | yes,pw32*)
18584     library_names_spec='$libname.dll.a'
18585     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18586     postinstall_cmds='base_file=`basename \${file}`~
18587       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18588       dldir=$destdir/`dirname \$dlpath`~
18589       test -d \$dldir || mkdir -p \$dldir~
18590       $install_prog $dir/$dlname \$dldir/$dlname~
18591       chmod a+x \$dldir/$dlname'
18592     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18593       dlpath=$dir/\$dldll~
18594        $rm \$dlpath'
18595     shlibpath_overrides_runpath=yes
18596
18597     case $host_os in
18598     cygwin*)
18599       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18600       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18601       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18602       ;;
18603     mingw*)
18604       # MinGW DLLs use traditional 'lib' prefix
18605       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18606       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18607       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18608         # It is most probably a Windows format PATH printed by
18609         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18610         # path with ; separators, and with drive letters. We can handle the
18611         # drive letters (cygwin fileutils understands them), so leave them,
18612         # especially as we might pass files found there to a mingw objdump,
18613         # which wouldn't understand a cygwinified path. Ahh.
18614         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18615       else
18616         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18617       fi
18618       ;;
18619     pw32*)
18620       # pw32 DLLs use 'pw' prefix rather than 'lib'
18621       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18622       ;;
18623     esac
18624     ;;
18625
18626   *)
18627     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18628     ;;
18629   esac
18630   dynamic_linker='Win32 ld.exe'
18631   # FIXME: first we should search . and the directory the executable is in
18632   shlibpath_var=PATH
18633   ;;
18634
18635 darwin* | rhapsody*)
18636   dynamic_linker="$host_os dyld"
18637   version_type=darwin
18638   need_lib_prefix=no
18639   need_version=no
18640   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18641   soname_spec='${libname}${release}${major}$shared_ext'
18642   shlibpath_overrides_runpath=yes
18643   shlibpath_var=DYLD_LIBRARY_PATH
18644   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18645
18646   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18647   ;;
18648
18649 dgux*)
18650   version_type=linux
18651   need_lib_prefix=no
18652   need_version=no
18653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18654   soname_spec='${libname}${release}${shared_ext}$major'
18655   shlibpath_var=LD_LIBRARY_PATH
18656   ;;
18657
18658 freebsd1*)
18659   dynamic_linker=no
18660   ;;
18661
18662 freebsd* | dragonfly*)
18663   # DragonFly does not have aout.  When/if they implement a new
18664   # versioning mechanism, adjust this.
18665   if test -x /usr/bin/objformat; then
18666     objformat=`/usr/bin/objformat`
18667   else
18668     case $host_os in
18669     freebsd[123]*) objformat=aout ;;
18670     *) objformat=elf ;;
18671     esac
18672   fi
18673   version_type=freebsd-$objformat
18674   case $version_type in
18675     freebsd-elf*)
18676       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18677       need_version=no
18678       need_lib_prefix=no
18679       ;;
18680     freebsd-*)
18681       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18682       need_version=yes
18683       ;;
18684   esac
18685   shlibpath_var=LD_LIBRARY_PATH
18686   case $host_os in
18687   freebsd2*)
18688     shlibpath_overrides_runpath=yes
18689     ;;
18690   freebsd3.[01]* | freebsdelf3.[01]*)
18691     shlibpath_overrides_runpath=yes
18692     hardcode_into_libs=yes
18693     ;;
18694   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18695   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18696     shlibpath_overrides_runpath=no
18697     hardcode_into_libs=yes
18698     ;;
18699   *) # from 4.6 on, and DragonFly
18700     shlibpath_overrides_runpath=yes
18701     hardcode_into_libs=yes
18702     ;;
18703   esac
18704   ;;
18705
18706 gnu*)
18707   version_type=linux
18708   need_lib_prefix=no
18709   need_version=no
18710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18711   soname_spec='${libname}${release}${shared_ext}$major'
18712   shlibpath_var=LD_LIBRARY_PATH
18713   hardcode_into_libs=yes
18714   ;;
18715
18716 hpux9* | hpux10* | hpux11*)
18717   # Give a soname corresponding to the major version so that dld.sl refuses to
18718   # link against other versions.
18719   version_type=sunos
18720   need_lib_prefix=no
18721   need_version=no
18722   case $host_cpu in
18723   ia64*)
18724     shrext_cmds='.so'
18725     hardcode_into_libs=yes
18726     dynamic_linker="$host_os dld.so"
18727     shlibpath_var=LD_LIBRARY_PATH
18728     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18730     soname_spec='${libname}${release}${shared_ext}$major'
18731     if test "X$HPUX_IA64_MODE" = X32; then
18732       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18733     else
18734       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18735     fi
18736     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18737     ;;
18738    hppa*64*)
18739      shrext_cmds='.sl'
18740      hardcode_into_libs=yes
18741      dynamic_linker="$host_os dld.sl"
18742      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18743      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18744      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745      soname_spec='${libname}${release}${shared_ext}$major'
18746      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18747      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18748      ;;
18749    *)
18750     shrext_cmds='.sl'
18751     dynamic_linker="$host_os dld.sl"
18752     shlibpath_var=SHLIB_PATH
18753     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18755     soname_spec='${libname}${release}${shared_ext}$major'
18756     ;;
18757   esac
18758   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18759   postinstall_cmds='chmod 555 $lib'
18760   ;;
18761
18762 interix[3-9]*)
18763   version_type=linux
18764   need_lib_prefix=no
18765   need_version=no
18766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18767   soname_spec='${libname}${release}${shared_ext}$major'
18768   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18769   shlibpath_var=LD_LIBRARY_PATH
18770   shlibpath_overrides_runpath=no
18771   hardcode_into_libs=yes
18772   ;;
18773
18774 irix5* | irix6* | nonstopux*)
18775   case $host_os in
18776     nonstopux*) version_type=nonstopux ;;
18777     *)
18778         if test "$lt_cv_prog_gnu_ld" = yes; then
18779                 version_type=linux
18780         else
18781                 version_type=irix
18782         fi ;;
18783   esac
18784   need_lib_prefix=no
18785   need_version=no
18786   soname_spec='${libname}${release}${shared_ext}$major'
18787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18788   case $host_os in
18789   irix5* | nonstopux*)
18790     libsuff= shlibsuff=
18791     ;;
18792   *)
18793     case $LD in # libtool.m4 will add one of these switches to LD
18794     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18795       libsuff= shlibsuff= libmagic=32-bit;;
18796     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18797       libsuff=32 shlibsuff=N32 libmagic=N32;;
18798     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18799       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18800     *) libsuff= shlibsuff= libmagic=never-match;;
18801     esac
18802     ;;
18803   esac
18804   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18805   shlibpath_overrides_runpath=no
18806   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18807   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18808   hardcode_into_libs=yes
18809   ;;
18810
18811 # No shared lib support for Linux oldld, aout, or coff.
18812 linux*oldld* | linux*aout* | linux*coff*)
18813   dynamic_linker=no
18814   ;;
18815
18816 # This must be Linux ELF.
18817 linux* | k*bsd*-gnu)
18818   version_type=linux
18819   need_lib_prefix=no
18820   need_version=no
18821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18822   soname_spec='${libname}${release}${shared_ext}$major'
18823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18824   shlibpath_var=LD_LIBRARY_PATH
18825   shlibpath_overrides_runpath=no
18826   # This implies no fast_install, which is unacceptable.
18827   # Some rework will be needed to allow for fast_install
18828   # before this can be enabled.
18829   hardcode_into_libs=yes
18830
18831   # Append ld.so.conf contents to the search path
18832   if test -f /etc/ld.so.conf; then
18833     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18834     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18835   fi
18836
18837   # We used to test for /lib/ld.so.1 and disable shared libraries on
18838   # powerpc, because MkLinux only supported shared libraries with the
18839   # GNU dynamic linker.  Since this was broken with cross compilers,
18840   # most powerpc-linux boxes support dynamic linking these days and
18841   # people can always --disable-shared, the test was removed, and we
18842   # assume the GNU/Linux dynamic linker is in use.
18843   dynamic_linker='GNU/Linux ld.so'
18844   ;;
18845
18846 netbsdelf*-gnu)
18847   version_type=linux
18848   need_lib_prefix=no
18849   need_version=no
18850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18851   soname_spec='${libname}${release}${shared_ext}$major'
18852   shlibpath_var=LD_LIBRARY_PATH
18853   shlibpath_overrides_runpath=no
18854   hardcode_into_libs=yes
18855   dynamic_linker='NetBSD ld.elf_so'
18856   ;;
18857
18858 netbsd*)
18859   version_type=sunos
18860   need_lib_prefix=no
18861   need_version=no
18862   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18865     dynamic_linker='NetBSD (a.out) ld.so'
18866   else
18867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18868     soname_spec='${libname}${release}${shared_ext}$major'
18869     dynamic_linker='NetBSD ld.elf_so'
18870   fi
18871   shlibpath_var=LD_LIBRARY_PATH
18872   shlibpath_overrides_runpath=yes
18873   hardcode_into_libs=yes
18874   ;;
18875
18876 newsos6)
18877   version_type=linux
18878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879   shlibpath_var=LD_LIBRARY_PATH
18880   shlibpath_overrides_runpath=yes
18881   ;;
18882
18883 nto-qnx*)
18884   version_type=linux
18885   need_lib_prefix=no
18886   need_version=no
18887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18888   soname_spec='${libname}${release}${shared_ext}$major'
18889   shlibpath_var=LD_LIBRARY_PATH
18890   shlibpath_overrides_runpath=yes
18891   ;;
18892
18893 openbsd*)
18894   version_type=sunos
18895   sys_lib_dlsearch_path_spec="/usr/lib"
18896   need_lib_prefix=no
18897   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18898   case $host_os in
18899     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18900     *)                         need_version=no  ;;
18901   esac
18902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18903   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18904   shlibpath_var=LD_LIBRARY_PATH
18905   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18906     case $host_os in
18907       openbsd2.[89] | openbsd2.[89].*)
18908         shlibpath_overrides_runpath=no
18909         ;;
18910       *)
18911         shlibpath_overrides_runpath=yes
18912         ;;
18913       esac
18914   else
18915     shlibpath_overrides_runpath=yes
18916   fi
18917   ;;
18918
18919 os2*)
18920   libname_spec='$name'
18921   shrext_cmds=".dll"
18922   need_lib_prefix=no
18923   library_names_spec='$libname${shared_ext} $libname.a'
18924   dynamic_linker='OS/2 ld.exe'
18925   shlibpath_var=LIBPATH
18926   ;;
18927
18928 osf3* | osf4* | osf5*)
18929   version_type=osf
18930   need_lib_prefix=no
18931   need_version=no
18932   soname_spec='${libname}${release}${shared_ext}$major'
18933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18934   shlibpath_var=LD_LIBRARY_PATH
18935   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18936   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18937   ;;
18938
18939 rdos*)
18940   dynamic_linker=no
18941   ;;
18942
18943 solaris*)
18944   version_type=linux
18945   need_lib_prefix=no
18946   need_version=no
18947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948   soname_spec='${libname}${release}${shared_ext}$major'
18949   shlibpath_var=LD_LIBRARY_PATH
18950   shlibpath_overrides_runpath=yes
18951   hardcode_into_libs=yes
18952   # ldd complains unless libraries are executable
18953   postinstall_cmds='chmod +x $lib'
18954   ;;
18955
18956 sunos4*)
18957   version_type=sunos
18958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18959   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18960   shlibpath_var=LD_LIBRARY_PATH
18961   shlibpath_overrides_runpath=yes
18962   if test "$with_gnu_ld" = yes; then
18963     need_lib_prefix=no
18964   fi
18965   need_version=yes
18966   ;;
18967
18968 sysv4 | sysv4.3*)
18969   version_type=linux
18970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18971   soname_spec='${libname}${release}${shared_ext}$major'
18972   shlibpath_var=LD_LIBRARY_PATH
18973   case $host_vendor in
18974     sni)
18975       shlibpath_overrides_runpath=no
18976       need_lib_prefix=no
18977       export_dynamic_flag_spec='${wl}-Blargedynsym'
18978       runpath_var=LD_RUN_PATH
18979       ;;
18980     siemens)
18981       need_lib_prefix=no
18982       ;;
18983     motorola)
18984       need_lib_prefix=no
18985       need_version=no
18986       shlibpath_overrides_runpath=no
18987       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18988       ;;
18989   esac
18990   ;;
18991
18992 sysv4*MP*)
18993   if test -d /usr/nec ;then
18994     version_type=linux
18995     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18996     soname_spec='$libname${shared_ext}.$major'
18997     shlibpath_var=LD_LIBRARY_PATH
18998   fi
18999   ;;
19000
19001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19002   version_type=freebsd-elf
19003   need_lib_prefix=no
19004   need_version=no
19005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19006   soname_spec='${libname}${release}${shared_ext}$major'
19007   shlibpath_var=LD_LIBRARY_PATH
19008   hardcode_into_libs=yes
19009   if test "$with_gnu_ld" = yes; then
19010     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19011     shlibpath_overrides_runpath=no
19012   else
19013     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19014     shlibpath_overrides_runpath=yes
19015     case $host_os in
19016       sco3.2v5*)
19017         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19018         ;;
19019     esac
19020   fi
19021   sys_lib_dlsearch_path_spec='/usr/lib'
19022   ;;
19023
19024 uts4*)
19025   version_type=linux
19026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19027   soname_spec='${libname}${release}${shared_ext}$major'
19028   shlibpath_var=LD_LIBRARY_PATH
19029   ;;
19030
19031 *)
19032   dynamic_linker=no
19033   ;;
19034 esac
19035 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19036 echo "${ECHO_T}$dynamic_linker" >&6; }
19037 test "$dynamic_linker" = no && can_build_shared=no
19038
19039 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19040   echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19043 fi
19044
19045 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19046 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19047   echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19050 fi
19051
19052 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19053
19054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19055 if test "$GCC" = yes; then
19056   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19057 fi
19058
19059 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19060 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19061 hardcode_action_GCJ=
19062 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19063    test -n "$runpath_var_GCJ" || \
19064    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19065
19066   # We can hardcode non-existant directories.
19067   if test "$hardcode_direct_GCJ" != no &&
19068      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19069      # have to relink, otherwise we might link with an installed library
19070      # when we should be linking with a yet-to-be-installed one
19071      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19072      test "$hardcode_minus_L_GCJ" != no; then
19073     # Linking always hardcodes the temporary library directory.
19074     hardcode_action_GCJ=relink
19075   else
19076     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19077     hardcode_action_GCJ=immediate
19078   fi
19079 else
19080   # We cannot hardcode anything, or else we can only hardcode existing
19081   # directories.
19082   hardcode_action_GCJ=unsupported
19083 fi
19084 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19085 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19086
19087 if test "$hardcode_action_GCJ" = relink; then
19088   # Fast installation is not supported
19089   enable_fast_install=no
19090 elif test "$shlibpath_overrides_runpath" = yes ||
19091      test "$enable_shared" = no; then
19092   # Fast installation is not necessary
19093   enable_fast_install=needless
19094 fi
19095
19096
19097 # The else clause should only fire when bootstrapping the
19098 # libtool distribution, otherwise you forgot to ship ltmain.sh
19099 # with your package, and you will get complaints that there are
19100 # no rules to generate ltmain.sh.
19101 if test -f "$ltmain"; then
19102   # See if we are running on zsh, and set the options which allow our commands through
19103   # without removal of \ escapes.
19104   if test -n "${ZSH_VERSION+set}" ; then
19105     setopt NO_GLOB_SUBST
19106   fi
19107   # Now quote all the things that may contain metacharacters while being
19108   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19109   # variables and quote the copies for generation of the libtool script.
19110   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19111     SED SHELL STRIP \
19112     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19113     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19114     deplibs_check_method reload_flag reload_cmds need_locks \
19115     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19116     lt_cv_sys_global_symbol_to_c_name_address \
19117     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19118     old_postinstall_cmds old_postuninstall_cmds \
19119     compiler_GCJ \
19120     CC_GCJ \
19121     LD_GCJ \
19122     lt_prog_compiler_wl_GCJ \
19123     lt_prog_compiler_pic_GCJ \
19124     lt_prog_compiler_static_GCJ \
19125     lt_prog_compiler_no_builtin_flag_GCJ \
19126     export_dynamic_flag_spec_GCJ \
19127     thread_safe_flag_spec_GCJ \
19128     whole_archive_flag_spec_GCJ \
19129     enable_shared_with_static_runtimes_GCJ \
19130     old_archive_cmds_GCJ \
19131     old_archive_from_new_cmds_GCJ \
19132     predep_objects_GCJ \
19133     postdep_objects_GCJ \
19134     predeps_GCJ \
19135     postdeps_GCJ \
19136     compiler_lib_search_path_GCJ \
19137     compiler_lib_search_dirs_GCJ \
19138     archive_cmds_GCJ \
19139     archive_expsym_cmds_GCJ \
19140     postinstall_cmds_GCJ \
19141     postuninstall_cmds_GCJ \
19142     old_archive_from_expsyms_cmds_GCJ \
19143     allow_undefined_flag_GCJ \
19144     no_undefined_flag_GCJ \
19145     export_symbols_cmds_GCJ \
19146     hardcode_libdir_flag_spec_GCJ \
19147     hardcode_libdir_flag_spec_ld_GCJ \
19148     hardcode_libdir_separator_GCJ \
19149     hardcode_automatic_GCJ \
19150     module_cmds_GCJ \
19151     module_expsym_cmds_GCJ \
19152     lt_cv_prog_compiler_c_o_GCJ \
19153     fix_srcfile_path_GCJ \
19154     exclude_expsyms_GCJ \
19155     include_expsyms_GCJ; do
19156
19157     case $var in
19158     old_archive_cmds_GCJ | \
19159     old_archive_from_new_cmds_GCJ | \
19160     archive_cmds_GCJ | \
19161     archive_expsym_cmds_GCJ | \
19162     module_cmds_GCJ | \
19163     module_expsym_cmds_GCJ | \
19164     old_archive_from_expsyms_cmds_GCJ | \
19165     export_symbols_cmds_GCJ | \
19166     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19167     postinstall_cmds | postuninstall_cmds | \
19168     old_postinstall_cmds | old_postuninstall_cmds | \
19169     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19170       # Double-quote double-evaled strings.
19171       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19172       ;;
19173     *)
19174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19175       ;;
19176     esac
19177   done
19178
19179   case $lt_echo in
19180   *'\$0 --fallback-echo"')
19181     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19182     ;;
19183   esac
19184
19185 cfgfile="$ofile"
19186
19187   cat <<__EOF__ >> "$cfgfile"
19188 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19189
19190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19191
19192 # Shell to use when invoking shell scripts.
19193 SHELL=$lt_SHELL
19194
19195 # Whether or not to build shared libraries.
19196 build_libtool_libs=$enable_shared
19197
19198 # Whether or not to build static libraries.
19199 build_old_libs=$enable_static
19200
19201 # Whether or not to add -lc for building shared libraries.
19202 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19203
19204 # Whether or not to disallow shared libs when runtime libs are static
19205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19206
19207 # Whether or not to optimize for fast installation.
19208 fast_install=$enable_fast_install
19209
19210 # The host system.
19211 host_alias=$host_alias
19212 host=$host
19213 host_os=$host_os
19214
19215 # The build system.
19216 build_alias=$build_alias
19217 build=$build
19218 build_os=$build_os
19219
19220 # An echo program that does not interpret backslashes.
19221 echo=$lt_echo
19222
19223 # The archiver.
19224 AR=$lt_AR
19225 AR_FLAGS=$lt_AR_FLAGS
19226
19227 # A C compiler.
19228 LTCC=$lt_LTCC
19229
19230 # LTCC compiler flags.
19231 LTCFLAGS=$lt_LTCFLAGS
19232
19233 # A language-specific compiler.
19234 CC=$lt_compiler_GCJ
19235
19236 # Is the compiler the GNU C compiler?
19237 with_gcc=$GCC_GCJ
19238
19239 # An ERE matcher.
19240 EGREP=$lt_EGREP
19241
19242 # The linker used to build libraries.
19243 LD=$lt_LD_GCJ
19244
19245 # Whether we need hard or soft links.
19246 LN_S=$lt_LN_S
19247
19248 # A BSD-compatible nm program.
19249 NM=$lt_NM
19250
19251 # A symbol stripping program
19252 STRIP=$lt_STRIP
19253
19254 # Used to examine libraries when file_magic_cmd begins "file"
19255 MAGIC_CMD=$MAGIC_CMD
19256
19257 # Used on cygwin: DLL creation program.
19258 DLLTOOL="$DLLTOOL"
19259
19260 # Used on cygwin: object dumper.
19261 OBJDUMP="$OBJDUMP"
19262
19263 # Used on cygwin: assembler.
19264 AS="$AS"
19265
19266 # The name of the directory that contains temporary libtool files.
19267 objdir=$objdir
19268
19269 # How to create reloadable object files.
19270 reload_flag=$lt_reload_flag
19271 reload_cmds=$lt_reload_cmds
19272
19273 # How to pass a linker flag through the compiler.
19274 wl=$lt_lt_prog_compiler_wl_GCJ
19275
19276 # Object file suffix (normally "o").
19277 objext="$ac_objext"
19278
19279 # Old archive suffix (normally "a").
19280 libext="$libext"
19281
19282 # Shared library suffix (normally ".so").
19283 shrext_cmds='$shrext_cmds'
19284
19285 # Executable file suffix (normally "").
19286 exeext="$exeext"
19287
19288 # Additional compiler flags for building library objects.
19289 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19290 pic_mode=$pic_mode
19291
19292 # What is the maximum length of a command?
19293 max_cmd_len=$lt_cv_sys_max_cmd_len
19294
19295 # Does compiler simultaneously support -c and -o options?
19296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19297
19298 # Must we lock files when doing compilation?
19299 need_locks=$lt_need_locks
19300
19301 # Do we need the lib prefix for modules?
19302 need_lib_prefix=$need_lib_prefix
19303
19304 # Do we need a version for libraries?
19305 need_version=$need_version
19306
19307 # Whether dlopen is supported.
19308 dlopen_support=$enable_dlopen
19309
19310 # Whether dlopen of programs is supported.
19311 dlopen_self=$enable_dlopen_self
19312
19313 # Whether dlopen of statically linked programs is supported.
19314 dlopen_self_static=$enable_dlopen_self_static
19315
19316 # Compiler flag to prevent dynamic linking.
19317 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19318
19319 # Compiler flag to turn off builtin functions.
19320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19321
19322 # Compiler flag to allow reflexive dlopens.
19323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19324
19325 # Compiler flag to generate shared objects directly from archives.
19326 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19327
19328 # Compiler flag to generate thread-safe objects.
19329 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19330
19331 # Library versioning type.
19332 version_type=$version_type
19333
19334 # Format of library name prefix.
19335 libname_spec=$lt_libname_spec
19336
19337 # List of archive names.  First name is the real one, the rest are links.
19338 # The last name is the one that the linker finds with -lNAME.
19339 library_names_spec=$lt_library_names_spec
19340
19341 # The coded name of the library, if different from the real name.
19342 soname_spec=$lt_soname_spec
19343
19344 # Commands used to build and install an old-style archive.
19345 RANLIB=$lt_RANLIB
19346 old_archive_cmds=$lt_old_archive_cmds_GCJ
19347 old_postinstall_cmds=$lt_old_postinstall_cmds
19348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19349
19350 # Create an old-style archive from a shared archive.
19351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19352
19353 # Create a temporary old-style archive to link instead of a shared archive.
19354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19355
19356 # Commands used to build and install a shared archive.
19357 archive_cmds=$lt_archive_cmds_GCJ
19358 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19359 postinstall_cmds=$lt_postinstall_cmds
19360 postuninstall_cmds=$lt_postuninstall_cmds
19361
19362 # Commands used to build a loadable module (assumed same as above if empty)
19363 module_cmds=$lt_module_cmds_GCJ
19364 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19365
19366 # Commands to strip libraries.
19367 old_striplib=$lt_old_striplib
19368 striplib=$lt_striplib
19369
19370 # Dependencies to place before the objects being linked to create a
19371 # shared library.
19372 predep_objects=$lt_predep_objects_GCJ
19373
19374 # Dependencies to place after the objects being linked to create a
19375 # shared library.
19376 postdep_objects=$lt_postdep_objects_GCJ
19377
19378 # Dependencies to place before the objects being linked to create a
19379 # shared library.
19380 predeps=$lt_predeps_GCJ
19381
19382 # Dependencies to place after the objects being linked to create a
19383 # shared library.
19384 postdeps=$lt_postdeps_GCJ
19385
19386 # The directories searched by this compiler when creating a shared
19387 # library
19388 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19389
19390 # The library search path used internally by the compiler when linking
19391 # a shared library.
19392 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19393
19394 # Method to check whether dependent libraries are shared objects.
19395 deplibs_check_method=$lt_deplibs_check_method
19396
19397 # Command to use when deplibs_check_method == file_magic.
19398 file_magic_cmd=$lt_file_magic_cmd
19399
19400 # Flag that allows shared libraries with undefined symbols to be built.
19401 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19402
19403 # Flag that forces no undefined symbols.
19404 no_undefined_flag=$lt_no_undefined_flag_GCJ
19405
19406 # Commands used to finish a libtool library installation in a directory.
19407 finish_cmds=$lt_finish_cmds
19408
19409 # Same as above, but a single script fragment to be evaled but not shown.
19410 finish_eval=$lt_finish_eval
19411
19412 # Take the output of nm and produce a listing of raw symbols and C names.
19413 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19414
19415 # Transform the output of nm in a proper C declaration
19416 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19417
19418 # Transform the output of nm in a C name address pair
19419 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19420
19421 # This is the shared library runtime path variable.
19422 runpath_var=$runpath_var
19423
19424 # This is the shared library path variable.
19425 shlibpath_var=$shlibpath_var
19426
19427 # Is shlibpath searched before the hard-coded library search path?
19428 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19429
19430 # How to hardcode a shared library path into an executable.
19431 hardcode_action=$hardcode_action_GCJ
19432
19433 # Whether we should hardcode library paths into libraries.
19434 hardcode_into_libs=$hardcode_into_libs
19435
19436 # Flag to hardcode \$libdir into a binary during linking.
19437 # This must work even if \$libdir does not exist.
19438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19439
19440 # If ld is used when linking, flag to hardcode \$libdir into
19441 # a binary during linking. This must work even if \$libdir does
19442 # not exist.
19443 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19444
19445 # Whether we need a single -rpath flag with a separated argument.
19446 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19447
19448 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19449 # resulting binary.
19450 hardcode_direct=$hardcode_direct_GCJ
19451
19452 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19453 # resulting binary.
19454 hardcode_minus_L=$hardcode_minus_L_GCJ
19455
19456 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19457 # the resulting binary.
19458 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19459
19460 # Set to yes if building a shared library automatically hardcodes DIR into the library
19461 # and all subsequent libraries and executables linked against it.
19462 hardcode_automatic=$hardcode_automatic_GCJ
19463
19464 # Variables whose values should be saved in libtool wrapper scripts and
19465 # restored at relink time.
19466 variables_saved_for_relink="$variables_saved_for_relink"
19467
19468 # Whether libtool must link a program against all its dependency libraries.
19469 link_all_deplibs=$link_all_deplibs_GCJ
19470
19471 # Compile-time system search path for libraries
19472 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19473
19474 # Run-time system search path for libraries
19475 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19476
19477 # Fix the shell variable \$srcfile for the compiler.
19478 fix_srcfile_path=$lt_fix_srcfile_path
19479
19480 # Set to yes if exported symbols are required.
19481 always_export_symbols=$always_export_symbols_GCJ
19482
19483 # The commands to list exported symbols.
19484 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19485
19486 # The commands to extract the exported symbol list from a shared archive.
19487 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19488
19489 # Symbols that should not be listed in the preloaded symbols.
19490 exclude_expsyms=$lt_exclude_expsyms_GCJ
19491
19492 # Symbols that must always be exported.
19493 include_expsyms=$lt_include_expsyms_GCJ
19494
19495 # ### END LIBTOOL TAG CONFIG: $tagname
19496
19497 __EOF__
19498
19499
19500 else
19501   # If there is no Makefile yet, we rely on a make rule to execute
19502   # `config.status --recheck' to rerun these tests and create the
19503   # libtool script then.
19504   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19505   if test -f "$ltmain_in"; then
19506     test -f Makefile && make "$ltmain"
19507   fi
19508 fi
19509
19510
19511 ac_ext=c
19512 ac_cpp='$CPP $CPPFLAGS'
19513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516
19517 CC="$lt_save_CC"
19518
19519         else
19520           tagname=""
19521         fi
19522         ;;
19523
19524       RC)
19525
19526
19527 # Source file extension for RC test sources.
19528 ac_ext=rc
19529
19530 # Object file extension for compiled RC test sources.
19531 objext=o
19532 objext_RC=$objext
19533
19534 # Code to be used in simple compile tests
19535 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19536
19537 # Code to be used in simple link tests
19538 lt_simple_link_test_code="$lt_simple_compile_test_code"
19539
19540 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19541
19542 # If no C compiler was specified, use CC.
19543 LTCC=${LTCC-"$CC"}
19544
19545 # If no C compiler flags were specified, use CFLAGS.
19546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19547
19548 # Allow CC to be a program name with arguments.
19549 compiler=$CC
19550
19551
19552 # save warnings/boilerplate of simple test code
19553 ac_outfile=conftest.$ac_objext
19554 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556 _lt_compiler_boilerplate=`cat conftest.err`
19557 $rm conftest*
19558
19559 ac_outfile=conftest.$ac_objext
19560 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19562 _lt_linker_boilerplate=`cat conftest.err`
19563 $rm -r conftest*
19564
19565
19566 # Allow CC to be a program name with arguments.
19567 lt_save_CC="$CC"
19568 CC=${RC-"windres"}
19569 compiler=$CC
19570 compiler_RC=$CC
19571 for cc_temp in $compiler""; do
19572   case $cc_temp in
19573     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19574     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19575     \-*) ;;
19576     *) break;;
19577   esac
19578 done
19579 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19580
19581 lt_cv_prog_compiler_c_o_RC=yes
19582
19583 # The else clause should only fire when bootstrapping the
19584 # libtool distribution, otherwise you forgot to ship ltmain.sh
19585 # with your package, and you will get complaints that there are
19586 # no rules to generate ltmain.sh.
19587 if test -f "$ltmain"; then
19588   # See if we are running on zsh, and set the options which allow our commands through
19589   # without removal of \ escapes.
19590   if test -n "${ZSH_VERSION+set}" ; then
19591     setopt NO_GLOB_SUBST
19592   fi
19593   # Now quote all the things that may contain metacharacters while being
19594   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19595   # variables and quote the copies for generation of the libtool script.
19596   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19597     SED SHELL STRIP \
19598     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19599     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19600     deplibs_check_method reload_flag reload_cmds need_locks \
19601     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19602     lt_cv_sys_global_symbol_to_c_name_address \
19603     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19604     old_postinstall_cmds old_postuninstall_cmds \
19605     compiler_RC \
19606     CC_RC \
19607     LD_RC \
19608     lt_prog_compiler_wl_RC \
19609     lt_prog_compiler_pic_RC \
19610     lt_prog_compiler_static_RC \
19611     lt_prog_compiler_no_builtin_flag_RC \
19612     export_dynamic_flag_spec_RC \
19613     thread_safe_flag_spec_RC \
19614     whole_archive_flag_spec_RC \
19615     enable_shared_with_static_runtimes_RC \
19616     old_archive_cmds_RC \
19617     old_archive_from_new_cmds_RC \
19618     predep_objects_RC \
19619     postdep_objects_RC \
19620     predeps_RC \
19621     postdeps_RC \
19622     compiler_lib_search_path_RC \
19623     compiler_lib_search_dirs_RC \
19624     archive_cmds_RC \
19625     archive_expsym_cmds_RC \
19626     postinstall_cmds_RC \
19627     postuninstall_cmds_RC \
19628     old_archive_from_expsyms_cmds_RC \
19629     allow_undefined_flag_RC \
19630     no_undefined_flag_RC \
19631     export_symbols_cmds_RC \
19632     hardcode_libdir_flag_spec_RC \
19633     hardcode_libdir_flag_spec_ld_RC \
19634     hardcode_libdir_separator_RC \
19635     hardcode_automatic_RC \
19636     module_cmds_RC \
19637     module_expsym_cmds_RC \
19638     lt_cv_prog_compiler_c_o_RC \
19639     fix_srcfile_path_RC \
19640     exclude_expsyms_RC \
19641     include_expsyms_RC; do
19642
19643     case $var in
19644     old_archive_cmds_RC | \
19645     old_archive_from_new_cmds_RC | \
19646     archive_cmds_RC | \
19647     archive_expsym_cmds_RC | \
19648     module_cmds_RC | \
19649     module_expsym_cmds_RC | \
19650     old_archive_from_expsyms_cmds_RC | \
19651     export_symbols_cmds_RC | \
19652     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19653     postinstall_cmds | postuninstall_cmds | \
19654     old_postinstall_cmds | old_postuninstall_cmds | \
19655     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19656       # Double-quote double-evaled strings.
19657       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19658       ;;
19659     *)
19660       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19661       ;;
19662     esac
19663   done
19664
19665   case $lt_echo in
19666   *'\$0 --fallback-echo"')
19667     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19668     ;;
19669   esac
19670
19671 cfgfile="$ofile"
19672
19673   cat <<__EOF__ >> "$cfgfile"
19674 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19675
19676 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19677
19678 # Shell to use when invoking shell scripts.
19679 SHELL=$lt_SHELL
19680
19681 # Whether or not to build shared libraries.
19682 build_libtool_libs=$enable_shared
19683
19684 # Whether or not to build static libraries.
19685 build_old_libs=$enable_static
19686
19687 # Whether or not to add -lc for building shared libraries.
19688 build_libtool_need_lc=$archive_cmds_need_lc_RC
19689
19690 # Whether or not to disallow shared libs when runtime libs are static
19691 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19692
19693 # Whether or not to optimize for fast installation.
19694 fast_install=$enable_fast_install
19695
19696 # The host system.
19697 host_alias=$host_alias
19698 host=$host
19699 host_os=$host_os
19700
19701 # The build system.
19702 build_alias=$build_alias
19703 build=$build
19704 build_os=$build_os
19705
19706 # An echo program that does not interpret backslashes.
19707 echo=$lt_echo
19708
19709 # The archiver.
19710 AR=$lt_AR
19711 AR_FLAGS=$lt_AR_FLAGS
19712
19713 # A C compiler.
19714 LTCC=$lt_LTCC
19715
19716 # LTCC compiler flags.
19717 LTCFLAGS=$lt_LTCFLAGS
19718
19719 # A language-specific compiler.
19720 CC=$lt_compiler_RC
19721
19722 # Is the compiler the GNU C compiler?
19723 with_gcc=$GCC_RC
19724
19725 # An ERE matcher.
19726 EGREP=$lt_EGREP
19727
19728 # The linker used to build libraries.
19729 LD=$lt_LD_RC
19730
19731 # Whether we need hard or soft links.
19732 LN_S=$lt_LN_S
19733
19734 # A BSD-compatible nm program.
19735 NM=$lt_NM
19736
19737 # A symbol stripping program
19738 STRIP=$lt_STRIP
19739
19740 # Used to examine libraries when file_magic_cmd begins "file"
19741 MAGIC_CMD=$MAGIC_CMD
19742
19743 # Used on cygwin: DLL creation program.
19744 DLLTOOL="$DLLTOOL"
19745
19746 # Used on cygwin: object dumper.
19747 OBJDUMP="$OBJDUMP"
19748
19749 # Used on cygwin: assembler.
19750 AS="$AS"
19751
19752 # The name of the directory that contains temporary libtool files.
19753 objdir=$objdir
19754
19755 # How to create reloadable object files.
19756 reload_flag=$lt_reload_flag
19757 reload_cmds=$lt_reload_cmds
19758
19759 # How to pass a linker flag through the compiler.
19760 wl=$lt_lt_prog_compiler_wl_RC
19761
19762 # Object file suffix (normally "o").
19763 objext="$ac_objext"
19764
19765 # Old archive suffix (normally "a").
19766 libext="$libext"
19767
19768 # Shared library suffix (normally ".so").
19769 shrext_cmds='$shrext_cmds'
19770
19771 # Executable file suffix (normally "").
19772 exeext="$exeext"
19773
19774 # Additional compiler flags for building library objects.
19775 pic_flag=$lt_lt_prog_compiler_pic_RC
19776 pic_mode=$pic_mode
19777
19778 # What is the maximum length of a command?
19779 max_cmd_len=$lt_cv_sys_max_cmd_len
19780
19781 # Does compiler simultaneously support -c and -o options?
19782 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19783
19784 # Must we lock files when doing compilation?
19785 need_locks=$lt_need_locks
19786
19787 # Do we need the lib prefix for modules?
19788 need_lib_prefix=$need_lib_prefix
19789
19790 # Do we need a version for libraries?
19791 need_version=$need_version
19792
19793 # Whether dlopen is supported.
19794 dlopen_support=$enable_dlopen
19795
19796 # Whether dlopen of programs is supported.
19797 dlopen_self=$enable_dlopen_self
19798
19799 # Whether dlopen of statically linked programs is supported.
19800 dlopen_self_static=$enable_dlopen_self_static
19801
19802 # Compiler flag to prevent dynamic linking.
19803 link_static_flag=$lt_lt_prog_compiler_static_RC
19804
19805 # Compiler flag to turn off builtin functions.
19806 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19807
19808 # Compiler flag to allow reflexive dlopens.
19809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19810
19811 # Compiler flag to generate shared objects directly from archives.
19812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19813
19814 # Compiler flag to generate thread-safe objects.
19815 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19816
19817 # Library versioning type.
19818 version_type=$version_type
19819
19820 # Format of library name prefix.
19821 libname_spec=$lt_libname_spec
19822
19823 # List of archive names.  First name is the real one, the rest are links.
19824 # The last name is the one that the linker finds with -lNAME.
19825 library_names_spec=$lt_library_names_spec
19826
19827 # The coded name of the library, if different from the real name.
19828 soname_spec=$lt_soname_spec
19829
19830 # Commands used to build and install an old-style archive.
19831 RANLIB=$lt_RANLIB
19832 old_archive_cmds=$lt_old_archive_cmds_RC
19833 old_postinstall_cmds=$lt_old_postinstall_cmds
19834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19835
19836 # Create an old-style archive from a shared archive.
19837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19838
19839 # Create a temporary old-style archive to link instead of a shared archive.
19840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19841
19842 # Commands used to build and install a shared archive.
19843 archive_cmds=$lt_archive_cmds_RC
19844 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19845 postinstall_cmds=$lt_postinstall_cmds
19846 postuninstall_cmds=$lt_postuninstall_cmds
19847
19848 # Commands used to build a loadable module (assumed same as above if empty)
19849 module_cmds=$lt_module_cmds_RC
19850 module_expsym_cmds=$lt_module_expsym_cmds_RC
19851
19852 # Commands to strip libraries.
19853 old_striplib=$lt_old_striplib
19854 striplib=$lt_striplib
19855
19856 # Dependencies to place before the objects being linked to create a
19857 # shared library.
19858 predep_objects=$lt_predep_objects_RC
19859
19860 # Dependencies to place after the objects being linked to create a
19861 # shared library.
19862 postdep_objects=$lt_postdep_objects_RC
19863
19864 # Dependencies to place before the objects being linked to create a
19865 # shared library.
19866 predeps=$lt_predeps_RC
19867
19868 # Dependencies to place after the objects being linked to create a
19869 # shared library.
19870 postdeps=$lt_postdeps_RC
19871
19872 # The directories searched by this compiler when creating a shared
19873 # library
19874 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19875
19876 # The library search path used internally by the compiler when linking
19877 # a shared library.
19878 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19879
19880 # Method to check whether dependent libraries are shared objects.
19881 deplibs_check_method=$lt_deplibs_check_method
19882
19883 # Command to use when deplibs_check_method == file_magic.
19884 file_magic_cmd=$lt_file_magic_cmd
19885
19886 # Flag that allows shared libraries with undefined symbols to be built.
19887 allow_undefined_flag=$lt_allow_undefined_flag_RC
19888
19889 # Flag that forces no undefined symbols.
19890 no_undefined_flag=$lt_no_undefined_flag_RC
19891
19892 # Commands used to finish a libtool library installation in a directory.
19893 finish_cmds=$lt_finish_cmds
19894
19895 # Same as above, but a single script fragment to be evaled but not shown.
19896 finish_eval=$lt_finish_eval
19897
19898 # Take the output of nm and produce a listing of raw symbols and C names.
19899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19900
19901 # Transform the output of nm in a proper C declaration
19902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19903
19904 # Transform the output of nm in a C name address pair
19905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19906
19907 # This is the shared library runtime path variable.
19908 runpath_var=$runpath_var
19909
19910 # This is the shared library path variable.
19911 shlibpath_var=$shlibpath_var
19912
19913 # Is shlibpath searched before the hard-coded library search path?
19914 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19915
19916 # How to hardcode a shared library path into an executable.
19917 hardcode_action=$hardcode_action_RC
19918
19919 # Whether we should hardcode library paths into libraries.
19920 hardcode_into_libs=$hardcode_into_libs
19921
19922 # Flag to hardcode \$libdir into a binary during linking.
19923 # This must work even if \$libdir does not exist.
19924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19925
19926 # If ld is used when linking, flag to hardcode \$libdir into
19927 # a binary during linking. This must work even if \$libdir does
19928 # not exist.
19929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19930
19931 # Whether we need a single -rpath flag with a separated argument.
19932 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19933
19934 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19935 # resulting binary.
19936 hardcode_direct=$hardcode_direct_RC
19937
19938 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19939 # resulting binary.
19940 hardcode_minus_L=$hardcode_minus_L_RC
19941
19942 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19943 # the resulting binary.
19944 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19945
19946 # Set to yes if building a shared library automatically hardcodes DIR into the library
19947 # and all subsequent libraries and executables linked against it.
19948 hardcode_automatic=$hardcode_automatic_RC
19949
19950 # Variables whose values should be saved in libtool wrapper scripts and
19951 # restored at relink time.
19952 variables_saved_for_relink="$variables_saved_for_relink"
19953
19954 # Whether libtool must link a program against all its dependency libraries.
19955 link_all_deplibs=$link_all_deplibs_RC
19956
19957 # Compile-time system search path for libraries
19958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19959
19960 # Run-time system search path for libraries
19961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19962
19963 # Fix the shell variable \$srcfile for the compiler.
19964 fix_srcfile_path=$lt_fix_srcfile_path
19965
19966 # Set to yes if exported symbols are required.
19967 always_export_symbols=$always_export_symbols_RC
19968
19969 # The commands to list exported symbols.
19970 export_symbols_cmds=$lt_export_symbols_cmds_RC
19971
19972 # The commands to extract the exported symbol list from a shared archive.
19973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19974
19975 # Symbols that should not be listed in the preloaded symbols.
19976 exclude_expsyms=$lt_exclude_expsyms_RC
19977
19978 # Symbols that must always be exported.
19979 include_expsyms=$lt_include_expsyms_RC
19980
19981 # ### END LIBTOOL TAG CONFIG: $tagname
19982
19983 __EOF__
19984
19985
19986 else
19987   # If there is no Makefile yet, we rely on a make rule to execute
19988   # `config.status --recheck' to rerun these tests and create the
19989   # libtool script then.
19990   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19991   if test -f "$ltmain_in"; then
19992     test -f Makefile && make "$ltmain"
19993   fi
19994 fi
19995
19996
19997 ac_ext=c
19998 ac_cpp='$CPP $CPPFLAGS'
19999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20002
20003 CC="$lt_save_CC"
20004
20005         ;;
20006
20007       *)
20008         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20009 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20010    { (exit 1); exit 1; }; }
20011         ;;
20012       esac
20013
20014       # Append the new tag name to the list of available tags.
20015       if test -n "$tagname" ; then
20016       available_tags="$available_tags $tagname"
20017     fi
20018     fi
20019   done
20020   IFS="$lt_save_ifs"
20021
20022   # Now substitute the updated list of available tags.
20023   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20024     mv "${ofile}T" "$ofile"
20025     chmod +x "$ofile"
20026   else
20027     rm -f "${ofile}T"
20028     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20029 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20030    { (exit 1); exit 1; }; }
20031   fi
20032 fi
20033
20034
20035
20036 # This can be used to rebuild libtool when needed
20037 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20038
20039 # Always use our own libtool.
20040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20041
20042 # Prevent multiple expansion
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055 # Check whether --with-system-libtool was given.
20056 if test "${with_system_libtool+set}" = set; then
20057   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
20058 set dummy libtool; ac_word=$2
20059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20061 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20062   echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064   case $LIBTOOL in
20065   [\\/]* | ?:[\\/]*)
20066   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20067   ;;
20068   *)
20069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20070 as_dummy="$PATH:/usr/local/bin"
20071 for as_dir in $as_dummy
20072 do
20073   IFS=$as_save_IFS
20074   test -z "$as_dir" && as_dir=.
20075   for ac_exec_ext in '' $ac_executable_extensions; do
20076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20077     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20079     break 2
20080   fi
20081 done
20082 done
20083 IFS=$as_save_IFS
20084
20085   ;;
20086 esac
20087 fi
20088 LIBTOOL=$ac_cv_path_LIBTOOL
20089 if test -n "$LIBTOOL"; then
20090   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20091 echo "${ECHO_T}$LIBTOOL" >&6; }
20092 else
20093   { echo "$as_me:$LINENO: result: no" >&5
20094 echo "${ECHO_T}no" >&6; }
20095 fi
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108 else
20109
20110   LIBTOOL="`pwd`/libtool"
20111
20112
20113
20114
20115
20116
20117 fi
20118
20119
20120
20121
20122 # Check whether --enable-strict-dependencies was given.
20123 if test "${enable_strict_dependencies+set}" = set; then
20124   enableval=$enable_strict_dependencies;
20125 fi
20126
20127
20128 docdir='${datadir}/doc/freeradius'
20129 { echo "$as_me:$LINENO: checking docdir" >&5
20130 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20131
20132 # Check whether --with-docdir was given.
20133 if test "${with_docdir+set}" = set; then
20134   withval=$with_docdir;  case "$withval" in
20135     no)
20136         docdir=no
20137         ;;
20138     yes)
20139         ;;
20140     [\\/$]* | ?:[\\/]* )
20141         docdir="$withval"
20142         ;;
20143     *)
20144         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20145 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20146    { (exit 1); exit 1; }; }
20147         ;;
20148   esac
20149
20150 fi
20151
20152
20153 { echo "$as_me:$LINENO: result: $docdir" >&5
20154 echo "${ECHO_T}$docdir" >&6; }
20155 if test "x$docdir" = xno; then
20156         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20157 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20158 fi
20159
20160 logdir='${localstatedir}/log/radius'
20161 { echo "$as_me:$LINENO: checking logdir" >&5
20162 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20163
20164 # Check whether --with-logdir was given.
20165 if test "${with_logdir+set}" = set; then
20166   withval=$with_logdir;  case "$withval" in
20167     no)
20168         { { echo "$as_me:$LINENO: error: Need logdir" >&5
20169 echo "$as_me: error: Need logdir" >&2;}
20170    { (exit 1); exit 1; }; }
20171         ;;
20172     yes)
20173         ;;
20174     [\\/$]* | ?:[\\/]* )
20175         logdir="$withval"
20176         ;;
20177     *)
20178         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20179 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20180    { (exit 1); exit 1; }; }
20181         ;;
20182   esac
20183
20184 fi
20185
20186
20187 { echo "$as_me:$LINENO: result: $logdir" >&5
20188 echo "${ECHO_T}$logdir" >&6; }
20189
20190 radacctdir='${logdir}/radacct'
20191 { echo "$as_me:$LINENO: checking radacctdir" >&5
20192 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20193
20194 # Check whether --with-radacctdir was given.
20195 if test "${with_radacctdir+set}" = set; then
20196   withval=$with_radacctdir;  case "$withval" in
20197     no)
20198         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20199 echo "$as_me: error: Need radacctdir" >&2;}
20200    { (exit 1); exit 1; }; }
20201         ;;
20202     yes)
20203         ;;
20204     [\\/$]* | ?:[\\/]* )
20205         radacctdir="$withval"
20206         ;;
20207     *)
20208         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20209 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20210    { (exit 1); exit 1; }; }
20211         ;;
20212   esac
20213
20214 fi
20215
20216
20217 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20218 echo "${ECHO_T}$radacctdir" >&6; }
20219
20220 raddbdir='${sysconfdir}/raddb'
20221 { echo "$as_me:$LINENO: checking raddbdir" >&5
20222 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20223
20224 # Check whether --with-raddbdir was given.
20225 if test "${with_raddbdir+set}" = set; then
20226   withval=$with_raddbdir;  case "$withval" in
20227     no)
20228         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20229 echo "$as_me: error: Need raddbdir" >&2;}
20230    { (exit 1); exit 1; }; }
20231         ;;
20232     yes)
20233         ;;
20234     [\\/$]* | ?:[\\/]* )
20235         raddbdir="$withval"
20236         ;;
20237     *)
20238         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20239 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20240    { (exit 1); exit 1; }; }
20241         ;;
20242   esac
20243
20244 fi
20245
20246
20247 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20248 echo "${ECHO_T}$raddbdir" >&6; }
20249
20250 ASCEND_BINARY=yes
20251
20252 # Check whether --with-ascend-binary was given.
20253 if test "${with_ascend_binary+set}" = set; then
20254   withval=$with_ascend_binary;  case "$withval" in
20255     yes)
20256         ;;
20257     *)
20258         ASCEND_BINARY=""
20259   esac
20260
20261 fi
20262
20263 if test "X$ASCEND_BINARY" = "Xyes"; then
20264
20265 cat >>confdefs.h <<\_ACEOF
20266 #define ASCEND_BINARY
20267 _ACEOF
20268
20269 fi
20270
20271 WITH_THREADS=yes
20272
20273 # Check whether --with-threads was given.
20274 if test "${with_threads+set}" = set; then
20275   withval=$with_threads;  case "$withval" in
20276     yes)
20277         ;;
20278     *)
20279         WITH_THREADS=""
20280   esac
20281
20282 fi
20283
20284
20285 WITH_VMPS=yes
20286
20287 # Check whether --with-vmps was given.
20288 if test "${with_vmps+set}" = set; then
20289   withval=$with_vmps;  case "$withval" in
20290     yes)
20291         ;;
20292     *)
20293         WITH_VMPS=no
20294   esac
20295
20296 fi
20297
20298 if test "x$WITH_VMPS" = "xyes"; then
20299
20300 cat >>confdefs.h <<\_ACEOF
20301 #define WITH_VMPS 1
20302 _ACEOF
20303
20304 fi
20305
20306
20307 # Check whether --with-dhcp was given.
20308 if test "${with_dhcp+set}" = set; then
20309   withval=$with_dhcp;  case "$withval" in
20310     yes)
20311
20312 cat >>confdefs.h <<\_ACEOF
20313 #define WITH_DHCP 1
20314 _ACEOF
20315
20316         ;;
20317     *)
20318         ;;
20319   esac
20320
20321 fi
20322
20323
20324
20325 WITH_POST_PROXY_AUTHORIZE=
20326
20327 # Check whether --with-post-proxy-authorize was given.
20328 if test "${with_post_proxy_authorize+set}" = set; then
20329   withval=$with_post_proxy_authorize;  case "$withval" in
20330     yes)
20331         WITH_POST_PROXY_AUTHORIZE="yes"
20332         ;;
20333     *)
20334         ;;
20335   esac
20336
20337 fi
20338
20339
20340 STATIC_MODULES=
20341
20342 # Check whether --with-static_modules was given.
20343 if test "${with_static_modules+set}" = set; then
20344   withval=$with_static_modules;
20345   for i in $withval; do
20346     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20347   done
20348
20349 fi
20350
20351
20352 MODULES=
20353
20354 # Check whether --with-modules was given.
20355 if test "${with_modules+set}" = set; then
20356   withval=$with_modules;
20357  for i in $withval; do
20358    MODULES="$MODULES $i"
20359  done
20360
20361 fi
20362
20363
20364 # Check whether --enable-developer was given.
20365 if test "${enable_developer+set}" = set; then
20366   enableval=$enable_developer;  case "$enableval" in
20367     no)
20368         developer=no
20369         ;;
20370     *)
20371         developer=yes
20372   esac
20373
20374 fi
20375
20376
20377 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20378     developer="yes"
20379 fi
20380
20381 if test "x$developer" != "xno" -a -d $srcdir/.git; then
20382     developer="yes"
20383 fi
20384
20385 EXPERIMENTAL=
20386
20387 # Check whether --with-experimental-modules was given.
20388 if test "${with_experimental_modules+set}" = set; then
20389   withval=$with_experimental_modules;  case "$withval" in
20390     yes)
20391         EXPERIMENTAL=yes
20392         ;;
20393     *)
20394   esac
20395
20396 fi
20397
20398
20399 WITH_OPENSSL=yes
20400
20401 # Check whether --with-openssl was given.
20402 if test "${with_openssl+set}" = set; then
20403   withval=$with_openssl;  case "$withval" in
20404     no)
20405         WITH_OPENSSL=no
20406         ;;
20407     *)
20408         WITH_OPENSSL=yes
20409         ;;
20410   esac
20411
20412 fi
20413
20414
20415 OPENSSL_INCLUDE_DIR=
20416
20417 # Check whether --with-openssl-includes was given.
20418 if test "${with_openssl_includes+set}" = set; then
20419   withval=$with_openssl_includes;  case "$withval" in
20420     *) OPENSSL_INCLUDE_DIR="$withval"
20421         ;;
20422   esac
20423
20424 fi
20425
20426
20427 OPENSSL_LIB_DIR=
20428
20429 # Check whether --with-openssl-libraries was given.
20430 if test "${with_openssl_libraries+set}" = set; then
20431   withval=$with_openssl_libraries;  case "$withval" in
20432     *) OPENSSL_LIB_DIR="$withval"
20433         ;;
20434   esac
20435
20436 fi
20437
20438
20439
20440
20441 # Check whether --with-rlm-FOO-lib-dir was given.
20442 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20443   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20444     *)
20445         ;;
20446   esac
20447
20448 fi
20449
20450
20451
20452 # Check whether --with-rlm-FOO-include-dir was given.
20453 if test "${with_rlm_FOO_include_dir+set}" = set; then
20454   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20455     *)
20456         ;;
20457   esac
20458
20459 fi
20460
20461
20462
20463 WITH_UDPFROMTO=no
20464
20465 # Check whether --with-udpfromto was given.
20466 if test "${with_udpfromto+set}" = set; then
20467   withval=$with_udpfromto;  case "$withval" in
20468     yes)
20469         WITH_UDPFROMTO=yes
20470         ;;
20471     *)
20472         WITH_UDPFROMTO=no
20473   esac
20474
20475 fi
20476
20477
20478 if test "x$WITH_UDPFROMTO" = "xyes"; then
20479
20480 cat >>confdefs.h <<\_ACEOF
20481 #define WITH_UDPFROMTO
20482 _ACEOF
20483
20484 fi
20485
20486
20487 CHECKRAD=checkrad.pl
20488 # Extract the first word of "perl", so it can be a program name with args.
20489 set dummy perl; ac_word=$2
20490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20492 if test "${ac_cv_path_PERL+set}" = set; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495   case $PERL in
20496   [\\/]* | ?:[\\/]*)
20497   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20498   ;;
20499   *)
20500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20501 for as_dir in $PATH
20502 do
20503   IFS=$as_save_IFS
20504   test -z "$as_dir" && as_dir=.
20505   for ac_exec_ext in '' $ac_executable_extensions; do
20506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20507     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20509     break 2
20510   fi
20511 done
20512 done
20513 IFS=$as_save_IFS
20514
20515   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20516   ;;
20517 esac
20518 fi
20519 PERL=$ac_cv_path_PERL
20520 if test -n "$PERL"; then
20521   { echo "$as_me:$LINENO: result: $PERL" >&5
20522 echo "${ECHO_T}$PERL" >&6; }
20523 else
20524   { echo "$as_me:$LINENO: result: no" >&5
20525 echo "${ECHO_T}no" >&6; }
20526 fi
20527
20528
20529 if test "x$ac_cv_path_PERL" = "x"; then
20530   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20531 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20532 fi
20533 # Extract the first word of "snmpget", so it can be a program name with args.
20534 set dummy snmpget; ac_word=$2
20535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20537 if test "${ac_cv_path_SNMPGET+set}" = set; then
20538   echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540   case $SNMPGET in
20541   [\\/]* | ?:[\\/]*)
20542   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20543   ;;
20544   *)
20545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20546 for as_dir in $PATH
20547 do
20548   IFS=$as_save_IFS
20549   test -z "$as_dir" && as_dir=.
20550   for ac_exec_ext in '' $ac_executable_extensions; do
20551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20552     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20554     break 2
20555   fi
20556 done
20557 done
20558 IFS=$as_save_IFS
20559
20560   ;;
20561 esac
20562 fi
20563 SNMPGET=$ac_cv_path_SNMPGET
20564 if test -n "$SNMPGET"; then
20565   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20566 echo "${ECHO_T}$SNMPGET" >&6; }
20567 else
20568   { echo "$as_me:$LINENO: result: no" >&5
20569 echo "${ECHO_T}no" >&6; }
20570 fi
20571
20572
20573 if test "x$ac_cv_path_SNMPGET" = "x"; then
20574   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20575 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20576 fi
20577
20578 # Extract the first word of "snmpwalk", so it can be a program name with args.
20579 set dummy snmpwalk; ac_word=$2
20580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20582 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20583   echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585   case $SNMPWALK in
20586   [\\/]* | ?:[\\/]*)
20587   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20588   ;;
20589   *)
20590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591 for as_dir in $PATH
20592 do
20593   IFS=$as_save_IFS
20594   test -z "$as_dir" && as_dir=.
20595   for ac_exec_ext in '' $ac_executable_extensions; do
20596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20597     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20599     break 2
20600   fi
20601 done
20602 done
20603 IFS=$as_save_IFS
20604
20605   ;;
20606 esac
20607 fi
20608 SNMPWALK=$ac_cv_path_SNMPWALK
20609 if test -n "$SNMPWALK"; then
20610   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20611 echo "${ECHO_T}$SNMPWALK" >&6; }
20612 else
20613   { echo "$as_me:$LINENO: result: no" >&5
20614 echo "${ECHO_T}no" >&6; }
20615 fi
20616
20617
20618 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20619   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20620 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20621 fi
20622
20623 # Extract the first word of "rusers", so it can be a program name with args.
20624 set dummy rusers; ac_word=$2
20625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20627 if test "${ac_cv_path_RUSERS+set}" = set; then
20628   echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630   case $RUSERS in
20631   [\\/]* | ?:[\\/]*)
20632   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20633   ;;
20634   *)
20635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20636 for as_dir in $PATH
20637 do
20638   IFS=$as_save_IFS
20639   test -z "$as_dir" && as_dir=.
20640   for ac_exec_ext in '' $ac_executable_extensions; do
20641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20642     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20644     break 2
20645   fi
20646 done
20647 done
20648 IFS=$as_save_IFS
20649
20650   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20651   ;;
20652 esac
20653 fi
20654 RUSERS=$ac_cv_path_RUSERS
20655 if test -n "$RUSERS"; then
20656   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20657 echo "${ECHO_T}$RUSERS" >&6; }
20658 else
20659   { echo "$as_me:$LINENO: result: no" >&5
20660 echo "${ECHO_T}no" >&6; }
20661 fi
20662
20663
20664
20665 missing_dir=`cd $ac_aux_dir && pwd`
20666 # expand $ac_aux_dir to an absolute path
20667 am_aux_dir=`cd $ac_aux_dir && pwd`
20668
20669 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20670 # Use eval to expand $SHELL
20671 if eval "$MISSING --run true"; then
20672   am_missing_run="$MISSING --run "
20673 else
20674   am_missing_run=
20675   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20676 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20677 fi
20678
20679
20680 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20681
20682
20683 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20684
20685
20686 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20687
20688
20689 # Extract the first word of "locate", so it can be a program name with args.
20690 set dummy locate; ac_word=$2
20691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20693 if test "${ac_cv_path_LOCATE+set}" = set; then
20694   echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696   case $LOCATE in
20697   [\\/]* | ?:[\\/]*)
20698   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20699   ;;
20700   *)
20701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20702 for as_dir in $PATH
20703 do
20704   IFS=$as_save_IFS
20705   test -z "$as_dir" && as_dir=.
20706   for ac_exec_ext in '' $ac_executable_extensions; do
20707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20708     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20710     break 2
20711   fi
20712 done
20713 done
20714 IFS=$as_save_IFS
20715
20716   ;;
20717 esac
20718 fi
20719 LOCATE=$ac_cv_path_LOCATE
20720 if test -n "$LOCATE"; then
20721   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20722 echo "${ECHO_T}$LOCATE" >&6; }
20723 else
20724   { echo "$as_me:$LINENO: result: no" >&5
20725 echo "${ECHO_T}no" >&6; }
20726 fi
20727
20728
20729 # Extract the first word of "dirname", so it can be a program name with args.
20730 set dummy dirname; ac_word=$2
20731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20733 if test "${ac_cv_path_DIRNAME+set}" = set; then
20734   echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736   case $DIRNAME in
20737   [\\/]* | ?:[\\/]*)
20738   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20739   ;;
20740   *)
20741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20742 for as_dir in $PATH
20743 do
20744   IFS=$as_save_IFS
20745   test -z "$as_dir" && as_dir=.
20746   for ac_exec_ext in '' $ac_executable_extensions; do
20747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20748     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20750     break 2
20751   fi
20752 done
20753 done
20754 IFS=$as_save_IFS
20755
20756   ;;
20757 esac
20758 fi
20759 DIRNAME=$ac_cv_path_DIRNAME
20760 if test -n "$DIRNAME"; then
20761   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20762 echo "${ECHO_T}$DIRNAME" >&6; }
20763 else
20764   { echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6; }
20766 fi
20767
20768
20769 # Extract the first word of "grep", so it can be a program name with args.
20770 set dummy grep; ac_word=$2
20771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20773 if test "${ac_cv_path_GREP+set}" = set; then
20774   echo $ECHO_N "(cached) $ECHO_C" >&6
20775 else
20776   case $GREP in
20777   [\\/]* | ?:[\\/]*)
20778   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20779   ;;
20780   *)
20781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20782 for as_dir in $PATH
20783 do
20784   IFS=$as_save_IFS
20785   test -z "$as_dir" && as_dir=.
20786   for ac_exec_ext in '' $ac_executable_extensions; do
20787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20788     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20790     break 2
20791   fi
20792 done
20793 done
20794 IFS=$as_save_IFS
20795
20796   ;;
20797 esac
20798 fi
20799 GREP=$ac_cv_path_GREP
20800 if test -n "$GREP"; then
20801   { echo "$as_me:$LINENO: result: $GREP" >&5
20802 echo "${ECHO_T}$GREP" >&6; }
20803 else
20804   { echo "$as_me:$LINENO: result: no" >&5
20805 echo "${ECHO_T}no" >&6; }
20806 fi
20807
20808
20809
20810
20811 old_CFLAGS=$CFLAGS
20812 if test "x$WITH_THREADS" = "xyes"; then
20813   if test $ac_cv_prog_suncc = "yes"; then
20814     CFLAGS="$CFLAGS -mt"
20815   fi
20816
20817
20818 for ac_header in pthread.h
20819 do
20820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20822   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20825   echo $ECHO_N "(cached) $ECHO_C" >&6
20826 fi
20827 ac_res=`eval echo '${'$as_ac_Header'}'`
20828                { echo "$as_me:$LINENO: result: $ac_res" >&5
20829 echo "${ECHO_T}$ac_res" >&6; }
20830 else
20831   # Is the header compilable?
20832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20834 cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h.  */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h.  */
20840 $ac_includes_default
20841 #include <$ac_header>
20842 _ACEOF
20843 rm -f conftest.$ac_objext
20844 if { (ac_try="$ac_compile"
20845 case "(($ac_try" in
20846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847   *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850   (eval "$ac_compile") 2>conftest.er1
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
20854   cat conftest.err >&5
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } && {
20857          test -z "$ac_c_werror_flag" ||
20858          test ! -s conftest.err
20859        } && test -s conftest.$ac_objext; then
20860   ac_header_compiler=yes
20861 else
20862   echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865         ac_header_compiler=no
20866 fi
20867
20868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20870 echo "${ECHO_T}$ac_header_compiler" >&6; }
20871
20872 # Is the header present?
20873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20875 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h.  */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h.  */
20881 #include <$ac_header>
20882 _ACEOF
20883 if { (ac_try="$ac_cpp conftest.$ac_ext"
20884 case "(($ac_try" in
20885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886   *) ac_try_echo=$ac_try;;
20887 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20890   ac_status=$?
20891   grep -v '^ *+' conftest.er1 >conftest.err
20892   rm -f conftest.er1
20893   cat conftest.err >&5
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); } >/dev/null && {
20896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20897          test ! -s conftest.err
20898        }; then
20899   ac_header_preproc=yes
20900 else
20901   echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904   ac_header_preproc=no
20905 fi
20906
20907 rm -f conftest.err conftest.$ac_ext
20908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20909 echo "${ECHO_T}$ac_header_preproc" >&6; }
20910
20911 # So?  What about this header?
20912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20913   yes:no: )
20914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20918     ac_header_preproc=yes
20919     ;;
20920   no:yes:* )
20921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20923     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20924 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20925     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20927     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20928 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20931     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20933
20934     ;;
20935 esac
20936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20939   echo $ECHO_N "(cached) $ECHO_C" >&6
20940 else
20941   eval "$as_ac_Header=\$ac_header_preproc"
20942 fi
20943 ac_res=`eval echo '${'$as_ac_Header'}'`
20944                { echo "$as_me:$LINENO: result: $ac_res" >&5
20945 echo "${ECHO_T}$ac_res" >&6; }
20946
20947 fi
20948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20949   cat >>confdefs.h <<_ACEOF
20950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20951 _ACEOF
20952
20953 else
20954    WITH_THREADS="no"
20955 fi
20956
20957 done
20958
20959
20960   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20961 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20962 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20963   echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965   ac_check_lib_save_LIBS=$LIBS
20966 LIBS="-lpthread  $LIBS"
20967 cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h.  */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h.  */
20973
20974 /* Override any GCC internal prototype to avoid an error.
20975    Use char because int might match the return type of a GCC
20976    builtin and then its argument prototype would still apply.  */
20977 #ifdef __cplusplus
20978 extern "C"
20979 #endif
20980 char pthread_create ();
20981 int
20982 main ()
20983 {
20984 return pthread_create ();
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 rm -f conftest.$ac_objext conftest$ac_exeext
20990 if { (ac_try="$ac_link"
20991 case "(($ac_try" in
20992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993   *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996   (eval "$ac_link") 2>conftest.er1
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
21000   cat conftest.err >&5
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } && {
21003          test -z "$ac_c_werror_flag" ||
21004          test ! -s conftest.err
21005        } && test -s conftest$ac_exeext &&
21006        $as_test_x conftest$ac_exeext; then
21007   ac_cv_lib_pthread_pthread_create=yes
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012         ac_cv_lib_pthread_pthread_create=no
21013 fi
21014
21015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21016       conftest$ac_exeext conftest.$ac_ext
21017 LIBS=$ac_check_lib_save_LIBS
21018 fi
21019 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21020 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21021 if test $ac_cv_lib_pthread_pthread_create = yes; then
21022    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21023                   LIBS="$LIBS -lpthread"
21024 else
21025   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21026 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21027 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21028   echo $ECHO_N "(cached) $ECHO_C" >&6
21029 else
21030   ac_check_lib_save_LIBS=$LIBS
21031 LIBS="-lc_r  $LIBS"
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h.  */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h.  */
21038
21039 /* Override any GCC internal prototype to avoid an error.
21040    Use char because int might match the return type of a GCC
21041    builtin and then its argument prototype would still apply.  */
21042 #ifdef __cplusplus
21043 extern "C"
21044 #endif
21045 char pthread_create ();
21046 int
21047 main ()
21048 {
21049 return pthread_create ();
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 rm -f conftest.$ac_objext conftest$ac_exeext
21055 if { (ac_try="$ac_link"
21056 case "(($ac_try" in
21057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058   *) ac_try_echo=$ac_try;;
21059 esac
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061   (eval "$ac_link") 2>conftest.er1
21062   ac_status=$?
21063   grep -v '^ *+' conftest.er1 >conftest.err
21064   rm -f conftest.er1
21065   cat conftest.err >&5
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); } && {
21068          test -z "$ac_c_werror_flag" ||
21069          test ! -s conftest.err
21070        } && test -s conftest$ac_exeext &&
21071        $as_test_x conftest$ac_exeext; then
21072   ac_cv_lib_c_r_pthread_create=yes
21073 else
21074   echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21076
21077         ac_cv_lib_c_r_pthread_create=no
21078 fi
21079
21080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21081       conftest$ac_exeext conftest.$ac_ext
21082 LIBS=$ac_check_lib_save_LIBS
21083 fi
21084 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21085 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21086 if test $ac_cv_lib_c_r_pthread_create = yes; then
21087    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21088 else
21089    WITH_THREADS="no"
21090
21091 fi
21092
21093
21094 fi
21095
21096 fi
21097
21098 if test "x$WITH_THREADS" != "xyes"; then
21099   CFLAGS=$old_CFLAGS
21100   ac_cv_header_pthread_h="no"
21101   WITH_THREADS=no
21102 else
21103
21104   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21105 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21106 if test "${ac_cv_search_sem_init+set}" = set; then
21107   echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109   ac_func_search_save_LIBS=$LIBS
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h.  */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h.  */
21116
21117 /* Override any GCC internal prototype to avoid an error.
21118    Use char because int might match the return type of a GCC
21119    builtin and then its argument prototype would still apply.  */
21120 #ifdef __cplusplus
21121 extern "C"
21122 #endif
21123 char sem_init ();
21124 int
21125 main ()
21126 {
21127 return sem_init ();
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 for ac_lib in '' pthread sem posix4 rt semaphore; do
21133   if test -z "$ac_lib"; then
21134     ac_res="none required"
21135   else
21136     ac_res=-l$ac_lib
21137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21138   fi
21139   rm -f conftest.$ac_objext conftest$ac_exeext
21140 if { (ac_try="$ac_link"
21141 case "(($ac_try" in
21142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143   *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146   (eval "$ac_link") 2>conftest.er1
21147   ac_status=$?
21148   grep -v '^ *+' conftest.er1 >conftest.err
21149   rm -f conftest.er1
21150   cat conftest.err >&5
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } && {
21153          test -z "$ac_c_werror_flag" ||
21154          test ! -s conftest.err
21155        } && test -s conftest$ac_exeext &&
21156        $as_test_x conftest$ac_exeext; then
21157   ac_cv_search_sem_init=$ac_res
21158 else
21159   echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162
21163 fi
21164
21165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21166       conftest$ac_exeext
21167   if test "${ac_cv_search_sem_init+set}" = set; then
21168   break
21169 fi
21170 done
21171 if test "${ac_cv_search_sem_init+set}" = set; then
21172   :
21173 else
21174   ac_cv_search_sem_init=no
21175 fi
21176 rm conftest.$ac_ext
21177 LIBS=$ac_func_search_save_LIBS
21178 fi
21179 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21180 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21181 ac_res=$ac_cv_search_sem_init
21182 if test "$ac_res" != no; then
21183   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21184
21185 else
21186   { { 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
21187 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;}
21188    { (exit 1); exit 1; }; }
21189
21190 fi
21191
21192 fi
21193
21194
21195 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21196 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21197 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21198   echo $ECHO_N "(cached) $ECHO_C" >&6
21199 else
21200   ac_check_lib_save_LIBS=$LIBS
21201 LIBS="-lsocket  $LIBS"
21202 cat >conftest.$ac_ext <<_ACEOF
21203 /* confdefs.h.  */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h.  */
21208
21209 /* Override any GCC internal prototype to avoid an error.
21210    Use char because int might match the return type of a GCC
21211    builtin and then its argument prototype would still apply.  */
21212 #ifdef __cplusplus
21213 extern "C"
21214 #endif
21215 char getsockname ();
21216 int
21217 main ()
21218 {
21219 return getsockname ();
21220   ;
21221   return 0;
21222 }
21223 _ACEOF
21224 rm -f conftest.$ac_objext conftest$ac_exeext
21225 if { (ac_try="$ac_link"
21226 case "(($ac_try" in
21227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228   *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231   (eval "$ac_link") 2>conftest.er1
21232   ac_status=$?
21233   grep -v '^ *+' conftest.er1 >conftest.err
21234   rm -f conftest.er1
21235   cat conftest.err >&5
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } && {
21238          test -z "$ac_c_werror_flag" ||
21239          test ! -s conftest.err
21240        } && test -s conftest$ac_exeext &&
21241        $as_test_x conftest$ac_exeext; then
21242   ac_cv_lib_socket_getsockname=yes
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247         ac_cv_lib_socket_getsockname=no
21248 fi
21249
21250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21251       conftest$ac_exeext conftest.$ac_ext
21252 LIBS=$ac_check_lib_save_LIBS
21253 fi
21254 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21255 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21256 if test $ac_cv_lib_socket_getsockname = yes; then
21257   cat >>confdefs.h <<_ACEOF
21258 #define HAVE_LIBSOCKET 1
21259 _ACEOF
21260
21261   LIBS="-lsocket $LIBS"
21262
21263 fi
21264
21265
21266
21267 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21268 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21269 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21270   echo $ECHO_N "(cached) $ECHO_C" >&6
21271 else
21272   ac_check_lib_save_LIBS=$LIBS
21273 LIBS="-lresolv  $LIBS"
21274 cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280
21281 /* Override any GCC internal prototype to avoid an error.
21282    Use char because int might match the return type of a GCC
21283    builtin and then its argument prototype would still apply.  */
21284 #ifdef __cplusplus
21285 extern "C"
21286 #endif
21287 char inet_aton ();
21288 int
21289 main ()
21290 {
21291 return inet_aton ();
21292   ;
21293   return 0;
21294 }
21295 _ACEOF
21296 rm -f conftest.$ac_objext conftest$ac_exeext
21297 if { (ac_try="$ac_link"
21298 case "(($ac_try" in
21299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300   *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303   (eval "$ac_link") 2>conftest.er1
21304   ac_status=$?
21305   grep -v '^ *+' conftest.er1 >conftest.err
21306   rm -f conftest.er1
21307   cat conftest.err >&5
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); } && {
21310          test -z "$ac_c_werror_flag" ||
21311          test ! -s conftest.err
21312        } && test -s conftest$ac_exeext &&
21313        $as_test_x conftest$ac_exeext; then
21314   ac_cv_lib_resolv_inet_aton=yes
21315 else
21316   echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319         ac_cv_lib_resolv_inet_aton=no
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21323       conftest$ac_exeext conftest.$ac_ext
21324 LIBS=$ac_check_lib_save_LIBS
21325 fi
21326 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21327 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21328 if test $ac_cv_lib_resolv_inet_aton = yes; then
21329   cat >>confdefs.h <<_ACEOF
21330 #define HAVE_LIBRESOLV 1
21331 _ACEOF
21332
21333   LIBS="-lresolv $LIBS"
21334
21335 fi
21336
21337
21338
21339 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21340 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21341 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21342   echo $ECHO_N "(cached) $ECHO_C" >&6
21343 else
21344   ac_check_lib_save_LIBS=$LIBS
21345 LIBS="-lnsl  $LIBS"
21346 cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h.  */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h.  */
21352
21353 /* Override any GCC internal prototype to avoid an error.
21354    Use char because int might match the return type of a GCC
21355    builtin and then its argument prototype would still apply.  */
21356 #ifdef __cplusplus
21357 extern "C"
21358 #endif
21359 char inet_ntoa ();
21360 int
21361 main ()
21362 {
21363 return inet_ntoa ();
21364   ;
21365   return 0;
21366 }
21367 _ACEOF
21368 rm -f conftest.$ac_objext conftest$ac_exeext
21369 if { (ac_try="$ac_link"
21370 case "(($ac_try" in
21371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372   *) ac_try_echo=$ac_try;;
21373 esac
21374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375   (eval "$ac_link") 2>conftest.er1
21376   ac_status=$?
21377   grep -v '^ *+' conftest.er1 >conftest.err
21378   rm -f conftest.er1
21379   cat conftest.err >&5
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); } && {
21382          test -z "$ac_c_werror_flag" ||
21383          test ! -s conftest.err
21384        } && test -s conftest$ac_exeext &&
21385        $as_test_x conftest$ac_exeext; then
21386   ac_cv_lib_nsl_inet_ntoa=yes
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391         ac_cv_lib_nsl_inet_ntoa=no
21392 fi
21393
21394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21395       conftest$ac_exeext conftest.$ac_ext
21396 LIBS=$ac_check_lib_save_LIBS
21397 fi
21398 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21399 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21400 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21401   cat >>confdefs.h <<_ACEOF
21402 #define HAVE_LIBNSL 1
21403 _ACEOF
21404
21405   LIBS="-lnsl $LIBS"
21406
21407 fi
21408
21409
21410 OPENSSL_LIBS=
21411 if test "x$WITH_OPENSSL" = xyes; then
21412   old_LIBS=$LIBS
21413   old_LDFLAGS="$LDFLAGS"
21414   if test "x$OPENSSL_LIB_DIR" != "x"; then
21415     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
21416   fi
21417   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21418 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21419 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21420   echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422   ac_check_lib_save_LIBS=$LIBS
21423 LIBS="-lcrypto  $LIBS"
21424 cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h.  */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h.  */
21430
21431 /* Override any GCC internal prototype to avoid an error.
21432    Use char because int might match the return type of a GCC
21433    builtin and then its argument prototype would still apply.  */
21434 #ifdef __cplusplus
21435 extern "C"
21436 #endif
21437 char DH_new ();
21438 int
21439 main ()
21440 {
21441 return DH_new ();
21442   ;
21443   return 0;
21444 }
21445 _ACEOF
21446 rm -f conftest.$ac_objext conftest$ac_exeext
21447 if { (ac_try="$ac_link"
21448 case "(($ac_try" in
21449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450   *) ac_try_echo=$ac_try;;
21451 esac
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453   (eval "$ac_link") 2>conftest.er1
21454   ac_status=$?
21455   grep -v '^ *+' conftest.er1 >conftest.err
21456   rm -f conftest.er1
21457   cat conftest.err >&5
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } && {
21460          test -z "$ac_c_werror_flag" ||
21461          test ! -s conftest.err
21462        } && test -s conftest$ac_exeext &&
21463        $as_test_x conftest$ac_exeext; then
21464   ac_cv_lib_crypto_DH_new=yes
21465 else
21466   echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         ac_cv_lib_crypto_DH_new=no
21470 fi
21471
21472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21473       conftest$ac_exeext conftest.$ac_ext
21474 LIBS=$ac_check_lib_save_LIBS
21475 fi
21476 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21477 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21478 if test $ac_cv_lib_crypto_DH_new = yes; then
21479
21480         LIBS="-lcrypto $LIBS"
21481
21482 cat >>confdefs.h <<\_ACEOF
21483 #define HAVE_LIBCRYPTO 1
21484 _ACEOF
21485
21486         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21487 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21488 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21489   echo $ECHO_N "(cached) $ECHO_C" >&6
21490 else
21491   ac_check_lib_save_LIBS=$LIBS
21492 LIBS="-lssl  $LIBS"
21493 cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h.  */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h.  */
21499
21500 /* Override any GCC internal prototype to avoid an error.
21501    Use char because int might match the return type of a GCC
21502    builtin and then its argument prototype would still apply.  */
21503 #ifdef __cplusplus
21504 extern "C"
21505 #endif
21506 char SSL_new ();
21507 int
21508 main ()
21509 {
21510 return SSL_new ();
21511   ;
21512   return 0;
21513 }
21514 _ACEOF
21515 rm -f conftest.$ac_objext conftest$ac_exeext
21516 if { (ac_try="$ac_link"
21517 case "(($ac_try" in
21518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519   *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522   (eval "$ac_link") 2>conftest.er1
21523   ac_status=$?
21524   grep -v '^ *+' conftest.er1 >conftest.err
21525   rm -f conftest.er1
21526   cat conftest.err >&5
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); } && {
21529          test -z "$ac_c_werror_flag" ||
21530          test ! -s conftest.err
21531        } && test -s conftest$ac_exeext &&
21532        $as_test_x conftest$ac_exeext; then
21533   ac_cv_lib_ssl_SSL_new=yes
21534 else
21535   echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538         ac_cv_lib_ssl_SSL_new=no
21539 fi
21540
21541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21542       conftest$ac_exeext conftest.$ac_ext
21543 LIBS=$ac_check_lib_save_LIBS
21544 fi
21545 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21546 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21547 if test $ac_cv_lib_ssl_SSL_new = yes; then
21548
21549
21550 cat >>confdefs.h <<\_ACEOF
21551 #define HAVE_LIBSSL 1
21552 _ACEOF
21553
21554                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21555                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21556                 fi
21557                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21558
21559 fi
21560
21561
21562 fi
21563
21564   LIBS=$old_LIBS
21565   LDFLAGS="$old_LDFLAGS"
21566 fi
21567
21568
21569 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21570 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21571 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21572   echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574   ac_check_lib_save_LIBS=$LIBS
21575 LIBS="-lws2_32  $LIBS"
21576 cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h.  */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h.  */
21582
21583 /* Override any GCC internal prototype to avoid an error.
21584    Use char because int might match the return type of a GCC
21585    builtin and then its argument prototype would still apply.  */
21586 #ifdef __cplusplus
21587 extern "C"
21588 #endif
21589 char htonl ();
21590 int
21591 main ()
21592 {
21593 return htonl ();
21594   ;
21595   return 0;
21596 }
21597 _ACEOF
21598 rm -f conftest.$ac_objext conftest$ac_exeext
21599 if { (ac_try="$ac_link"
21600 case "(($ac_try" in
21601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602   *) ac_try_echo=$ac_try;;
21603 esac
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605   (eval "$ac_link") 2>conftest.er1
21606   ac_status=$?
21607   grep -v '^ *+' conftest.er1 >conftest.err
21608   rm -f conftest.er1
21609   cat conftest.err >&5
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); } && {
21612          test -z "$ac_c_werror_flag" ||
21613          test ! -s conftest.err
21614        } && test -s conftest$ac_exeext &&
21615        $as_test_x conftest$ac_exeext; then
21616   ac_cv_lib_ws2_32_htonl=yes
21617 else
21618   echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621         ac_cv_lib_ws2_32_htonl=no
21622 fi
21623
21624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21625       conftest$ac_exeext conftest.$ac_ext
21626 LIBS=$ac_check_lib_save_LIBS
21627 fi
21628 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21629 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21630 if test $ac_cv_lib_ws2_32_htonl = yes; then
21631   cat >>confdefs.h <<_ACEOF
21632 #define HAVE_LIBWS2_32 1
21633 _ACEOF
21634
21635   LIBS="-lws2_32 $LIBS"
21636
21637 fi
21638
21639
21640 PCAP_LIBS=
21641 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21642 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21643 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21644   echo $ECHO_N "(cached) $ECHO_C" >&6
21645 else
21646   ac_check_lib_save_LIBS=$LIBS
21647 LIBS="-lpcap  $LIBS"
21648 cat >conftest.$ac_ext <<_ACEOF
21649 /* confdefs.h.  */
21650 _ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h.  */
21654
21655 /* Override any GCC internal prototype to avoid an error.
21656    Use char because int might match the return type of a GCC
21657    builtin and then its argument prototype would still apply.  */
21658 #ifdef __cplusplus
21659 extern "C"
21660 #endif
21661 char pcap_open_live ();
21662 int
21663 main ()
21664 {
21665 return pcap_open_live ();
21666   ;
21667   return 0;
21668 }
21669 _ACEOF
21670 rm -f conftest.$ac_objext conftest$ac_exeext
21671 if { (ac_try="$ac_link"
21672 case "(($ac_try" in
21673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674   *) ac_try_echo=$ac_try;;
21675 esac
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677   (eval "$ac_link") 2>conftest.er1
21678   ac_status=$?
21679   grep -v '^ *+' conftest.er1 >conftest.err
21680   rm -f conftest.er1
21681   cat conftest.err >&5
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); } && {
21684          test -z "$ac_c_werror_flag" ||
21685          test ! -s conftest.err
21686        } && test -s conftest$ac_exeext &&
21687        $as_test_x conftest$ac_exeext; then
21688   ac_cv_lib_pcap_pcap_open_live=yes
21689 else
21690   echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21692
21693         ac_cv_lib_pcap_pcap_open_live=no
21694 fi
21695
21696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21697       conftest$ac_exeext conftest.$ac_ext
21698 LIBS=$ac_check_lib_save_LIBS
21699 fi
21700 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21701 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21702 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21703    PCAP_LIBS="-lpcap"
21704
21705 cat >>confdefs.h <<\_ACEOF
21706 #define HAVE_LIBPCAP 1
21707 _ACEOF
21708
21709
21710 else
21711    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21712 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21713 fi
21714
21715
21716
21717   { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21718 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21719 if test "${ac_cv_lib_readline+set}" = set; then
21720   echo $ECHO_N "(cached) $ECHO_C" >&6
21721 else
21722
21723     ORIG_LIBS=$LIBS
21724     for readline_lib in readline edit editline; do
21725       for termcap_lib in "" termcap curses ncurses; do
21726         if test -z "$termcap_lib"; then
21727           TRY_LIB="-l$readline_lib"
21728         else
21729           TRY_LIB="-l$readline_lib -l$termcap_lib"
21730         fi
21731         LIBS="$ORIG_LIBS $TRY_LIB"
21732         cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h.  */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h.  */
21738
21739 /* Override any GCC internal prototype to avoid an error.
21740    Use char because int might match the return type of a GCC
21741    builtin and then its argument prototype would still apply.  */
21742 #ifdef __cplusplus
21743 extern "C"
21744 #endif
21745 char readline ();
21746 int
21747 main ()
21748 {
21749 return readline ();
21750   ;
21751   return 0;
21752 }
21753 _ACEOF
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (ac_try="$ac_link"
21756 case "(($ac_try" in
21757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758   *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761   (eval "$ac_link") 2>conftest.er1
21762   ac_status=$?
21763   grep -v '^ *+' conftest.er1 >conftest.err
21764   rm -f conftest.er1
21765   cat conftest.err >&5
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); } && {
21768          test -z "$ac_c_werror_flag" ||
21769          test ! -s conftest.err
21770        } && test -s conftest$ac_exeext &&
21771        $as_test_x conftest$ac_exeext; then
21772   ac_cv_lib_readline="$TRY_LIB"
21773 else
21774   echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777
21778 fi
21779
21780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21781       conftest$ac_exeext conftest.$ac_ext
21782         if test -n "$ac_cv_lib_readline"; then
21783           LIBREADLINE="$TRY_LIB"
21784
21785           break
21786         fi
21787       done
21788       if test -n "$ac_cv_lib_readline"; then
21789         break
21790       fi
21791     done
21792     if test -z "$ac_cv_lib_readline"; then
21793       ac_cv_lib_readline="no"
21794     fi
21795     LIBS=$ORIG_LIBS
21796
21797 fi
21798 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21799 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21800
21801   if test "$ac_cv_lib_readline" != "no"; then
21802
21803 cat >>confdefs.h <<\_ACEOF
21804 #define HAVE_LIBREADLINE 1
21805 _ACEOF
21806
21807
21808
21809 for ac_header in readline.h readline/readline.h
21810 do
21811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21813   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21816   echo $ECHO_N "(cached) $ECHO_C" >&6
21817 fi
21818 ac_res=`eval echo '${'$as_ac_Header'}'`
21819                { echo "$as_me:$LINENO: result: $ac_res" >&5
21820 echo "${ECHO_T}$ac_res" >&6; }
21821 else
21822   # Is the header compilable?
21823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h.  */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h.  */
21831 $ac_includes_default
21832 #include <$ac_header>
21833 _ACEOF
21834 rm -f conftest.$ac_objext
21835 if { (ac_try="$ac_compile"
21836 case "(($ac_try" in
21837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838   *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841   (eval "$ac_compile") 2>conftest.er1
21842   ac_status=$?
21843   grep -v '^ *+' conftest.er1 >conftest.err
21844   rm -f conftest.er1
21845   cat conftest.err >&5
21846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); } && {
21848          test -z "$ac_c_werror_flag" ||
21849          test ! -s conftest.err
21850        } && test -s conftest.$ac_objext; then
21851   ac_header_compiler=yes
21852 else
21853   echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856         ac_header_compiler=no
21857 fi
21858
21859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21861 echo "${ECHO_T}$ac_header_compiler" >&6; }
21862
21863 # Is the header present?
21864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21866 cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 #include <$ac_header>
21873 _ACEOF
21874 if { (ac_try="$ac_cpp conftest.$ac_ext"
21875 case "(($ac_try" in
21876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877   *) ac_try_echo=$ac_try;;
21878 esac
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21881   ac_status=$?
21882   grep -v '^ *+' conftest.er1 >conftest.err
21883   rm -f conftest.er1
21884   cat conftest.err >&5
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); } >/dev/null && {
21887          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21888          test ! -s conftest.err
21889        }; then
21890   ac_header_preproc=yes
21891 else
21892   echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895   ac_header_preproc=no
21896 fi
21897
21898 rm -f conftest.err conftest.$ac_ext
21899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21900 echo "${ECHO_T}$ac_header_preproc" >&6; }
21901
21902 # So?  What about this header?
21903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21904   yes:no: )
21905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21909     ac_header_preproc=yes
21910     ;;
21911   no:yes:* )
21912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21924
21925     ;;
21926 esac
21927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21930   echo $ECHO_N "(cached) $ECHO_C" >&6
21931 else
21932   eval "$as_ac_Header=\$ac_header_preproc"
21933 fi
21934 ac_res=`eval echo '${'$as_ac_Header'}'`
21935                { echo "$as_me:$LINENO: result: $ac_res" >&5
21936 echo "${ECHO_T}$ac_res" >&6; }
21937
21938 fi
21939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21940   cat >>confdefs.h <<_ACEOF
21941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21942 _ACEOF
21943
21944 fi
21945
21946 done
21947
21948     { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21949 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21950 if test "${ac_cv_lib_readline_history+set}" = set; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953
21954       ac_cv_lib_readline_history="no"
21955       cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h.  */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h.  */
21961
21962 /* Override any GCC internal prototype to avoid an error.
21963    Use char because int might match the return type of a GCC
21964    builtin and then its argument prototype would still apply.  */
21965 #ifdef __cplusplus
21966 extern "C"
21967 #endif
21968 char add_history ();
21969 int
21970 main ()
21971 {
21972 return add_history ();
21973   ;
21974   return 0;
21975 }
21976 _ACEOF
21977 rm -f conftest.$ac_objext conftest$ac_exeext
21978 if { (ac_try="$ac_link"
21979 case "(($ac_try" in
21980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981   *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984   (eval "$ac_link") 2>conftest.er1
21985   ac_status=$?
21986   grep -v '^ *+' conftest.er1 >conftest.err
21987   rm -f conftest.er1
21988   cat conftest.err >&5
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } && {
21991          test -z "$ac_c_werror_flag" ||
21992          test ! -s conftest.err
21993        } && test -s conftest$ac_exeext &&
21994        $as_test_x conftest$ac_exeext; then
21995   ac_cv_lib_readline_history="yes"
21996 else
21997   echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
21999
22000
22001 fi
22002
22003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22004       conftest$ac_exeext conftest.$ac_ext
22005
22006 fi
22007 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
22008 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
22009     if test "$ac_cv_lib_readline_history" = "yes"; then
22010
22011 cat >>confdefs.h <<\_ACEOF
22012 #define HAVE_READLINE_HISTORY 1
22013 _ACEOF
22014
22015
22016
22017 for ac_header in history.h readline/history.h
22018 do
22019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22021   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22024   echo $ECHO_N "(cached) $ECHO_C" >&6
22025 fi
22026 ac_res=`eval echo '${'$as_ac_Header'}'`
22027                { echo "$as_me:$LINENO: result: $ac_res" >&5
22028 echo "${ECHO_T}$ac_res" >&6; }
22029 else
22030   # Is the header compilable?
22031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h.  */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h.  */
22039 $ac_includes_default
22040 #include <$ac_header>
22041 _ACEOF
22042 rm -f conftest.$ac_objext
22043 if { (ac_try="$ac_compile"
22044 case "(($ac_try" in
22045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046   *) ac_try_echo=$ac_try;;
22047 esac
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049   (eval "$ac_compile") 2>conftest.er1
22050   ac_status=$?
22051   grep -v '^ *+' conftest.er1 >conftest.err
22052   rm -f conftest.er1
22053   cat conftest.err >&5
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); } && {
22056          test -z "$ac_c_werror_flag" ||
22057          test ! -s conftest.err
22058        } && test -s conftest.$ac_objext; then
22059   ac_header_compiler=yes
22060 else
22061   echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22063
22064         ac_header_compiler=no
22065 fi
22066
22067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22069 echo "${ECHO_T}$ac_header_compiler" >&6; }
22070
22071 # Is the header present?
22072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22074 cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h.  */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h.  */
22080 #include <$ac_header>
22081 _ACEOF
22082 if { (ac_try="$ac_cpp conftest.$ac_ext"
22083 case "(($ac_try" in
22084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22085   *) ac_try_echo=$ac_try;;
22086 esac
22087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22089   ac_status=$?
22090   grep -v '^ *+' conftest.er1 >conftest.err
22091   rm -f conftest.er1
22092   cat conftest.err >&5
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } >/dev/null && {
22095          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22096          test ! -s conftest.err
22097        }; then
22098   ac_header_preproc=yes
22099 else
22100   echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103   ac_header_preproc=no
22104 fi
22105
22106 rm -f conftest.err conftest.$ac_ext
22107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22108 echo "${ECHO_T}$ac_header_preproc" >&6; }
22109
22110 # So?  What about this header?
22111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22112   yes:no: )
22113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22117     ac_header_preproc=yes
22118     ;;
22119   no:yes:* )
22120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22132
22133     ;;
22134 esac
22135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22138   echo $ECHO_N "(cached) $ECHO_C" >&6
22139 else
22140   eval "$as_ac_Header=\$ac_header_preproc"
22141 fi
22142 ac_res=`eval echo '${'$as_ac_Header'}'`
22143                { echo "$as_me:$LINENO: result: $ac_res" >&5
22144 echo "${ECHO_T}$ac_res" >&6; }
22145
22146 fi
22147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22148   cat >>confdefs.h <<_ACEOF
22149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22150 _ACEOF
22151
22152 fi
22153
22154 done
22155
22156     fi
22157   fi
22158
22159
22160
22161 case "$host" in
22162 *-interix*)
22163         CFLAGS="$CFLAGS -D_ALL_SOURCE"
22164         ;;
22165 *-darwin*)
22166         CFLAGS="$CFLAGS -DDARWIN"
22167         LIBS="-framework DirectoryService $LIBS"
22168         ;;
22169 esac
22170
22171
22172
22173
22174
22175
22176 ac_header_dirent=no
22177 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22178   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22179 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22180 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22182   echo $ECHO_N "(cached) $ECHO_C" >&6
22183 else
22184   cat >conftest.$ac_ext <<_ACEOF
22185 /* confdefs.h.  */
22186 _ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h.  */
22190 #include <sys/types.h>
22191 #include <$ac_hdr>
22192
22193 int
22194 main ()
22195 {
22196 if ((DIR *) 0)
22197 return 0;
22198   ;
22199   return 0;
22200 }
22201 _ACEOF
22202 rm -f conftest.$ac_objext
22203 if { (ac_try="$ac_compile"
22204 case "(($ac_try" in
22205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206   *) ac_try_echo=$ac_try;;
22207 esac
22208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22209   (eval "$ac_compile") 2>conftest.er1
22210   ac_status=$?
22211   grep -v '^ *+' conftest.er1 >conftest.err
22212   rm -f conftest.er1
22213   cat conftest.err >&5
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); } && {
22216          test -z "$ac_c_werror_flag" ||
22217          test ! -s conftest.err
22218        } && test -s conftest.$ac_objext; then
22219   eval "$as_ac_Header=yes"
22220 else
22221   echo "$as_me: failed program was:" >&5
22222 sed 's/^/| /' conftest.$ac_ext >&5
22223
22224         eval "$as_ac_Header=no"
22225 fi
22226
22227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22228 fi
22229 ac_res=`eval echo '${'$as_ac_Header'}'`
22230                { echo "$as_me:$LINENO: result: $ac_res" >&5
22231 echo "${ECHO_T}$ac_res" >&6; }
22232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22233   cat >>confdefs.h <<_ACEOF
22234 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22235 _ACEOF
22236
22237 ac_header_dirent=$ac_hdr; break
22238 fi
22239
22240 done
22241 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22242 if test $ac_header_dirent = dirent.h; then
22243   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22244 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22245 if test "${ac_cv_search_opendir+set}" = set; then
22246   echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248   ac_func_search_save_LIBS=$LIBS
22249 cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h.  */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h.  */
22255
22256 /* Override any GCC internal prototype to avoid an error.
22257    Use char because int might match the return type of a GCC
22258    builtin and then its argument prototype would still apply.  */
22259 #ifdef __cplusplus
22260 extern "C"
22261 #endif
22262 char opendir ();
22263 int
22264 main ()
22265 {
22266 return opendir ();
22267   ;
22268   return 0;
22269 }
22270 _ACEOF
22271 for ac_lib in '' dir; do
22272   if test -z "$ac_lib"; then
22273     ac_res="none required"
22274   else
22275     ac_res=-l$ac_lib
22276     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22277   fi
22278   rm -f conftest.$ac_objext conftest$ac_exeext
22279 if { (ac_try="$ac_link"
22280 case "(($ac_try" in
22281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282   *) ac_try_echo=$ac_try;;
22283 esac
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285   (eval "$ac_link") 2>conftest.er1
22286   ac_status=$?
22287   grep -v '^ *+' conftest.er1 >conftest.err
22288   rm -f conftest.er1
22289   cat conftest.err >&5
22290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291   (exit $ac_status); } && {
22292          test -z "$ac_c_werror_flag" ||
22293          test ! -s conftest.err
22294        } && test -s conftest$ac_exeext &&
22295        $as_test_x conftest$ac_exeext; then
22296   ac_cv_search_opendir=$ac_res
22297 else
22298   echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301
22302 fi
22303
22304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22305       conftest$ac_exeext
22306   if test "${ac_cv_search_opendir+set}" = set; then
22307   break
22308 fi
22309 done
22310 if test "${ac_cv_search_opendir+set}" = set; then
22311   :
22312 else
22313   ac_cv_search_opendir=no
22314 fi
22315 rm conftest.$ac_ext
22316 LIBS=$ac_func_search_save_LIBS
22317 fi
22318 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22319 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22320 ac_res=$ac_cv_search_opendir
22321 if test "$ac_res" != no; then
22322   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22323
22324 fi
22325
22326 else
22327   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22328 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22329 if test "${ac_cv_search_opendir+set}" = set; then
22330   echo $ECHO_N "(cached) $ECHO_C" >&6
22331 else
22332   ac_func_search_save_LIBS=$LIBS
22333 cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h.  */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h.  */
22339
22340 /* Override any GCC internal prototype to avoid an error.
22341    Use char because int might match the return type of a GCC
22342    builtin and then its argument prototype would still apply.  */
22343 #ifdef __cplusplus
22344 extern "C"
22345 #endif
22346 char opendir ();
22347 int
22348 main ()
22349 {
22350 return opendir ();
22351   ;
22352   return 0;
22353 }
22354 _ACEOF
22355 for ac_lib in '' x; do
22356   if test -z "$ac_lib"; then
22357     ac_res="none required"
22358   else
22359     ac_res=-l$ac_lib
22360     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22361   fi
22362   rm -f conftest.$ac_objext conftest$ac_exeext
22363 if { (ac_try="$ac_link"
22364 case "(($ac_try" in
22365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366   *) ac_try_echo=$ac_try;;
22367 esac
22368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369   (eval "$ac_link") 2>conftest.er1
22370   ac_status=$?
22371   grep -v '^ *+' conftest.er1 >conftest.err
22372   rm -f conftest.er1
22373   cat conftest.err >&5
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); } && {
22376          test -z "$ac_c_werror_flag" ||
22377          test ! -s conftest.err
22378        } && test -s conftest$ac_exeext &&
22379        $as_test_x conftest$ac_exeext; then
22380   ac_cv_search_opendir=$ac_res
22381 else
22382   echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22384
22385
22386 fi
22387
22388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22389       conftest$ac_exeext
22390   if test "${ac_cv_search_opendir+set}" = set; then
22391   break
22392 fi
22393 done
22394 if test "${ac_cv_search_opendir+set}" = set; then
22395   :
22396 else
22397   ac_cv_search_opendir=no
22398 fi
22399 rm conftest.$ac_ext
22400 LIBS=$ac_func_search_save_LIBS
22401 fi
22402 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22403 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22404 ac_res=$ac_cv_search_opendir
22405 if test "$ac_res" != no; then
22406   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22407
22408 fi
22409
22410 fi
22411
22412 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22413 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22414 if test "${ac_cv_header_stdc+set}" = set; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417   cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h.  */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h.  */
22423 #include <stdlib.h>
22424 #include <stdarg.h>
22425 #include <string.h>
22426 #include <float.h>
22427
22428 int
22429 main ()
22430 {
22431
22432   ;
22433   return 0;
22434 }
22435 _ACEOF
22436 rm -f conftest.$ac_objext
22437 if { (ac_try="$ac_compile"
22438 case "(($ac_try" in
22439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22440   *) ac_try_echo=$ac_try;;
22441 esac
22442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22443   (eval "$ac_compile") 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } && {
22450          test -z "$ac_c_werror_flag" ||
22451          test ! -s conftest.err
22452        } && test -s conftest.$ac_objext; then
22453   ac_cv_header_stdc=yes
22454 else
22455   echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22457
22458         ac_cv_header_stdc=no
22459 fi
22460
22461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22462
22463 if test $ac_cv_header_stdc = yes; then
22464   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22465   cat >conftest.$ac_ext <<_ACEOF
22466 /* confdefs.h.  */
22467 _ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h.  */
22471 #include <string.h>
22472
22473 _ACEOF
22474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22475   $EGREP "memchr" >/dev/null 2>&1; then
22476   :
22477 else
22478   ac_cv_header_stdc=no
22479 fi
22480 rm -f conftest*
22481
22482 fi
22483
22484 if test $ac_cv_header_stdc = yes; then
22485   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22486   cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492 #include <stdlib.h>
22493
22494 _ACEOF
22495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22496   $EGREP "free" >/dev/null 2>&1; then
22497   :
22498 else
22499   ac_cv_header_stdc=no
22500 fi
22501 rm -f conftest*
22502
22503 fi
22504
22505 if test $ac_cv_header_stdc = yes; then
22506   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22507   if test "$cross_compiling" = yes; then
22508   :
22509 else
22510   cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h.  */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h.  */
22516 #include <ctype.h>
22517 #include <stdlib.h>
22518 #if ((' ' & 0x0FF) == 0x020)
22519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22521 #else
22522 # define ISLOWER(c) \
22523                    (('a' <= (c) && (c) <= 'i') \
22524                      || ('j' <= (c) && (c) <= 'r') \
22525                      || ('s' <= (c) && (c) <= 'z'))
22526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22527 #endif
22528
22529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22530 int
22531 main ()
22532 {
22533   int i;
22534   for (i = 0; i < 256; i++)
22535     if (XOR (islower (i), ISLOWER (i))
22536         || toupper (i) != TOUPPER (i))
22537       return 2;
22538   return 0;
22539 }
22540 _ACEOF
22541 rm -f conftest$ac_exeext
22542 if { (ac_try="$ac_link"
22543 case "(($ac_try" in
22544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545   *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548   (eval "$ac_link") 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22552   { (case "(($ac_try" in
22553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554   *) ac_try_echo=$ac_try;;
22555 esac
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557   (eval "$ac_try") 2>&5
22558   ac_status=$?
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); }; }; then
22561   :
22562 else
22563   echo "$as_me: program exited with status $ac_status" >&5
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567 ( exit $ac_status )
22568 ac_cv_header_stdc=no
22569 fi
22570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22571 fi
22572
22573
22574 fi
22575 fi
22576 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22577 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22578 if test $ac_cv_header_stdc = yes; then
22579
22580 cat >>confdefs.h <<\_ACEOF
22581 #define STDC_HEADERS 1
22582 _ACEOF
22583
22584 fi
22585
22586 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22587 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22588 if test "${ac_cv_header_time+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h.  */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h.  */
22597 #include <sys/types.h>
22598 #include <sys/time.h>
22599 #include <time.h>
22600
22601 int
22602 main ()
22603 {
22604 if ((struct tm *) 0)
22605 return 0;
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614   *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617   (eval "$ac_compile") 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } && {
22624          test -z "$ac_c_werror_flag" ||
22625          test ! -s conftest.err
22626        } && test -s conftest.$ac_objext; then
22627   ac_cv_header_time=yes
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632         ac_cv_header_time=no
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 fi
22637 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22638 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22639 if test $ac_cv_header_time = yes; then
22640
22641 cat >>confdefs.h <<\_ACEOF
22642 #define TIME_WITH_SYS_TIME 1
22643 _ACEOF
22644
22645 fi
22646
22647 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22648 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22649 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22650   echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652   cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h.  */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h.  */
22658 #include <sys/types.h>
22659 #include <sys/wait.h>
22660 #ifndef WEXITSTATUS
22661 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22662 #endif
22663 #ifndef WIFEXITED
22664 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22665 #endif
22666
22667 int
22668 main ()
22669 {
22670   int s;
22671   wait (&s);
22672   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22673   ;
22674   return 0;
22675 }
22676 _ACEOF
22677 rm -f conftest.$ac_objext
22678 if { (ac_try="$ac_compile"
22679 case "(($ac_try" in
22680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681   *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684   (eval "$ac_compile") 2>conftest.er1
22685   ac_status=$?
22686   grep -v '^ *+' conftest.er1 >conftest.err
22687   rm -f conftest.er1
22688   cat conftest.err >&5
22689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); } && {
22691          test -z "$ac_c_werror_flag" ||
22692          test ! -s conftest.err
22693        } && test -s conftest.$ac_objext; then
22694   ac_cv_header_sys_wait_h=yes
22695 else
22696   echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22698
22699         ac_cv_header_sys_wait_h=no
22700 fi
22701
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 fi
22704 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22705 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22706 if test $ac_cv_header_sys_wait_h = yes; then
22707
22708 cat >>confdefs.h <<\_ACEOF
22709 #define HAVE_SYS_WAIT_H 1
22710 _ACEOF
22711
22712 fi
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752 for ac_header in \
22753         unistd.h \
22754         crypt.h \
22755         errno.h \
22756         resource.h \
22757         sys/resource.h \
22758         getopt.h \
22759         malloc.h \
22760         utmp.h \
22761         utmpx.h \
22762         signal.h \
22763         sys/select.h \
22764         syslog.h \
22765         inttypes.h \
22766         stdint.h \
22767         stdio.h \
22768         netdb.h \
22769         semaphore.h \
22770         arpa/inet.h \
22771         netinet/in.h \
22772         sys/types.h \
22773         sys/socket.h \
22774         winsock.h \
22775         sys/time.h \
22776         sys/wait.h \
22777         sys/security.h \
22778         fcntl.h \
22779         sys/fcntl.h \
22780         sys/prctl.h \
22781         sys/un.h \
22782         glob.h \
22783         prot.h \
22784         pwd.h \
22785         grp.h \
22786         stddef.h \
22787         fnmatch.h \
22788         sia.h \
22789         siad.h
22790
22791 do
22792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22794   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22797   echo $ECHO_N "(cached) $ECHO_C" >&6
22798 fi
22799 ac_res=`eval echo '${'$as_ac_Header'}'`
22800                { echo "$as_me:$LINENO: result: $ac_res" >&5
22801 echo "${ECHO_T}$ac_res" >&6; }
22802 else
22803   # Is the header compilable?
22804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22806 cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h.  */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h.  */
22812 $ac_includes_default
22813 #include <$ac_header>
22814 _ACEOF
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819   *) ac_try_echo=$ac_try;;
22820 esac
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822   (eval "$ac_compile") 2>conftest.er1
22823   ac_status=$?
22824   grep -v '^ *+' conftest.er1 >conftest.err
22825   rm -f conftest.er1
22826   cat conftest.err >&5
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); } && {
22829          test -z "$ac_c_werror_flag" ||
22830          test ! -s conftest.err
22831        } && test -s conftest.$ac_objext; then
22832   ac_header_compiler=yes
22833 else
22834   echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837         ac_header_compiler=no
22838 fi
22839
22840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22842 echo "${ECHO_T}$ac_header_compiler" >&6; }
22843
22844 # Is the header present?
22845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22847 cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h.  */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h.  */
22853 #include <$ac_header>
22854 _ACEOF
22855 if { (ac_try="$ac_cpp conftest.$ac_ext"
22856 case "(($ac_try" in
22857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858   *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22862   ac_status=$?
22863   grep -v '^ *+' conftest.er1 >conftest.err
22864   rm -f conftest.er1
22865   cat conftest.err >&5
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } >/dev/null && {
22868          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22869          test ! -s conftest.err
22870        }; then
22871   ac_header_preproc=yes
22872 else
22873   echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876   ac_header_preproc=no
22877 fi
22878
22879 rm -f conftest.err conftest.$ac_ext
22880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22881 echo "${ECHO_T}$ac_header_preproc" >&6; }
22882
22883 # So?  What about this header?
22884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22885   yes:no: )
22886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22890     ac_header_preproc=yes
22891     ;;
22892   no:yes:* )
22893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22905
22906     ;;
22907 esac
22908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22911   echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913   eval "$as_ac_Header=\$ac_header_preproc"
22914 fi
22915 ac_res=`eval echo '${'$as_ac_Header'}'`
22916                { echo "$as_me:$LINENO: result: $ac_res" >&5
22917 echo "${ECHO_T}$ac_res" >&6; }
22918
22919 fi
22920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22921   cat >>confdefs.h <<_ACEOF
22922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22923 _ACEOF
22924
22925 fi
22926
22927 done
22928
22929
22930
22931 for ac_header in net/if.h
22932 do
22933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22937   echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939   cat >conftest.$ac_ext <<_ACEOF
22940 /* confdefs.h.  */
22941 _ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h.  */
22945 #ifdef HAVE_SYS_SOCKET_H
22946 # include <sys/socket.h>
22947 # endif
22948
22949
22950 #include <$ac_header>
22951 _ACEOF
22952 rm -f conftest.$ac_objext
22953 if { (ac_try="$ac_compile"
22954 case "(($ac_try" in
22955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956   *) ac_try_echo=$ac_try;;
22957 esac
22958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959   (eval "$ac_compile") 2>conftest.er1
22960   ac_status=$?
22961   grep -v '^ *+' conftest.er1 >conftest.err
22962   rm -f conftest.er1
22963   cat conftest.err >&5
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); } && {
22966          test -z "$ac_c_werror_flag" ||
22967          test ! -s conftest.err
22968        } && test -s conftest.$ac_objext; then
22969   eval "$as_ac_Header=yes"
22970 else
22971   echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22973
22974         eval "$as_ac_Header=no"
22975 fi
22976
22977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978 fi
22979 ac_res=`eval echo '${'$as_ac_Header'}'`
22980                { echo "$as_me:$LINENO: result: $ac_res" >&5
22981 echo "${ECHO_T}$ac_res" >&6; }
22982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22983   cat >>confdefs.h <<_ACEOF
22984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22985 _ACEOF
22986
22987 fi
22988
22989 done
22990
22991
22992 REGEX=no
22993 if test "${ac_cv_header_regex_h+set}" = set; then
22994   { echo "$as_me:$LINENO: checking for regex.h" >&5
22995 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22996 if test "${ac_cv_header_regex_h+set}" = set; then
22997   echo $ECHO_N "(cached) $ECHO_C" >&6
22998 fi
22999 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23000 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23001 else
23002   # Is the header compilable?
23003 { echo "$as_me:$LINENO: checking regex.h usability" >&5
23004 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
23005 cat >conftest.$ac_ext <<_ACEOF
23006 /* confdefs.h.  */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h.  */
23011 $ac_includes_default
23012 #include <regex.h>
23013 _ACEOF
23014 rm -f conftest.$ac_objext
23015 if { (ac_try="$ac_compile"
23016 case "(($ac_try" in
23017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018   *) ac_try_echo=$ac_try;;
23019 esac
23020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23021   (eval "$ac_compile") 2>conftest.er1
23022   ac_status=$?
23023   grep -v '^ *+' conftest.er1 >conftest.err
23024   rm -f conftest.er1
23025   cat conftest.err >&5
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); } && {
23028          test -z "$ac_c_werror_flag" ||
23029          test ! -s conftest.err
23030        } && test -s conftest.$ac_objext; then
23031   ac_header_compiler=yes
23032 else
23033   echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23035
23036         ac_header_compiler=no
23037 fi
23038
23039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23041 echo "${ECHO_T}$ac_header_compiler" >&6; }
23042
23043 # Is the header present?
23044 { echo "$as_me:$LINENO: checking regex.h presence" >&5
23045 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
23046 cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052 #include <regex.h>
23053 _ACEOF
23054 if { (ac_try="$ac_cpp conftest.$ac_ext"
23055 case "(($ac_try" in
23056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057   *) ac_try_echo=$ac_try;;
23058 esac
23059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23061   ac_status=$?
23062   grep -v '^ *+' conftest.er1 >conftest.err
23063   rm -f conftest.er1
23064   cat conftest.err >&5
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); } >/dev/null && {
23067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23068          test ! -s conftest.err
23069        }; then
23070   ac_header_preproc=yes
23071 else
23072   echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075   ac_header_preproc=no
23076 fi
23077
23078 rm -f conftest.err conftest.$ac_ext
23079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23080 echo "${ECHO_T}$ac_header_preproc" >&6; }
23081
23082 # So?  What about this header?
23083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23084   yes:no: )
23085     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23086 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23087     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23088 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23089     ac_header_preproc=yes
23090     ;;
23091   no:yes:* )
23092     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23093 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23094     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
23095 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
23096     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23097 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23098     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
23099 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23100     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23101 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23102     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23103 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23104
23105     ;;
23106 esac
23107 { echo "$as_me:$LINENO: checking for regex.h" >&5
23108 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23109 if test "${ac_cv_header_regex_h+set}" = set; then
23110   echo $ECHO_N "(cached) $ECHO_C" >&6
23111 else
23112   ac_cv_header_regex_h=$ac_header_preproc
23113 fi
23114 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23115 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23116
23117 fi
23118 if test $ac_cv_header_regex_h = yes; then
23119
23120 cat >>confdefs.h <<\_ACEOF
23121 #define HAVE_REGEX_H
23122 _ACEOF
23123
23124 fi
23125
23126
23127 if test "x$ac_cv_header_regex_h" = "xyes"; then
23128   REGEX_EXTENDED=no
23129   REGEX=yes
23130   cat >conftest.$ac_ext <<_ACEOF
23131 /* confdefs.h.  */
23132 _ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h.  */
23136 #include <regex.h>
23137      #ifdef REG_EXTENDED
23138        yes
23139      #endif
23140
23141 _ACEOF
23142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23143   $EGREP "yes" >/dev/null 2>&1; then
23144
23145 cat >>confdefs.h <<\_ACEOF
23146 #define HAVE_REG_EXTENDED
23147 _ACEOF
23148  REGEX_EXTENDED=yes
23149 fi
23150 rm -f conftest*
23151
23152 fi
23153
23154
23155
23156 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23157 then
23158
23159 cat >>confdefs.h <<\_ACEOF
23160 #define OSFC2
23161 _ACEOF
23162
23163 fi
23164
23165 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23166 then
23167
23168 cat >>confdefs.h <<\_ACEOF
23169 #define OSFSIA
23170 _ACEOF
23171
23172 fi
23173
23174 OPENSSL_INCLUDE="-DNO_OPENSSL"
23175 if test "x$WITH_OPENSSL" = xyes; then
23176   if test "x$OPENSSL_LIBS" = "x"; then
23177     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23178 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23179   else
23180     old_CPPFLAGS=$CPPFLAGS
23181     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23182         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23183     fi
23184         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23185
23186
23187
23188
23189
23190
23191 for ac_header in \
23192         openssl/ssl.h \
23193         openssl/crypto.h \
23194         openssl/err.h \
23195         openssl/evp.h \
23196         openssl/ocsp.h \
23197         openssl/engine.h
23198 do
23199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23201   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23204   echo $ECHO_N "(cached) $ECHO_C" >&6
23205 fi
23206 ac_res=`eval echo '${'$as_ac_Header'}'`
23207                { echo "$as_me:$LINENO: result: $ac_res" >&5
23208 echo "${ECHO_T}$ac_res" >&6; }
23209 else
23210   # Is the header compilable?
23211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23213 cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h.  */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h.  */
23219 $ac_includes_default
23220 #include <$ac_header>
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226   *) ac_try_echo=$ac_try;;
23227 esac
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229   (eval "$ac_compile") 2>conftest.er1
23230   ac_status=$?
23231   grep -v '^ *+' conftest.er1 >conftest.err
23232   rm -f conftest.er1
23233   cat conftest.err >&5
23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); } && {
23236          test -z "$ac_c_werror_flag" ||
23237          test ! -s conftest.err
23238        } && test -s conftest.$ac_objext; then
23239   ac_header_compiler=yes
23240 else
23241   echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244         ac_header_compiler=no
23245 fi
23246
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23249 echo "${ECHO_T}$ac_header_compiler" >&6; }
23250
23251 # Is the header present?
23252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23254 cat >conftest.$ac_ext <<_ACEOF
23255 /* confdefs.h.  */
23256 _ACEOF
23257 cat confdefs.h >>conftest.$ac_ext
23258 cat >>conftest.$ac_ext <<_ACEOF
23259 /* end confdefs.h.  */
23260 #include <$ac_header>
23261 _ACEOF
23262 if { (ac_try="$ac_cpp conftest.$ac_ext"
23263 case "(($ac_try" in
23264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265   *) ac_try_echo=$ac_try;;
23266 esac
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23269   ac_status=$?
23270   grep -v '^ *+' conftest.er1 >conftest.err
23271   rm -f conftest.er1
23272   cat conftest.err >&5
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); } >/dev/null && {
23275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23276          test ! -s conftest.err
23277        }; then
23278   ac_header_preproc=yes
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283   ac_header_preproc=no
23284 fi
23285
23286 rm -f conftest.err conftest.$ac_ext
23287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23288 echo "${ECHO_T}$ac_header_preproc" >&6; }
23289
23290 # So?  What about this header?
23291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23292   yes:no: )
23293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23297     ac_header_preproc=yes
23298     ;;
23299   no:yes:* )
23300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23312
23313     ;;
23314 esac
23315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23318   echo $ECHO_N "(cached) $ECHO_C" >&6
23319 else
23320   eval "$as_ac_Header=\$ac_header_preproc"
23321 fi
23322 ac_res=`eval echo '${'$as_ac_Header'}'`
23323                { echo "$as_me:$LINENO: result: $ac_res" >&5
23324 echo "${ECHO_T}$ac_res" >&6; }
23325
23326 fi
23327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23328   cat >>confdefs.h <<_ACEOF
23329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23330 _ACEOF
23331
23332 else
23333   OPENSSL_LIBS=
23334
23335 fi
23336
23337 done
23338
23339     if test "x$OPENSSL_LIBS" != "x"; then
23340         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23341 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23342         cat >conftest.$ac_ext <<_ACEOF
23343 /* confdefs.h.  */
23344 _ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h.  */
23348 #include <openssl/crypto.h>
23349              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23350              yes
23351              #endif
23352
23353 _ACEOF
23354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23355   $EGREP "yes" >/dev/null 2>&1; then
23356   goodssl="yes"
23357 fi
23358 rm -f conftest*
23359
23360         if test "x$goodssl" != "xyes"; then
23361             { echo "$as_me:$LINENO: result: no" >&5
23362 echo "${ECHO_T}no" >&6; }
23363             OPENSSL_LIBS=
23364         else
23365             { echo "$as_me:$LINENO: result: yes" >&5
23366 echo "${ECHO_T}yes" >&6; }
23367             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23368                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23369             else
23370                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23371             fi
23372         fi
23373     fi
23374     CPPFLAGS=$old_CPPFLAGS
23375   fi
23376 fi
23377
23378
23379 export OPENSSL_LIBS
23380
23381 if test "x$PCAP_LIBS" = x; then
23382     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23383 echo "$as_me: skipping test for pcap.h." >&6;}
23384 else
23385     if test "${ac_cv_header_pcap_h+set}" = set; then
23386   { echo "$as_me:$LINENO: checking for pcap.h" >&5
23387 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23388 if test "${ac_cv_header_pcap_h+set}" = set; then
23389   echo $ECHO_N "(cached) $ECHO_C" >&6
23390 fi
23391 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23392 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23393 else
23394   # Is the header compilable?
23395 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23396 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h.  */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h.  */
23403 $ac_includes_default
23404 #include <pcap.h>
23405 _ACEOF
23406 rm -f conftest.$ac_objext
23407 if { (ac_try="$ac_compile"
23408 case "(($ac_try" in
23409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410   *) ac_try_echo=$ac_try;;
23411 esac
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413   (eval "$ac_compile") 2>conftest.er1
23414   ac_status=$?
23415   grep -v '^ *+' conftest.er1 >conftest.err
23416   rm -f conftest.er1
23417   cat conftest.err >&5
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } && {
23420          test -z "$ac_c_werror_flag" ||
23421          test ! -s conftest.err
23422        } && test -s conftest.$ac_objext; then
23423   ac_header_compiler=yes
23424 else
23425   echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23427
23428         ac_header_compiler=no
23429 fi
23430
23431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23433 echo "${ECHO_T}$ac_header_compiler" >&6; }
23434
23435 # Is the header present?
23436 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23437 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23438 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h.  */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h.  */
23444 #include <pcap.h>
23445 _ACEOF
23446 if { (ac_try="$ac_cpp conftest.$ac_ext"
23447 case "(($ac_try" in
23448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449   *) ac_try_echo=$ac_try;;
23450 esac
23451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23453   ac_status=$?
23454   grep -v '^ *+' conftest.er1 >conftest.err
23455   rm -f conftest.er1
23456   cat conftest.err >&5
23457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458   (exit $ac_status); } >/dev/null && {
23459          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23460          test ! -s conftest.err
23461        }; then
23462   ac_header_preproc=yes
23463 else
23464   echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23466
23467   ac_header_preproc=no
23468 fi
23469
23470 rm -f conftest.err conftest.$ac_ext
23471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23472 echo "${ECHO_T}$ac_header_preproc" >&6; }
23473
23474 # So?  What about this header?
23475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23476   yes:no: )
23477     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23478 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23479     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23480 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23481     ac_header_preproc=yes
23482     ;;
23483   no:yes:* )
23484     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23485 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23486     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
23487 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
23488     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23489 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23490     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
23491 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23492     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23493 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23494     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23495 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23496
23497     ;;
23498 esac
23499 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23500 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23501 if test "${ac_cv_header_pcap_h+set}" = set; then
23502   echo $ECHO_N "(cached) $ECHO_C" >&6
23503 else
23504   ac_cv_header_pcap_h=$ac_header_preproc
23505 fi
23506 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23507 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23508
23509 fi
23510 if test $ac_cv_header_pcap_h = yes; then
23511
23512 cat >>confdefs.h <<\_ACEOF
23513 #define HAVE_PCAP_H 1
23514 _ACEOF
23515
23516 else
23517    PCAP_LIBS=
23518         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23519 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23520
23521 fi
23522
23523
23524
23525     { echo "$as_me:$LINENO: checking for pcap_fopen_offline in -lpcap" >&5
23526 echo $ECHO_N "checking for pcap_fopen_offline in -lpcap... $ECHO_C" >&6; }
23527 if test "${ac_cv_lib_pcap_pcap_fopen_offline+set}" = set; then
23528   echo $ECHO_N "(cached) $ECHO_C" >&6
23529 else
23530   ac_check_lib_save_LIBS=$LIBS
23531 LIBS="-lpcap  $LIBS"
23532 cat >conftest.$ac_ext <<_ACEOF
23533 /* confdefs.h.  */
23534 _ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h.  */
23538
23539 /* Override any GCC internal prototype to avoid an error.
23540    Use char because int might match the return type of a GCC
23541    builtin and then its argument prototype would still apply.  */
23542 #ifdef __cplusplus
23543 extern "C"
23544 #endif
23545 char pcap_fopen_offline ();
23546 int
23547 main ()
23548 {
23549 return pcap_fopen_offline ();
23550   ;
23551   return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (ac_try="$ac_link"
23556 case "(($ac_try" in
23557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558   *) ac_try_echo=$ac_try;;
23559 esac
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561   (eval "$ac_link") 2>conftest.er1
23562   ac_status=$?
23563   grep -v '^ *+' conftest.er1 >conftest.err
23564   rm -f conftest.er1
23565   cat conftest.err >&5
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); } && {
23568          test -z "$ac_c_werror_flag" ||
23569          test ! -s conftest.err
23570        } && test -s conftest$ac_exeext &&
23571        $as_test_x conftest$ac_exeext; then
23572   ac_cv_lib_pcap_pcap_fopen_offline=yes
23573 else
23574   echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577         ac_cv_lib_pcap_pcap_fopen_offline=no
23578 fi
23579
23580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23581       conftest$ac_exeext conftest.$ac_ext
23582 LIBS=$ac_check_lib_save_LIBS
23583 fi
23584 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
23585 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
23586 if test $ac_cv_lib_pcap_pcap_fopen_offline = yes; then
23587
23588 cat >>confdefs.h <<\_ACEOF
23589 #define HAVE_PCAP_FOPEN_OFFLINE 1
23590 _ACEOF
23591
23592
23593 fi
23594
23595     { echo "$as_me:$LINENO: checking for pcap_dump_fopen in -lpcap" >&5
23596 echo $ECHO_N "checking for pcap_dump_fopen in -lpcap... $ECHO_C" >&6; }
23597 if test "${ac_cv_lib_pcap_pcap_dump_fopen+set}" = set; then
23598   echo $ECHO_N "(cached) $ECHO_C" >&6
23599 else
23600   ac_check_lib_save_LIBS=$LIBS
23601 LIBS="-lpcap  $LIBS"
23602 cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h.  */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h.  */
23608
23609 /* Override any GCC internal prototype to avoid an error.
23610    Use char because int might match the return type of a GCC
23611    builtin and then its argument prototype would still apply.  */
23612 #ifdef __cplusplus
23613 extern "C"
23614 #endif
23615 char pcap_dump_fopen ();
23616 int
23617 main ()
23618 {
23619 return pcap_dump_fopen ();
23620   ;
23621   return 0;
23622 }
23623 _ACEOF
23624 rm -f conftest.$ac_objext conftest$ac_exeext
23625 if { (ac_try="$ac_link"
23626 case "(($ac_try" in
23627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628   *) ac_try_echo=$ac_try;;
23629 esac
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631   (eval "$ac_link") 2>conftest.er1
23632   ac_status=$?
23633   grep -v '^ *+' conftest.er1 >conftest.err
23634   rm -f conftest.er1
23635   cat conftest.err >&5
23636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637   (exit $ac_status); } && {
23638          test -z "$ac_c_werror_flag" ||
23639          test ! -s conftest.err
23640        } && test -s conftest$ac_exeext &&
23641        $as_test_x conftest$ac_exeext; then
23642   ac_cv_lib_pcap_pcap_dump_fopen=yes
23643 else
23644   echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23646
23647         ac_cv_lib_pcap_pcap_dump_fopen=no
23648 fi
23649
23650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23651       conftest$ac_exeext conftest.$ac_ext
23652 LIBS=$ac_check_lib_save_LIBS
23653 fi
23654 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
23655 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
23656 if test $ac_cv_lib_pcap_pcap_dump_fopen = yes; then
23657
23658 cat >>confdefs.h <<\_ACEOF
23659 #define HAVE_PCAP_DUMP_FOPEN 1
23660 _ACEOF
23661
23662
23663 fi
23664
23665 fi
23666
23667
23668
23669 { echo "$as_me:$LINENO: checking for off_t" >&5
23670 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23671 if test "${ac_cv_type_off_t+set}" = set; then
23672   echo $ECHO_N "(cached) $ECHO_C" >&6
23673 else
23674   cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h.  */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h.  */
23680 $ac_includes_default
23681 typedef off_t ac__type_new_;
23682 int
23683 main ()
23684 {
23685 if ((ac__type_new_ *) 0)
23686   return 0;
23687 if (sizeof (ac__type_new_))
23688   return 0;
23689   ;
23690   return 0;
23691 }
23692 _ACEOF
23693 rm -f conftest.$ac_objext
23694 if { (ac_try="$ac_compile"
23695 case "(($ac_try" in
23696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697   *) ac_try_echo=$ac_try;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700   (eval "$ac_compile") 2>conftest.er1
23701   ac_status=$?
23702   grep -v '^ *+' conftest.er1 >conftest.err
23703   rm -f conftest.er1
23704   cat conftest.err >&5
23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706   (exit $ac_status); } && {
23707          test -z "$ac_c_werror_flag" ||
23708          test ! -s conftest.err
23709        } && test -s conftest.$ac_objext; then
23710   ac_cv_type_off_t=yes
23711 else
23712   echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23714
23715         ac_cv_type_off_t=no
23716 fi
23717
23718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23719 fi
23720 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23721 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23722 if test $ac_cv_type_off_t = yes; then
23723   :
23724 else
23725
23726 cat >>confdefs.h <<_ACEOF
23727 #define off_t long int
23728 _ACEOF
23729
23730 fi
23731
23732 { echo "$as_me:$LINENO: checking for pid_t" >&5
23733 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23734 if test "${ac_cv_type_pid_t+set}" = set; then
23735   echo $ECHO_N "(cached) $ECHO_C" >&6
23736 else
23737   cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h.  */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h.  */
23743 $ac_includes_default
23744 typedef pid_t ac__type_new_;
23745 int
23746 main ()
23747 {
23748 if ((ac__type_new_ *) 0)
23749   return 0;
23750 if (sizeof (ac__type_new_))
23751   return 0;
23752   ;
23753   return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext
23757 if { (ac_try="$ac_compile"
23758 case "(($ac_try" in
23759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760   *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763   (eval "$ac_compile") 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } && {
23770          test -z "$ac_c_werror_flag" ||
23771          test ! -s conftest.err
23772        } && test -s conftest.$ac_objext; then
23773   ac_cv_type_pid_t=yes
23774 else
23775   echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23777
23778         ac_cv_type_pid_t=no
23779 fi
23780
23781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782 fi
23783 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23784 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23785 if test $ac_cv_type_pid_t = yes; then
23786   :
23787 else
23788
23789 cat >>confdefs.h <<_ACEOF
23790 #define pid_t int
23791 _ACEOF
23792
23793 fi
23794
23795 { echo "$as_me:$LINENO: checking for size_t" >&5
23796 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23797 if test "${ac_cv_type_size_t+set}" = set; then
23798   echo $ECHO_N "(cached) $ECHO_C" >&6
23799 else
23800   cat >conftest.$ac_ext <<_ACEOF
23801 /* confdefs.h.  */
23802 _ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h.  */
23806 $ac_includes_default
23807 typedef size_t ac__type_new_;
23808 int
23809 main ()
23810 {
23811 if ((ac__type_new_ *) 0)
23812   return 0;
23813 if (sizeof (ac__type_new_))
23814   return 0;
23815   ;
23816   return 0;
23817 }
23818 _ACEOF
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826   (eval "$ac_compile") 2>conftest.er1
23827   ac_status=$?
23828   grep -v '^ *+' conftest.er1 >conftest.err
23829   rm -f conftest.er1
23830   cat conftest.err >&5
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); } && {
23833          test -z "$ac_c_werror_flag" ||
23834          test ! -s conftest.err
23835        } && test -s conftest.$ac_objext; then
23836   ac_cv_type_size_t=yes
23837 else
23838   echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841         ac_cv_type_size_t=no
23842 fi
23843
23844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23845 fi
23846 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23847 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23848 if test $ac_cv_type_size_t = yes; then
23849   :
23850 else
23851
23852 cat >>confdefs.h <<_ACEOF
23853 #define size_t unsigned int
23854 _ACEOF
23855
23856 fi
23857
23858 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23859 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23860 if test "${ac_cv_type_uid_t+set}" = set; then
23861   echo $ECHO_N "(cached) $ECHO_C" >&6
23862 else
23863   cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h.  */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h.  */
23869 #include <sys/types.h>
23870
23871 _ACEOF
23872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23873   $EGREP "uid_t" >/dev/null 2>&1; then
23874   ac_cv_type_uid_t=yes
23875 else
23876   ac_cv_type_uid_t=no
23877 fi
23878 rm -f conftest*
23879
23880 fi
23881 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23882 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23883 if test $ac_cv_type_uid_t = no; then
23884
23885 cat >>confdefs.h <<\_ACEOF
23886 #define uid_t int
23887 _ACEOF
23888
23889
23890 cat >>confdefs.h <<\_ACEOF
23891 #define gid_t int
23892 _ACEOF
23893
23894 fi
23895
23896
23897
23898   { echo "$as_me:$LINENO: checking for socklen_t" >&5
23899 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23900 if test "${ac_cv_type_socklen_t+set}" = set; then
23901   echo $ECHO_N "(cached) $ECHO_C" >&6
23902 else
23903    ac_cv_type_socklen_t=no
23904       cat >conftest.$ac_ext <<_ACEOF
23905 /* confdefs.h.  */
23906 _ACEOF
23907 cat confdefs.h >>conftest.$ac_ext
23908 cat >>conftest.$ac_ext <<_ACEOF
23909 /* end confdefs.h.  */
23910 #ifdef HAVE_SYS_TYPES_H
23911 #include <sys/types.h>
23912 #endif
23913 #ifdef HAVE_SYS_SOCKET_H
23914 #include <sys/socket.h>
23915 #endif
23916
23917 int
23918 main ()
23919 {
23920 socklen_t foo
23921   ;
23922   return 0;
23923 }
23924 _ACEOF
23925 rm -f conftest.$ac_objext
23926 if { (ac_try="$ac_compile"
23927 case "(($ac_try" in
23928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929   *) ac_try_echo=$ac_try;;
23930 esac
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932   (eval "$ac_compile") 2>conftest.er1
23933   ac_status=$?
23934   grep -v '^ *+' conftest.er1 >conftest.err
23935   rm -f conftest.er1
23936   cat conftest.err >&5
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } && {
23939          test -z "$ac_c_werror_flag" ||
23940          test ! -s conftest.err
23941        } && test -s conftest.$ac_objext; then
23942   ac_cv_type_socklen_t=yes
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947
23948 fi
23949
23950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951
23952
23953 fi
23954 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23955 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23956
23957   if test "$ac_cv_type_socklen_t" != "yes"; then
23958
23959 cat >>confdefs.h <<\_ACEOF
23960 #define socklen_t int
23961 _ACEOF
23962
23963   fi
23964
23965
23966
23967   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23968 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23969 if test "${ac_cv_type_uint8_t+set}" = set; then
23970   echo $ECHO_N "(cached) $ECHO_C" >&6
23971 else
23972    ac_cv_type_uint8_t=no
23973       cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h.  */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h.  */
23979 #ifdef HAVE_INTTYPES_H
23980 #include <inttypes.h>
23981 #endif
23982 #ifdef HAVE_STDINT_H
23983 #include <stdint.h>
23984 #endif
23985
23986 int
23987 main ()
23988 {
23989 uint8_t foo
23990   ;
23991   return 0;
23992 }
23993 _ACEOF
23994 rm -f conftest.$ac_objext
23995 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
24011   ac_cv_type_uint8_t=yes
24012 else
24013   echo "$as_me: failed program was:" >&5
24014 sed 's/^/| /' conftest.$ac_ext >&5
24015
24016
24017 fi
24018
24019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24020
24021
24022 fi
24023 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
24024 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
24025
24026   if test "$ac_cv_type_uint8_t" != "yes"; then
24027
24028 cat >>confdefs.h <<\_ACEOF
24029 #define uint8_t unsigned char
24030 _ACEOF
24031
24032   fi
24033
24034
24035
24036   { echo "$as_me:$LINENO: checking for uint16_t" >&5
24037 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
24038 if test "${ac_cv_type_uint16_t+set}" = set; then
24039   echo $ECHO_N "(cached) $ECHO_C" >&6
24040 else
24041    ac_cv_type_uint16_t=no
24042       cat >conftest.$ac_ext <<_ACEOF
24043 /* confdefs.h.  */
24044 _ACEOF
24045 cat confdefs.h >>conftest.$ac_ext
24046 cat >>conftest.$ac_ext <<_ACEOF
24047 /* end confdefs.h.  */
24048 #ifdef HAVE_INTTYPES_H
24049 #include <inttypes.h>
24050 #endif
24051 #ifdef HAVE_STDINT_H
24052 #include <stdint.h>
24053 #endif
24054
24055 int
24056 main ()
24057 {
24058 uint16_t foo
24059   ;
24060   return 0;
24061 }
24062 _ACEOF
24063 rm -f conftest.$ac_objext
24064 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
24080   ac_cv_type_uint16_t=yes
24081 else
24082   echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24084
24085
24086 fi
24087
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24089
24090
24091 fi
24092 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24093 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
24094
24095   if test "$ac_cv_type_uint16_t" != "yes"; then
24096
24097 cat >>confdefs.h <<\_ACEOF
24098 #define uint16_t unsigned short
24099 _ACEOF
24100
24101   fi
24102
24103
24104
24105   { echo "$as_me:$LINENO: checking for uint32_t" >&5
24106 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
24107 if test "${ac_cv_type_uint32_t+set}" = set; then
24108   echo $ECHO_N "(cached) $ECHO_C" >&6
24109 else
24110    ac_cv_type_uint32_t=no
24111       cat >conftest.$ac_ext <<_ACEOF
24112 /* confdefs.h.  */
24113 _ACEOF
24114 cat confdefs.h >>conftest.$ac_ext
24115 cat >>conftest.$ac_ext <<_ACEOF
24116 /* end confdefs.h.  */
24117 #ifdef HAVE_INTTYPES_H
24118 #include <inttypes.h>
24119 #endif
24120 #ifdef HAVE_STDINT_H
24121 #include <stdint.h>
24122 #endif
24123
24124 int
24125 main ()
24126 {
24127 uint32_t foo
24128   ;
24129   return 0;
24130 }
24131 _ACEOF
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136   *) ac_try_echo=$ac_try;;
24137 esac
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139   (eval "$ac_compile") 2>conftest.er1
24140   ac_status=$?
24141   grep -v '^ *+' conftest.er1 >conftest.err
24142   rm -f conftest.er1
24143   cat conftest.err >&5
24144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145   (exit $ac_status); } && {
24146          test -z "$ac_c_werror_flag" ||
24147          test ! -s conftest.err
24148        } && test -s conftest.$ac_objext; then
24149   ac_cv_type_uint32_t=yes
24150 else
24151   echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24153
24154
24155 fi
24156
24157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24158
24159
24160 fi
24161 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24162 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24163
24164   if test "$ac_cv_type_uint32_t" != "yes"; then
24165
24166 cat >>confdefs.h <<\_ACEOF
24167 #define uint32_t unsigned int
24168 _ACEOF
24169
24170   fi
24171
24172
24173 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24174 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24175 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24176   echo $ECHO_N "(cached) $ECHO_C" >&6
24177 else
24178   cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h.  */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h.  */
24184
24185 #ifdef HAVE_NETINET_IN_H
24186 #include <netinet/in.h>
24187 #endif
24188
24189
24190 typedef struct in6_addr ac__type_new_;
24191 int
24192 main ()
24193 {
24194 if ((ac__type_new_ *) 0)
24195   return 0;
24196 if (sizeof (ac__type_new_))
24197   return 0;
24198   ;
24199   return 0;
24200 }
24201 _ACEOF
24202 rm -f conftest.$ac_objext
24203 if { (ac_try="$ac_compile"
24204 case "(($ac_try" in
24205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24206   *) ac_try_echo=$ac_try;;
24207 esac
24208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24209   (eval "$ac_compile") 2>conftest.er1
24210   ac_status=$?
24211   grep -v '^ *+' conftest.er1 >conftest.err
24212   rm -f conftest.er1
24213   cat conftest.err >&5
24214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215   (exit $ac_status); } && {
24216          test -z "$ac_c_werror_flag" ||
24217          test ! -s conftest.err
24218        } && test -s conftest.$ac_objext; then
24219   ac_cv_type_struct_in6_addr=yes
24220 else
24221   echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24223
24224         ac_cv_type_struct_in6_addr=no
24225 fi
24226
24227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228 fi
24229 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24230 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24231 if test $ac_cv_type_struct_in6_addr = yes; then
24232
24233 cat >>confdefs.h <<\_ACEOF
24234 #define HAVE_STRUCT_IN6_ADDR 1
24235 _ACEOF
24236
24237 fi
24238
24239
24240 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24241 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24242 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24243   echo $ECHO_N "(cached) $ECHO_C" >&6
24244 else
24245   cat >conftest.$ac_ext <<_ACEOF
24246 /* confdefs.h.  */
24247 _ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h.  */
24251
24252 #ifdef HAVE_NETINET_IN_H
24253 #include <netinet/in.h>
24254 #endif
24255 #ifdef HAVE_SYS_SOCKET_H
24256 #include <sys/socket.h>
24257 #endif
24258
24259
24260 typedef struct sockaddr_storage ac__type_new_;
24261 int
24262 main ()
24263 {
24264 if ((ac__type_new_ *) 0)
24265   return 0;
24266 if (sizeof (ac__type_new_))
24267   return 0;
24268   ;
24269   return 0;
24270 }
24271 _ACEOF
24272 rm -f conftest.$ac_objext
24273 if { (ac_try="$ac_compile"
24274 case "(($ac_try" in
24275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24276   *) ac_try_echo=$ac_try;;
24277 esac
24278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24279   (eval "$ac_compile") 2>conftest.er1
24280   ac_status=$?
24281   grep -v '^ *+' conftest.er1 >conftest.err
24282   rm -f conftest.er1
24283   cat conftest.err >&5
24284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285   (exit $ac_status); } && {
24286          test -z "$ac_c_werror_flag" ||
24287          test ! -s conftest.err
24288        } && test -s conftest.$ac_objext; then
24289   ac_cv_type_struct_sockaddr_storage=yes
24290 else
24291   echo "$as_me: failed program was:" >&5
24292 sed 's/^/| /' conftest.$ac_ext >&5
24293
24294         ac_cv_type_struct_sockaddr_storage=no
24295 fi
24296
24297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298 fi
24299 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24300 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24301 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24302
24303 cat >>confdefs.h <<\_ACEOF
24304 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24305 _ACEOF
24306
24307 fi
24308
24309
24310 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24311 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24312 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24313   echo $ECHO_N "(cached) $ECHO_C" >&6
24314 else
24315   cat >conftest.$ac_ext <<_ACEOF
24316 /* confdefs.h.  */
24317 _ACEOF
24318 cat confdefs.h >>conftest.$ac_ext
24319 cat >>conftest.$ac_ext <<_ACEOF
24320 /* end confdefs.h.  */
24321
24322 #ifdef HAVE_NETINET_IN_H
24323 #include <netinet/in.h>
24324 #endif
24325
24326
24327 typedef struct sockaddr_in6 ac__type_new_;
24328 int
24329 main ()
24330 {
24331 if ((ac__type_new_ *) 0)
24332   return 0;
24333 if (sizeof (ac__type_new_))
24334   return 0;
24335   ;
24336   return 0;
24337 }
24338 _ACEOF
24339 rm -f conftest.$ac_objext
24340 if { (ac_try="$ac_compile"
24341 case "(($ac_try" in
24342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343   *) ac_try_echo=$ac_try;;
24344 esac
24345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346   (eval "$ac_compile") 2>conftest.er1
24347   ac_status=$?
24348   grep -v '^ *+' conftest.er1 >conftest.err
24349   rm -f conftest.er1
24350   cat conftest.err >&5
24351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); } && {
24353          test -z "$ac_c_werror_flag" ||
24354          test ! -s conftest.err
24355        } && test -s conftest.$ac_objext; then
24356   ac_cv_type_struct_sockaddr_in6=yes
24357 else
24358   echo "$as_me: failed program was:" >&5
24359 sed 's/^/| /' conftest.$ac_ext >&5
24360
24361         ac_cv_type_struct_sockaddr_in6=no
24362 fi
24363
24364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24365 fi
24366 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24367 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24368 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24369
24370 cat >>confdefs.h <<\_ACEOF
24371 #define HAVE_STRUCT_SOCKADDR_IN6 1
24372 _ACEOF
24373
24374 fi
24375
24376
24377 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24378 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24379 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24380   echo $ECHO_N "(cached) $ECHO_C" >&6
24381 else
24382   cat >conftest.$ac_ext <<_ACEOF
24383 /* confdefs.h.  */
24384 _ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h.  */
24388
24389 #ifdef HAVE_SYS_TYPES_H
24390 #include <sys/types.h>
24391 #endif
24392 #ifdef HAVE_SYS_SOCKET_H
24393 #include <sys/socket.h>
24394 #endif
24395 #ifdef HAVE_NETDB_H
24396 #include <netdb.h>
24397 #endif
24398
24399
24400 typedef struct addrinfo ac__type_new_;
24401 int
24402 main ()
24403 {
24404 if ((ac__type_new_ *) 0)
24405   return 0;
24406 if (sizeof (ac__type_new_))
24407   return 0;
24408   ;
24409   return 0;
24410 }
24411 _ACEOF
24412 rm -f conftest.$ac_objext
24413 if { (ac_try="$ac_compile"
24414 case "(($ac_try" in
24415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416   *) ac_try_echo=$ac_try;;
24417 esac
24418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24419   (eval "$ac_compile") 2>conftest.er1
24420   ac_status=$?
24421   grep -v '^ *+' conftest.er1 >conftest.err
24422   rm -f conftest.er1
24423   cat conftest.err >&5
24424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425   (exit $ac_status); } && {
24426          test -z "$ac_c_werror_flag" ||
24427          test ! -s conftest.err
24428        } && test -s conftest.$ac_objext; then
24429   ac_cv_type_struct_addrinfo=yes
24430 else
24431   echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24433
24434         ac_cv_type_struct_addrinfo=no
24435 fi
24436
24437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24438 fi
24439 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24440 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24441 if test $ac_cv_type_struct_addrinfo = yes; then
24442
24443 cat >>confdefs.h <<\_ACEOF
24444 #define HAVE_STRUCT_ADDRINFO 1
24445 _ACEOF
24446
24447 fi
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482 for ac_func in \
24483         getopt_long \
24484         lockf \
24485         strsignal \
24486         sigaction \
24487         sigprocmask \
24488         pthread_sigmask \
24489         snprintf \
24490         vsnprintf \
24491         setsid \
24492         strncasecmp \
24493         strcasecmp \
24494         localtime_r \
24495         ctime_r \
24496         gmtime_r \
24497         strsep \
24498         inet_aton \
24499         inet_pton \
24500         inet_ntop \
24501         setlinebuf \
24502         setvbuf \
24503         getusershell \
24504         initgroups \
24505         getaddrinfo \
24506         getnameinfo \
24507         closefrom \
24508         gettimeofday \
24509         getpeereid \
24510         setuid \
24511         setresuid \
24512         getresuid \
24513         strlcat \
24514         strlcpy
24515
24516 do
24517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24521   echo $ECHO_N "(cached) $ECHO_C" >&6
24522 else
24523   cat >conftest.$ac_ext <<_ACEOF
24524 /* confdefs.h.  */
24525 _ACEOF
24526 cat confdefs.h >>conftest.$ac_ext
24527 cat >>conftest.$ac_ext <<_ACEOF
24528 /* end confdefs.h.  */
24529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24531 #define $ac_func innocuous_$ac_func
24532
24533 /* System header to define __stub macros and hopefully few prototypes,
24534     which can conflict with char $ac_func (); below.
24535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24536     <limits.h> exists even on freestanding compilers.  */
24537
24538 #ifdef __STDC__
24539 # include <limits.h>
24540 #else
24541 # include <assert.h>
24542 #endif
24543
24544 #undef $ac_func
24545
24546 /* Override any GCC internal prototype to avoid an error.
24547    Use char because int might match the return type of a GCC
24548    builtin and then its argument prototype would still apply.  */
24549 #ifdef __cplusplus
24550 extern "C"
24551 #endif
24552 char $ac_func ();
24553 /* The GNU C library defines this for functions which it implements
24554     to always fail with ENOSYS.  Some functions are actually named
24555     something starting with __ and the normal name is an alias.  */
24556 #if defined __stub_$ac_func || defined __stub___$ac_func
24557 choke me
24558 #endif
24559
24560 int
24561 main ()
24562 {
24563 return $ac_func ();
24564   ;
24565   return 0;
24566 }
24567 _ACEOF
24568 rm -f conftest.$ac_objext conftest$ac_exeext
24569 if { (ac_try="$ac_link"
24570 case "(($ac_try" in
24571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572   *) ac_try_echo=$ac_try;;
24573 esac
24574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24575   (eval "$ac_link") 2>conftest.er1
24576   ac_status=$?
24577   grep -v '^ *+' conftest.er1 >conftest.err
24578   rm -f conftest.er1
24579   cat conftest.err >&5
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); } && {
24582          test -z "$ac_c_werror_flag" ||
24583          test ! -s conftest.err
24584        } && test -s conftest$ac_exeext &&
24585        $as_test_x conftest$ac_exeext; then
24586   eval "$as_ac_var=yes"
24587 else
24588   echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24590
24591         eval "$as_ac_var=no"
24592 fi
24593
24594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24595       conftest$ac_exeext conftest.$ac_ext
24596 fi
24597 ac_res=`eval echo '${'$as_ac_var'}'`
24598                { echo "$as_me:$LINENO: result: $ac_res" >&5
24599 echo "${ECHO_T}$ac_res" >&6; }
24600 if test `eval echo '${'$as_ac_var'}'` = yes; then
24601   cat >>confdefs.h <<_ACEOF
24602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24603 _ACEOF
24604
24605 fi
24606 done
24607
24608 for ac_func in \
24609         crypt \
24610         strncasecmp \
24611         strcasecmp \
24612         inet_aton \
24613         setlinebuf \
24614         getusershell \
24615         endusershell
24616
24617 do
24618 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24619 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24620 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24621   echo $ECHO_N "(cached) $ECHO_C" >&6
24622 else
24623   cat >conftest.$ac_ext <<_ACEOF
24624 /* confdefs.h.  */
24625 _ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h.  */
24629
24630 #include <stdio.h>
24631 #include <string.h>
24632 #ifdef HAVE_UNISTD_H
24633 #include <unistd.h>
24634 #endif
24635 #ifdef HAVE_CRYPT_H
24636 #include <crypt.h>
24637 #endif
24638 #ifdef HAVE_ERRNO_H
24639 #include <errno.h>
24640 #endif
24641 #ifdef HAVE_RESOURCE_H
24642 #include <resource.h>
24643 #endif
24644 #ifdef HAVE_GETOPT_H
24645 #include <getopt.h>
24646 #endif
24647 #ifdef HAVE_MALLOC_H
24648 #include <malloc.h>
24649 #endif
24650 #ifdef HAVE_UTMP_H
24651 #include <utmp.h>
24652 #endif
24653 #ifdef HAVE_UTMPX_H
24654 #include <utmpx.h>
24655 #endif
24656 #ifdef HAVE_SYS_SELECT_H
24657 #include <sys/select.h>
24658 #endif
24659 #ifdef HAVE_DLFCN_H
24660 #include <dlfcn.h>
24661 #endif
24662 #ifdef HAVE_REGEX_H
24663 #include <regex.h>
24664 #endif
24665 #ifdef HAVE_SYSLOG_H
24666 #include <syslog.h>
24667 #endif
24668 #ifdef HAVE_INTTYPES_H
24669 #include <inttypes.h>
24670 #endif
24671 #ifdef HAVE_STDINT_H
24672 #include <stdint.h>
24673 #endif
24674 #ifdef HAVE_ARPA_INET_H
24675 #include <arpa/inet.h>
24676 #endif
24677
24678 int
24679 main ()
24680 {
24681 char *(*pfn) = (char *(*)) $ac_func
24682   ;
24683   return 0;
24684 }
24685 _ACEOF
24686 rm -f conftest.$ac_objext
24687 if { (ac_try="$ac_compile"
24688 case "(($ac_try" in
24689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690   *) ac_try_echo=$ac_try;;
24691 esac
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693   (eval "$ac_compile") 2>conftest.er1
24694   ac_status=$?
24695   grep -v '^ *+' conftest.er1 >conftest.err
24696   rm -f conftest.er1
24697   cat conftest.err >&5
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); } && {
24700          test -z "$ac_c_werror_flag" ||
24701          test ! -s conftest.err
24702        } && test -s conftest.$ac_objext; then
24703   eval "radius_cv_decl_needed_$ac_func=no"
24704 else
24705   echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708         eval "radius_cv_decl_needed_$ac_func=yes"
24709 fi
24710
24711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24712 fi
24713
24714 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24715   { echo "$as_me:$LINENO: result: yes" >&5
24716 echo "${ECHO_T}yes" >&6; }
24717   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24718   cat >>confdefs.h <<_ACEOF
24719 #define $radius_tr_decl 1
24720 _ACEOF
24721
24722 else
24723   { echo "$as_me:$LINENO: result: no" >&5
24724 echo "${ECHO_T}no" >&6; }
24725 fi
24726
24727 done
24728
24729
24730 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24731 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24732 if test "${ac_cv_type_signal+set}" = set; then
24733   echo $ECHO_N "(cached) $ECHO_C" >&6
24734 else
24735   cat >conftest.$ac_ext <<_ACEOF
24736 /* confdefs.h.  */
24737 _ACEOF
24738 cat confdefs.h >>conftest.$ac_ext
24739 cat >>conftest.$ac_ext <<_ACEOF
24740 /* end confdefs.h.  */
24741 #include <sys/types.h>
24742 #include <signal.h>
24743
24744 int
24745 main ()
24746 {
24747 return *(signal (0, 0)) (0) == 1;
24748   ;
24749   return 0;
24750 }
24751 _ACEOF
24752 rm -f conftest.$ac_objext
24753 if { (ac_try="$ac_compile"
24754 case "(($ac_try" in
24755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756   *) ac_try_echo=$ac_try;;
24757 esac
24758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24759   (eval "$ac_compile") 2>conftest.er1
24760   ac_status=$?
24761   grep -v '^ *+' conftest.er1 >conftest.err
24762   rm -f conftest.er1
24763   cat conftest.err >&5
24764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765   (exit $ac_status); } && {
24766          test -z "$ac_c_werror_flag" ||
24767          test ! -s conftest.err
24768        } && test -s conftest.$ac_objext; then
24769   ac_cv_type_signal=int
24770 else
24771   echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24773
24774         ac_cv_type_signal=void
24775 fi
24776
24777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24778 fi
24779 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24780 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24781
24782 cat >>confdefs.h <<_ACEOF
24783 #define RETSIGTYPE $ac_cv_type_signal
24784 _ACEOF
24785
24786
24787
24788 if test "x$ac_cv_header_utmpx_h" = "xyes"
24789 then
24790
24791   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24792 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24793
24794
24795   cat >conftest.$ac_ext <<_ACEOF
24796 /* confdefs.h.  */
24797 _ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h.  */
24801
24802 #include <utmpx.h>
24803 #ifdef HAVE_STDDEF_H
24804 #include <stddef.h>
24805 #endif
24806 #ifndef offsetof
24807 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24808 #endif
24809
24810 int
24811 main ()
24812 {
24813  int foo = offsetof(struct utmpx, ut_xtime)
24814   ;
24815   return 0;
24816 }
24817 _ACEOF
24818 rm -f conftest.$ac_objext
24819 if { (ac_try="$ac_compile"
24820 case "(($ac_try" in
24821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822   *) ac_try_echo=$ac_try;;
24823 esac
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825   (eval "$ac_compile") 2>conftest.er1
24826   ac_status=$?
24827   grep -v '^ *+' conftest.er1 >conftest.err
24828   rm -f conftest.er1
24829   cat conftest.err >&5
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); } && {
24832          test -z "$ac_c_werror_flag" ||
24833          test ! -s conftest.err
24834        } && test -s conftest.$ac_objext; then
24835   has_element=" "
24836 else
24837   echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24839
24840         has_element=
24841 fi
24842
24843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24844
24845   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24846   if test "x$has_element" != "x"; then
24847     { echo "$as_me:$LINENO: result: yes" >&5
24848 echo "${ECHO_T}yes" >&6; }
24849     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24850   else
24851     { echo "$as_me:$LINENO: result: no" >&5
24852 echo "${ECHO_T}no" >&6; }
24853     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24854  fi
24855
24856  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24857  then
24858
24859 cat >>confdefs.h <<\_ACEOF
24860 #define ut_xtime ut_tv.tv_sec
24861 _ACEOF
24862
24863  fi
24864 fi
24865
24866
24867   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24868 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24869
24870
24871   cat >conftest.$ac_ext <<_ACEOF
24872 /* confdefs.h.  */
24873 _ACEOF
24874 cat confdefs.h >>conftest.$ac_ext
24875 cat >>conftest.$ac_ext <<_ACEOF
24876 /* end confdefs.h.  */
24877
24878 #include <netinet/in.h>
24879 #ifdef HAVE_STDDEF_H
24880 #include <stddef.h>
24881 #endif
24882 #ifndef offsetof
24883 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24884 #endif
24885
24886 int
24887 main ()
24888 {
24889  int foo = offsetof(struct in_pktinfo, ipi_addr)
24890   ;
24891   return 0;
24892 }
24893 _ACEOF
24894 rm -f conftest.$ac_objext
24895 if { (ac_try="$ac_compile"
24896 case "(($ac_try" in
24897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898   *) ac_try_echo=$ac_try;;
24899 esac
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901   (eval "$ac_compile") 2>conftest.er1
24902   ac_status=$?
24903   grep -v '^ *+' conftest.er1 >conftest.err
24904   rm -f conftest.er1
24905   cat conftest.err >&5
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); } && {
24908          test -z "$ac_c_werror_flag" ||
24909          test ! -s conftest.err
24910        } && test -s conftest.$ac_objext; then
24911   has_element=" "
24912 else
24913   echo "$as_me: failed program was:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24915
24916         has_element=
24917 fi
24918
24919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920
24921   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24922   if test "x$has_element" != "x"; then
24923     { echo "$as_me:$LINENO: result: yes" >&5
24924 echo "${ECHO_T}yes" >&6; }
24925     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24926   else
24927     { echo "$as_me:$LINENO: result: no" >&5
24928 echo "${ECHO_T}no" >&6; }
24929     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24930  fi
24931
24932 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24933 then
24934
24935 cat >>confdefs.h <<\_ACEOF
24936 #define HAVE_IP_PKTINFO
24937 _ACEOF
24938
24939 fi
24940
24941
24942   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24943 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24944
24945
24946   cat >conftest.$ac_ext <<_ACEOF
24947 /* confdefs.h.  */
24948 _ACEOF
24949 cat confdefs.h >>conftest.$ac_ext
24950 cat >>conftest.$ac_ext <<_ACEOF
24951 /* end confdefs.h.  */
24952
24953 #include <netinet/in.h>
24954 #ifdef HAVE_STDDEF_H
24955 #include <stddef.h>
24956 #endif
24957 #ifndef offsetof
24958 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24959 #endif
24960
24961 int
24962 main ()
24963 {
24964  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24965   ;
24966   return 0;
24967 }
24968 _ACEOF
24969 rm -f conftest.$ac_objext
24970 if { (ac_try="$ac_compile"
24971 case "(($ac_try" in
24972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973   *) ac_try_echo=$ac_try;;
24974 esac
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976   (eval "$ac_compile") 2>conftest.er1
24977   ac_status=$?
24978   grep -v '^ *+' conftest.er1 >conftest.err
24979   rm -f conftest.er1
24980   cat conftest.err >&5
24981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982   (exit $ac_status); } && {
24983          test -z "$ac_c_werror_flag" ||
24984          test ! -s conftest.err
24985        } && test -s conftest.$ac_objext; then
24986   has_element=" "
24987 else
24988   echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24990
24991         has_element=
24992 fi
24993
24994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995
24996   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24997   if test "x$has_element" != "x"; then
24998     { echo "$as_me:$LINENO: result: yes" >&5
24999 echo "${ECHO_T}yes" >&6; }
25000     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
25001   else
25002     { echo "$as_me:$LINENO: result: no" >&5
25003 echo "${ECHO_T}no" >&6; }
25004     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
25005  fi
25006
25007 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
25008 then
25009
25010 cat >>confdefs.h <<\_ACEOF
25011 #define HAVE_IN6_PKTINFO
25012 _ACEOF
25013
25014 fi
25015
25016
25017 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25018 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25019 if test "${ac_cv_c_const+set}" = set; then
25020   echo $ECHO_N "(cached) $ECHO_C" >&6
25021 else
25022   cat >conftest.$ac_ext <<_ACEOF
25023 /* confdefs.h.  */
25024 _ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h.  */
25028
25029 int
25030 main ()
25031 {
25032 /* FIXME: Include the comments suggested by Paul. */
25033 #ifndef __cplusplus
25034   /* Ultrix mips cc rejects this.  */
25035   typedef int charset[2];
25036   const charset cs;
25037   /* SunOS 4.1.1 cc rejects this.  */
25038   char const *const *pcpcc;
25039   char **ppc;
25040   /* NEC SVR4.0.2 mips cc rejects this.  */
25041   struct point {int x, y;};
25042   static struct point const zero = {0,0};
25043   /* AIX XL C 1.02.0.0 rejects this.
25044      It does not let you subtract one const X* pointer from another in
25045      an arm of an if-expression whose if-part is not a constant
25046      expression */
25047   const char *g = "string";
25048   pcpcc = &g + (g ? g-g : 0);
25049   /* HPUX 7.0 cc rejects these. */
25050   ++pcpcc;
25051   ppc = (char**) pcpcc;
25052   pcpcc = (char const *const *) ppc;
25053   { /* SCO 3.2v4 cc rejects this.  */
25054     char *t;
25055     char const *s = 0 ? (char *) 0 : (char const *) 0;
25056
25057     *t++ = 0;
25058     if (s) return 0;
25059   }
25060   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25061     int x[] = {25, 17};
25062     const int *foo = &x[0];
25063     ++foo;
25064   }
25065   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25066     typedef const int *iptr;
25067     iptr p = 0;
25068     ++p;
25069   }
25070   { /* AIX XL C 1.02.0.0 rejects this saying
25071        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25072     struct s { int j; const int *ap[3]; };
25073     struct s *b; b->j = 5;
25074   }
25075   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25076     const int foo = 10;
25077     if (!foo) return 0;
25078   }
25079   return !cs[0] && !zero.x;
25080 #endif
25081
25082   ;
25083   return 0;
25084 }
25085 _ACEOF
25086 rm -f conftest.$ac_objext
25087 if { (ac_try="$ac_compile"
25088 case "(($ac_try" in
25089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090   *) ac_try_echo=$ac_try;;
25091 esac
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093   (eval "$ac_compile") 2>conftest.er1
25094   ac_status=$?
25095   grep -v '^ *+' conftest.er1 >conftest.err
25096   rm -f conftest.er1
25097   cat conftest.err >&5
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); } && {
25100          test -z "$ac_c_werror_flag" ||
25101          test ! -s conftest.err
25102        } && test -s conftest.$ac_objext; then
25103   ac_cv_c_const=yes
25104 else
25105   echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108         ac_cv_c_const=no
25109 fi
25110
25111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25112 fi
25113 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25114 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25115 if test $ac_cv_c_const = no; then
25116
25117 cat >>confdefs.h <<\_ACEOF
25118 #define const
25119 _ACEOF
25120
25121 fi
25122
25123
25124 { echo "$as_me:$LINENO: checking type of OS" >&5
25125 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25126 OS=`uname -s`
25127 { echo "$as_me:$LINENO: result: $OS" >&5
25128 echo "${ECHO_T}$OS" >&6; }
25129 if test "$OS" = "OS/2"; then
25130         LIBPREFIX=
25131 else
25132         LIBPREFIX=lib
25133 fi
25134
25135
25136 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25137 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25138 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25139   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25140   CFLAGS="$CFLAGS $devflags"
25141   INSTALLSTRIP=""
25142   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
25143 echo "${ECHO_T}yes.  Using $devflags" >&6; }
25144 else
25145   devflags=""
25146   CFLAGS="$CFLAGS -DNDEBUG"
25147   INSTALLSTRIP=""
25148   { echo "$as_me:$LINENO: result: no." >&5
25149 echo "${ECHO_T}no." >&6; }
25150 fi
25151
25152
25153     { echo "$as_me:$LINENO: checking for TLS" >&5
25154 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
25155     if test "$cross_compiling" = yes; then
25156   have_tls=no
25157 else
25158   cat >conftest.$ac_ext <<_ACEOF
25159 /* confdefs.h.  */
25160 _ACEOF
25161 cat confdefs.h >>conftest.$ac_ext
25162 cat >>conftest.$ac_ext <<_ACEOF
25163 /* end confdefs.h.  */
25164  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
25165 _ACEOF
25166 rm -f conftest$ac_exeext
25167 if { (ac_try="$ac_link"
25168 case "(($ac_try" in
25169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25170   *) ac_try_echo=$ac_try;;
25171 esac
25172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25173   (eval "$ac_link") 2>&5
25174   ac_status=$?
25175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25177   { (case "(($ac_try" in
25178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179   *) ac_try_echo=$ac_try;;
25180 esac
25181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182   (eval "$ac_try") 2>&5
25183   ac_status=$?
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); }; }; then
25186   have_tls=yes
25187 else
25188   echo "$as_me: program exited with status $ac_status" >&5
25189 echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25191
25192 ( exit $ac_status )
25193 have_tls=no
25194 fi
25195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25196 fi
25197
25198
25199     { echo "$as_me:$LINENO: result: $have_tls" >&5
25200 echo "${ECHO_T}$have_tls" >&6; }
25201     if test "$have_tls" = "yes"; then
25202
25203 cat >>confdefs.h <<\_ACEOF
25204 #define HAVE_THREAD_TLS 1
25205 _ACEOF
25206
25207     fi
25208
25209
25210
25211 old_LIBS="$LIBS"
25212 LIBS="$LIBS $LIBLTDL"
25213 { echo "$as_me:$LINENO: checking for lt_dladvise_init" >&5
25214 echo $ECHO_N "checking for lt_dladvise_init... $ECHO_C" >&6; }
25215 if test "${ac_cv_func_lt_dladvise_init+set}" = set; then
25216   echo $ECHO_N "(cached) $ECHO_C" >&6
25217 else
25218   cat >conftest.$ac_ext <<_ACEOF
25219 /* confdefs.h.  */
25220 _ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h.  */
25224 /* Define lt_dladvise_init to an innocuous variant, in case <limits.h> declares lt_dladvise_init.
25225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25226 #define lt_dladvise_init innocuous_lt_dladvise_init
25227
25228 /* System header to define __stub macros and hopefully few prototypes,
25229     which can conflict with char lt_dladvise_init (); below.
25230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25231     <limits.h> exists even on freestanding compilers.  */
25232
25233 #ifdef __STDC__
25234 # include <limits.h>
25235 #else
25236 # include <assert.h>
25237 #endif
25238
25239 #undef lt_dladvise_init
25240
25241 /* Override any GCC internal prototype to avoid an error.
25242    Use char because int might match the return type of a GCC
25243    builtin and then its argument prototype would still apply.  */
25244 #ifdef __cplusplus
25245 extern "C"
25246 #endif
25247 char lt_dladvise_init ();
25248 /* The GNU C library defines this for functions which it implements
25249     to always fail with ENOSYS.  Some functions are actually named
25250     something starting with __ and the normal name is an alias.  */
25251 #if defined __stub_lt_dladvise_init || defined __stub___lt_dladvise_init
25252 choke me
25253 #endif
25254
25255 int
25256 main ()
25257 {
25258 return lt_dladvise_init ();
25259   ;
25260   return 0;
25261 }
25262 _ACEOF
25263 rm -f conftest.$ac_objext conftest$ac_exeext
25264 if { (ac_try="$ac_link"
25265 case "(($ac_try" in
25266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25267   *) ac_try_echo=$ac_try;;
25268 esac
25269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25270   (eval "$ac_link") 2>conftest.er1
25271   ac_status=$?
25272   grep -v '^ *+' conftest.er1 >conftest.err
25273   rm -f conftest.er1
25274   cat conftest.err >&5
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); } && {
25277          test -z "$ac_c_werror_flag" ||
25278          test ! -s conftest.err
25279        } && test -s conftest$ac_exeext &&
25280        $as_test_x conftest$ac_exeext; then
25281   ac_cv_func_lt_dladvise_init=yes
25282 else
25283   echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25285
25286         ac_cv_func_lt_dladvise_init=no
25287 fi
25288
25289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25290       conftest$ac_exeext conftest.$ac_ext
25291 fi
25292 { echo "$as_me:$LINENO: result: $ac_cv_func_lt_dladvise_init" >&5
25293 echo "${ECHO_T}$ac_cv_func_lt_dladvise_init" >&6; }
25294 if test $ac_cv_func_lt_dladvise_init = yes; then
25295
25296 cat >>confdefs.h <<\_ACEOF
25297 #define HAVE_LT_DLADVISE_INIT
25298 _ACEOF
25299
25300 fi
25301
25302 LIBS="$old_LIBS"
25303
25304 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25305 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25306 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25307   echo $ECHO_N "(cached) $ECHO_C" >&6
25308 else
25309   ac_check_lib_save_LIBS=$LIBS
25310 LIBS="-lcrypt  $LIBS"
25311 cat >conftest.$ac_ext <<_ACEOF
25312 /* confdefs.h.  */
25313 _ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h.  */
25317
25318 /* Override any GCC internal prototype to avoid an error.
25319    Use char because int might match the return type of a GCC
25320    builtin and then its argument prototype would still apply.  */
25321 #ifdef __cplusplus
25322 extern "C"
25323 #endif
25324 char crypt ();
25325 int
25326 main ()
25327 {
25328 return crypt ();
25329   ;
25330   return 0;
25331 }
25332 _ACEOF
25333 rm -f conftest.$ac_objext conftest$ac_exeext
25334 if { (ac_try="$ac_link"
25335 case "(($ac_try" in
25336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337   *) ac_try_echo=$ac_try;;
25338 esac
25339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25340   (eval "$ac_link") 2>conftest.er1
25341   ac_status=$?
25342   grep -v '^ *+' conftest.er1 >conftest.err
25343   rm -f conftest.er1
25344   cat conftest.err >&5
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); } && {
25347          test -z "$ac_c_werror_flag" ||
25348          test ! -s conftest.err
25349        } && test -s conftest$ac_exeext &&
25350        $as_test_x conftest$ac_exeext; then
25351   ac_cv_lib_crypt_crypt=yes
25352 else
25353   echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25355
25356         ac_cv_lib_crypt_crypt=no
25357 fi
25358
25359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25360       conftest$ac_exeext conftest.$ac_ext
25361 LIBS=$ac_check_lib_save_LIBS
25362 fi
25363 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25364 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25365 if test $ac_cv_lib_crypt_crypt = yes; then
25366   CRYPTLIB="-lcrypt"
25367
25368 fi
25369
25370 if test "$CRYPTLIB" != ""; then
25371
25372 cat >>confdefs.h <<\_ACEOF
25373 #define HAVE_CRYPT
25374 _ACEOF
25375
25376 else
25377   { echo "$as_me:$LINENO: checking for crypt" >&5
25378 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25379 if test "${ac_cv_func_crypt+set}" = set; then
25380   echo $ECHO_N "(cached) $ECHO_C" >&6
25381 else
25382   cat >conftest.$ac_ext <<_ACEOF
25383 /* confdefs.h.  */
25384 _ACEOF
25385 cat confdefs.h >>conftest.$ac_ext
25386 cat >>conftest.$ac_ext <<_ACEOF
25387 /* end confdefs.h.  */
25388 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25390 #define crypt innocuous_crypt
25391
25392 /* System header to define __stub macros and hopefully few prototypes,
25393     which can conflict with char crypt (); below.
25394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25395     <limits.h> exists even on freestanding compilers.  */
25396
25397 #ifdef __STDC__
25398 # include <limits.h>
25399 #else
25400 # include <assert.h>
25401 #endif
25402
25403 #undef crypt
25404
25405 /* Override any GCC internal prototype to avoid an error.
25406    Use char because int might match the return type of a GCC
25407    builtin and then its argument prototype would still apply.  */
25408 #ifdef __cplusplus
25409 extern "C"
25410 #endif
25411 char crypt ();
25412 /* The GNU C library defines this for functions which it implements
25413     to always fail with ENOSYS.  Some functions are actually named
25414     something starting with __ and the normal name is an alias.  */
25415 #if defined __stub_crypt || defined __stub___crypt
25416 choke me
25417 #endif
25418
25419 int
25420 main ()
25421 {
25422 return crypt ();
25423   ;
25424   return 0;
25425 }
25426 _ACEOF
25427 rm -f conftest.$ac_objext conftest$ac_exeext
25428 if { (ac_try="$ac_link"
25429 case "(($ac_try" in
25430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431   *) ac_try_echo=$ac_try;;
25432 esac
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434   (eval "$ac_link") 2>conftest.er1
25435   ac_status=$?
25436   grep -v '^ *+' conftest.er1 >conftest.err
25437   rm -f conftest.er1
25438   cat conftest.err >&5
25439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); } && {
25441          test -z "$ac_c_werror_flag" ||
25442          test ! -s conftest.err
25443        } && test -s conftest$ac_exeext &&
25444        $as_test_x conftest$ac_exeext; then
25445   ac_cv_func_crypt=yes
25446 else
25447   echo "$as_me: failed program was:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25449
25450         ac_cv_func_crypt=no
25451 fi
25452
25453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25454       conftest$ac_exeext conftest.$ac_ext
25455 fi
25456 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25457 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25458 if test $ac_cv_func_crypt = yes; then
25459
25460 cat >>confdefs.h <<\_ACEOF
25461 #define HAVE_CRYPT
25462 _ACEOF
25463
25464 fi
25465
25466 fi
25467
25468 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25469 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25470 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25471   echo $ECHO_N "(cached) $ECHO_C" >&6
25472 else
25473   ac_check_lib_save_LIBS=$LIBS
25474 LIBS="-lcipher  $LIBS"
25475 cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h.  */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h.  */
25481
25482 /* Override any GCC internal prototype to avoid an error.
25483    Use char because int might match the return type of a GCC
25484    builtin and then its argument prototype would still apply.  */
25485 #ifdef __cplusplus
25486 extern "C"
25487 #endif
25488 char setkey ();
25489 int
25490 main ()
25491 {
25492 return setkey ();
25493   ;
25494   return 0;
25495 }
25496 _ACEOF
25497 rm -f conftest.$ac_objext conftest$ac_exeext
25498 if { (ac_try="$ac_link"
25499 case "(($ac_try" in
25500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501   *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504   (eval "$ac_link") 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
25508   cat conftest.err >&5
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } && {
25511          test -z "$ac_c_werror_flag" ||
25512          test ! -s conftest.err
25513        } && test -s conftest$ac_exeext &&
25514        $as_test_x conftest$ac_exeext; then
25515   ac_cv_lib_cipher_setkey=yes
25516 else
25517   echo "$as_me: failed program was:" >&5
25518 sed 's/^/| /' conftest.$ac_ext >&5
25519
25520         ac_cv_lib_cipher_setkey=no
25521 fi
25522
25523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25524       conftest$ac_exeext conftest.$ac_ext
25525 LIBS=$ac_check_lib_save_LIBS
25526 fi
25527 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25528 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25529 if test $ac_cv_lib_cipher_setkey = yes; then
25530   CRYPTLIB="${CRYPTLIB} -lcipher"
25531
25532 fi
25533
25534
25535
25536
25537 cat >>confdefs.h <<\_ACEOF
25538 #define GNUSTYLE 1
25539 _ACEOF
25540
25541
25542 cat >>confdefs.h <<\_ACEOF
25543 #define SYSVSTYLE 2
25544 _ACEOF
25545
25546
25547 cat >>confdefs.h <<\_ACEOF
25548 #define BSDSTYLE 3
25549 _ACEOF
25550
25551 gethostbyaddrrstyle=""
25552 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
25553 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
25554 case "$host" in
25555 *-freebsd*)
25556         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
25557 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
25558 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
25559   echo $ECHO_N "(cached) $ECHO_C" >&6
25560 else
25561   cat >conftest.$ac_ext <<_ACEOF
25562 /* confdefs.h.  */
25563 _ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h.  */
25567
25568 #ifdef HAVE_NETDB_H
25569 #include <netdb.h>
25570 #endif
25571
25572
25573 int
25574 main ()
25575 {
25576 #ifndef gethostbyaddr_r
25577   (void) gethostbyaddr_r;
25578 #endif
25579
25580   ;
25581   return 0;
25582 }
25583 _ACEOF
25584 rm -f conftest.$ac_objext
25585 if { (ac_try="$ac_compile"
25586 case "(($ac_try" in
25587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588   *) ac_try_echo=$ac_try;;
25589 esac
25590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25591   (eval "$ac_compile") 2>conftest.er1
25592   ac_status=$?
25593   grep -v '^ *+' conftest.er1 >conftest.err
25594   rm -f conftest.er1
25595   cat conftest.err >&5
25596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597   (exit $ac_status); } && {
25598          test -z "$ac_c_werror_flag" ||
25599          test ! -s conftest.err
25600        } && test -s conftest.$ac_objext; then
25601   ac_cv_have_decl_gethostbyaddr_r=yes
25602 else
25603   echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25605
25606         ac_cv_have_decl_gethostbyaddr_r=no
25607 fi
25608
25609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610 fi
25611 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
25612 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
25613 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
25614
25615 cat >>confdefs.h <<_ACEOF
25616 #define HAVE_DECL_GETHOSTBYADDR_R 1
25617 _ACEOF
25618
25619
25620 else
25621   cat >>confdefs.h <<_ACEOF
25622 #define HAVE_DECL_GETHOSTBYADDR_R 0
25623 _ACEOF
25624
25625
25626
25627 cat >>confdefs.h <<\_ACEOF
25628 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25629 _ACEOF
25630
25631                 gethostbyaddrrstyle=BSD
25632                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
25633 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
25634
25635 fi
25636
25637
25638         ;;
25639 esac
25640 if test "x$gethostbyaddrrstyle" = "x"; then
25641         cat >conftest.$ac_ext <<_ACEOF
25642 /* confdefs.h.  */
25643 _ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h.  */
25647
25648 #include <stdio.h>
25649 #include <netdb.h>
25650
25651 int
25652 main ()
25653 {
25654  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
25655   ;
25656   return 0;
25657 }
25658 _ACEOF
25659 rm -f conftest.$ac_objext conftest$ac_exeext
25660 if { (ac_try="$ac_link"
25661 case "(($ac_try" in
25662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25663   *) ac_try_echo=$ac_try;;
25664 esac
25665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25666   (eval "$ac_link") 2>conftest.er1
25667   ac_status=$?
25668   grep -v '^ *+' conftest.er1 >conftest.err
25669   rm -f conftest.er1
25670   cat conftest.err >&5
25671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672   (exit $ac_status); } && {
25673          test -z "$ac_c_werror_flag" ||
25674          test ! -s conftest.err
25675        } && test -s conftest$ac_exeext &&
25676        $as_test_x conftest$ac_exeext; then
25677
25678
25679 cat >>confdefs.h <<\_ACEOF
25680 #define GETHOSTBYADDRRSTYLE GNUSTYLE
25681 _ACEOF
25682
25683         gethostbyaddrrstyle=GNU
25684
25685 else
25686   echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689
25690 fi
25691
25692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25693       conftest$ac_exeext conftest.$ac_ext
25694 fi
25695 if test "x$gethostbyaddrrstyle" = "x"; then
25696         cat >conftest.$ac_ext <<_ACEOF
25697 /* confdefs.h.  */
25698 _ACEOF
25699 cat confdefs.h >>conftest.$ac_ext
25700 cat >>conftest.$ac_ext <<_ACEOF
25701 /* end confdefs.h.  */
25702
25703 #include <stdio.h>
25704 #include <netdb.h>
25705
25706 int
25707 main ()
25708 {
25709  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25710   ;
25711   return 0;
25712 }
25713 _ACEOF
25714 rm -f conftest.$ac_objext conftest$ac_exeext
25715 if { (ac_try="$ac_link"
25716 case "(($ac_try" in
25717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25718   *) ac_try_echo=$ac_try;;
25719 esac
25720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25721   (eval "$ac_link") 2>conftest.er1
25722   ac_status=$?
25723   grep -v '^ *+' conftest.er1 >conftest.err
25724   rm -f conftest.er1
25725   cat conftest.err >&5
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); } && {
25728          test -z "$ac_c_werror_flag" ||
25729          test ! -s conftest.err
25730        } && test -s conftest$ac_exeext &&
25731        $as_test_x conftest$ac_exeext; then
25732
25733
25734 cat >>confdefs.h <<\_ACEOF
25735 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25736 _ACEOF
25737
25738                 gethostbyaddrrstyle=SYSV
25739
25740 else
25741   echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25743
25744
25745 fi
25746
25747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25748       conftest$ac_exeext conftest.$ac_ext
25749 fi
25750 if test "x$gethostbyaddrrstyle" = "x"; then
25751         cat >conftest.$ac_ext <<_ACEOF
25752 /* confdefs.h.  */
25753 _ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h.  */
25757
25758 #include <stdio.h>
25759 #include <netdb.h>
25760
25761 int
25762 main ()
25763 {
25764  gethostbyaddr(NULL, 0, 0)
25765   ;
25766   return 0;
25767 }
25768 _ACEOF
25769 rm -f conftest.$ac_objext conftest$ac_exeext
25770 if { (ac_try="$ac_link"
25771 case "(($ac_try" in
25772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773   *) ac_try_echo=$ac_try;;
25774 esac
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776   (eval "$ac_link") 2>conftest.er1
25777   ac_status=$?
25778   grep -v '^ *+' conftest.er1 >conftest.err
25779   rm -f conftest.er1
25780   cat conftest.err >&5
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); } && {
25783          test -z "$ac_c_werror_flag" ||
25784          test ! -s conftest.err
25785        } && test -s conftest$ac_exeext &&
25786        $as_test_x conftest$ac_exeext; then
25787
25788
25789 cat >>confdefs.h <<\_ACEOF
25790 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25791 _ACEOF
25792
25793                 gethostbyaddrrstyle=BSD
25794
25795 else
25796   echo "$as_me: failed program was:" >&5
25797 sed 's/^/| /' conftest.$ac_ext >&5
25798
25799
25800 fi
25801
25802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25803       conftest$ac_exeext conftest.$ac_ext
25804 fi
25805
25806 if test "x$gethostbyaddrrstyle" = "x"; then
25807         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25808 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25809 else
25810         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25811 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25812 fi
25813
25814 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25815         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25816 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25817 fi
25818
25819 gethostbynamerstyle=""
25820 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25821 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25822 cat >conftest.$ac_ext <<_ACEOF
25823 /* confdefs.h.  */
25824 _ACEOF
25825 cat confdefs.h >>conftest.$ac_ext
25826 cat >>conftest.$ac_ext <<_ACEOF
25827 /* end confdefs.h.  */
25828
25829 #include <stdio.h>
25830 #include <netdb.h>
25831
25832 int
25833 main ()
25834 {
25835  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 rm -f conftest.$ac_objext conftest$ac_exeext
25841 if { (ac_try="$ac_link"
25842 case "(($ac_try" in
25843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844   *) ac_try_echo=$ac_try;;
25845 esac
25846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847   (eval "$ac_link") 2>conftest.er1
25848   ac_status=$?
25849   grep -v '^ *+' conftest.er1 >conftest.err
25850   rm -f conftest.er1
25851   cat conftest.err >&5
25852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853   (exit $ac_status); } && {
25854          test -z "$ac_c_werror_flag" ||
25855          test ! -s conftest.err
25856        } && test -s conftest$ac_exeext &&
25857        $as_test_x conftest$ac_exeext; then
25858
25859
25860 cat >>confdefs.h <<\_ACEOF
25861 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25862 _ACEOF
25863
25864         gethostbynamerstyle=GNU
25865
25866 else
25867   echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25869
25870
25871 fi
25872
25873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25874       conftest$ac_exeext conftest.$ac_ext
25875 if test "x$gethostbynamerstyle" = "x"; then
25876         cat >conftest.$ac_ext <<_ACEOF
25877 /* confdefs.h.  */
25878 _ACEOF
25879 cat confdefs.h >>conftest.$ac_ext
25880 cat >>conftest.$ac_ext <<_ACEOF
25881 /* end confdefs.h.  */
25882
25883 #include <stdio.h>
25884 #include <netdb.h>
25885
25886 int
25887 main ()
25888 {
25889  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25890   ;
25891   return 0;
25892 }
25893 _ACEOF
25894 rm -f conftest.$ac_objext conftest$ac_exeext
25895 if { (ac_try="$ac_link"
25896 case "(($ac_try" in
25897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25898   *) ac_try_echo=$ac_try;;
25899 esac
25900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25901   (eval "$ac_link") 2>conftest.er1
25902   ac_status=$?
25903   grep -v '^ *+' conftest.er1 >conftest.err
25904   rm -f conftest.er1
25905   cat conftest.err >&5
25906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907   (exit $ac_status); } && {
25908          test -z "$ac_c_werror_flag" ||
25909          test ! -s conftest.err
25910        } && test -s conftest$ac_exeext &&
25911        $as_test_x conftest$ac_exeext; then
25912
25913
25914 cat >>confdefs.h <<\_ACEOF
25915 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25916 _ACEOF
25917
25918                 gethostbynamerstyle=SYSV
25919
25920 else
25921   echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25923
25924
25925 fi
25926
25927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25928       conftest$ac_exeext conftest.$ac_ext
25929 fi
25930 if test "x$gethostbynamerstyle" = "x"; then
25931         cat >conftest.$ac_ext <<_ACEOF
25932 /* confdefs.h.  */
25933 _ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h.  */
25937
25938 #include <stdio.h>
25939 #include <netdb.h>
25940
25941 int
25942 main ()
25943 {
25944  gethostbyname(NULL)
25945   ;
25946   return 0;
25947 }
25948 _ACEOF
25949 rm -f conftest.$ac_objext conftest$ac_exeext
25950 if { (ac_try="$ac_link"
25951 case "(($ac_try" in
25952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25953   *) ac_try_echo=$ac_try;;
25954 esac
25955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25956   (eval "$ac_link") 2>conftest.er1
25957   ac_status=$?
25958   grep -v '^ *+' conftest.er1 >conftest.err
25959   rm -f conftest.er1
25960   cat conftest.err >&5
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); } && {
25963          test -z "$ac_c_werror_flag" ||
25964          test ! -s conftest.err
25965        } && test -s conftest$ac_exeext &&
25966        $as_test_x conftest$ac_exeext; then
25967
25968
25969 cat >>confdefs.h <<\_ACEOF
25970 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25971 _ACEOF
25972
25973                 gethostbynamerstyle=BSD
25974
25975 else
25976   echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25978
25979
25980 fi
25981
25982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25983       conftest$ac_exeext conftest.$ac_ext
25984 fi
25985
25986 if test "x$gethostbynamerstyle" = "x"; then
25987         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25988 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25989 else
25990         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25991 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25992 fi
25993
25994 if test "x$gethostbynamerstyle" = "xBSD"; then
25995         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25996 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25997 fi
25998
25999
26000 cat >>confdefs.h <<\_ACEOF
26001 #define POSIXSTYLE 1
26002 _ACEOF
26003
26004
26005 cat >>confdefs.h <<\_ACEOF
26006 #define SOLARISSTYLE 2
26007 _ACEOF
26008
26009 ctimerstyle=""
26010 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
26011 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
26012 cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018
26019 #include <time.h>
26020
26021 int
26022 main ()
26023 {
26024  ctime_r(NULL, NULL, 0)
26025   ;
26026   return 0;
26027 }
26028 _ACEOF
26029 rm -f conftest.$ac_objext conftest$ac_exeext
26030 if { (ac_try="$ac_link"
26031 case "(($ac_try" in
26032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26033   *) ac_try_echo=$ac_try;;
26034 esac
26035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26036   (eval "$ac_link") 2>conftest.er1
26037   ac_status=$?
26038   grep -v '^ *+' conftest.er1 >conftest.err
26039   rm -f conftest.er1
26040   cat conftest.err >&5
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); } && {
26043          test -z "$ac_c_werror_flag" ||
26044          test ! -s conftest.err
26045        } && test -s conftest$ac_exeext &&
26046        $as_test_x conftest$ac_exeext; then
26047
26048
26049 cat >>confdefs.h <<\_ACEOF
26050 #define CTIMERSTYLE SOLARISSTYLE
26051 _ACEOF
26052
26053         ctimerstyle="SOLARIS"
26054
26055 else
26056   echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26058
26059
26060 fi
26061
26062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26063       conftest$ac_exeext conftest.$ac_ext
26064 if test "x$ctimerstyle" = "x"; then
26065         cat >conftest.$ac_ext <<_ACEOF
26066 /* confdefs.h.  */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h.  */
26071
26072 #include <time.h>
26073
26074 int
26075 main ()
26076 {
26077  ctime_r(NULL, NULL)
26078   ;
26079   return 0;
26080 }
26081 _ACEOF
26082 rm -f conftest.$ac_objext conftest$ac_exeext
26083 if { (ac_try="$ac_link"
26084 case "(($ac_try" in
26085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086   *) ac_try_echo=$ac_try;;
26087 esac
26088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26089   (eval "$ac_link") 2>conftest.er1
26090   ac_status=$?
26091   grep -v '^ *+' conftest.er1 >conftest.err
26092   rm -f conftest.er1
26093   cat conftest.err >&5
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); } && {
26096          test -z "$ac_c_werror_flag" ||
26097          test ! -s conftest.err
26098        } && test -s conftest$ac_exeext &&
26099        $as_test_x conftest$ac_exeext; then
26100
26101
26102 cat >>confdefs.h <<\_ACEOF
26103 #define CTIMERSTYLE POSIXSTYLE
26104 _ACEOF
26105
26106                 ctimerstyle="POSIX"
26107
26108 else
26109   echo "$as_me: failed program was:" >&5
26110 sed 's/^/| /' conftest.$ac_ext >&5
26111
26112
26113 fi
26114
26115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26116       conftest$ac_exeext conftest.$ac_ext
26117 fi
26118
26119 if test "x$ctimerstyle" = "x"; then
26120         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26121 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26122 else
26123         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26124 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26125 fi
26126
26127 HOSTINFO=$host
26128
26129
26130 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
26131
26132 cat >>confdefs.h <<\_ACEOF
26133 #define WITH_POST_PROXY_AUTHORIZE 1
26134 _ACEOF
26135
26136 fi
26137
26138
26139 top_builddir=`pwd`
26140 export top_builddir
26141 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26142 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26143
26144
26145
26146
26147
26148 mysubdirs="$LIBLTDLPATH"
26149 if test "x$EXPERIMENTAL" = "xyes"; then
26150   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26151     mysubdirs=`echo $mysubdirs $bar`
26152 else
26153         for bar in `cat "${srcdir}"/src/modules/stable`; do
26154     if test -f "${srcdir}"/src/modules/$bar/configure; then
26155       mysubdirs="$mysubdirs src/modules/$bar"
26156     fi
26157   done
26158 fi
26159
26160 if test "x$EXPERIMENTAL" = "xyes"; then
26161   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26162     MODULES="$MODULES $foo"
26163   done
26164 else
26165             for foo in `cat "${srcdir}"/src/modules/stable`; do
26166     MODULES="$MODULES $foo"
26167    done
26168 fi
26169
26170 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26171
26172
26173
26174
26175 ac_config_commands="$ac_config_commands stamp-h"
26176
26177 ac_config_commands="$ac_config_commands build-radpaths-h"
26178
26179 ac_config_commands="$ac_config_commands main-chmod"
26180
26181 ac_config_commands="$ac_config_commands scripts-chmod"
26182
26183
26184
26185
26186
26187 USE_SHARED_LIBS=$enable_shared
26188
26189 USE_STATIC_LIBS=$enable_static
26190
26191
26192
26193
26194
26195
26196
26197   unset ac_cv_env_LIBS_set
26198   unset ac_cv_env_LIBS_value
26199
26200   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/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
26201
26202 cat >confcache <<\_ACEOF
26203 # This file is a shell script that caches the results of configure
26204 # tests run on this system so they can be shared between configure
26205 # scripts and configure runs, see configure's option --config-cache.
26206 # It is not useful on other systems.  If it contains results you don't
26207 # want to keep, you may remove or edit it.
26208 #
26209 # config.status only pays attention to the cache file if you give it
26210 # the --recheck option to rerun configure.
26211 #
26212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26214 # following values.
26215
26216 _ACEOF
26217
26218 # The following way of writing the cache mishandles newlines in values,
26219 # but we know of no workaround that is simple, portable, and efficient.
26220 # So, we kill variables containing newlines.
26221 # Ultrix sh set writes to stderr and can't be redirected directly,
26222 # and sets the high bit in the cache file unless we assign to the vars.
26223 (
26224   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26225     eval ac_val=\$$ac_var
26226     case $ac_val in #(
26227     *${as_nl}*)
26228       case $ac_var in #(
26229       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26230 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26231       esac
26232       case $ac_var in #(
26233       _ | IFS | as_nl) ;; #(
26234       *) $as_unset $ac_var ;;
26235       esac ;;
26236     esac
26237   done
26238
26239   (set) 2>&1 |
26240     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26241     *${as_nl}ac_space=\ *)
26242       # `set' does not quote correctly, so add quotes (double-quote
26243       # substitution turns \\\\ into \\, and sed turns \\ into \).
26244       sed -n \
26245         "s/'/'\\\\''/g;
26246           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26247       ;; #(
26248     *)
26249       # `set' quotes correctly as required by POSIX, so do not add quotes.
26250       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26251       ;;
26252     esac |
26253     sort
26254 ) |
26255   sed '
26256      /^ac_cv_env_/b end
26257      t clear
26258      :clear
26259      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26260      t end
26261      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26262      :end' >>confcache
26263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26264   if test -w "$cache_file"; then
26265     test "x$cache_file" != "x/dev/null" &&
26266       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26267 echo "$as_me: updating cache $cache_file" >&6;}
26268     cat confcache >$cache_file
26269   else
26270     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26271 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26272   fi
26273 fi
26274 rm -f confcache
26275
26276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26277 # Let make expand exec_prefix.
26278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26279
26280 DEFS=-DHAVE_CONFIG_H
26281
26282 ac_libobjs=
26283 ac_ltlibobjs=
26284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26285   # 1. Remove the extension, and $U if already installed.
26286   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26287   ac_i=`echo "$ac_i" | sed "$ac_script"`
26288   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26289   #    will be set to the directory where LIBOBJS objects are built.
26290   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26291   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26292 done
26293 LIBOBJS=$ac_libobjs
26294
26295 LTLIBOBJS=$ac_ltlibobjs
26296
26297
26298
26299 : ${CONFIG_STATUS=./config.status}
26300 ac_clean_files_save=$ac_clean_files
26301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26302 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26303 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26304 cat >$CONFIG_STATUS <<_ACEOF
26305 #! $SHELL
26306 # Generated by $as_me.
26307 # Run this file to recreate the current configuration.
26308 # Compiler output produced by configure, useful for debugging
26309 # configure, is in config.log if it exists.
26310
26311 debug=false
26312 ac_cs_recheck=false
26313 ac_cs_silent=false
26314 SHELL=\${CONFIG_SHELL-$SHELL}
26315 _ACEOF
26316
26317 cat >>$CONFIG_STATUS <<\_ACEOF
26318 ## --------------------- ##
26319 ## M4sh Initialization.  ##
26320 ## --------------------- ##
26321
26322 # Be more Bourne compatible
26323 DUALCASE=1; export DUALCASE # for MKS sh
26324 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26325   emulate sh
26326   NULLCMD=:
26327   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26328   # is contrary to our usage.  Disable this feature.
26329   alias -g '${1+"$@"}'='"$@"'
26330   setopt NO_GLOB_SUBST
26331 else
26332   case `(set -o) 2>/dev/null` in
26333   *posix*) set -o posix ;;
26334 esac
26335
26336 fi
26337
26338
26339
26340
26341 # PATH needs CR
26342 # Avoid depending upon Character Ranges.
26343 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26344 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26345 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26346 as_cr_digits='0123456789'
26347 as_cr_alnum=$as_cr_Letters$as_cr_digits
26348
26349 # The user is always right.
26350 if test "${PATH_SEPARATOR+set}" != set; then
26351   echo "#! /bin/sh" >conf$$.sh
26352   echo  "exit 0"   >>conf$$.sh
26353   chmod +x conf$$.sh
26354   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26355     PATH_SEPARATOR=';'
26356   else
26357     PATH_SEPARATOR=:
26358   fi
26359   rm -f conf$$.sh
26360 fi
26361
26362 # Support unset when possible.
26363 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26364   as_unset=unset
26365 else
26366   as_unset=false
26367 fi
26368
26369
26370 # IFS
26371 # We need space, tab and new line, in precisely that order.  Quoting is
26372 # there to prevent editors from complaining about space-tab.
26373 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26374 # splitting by setting IFS to empty value.)
26375 as_nl='
26376 '
26377 IFS=" ""        $as_nl"
26378
26379 # Find who we are.  Look in the path if we contain no directory separator.
26380 case $0 in
26381   *[\\/]* ) as_myself=$0 ;;
26382   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26383 for as_dir in $PATH
26384 do
26385   IFS=$as_save_IFS
26386   test -z "$as_dir" && as_dir=.
26387   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26388 done
26389 IFS=$as_save_IFS
26390
26391      ;;
26392 esac
26393 # We did not find ourselves, most probably we were run as `sh COMMAND'
26394 # in which case we are not to be found in the path.
26395 if test "x$as_myself" = x; then
26396   as_myself=$0
26397 fi
26398 if test ! -f "$as_myself"; then
26399   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26400   { (exit 1); exit 1; }
26401 fi
26402
26403 # Work around bugs in pre-3.0 UWIN ksh.
26404 for as_var in ENV MAIL MAILPATH
26405 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26406 done
26407 PS1='$ '
26408 PS2='> '
26409 PS4='+ '
26410
26411 # NLS nuisances.
26412 for as_var in \
26413   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26414   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26415   LC_TELEPHONE LC_TIME
26416 do
26417   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26418     eval $as_var=C; export $as_var
26419   else
26420     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26421   fi
26422 done
26423
26424 # Required to use basename.
26425 if expr a : '\(a\)' >/dev/null 2>&1 &&
26426    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26427   as_expr=expr
26428 else
26429   as_expr=false
26430 fi
26431
26432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26433   as_basename=basename
26434 else
26435   as_basename=false
26436 fi
26437
26438
26439 # Name of the executable.
26440 as_me=`$as_basename -- "$0" ||
26441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26442          X"$0" : 'X\(//\)$' \| \
26443          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26444 echo X/"$0" |
26445     sed '/^.*\/\([^/][^/]*\)\/*$/{
26446             s//\1/
26447             q
26448           }
26449           /^X\/\(\/\/\)$/{
26450             s//\1/
26451             q
26452           }
26453           /^X\/\(\/\).*/{
26454             s//\1/
26455             q
26456           }
26457           s/.*/./; q'`
26458
26459 # CDPATH.
26460 $as_unset CDPATH
26461
26462
26463
26464   as_lineno_1=$LINENO
26465   as_lineno_2=$LINENO
26466   test "x$as_lineno_1" != "x$as_lineno_2" &&
26467   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26468
26469   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26470   # uniformly replaced by the line number.  The first 'sed' inserts a
26471   # line-number line after each line using $LINENO; the second 'sed'
26472   # does the real work.  The second script uses 'N' to pair each
26473   # line-number line with the line containing $LINENO, and appends
26474   # trailing '-' during substitution so that $LINENO is not a special
26475   # case at line end.
26476   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26477   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26478   # E. McMahon (1931-1989) for sed's syntax.  :-)
26479   sed -n '
26480     p
26481     /[$]LINENO/=
26482   ' <$as_myself |
26483     sed '
26484       s/[$]LINENO.*/&-/
26485       t lineno
26486       b
26487       :lineno
26488       N
26489       :loop
26490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26491       t loop
26492       s/-\n.*//
26493     ' >$as_me.lineno &&
26494   chmod +x "$as_me.lineno" ||
26495     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26496    { (exit 1); exit 1; }; }
26497
26498   # Don't try to exec as it changes $[0], causing all sort of problems
26499   # (the dirname of $[0] is not the place where we might find the
26500   # original and so on.  Autoconf is especially sensitive to this).
26501   . "./$as_me.lineno"
26502   # Exit status is that of the last command.
26503   exit
26504 }
26505
26506
26507 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26508   as_dirname=dirname
26509 else
26510   as_dirname=false
26511 fi
26512
26513 ECHO_C= ECHO_N= ECHO_T=
26514 case `echo -n x` in
26515 -n*)
26516   case `echo 'x\c'` in
26517   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26518   *)   ECHO_C='\c';;
26519   esac;;
26520 *)
26521   ECHO_N='-n';;
26522 esac
26523
26524 if expr a : '\(a\)' >/dev/null 2>&1 &&
26525    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26526   as_expr=expr
26527 else
26528   as_expr=false
26529 fi
26530
26531 rm -f conf$$ conf$$.exe conf$$.file
26532 if test -d conf$$.dir; then
26533   rm -f conf$$.dir/conf$$.file
26534 else
26535   rm -f conf$$.dir
26536   mkdir conf$$.dir
26537 fi
26538 echo >conf$$.file
26539 if ln -s conf$$.file conf$$ 2>/dev/null; then
26540   as_ln_s='ln -s'
26541   # ... but there are two gotchas:
26542   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26543   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26544   # In both cases, we have to default to `cp -p'.
26545   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26546     as_ln_s='cp -p'
26547 elif ln conf$$.file conf$$ 2>/dev/null; then
26548   as_ln_s=ln
26549 else
26550   as_ln_s='cp -p'
26551 fi
26552 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26553 rmdir conf$$.dir 2>/dev/null
26554
26555 if mkdir -p . 2>/dev/null; then
26556   as_mkdir_p=:
26557 else
26558   test -d ./-p && rmdir ./-p
26559   as_mkdir_p=false
26560 fi
26561
26562 if test -x / >/dev/null 2>&1; then
26563   as_test_x='test -x'
26564 else
26565   if ls -dL / >/dev/null 2>&1; then
26566     as_ls_L_option=L
26567   else
26568     as_ls_L_option=
26569   fi
26570   as_test_x='
26571     eval sh -c '\''
26572       if test -d "$1"; then
26573         test -d "$1/.";
26574       else
26575         case $1 in
26576         -*)set "./$1";;
26577         esac;
26578         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26579         ???[sx]*):;;*)false;;esac;fi
26580     '\'' sh
26581   '
26582 fi
26583 as_executable_p=$as_test_x
26584
26585 # Sed expression to map a string onto a valid CPP name.
26586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26587
26588 # Sed expression to map a string onto a valid variable name.
26589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26590
26591
26592 exec 6>&1
26593
26594 # Save the log message, to keep $[0] and so on meaningful, and to
26595 # report actual input values of CONFIG_FILES etc. instead of their
26596 # values after options handling.
26597 ac_log="
26598 This file was extended by $as_me, which was
26599 generated by GNU Autoconf 2.61.  Invocation command line was
26600
26601   CONFIG_FILES    = $CONFIG_FILES
26602   CONFIG_HEADERS  = $CONFIG_HEADERS
26603   CONFIG_LINKS    = $CONFIG_LINKS
26604   CONFIG_COMMANDS = $CONFIG_COMMANDS
26605   $ $0 $@
26606
26607 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26608 "
26609
26610 _ACEOF
26611
26612 cat >>$CONFIG_STATUS <<_ACEOF
26613 # Files that config.status was made for.
26614 config_files="$ac_config_files"
26615 config_headers="$ac_config_headers"
26616 config_commands="$ac_config_commands"
26617
26618 _ACEOF
26619
26620 cat >>$CONFIG_STATUS <<\_ACEOF
26621 ac_cs_usage="\
26622 \`$as_me' instantiates files from templates according to the
26623 current configuration.
26624
26625 Usage: $0 [OPTIONS] [FILE]...
26626
26627   -h, --help       print this help, then exit
26628   -V, --version    print version number and configuration settings, then exit
26629   -q, --quiet      do not print progress messages
26630   -d, --debug      don't remove temporary files
26631       --recheck    update $as_me by reconfiguring in the same conditions
26632   --file=FILE[:TEMPLATE]
26633                    instantiate the configuration file FILE
26634   --header=FILE[:TEMPLATE]
26635                    instantiate the configuration header FILE
26636
26637 Configuration files:
26638 $config_files
26639
26640 Configuration headers:
26641 $config_headers
26642
26643 Configuration commands:
26644 $config_commands
26645
26646 Report bugs to <bug-autoconf@gnu.org>."
26647
26648 _ACEOF
26649 cat >>$CONFIG_STATUS <<_ACEOF
26650 ac_cs_version="\\
26651 config.status
26652 configured by $0, generated by GNU Autoconf 2.61,
26653   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26654
26655 Copyright (C) 2006 Free Software Foundation, Inc.
26656 This config.status script is free software; the Free Software Foundation
26657 gives unlimited permission to copy, distribute and modify it."
26658
26659 ac_pwd='$ac_pwd'
26660 srcdir='$srcdir'
26661 _ACEOF
26662
26663 cat >>$CONFIG_STATUS <<\_ACEOF
26664 # If no file are specified by the user, then we need to provide default
26665 # value.  By we need to know if files were specified by the user.
26666 ac_need_defaults=:
26667 while test $# != 0
26668 do
26669   case $1 in
26670   --*=*)
26671     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26672     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26673     ac_shift=:
26674     ;;
26675   *)
26676     ac_option=$1
26677     ac_optarg=$2
26678     ac_shift=shift
26679     ;;
26680   esac
26681
26682   case $ac_option in
26683   # Handling of the options.
26684   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26685     ac_cs_recheck=: ;;
26686   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26687     echo "$ac_cs_version"; exit ;;
26688   --debug | --debu | --deb | --de | --d | -d )
26689     debug=: ;;
26690   --file | --fil | --fi | --f )
26691     $ac_shift
26692     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26693     ac_need_defaults=false;;
26694   --header | --heade | --head | --hea )
26695     $ac_shift
26696     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26697     ac_need_defaults=false;;
26698   --he | --h)
26699     # Conflict between --help and --header
26700     { echo "$as_me: error: ambiguous option: $1
26701 Try \`$0 --help' for more information." >&2
26702    { (exit 1); exit 1; }; };;
26703   --help | --hel | -h )
26704     echo "$ac_cs_usage"; exit ;;
26705   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26706   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26707     ac_cs_silent=: ;;
26708
26709   # This is an error.
26710   -*) { echo "$as_me: error: unrecognized option: $1
26711 Try \`$0 --help' for more information." >&2
26712    { (exit 1); exit 1; }; } ;;
26713
26714   *) ac_config_targets="$ac_config_targets $1"
26715      ac_need_defaults=false ;;
26716
26717   esac
26718   shift
26719 done
26720
26721 ac_configure_extra_args=
26722
26723 if $ac_cs_silent; then
26724   exec 6>/dev/null
26725   ac_configure_extra_args="$ac_configure_extra_args --silent"
26726 fi
26727
26728 _ACEOF
26729 cat >>$CONFIG_STATUS <<_ACEOF
26730 if \$ac_cs_recheck; then
26731   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26732   CONFIG_SHELL=$SHELL
26733   export CONFIG_SHELL
26734   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26735 fi
26736
26737 _ACEOF
26738 cat >>$CONFIG_STATUS <<\_ACEOF
26739 exec 5>>config.log
26740 {
26741   echo
26742   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26743 ## Running $as_me. ##
26744 _ASBOX
26745   echo "$ac_log"
26746 } >&5
26747
26748 _ACEOF
26749 cat >>$CONFIG_STATUS <<_ACEOF
26750 _ACEOF
26751
26752 cat >>$CONFIG_STATUS <<\_ACEOF
26753
26754 # Handling of arguments.
26755 for ac_config_target in $ac_config_targets
26756 do
26757   case $ac_config_target in
26758     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26759     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26760     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26761     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26762     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26763     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26764     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26765     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26766     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26767     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26768     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26769     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26770     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26771     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26772     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26773     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26774     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26775     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
26776     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26777
26778   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26779 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26780    { (exit 1); exit 1; }; };;
26781   esac
26782 done
26783
26784
26785 # If the user did not use the arguments to specify the items to instantiate,
26786 # then the envvar interface is used.  Set only those that are not.
26787 # We use the long form for the default assignment because of an extremely
26788 # bizarre bug on SunOS 4.1.3.
26789 if $ac_need_defaults; then
26790   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26791   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26792   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26793 fi
26794
26795 # Have a temporary directory for convenience.  Make it in the build tree
26796 # simply because there is no reason against having it here, and in addition,
26797 # creating and moving files from /tmp can sometimes cause problems.
26798 # Hook for its removal unless debugging.
26799 # Note that there is a small window in which the directory will not be cleaned:
26800 # after its creation but before its name has been assigned to `$tmp'.
26801 $debug ||
26802 {
26803   tmp=
26804   trap 'exit_status=$?
26805   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26806 ' 0
26807   trap '{ (exit 1); exit 1; }' 1 2 13 15
26808 }
26809 # Create a (secure) tmp directory for tmp files.
26810
26811 {
26812   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26813   test -n "$tmp" && test -d "$tmp"
26814 }  ||
26815 {
26816   tmp=./conf$$-$RANDOM
26817   (umask 077 && mkdir "$tmp")
26818 } ||
26819 {
26820    echo "$me: cannot create a temporary directory in ." >&2
26821    { (exit 1); exit 1; }
26822 }
26823
26824 #
26825 # Set up the sed scripts for CONFIG_FILES section.
26826 #
26827
26828 # No need to generate the scripts if there are no CONFIG_FILES.
26829 # This happens for instance when ./config.status config.h
26830 if test -n "$CONFIG_FILES"; then
26831
26832 _ACEOF
26833
26834
26835
26836 ac_delim='%!_!# '
26837 for ac_last_try in false false false false false :; do
26838   cat >conf$$subs.sed <<_ACEOF
26839 SHELL!$SHELL$ac_delim
26840 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26841 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26842 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26843 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26844 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26845 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26846 exec_prefix!$exec_prefix$ac_delim
26847 prefix!$prefix$ac_delim
26848 program_transform_name!$program_transform_name$ac_delim
26849 bindir!$bindir$ac_delim
26850 sbindir!$sbindir$ac_delim
26851 libexecdir!$libexecdir$ac_delim
26852 datarootdir!$datarootdir$ac_delim
26853 datadir!$datadir$ac_delim
26854 sysconfdir!$sysconfdir$ac_delim
26855 sharedstatedir!$sharedstatedir$ac_delim
26856 localstatedir!$localstatedir$ac_delim
26857 includedir!$includedir$ac_delim
26858 oldincludedir!$oldincludedir$ac_delim
26859 docdir!$docdir$ac_delim
26860 infodir!$infodir$ac_delim
26861 htmldir!$htmldir$ac_delim
26862 dvidir!$dvidir$ac_delim
26863 pdfdir!$pdfdir$ac_delim
26864 psdir!$psdir$ac_delim
26865 libdir!$libdir$ac_delim
26866 localedir!$localedir$ac_delim
26867 mandir!$mandir$ac_delim
26868 DEFS!$DEFS$ac_delim
26869 ECHO_C!$ECHO_C$ac_delim
26870 ECHO_N!$ECHO_N$ac_delim
26871 ECHO_T!$ECHO_T$ac_delim
26872 LIBS!$LIBS$ac_delim
26873 build_alias!$build_alias$ac_delim
26874 host_alias!$host_alias$ac_delim
26875 target_alias!$target_alias$ac_delim
26876 CC!$CC$ac_delim
26877 CFLAGS!$CFLAGS$ac_delim
26878 LDFLAGS!$LDFLAGS$ac_delim
26879 CPPFLAGS!$CPPFLAGS$ac_delim
26880 ac_ct_CC!$ac_ct_CC$ac_delim
26881 EXEEXT!$EXEEXT$ac_delim
26882 OBJEXT!$OBJEXT$ac_delim
26883 CXX!$CXX$ac_delim
26884 CXXFLAGS!$CXXFLAGS$ac_delim
26885 ac_ct_CXX!$ac_ct_CXX$ac_delim
26886 CPP!$CPP$ac_delim
26887 GREP!$GREP$ac_delim
26888 EGREP!$EGREP$ac_delim
26889 RANLIB!$RANLIB$ac_delim
26890 GMAKE!$GMAKE$ac_delim
26891 MAKE!$MAKE$ac_delim
26892 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26893 LIBTOOL!$LIBTOOL$ac_delim
26894 build!$build$ac_delim
26895 build_cpu!$build_cpu$ac_delim
26896 build_vendor!$build_vendor$ac_delim
26897 build_os!$build_os$ac_delim
26898 host!$host$ac_delim
26899 host_cpu!$host_cpu$ac_delim
26900 host_vendor!$host_vendor$ac_delim
26901 host_os!$host_os$ac_delim
26902 SED!$SED$ac_delim
26903 LN_S!$LN_S$ac_delim
26904 ECHO!$ECHO$ac_delim
26905 AR!$AR$ac_delim
26906 STRIP!$STRIP$ac_delim
26907 DSYMUTIL!$DSYMUTIL$ac_delim
26908 NMEDIT!$NMEDIT$ac_delim
26909 CXXCPP!$CXXCPP$ac_delim
26910 F77!$F77$ac_delim
26911 FFLAGS!$FFLAGS$ac_delim
26912 ac_ct_F77!$ac_ct_F77$ac_delim
26913 logdir!$logdir$ac_delim
26914 radacctdir!$radacctdir$ac_delim
26915 raddbdir!$raddbdir$ac_delim
26916 PERL!$PERL$ac_delim
26917 SNMPGET!$SNMPGET$ac_delim
26918 SNMPWALK!$SNMPWALK$ac_delim
26919 RUSERS!$RUSERS$ac_delim
26920 ACLOCAL!$ACLOCAL$ac_delim
26921 AUTOCONF!$AUTOCONF$ac_delim
26922 AUTOHEADER!$AUTOHEADER$ac_delim
26923 LOCATE!$LOCATE$ac_delim
26924 DIRNAME!$DIRNAME$ac_delim
26925 LIBREADLINE!$LIBREADLINE$ac_delim
26926 REGEX!$REGEX$ac_delim
26927 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26928 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26929 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26930 PCAP_LIBS!$PCAP_LIBS$ac_delim
26931 LIBPREFIX!$LIBPREFIX$ac_delim
26932 CRYPTLIB!$CRYPTLIB$ac_delim
26933 HOSTINFO!$HOSTINFO$ac_delim
26934 LIBLTDL!$LIBLTDL$ac_delim
26935 INCLTDL!$INCLTDL$ac_delim
26936 _ACEOF
26937
26938   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26939     break
26940   elif $ac_last_try; then
26941     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26942 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26943    { (exit 1); exit 1; }; }
26944   else
26945     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26946   fi
26947 done
26948
26949 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26950 if test -n "$ac_eof"; then
26951   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26952   ac_eof=`expr $ac_eof + 1`
26953 fi
26954
26955 cat >>$CONFIG_STATUS <<_ACEOF
26956 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26958 _ACEOF
26959 sed '
26960 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26961 s/^/s,@/; s/!/@,|#_!!_#|/
26962 :n
26963 t n
26964 s/'"$ac_delim"'$/,g/; t
26965 s/$/\\/; p
26966 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26967 ' >>$CONFIG_STATUS <conf$$subs.sed
26968 rm -f conf$$subs.sed
26969 cat >>$CONFIG_STATUS <<_ACEOF
26970 CEOF$ac_eof
26971 _ACEOF
26972
26973
26974 ac_delim='%!_!# '
26975 for ac_last_try in false false false false false :; do
26976   cat >conf$$subs.sed <<_ACEOF
26977 subdirs!$subdirs$ac_delim
26978 MODULES!$MODULES$ac_delim
26979 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26980 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26981 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26982 STATIC_MODULES!$STATIC_MODULES$ac_delim
26983 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26984 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26985 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26986 LIBOBJS!$LIBOBJS$ac_delim
26987 LTLIBOBJS!$LTLIBOBJS$ac_delim
26988 _ACEOF
26989
26990   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
26991     break
26992   elif $ac_last_try; then
26993     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26994 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26995    { (exit 1); exit 1; }; }
26996   else
26997     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26998   fi
26999 done
27000
27001 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27002 if test -n "$ac_eof"; then
27003   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27004   ac_eof=`expr $ac_eof + 1`
27005 fi
27006
27007 cat >>$CONFIG_STATUS <<_ACEOF
27008 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27010 _ACEOF
27011 sed '
27012 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27013 s/^/s,@/; s/!/@,|#_!!_#|/
27014 :n
27015 t n
27016 s/'"$ac_delim"'$/,g/; t
27017 s/$/\\/; p
27018 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27019 ' >>$CONFIG_STATUS <conf$$subs.sed
27020 rm -f conf$$subs.sed
27021 cat >>$CONFIG_STATUS <<_ACEOF
27022 :end
27023 s/|#_!!_#|//g
27024 CEOF$ac_eof
27025 _ACEOF
27026
27027
27028 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27029 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27030 # trailing colons and then remove the whole line if VPATH becomes empty
27031 # (actually we leave an empty line to preserve line numbers).
27032 if test "x$srcdir" = x.; then
27033   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27034 s/:*\$(srcdir):*/:/
27035 s/:*\${srcdir}:*/:/
27036 s/:*@srcdir@:*/:/
27037 s/^\([^=]*=[     ]*\):*/\1/
27038 s/:*$//
27039 s/^[^=]*=[       ]*$//
27040 }'
27041 fi
27042
27043 cat >>$CONFIG_STATUS <<\_ACEOF
27044 fi # test -n "$CONFIG_FILES"
27045
27046
27047 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27048 do
27049   case $ac_tag in
27050   :[FHLC]) ac_mode=$ac_tag; continue;;
27051   esac
27052   case $ac_mode$ac_tag in
27053   :[FHL]*:*);;
27054   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27055 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27056    { (exit 1); exit 1; }; };;
27057   :[FH]-) ac_tag=-:-;;
27058   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27059   esac
27060   ac_save_IFS=$IFS
27061   IFS=:
27062   set x $ac_tag
27063   IFS=$ac_save_IFS
27064   shift
27065   ac_file=$1
27066   shift
27067
27068   case $ac_mode in
27069   :L) ac_source=$1;;
27070   :[FH])
27071     ac_file_inputs=
27072     for ac_f
27073     do
27074       case $ac_f in
27075       -) ac_f="$tmp/stdin";;
27076       *) # Look for the file first in the build tree, then in the source tree
27077          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27078          # because $ac_f cannot contain `:'.
27079          test -f "$ac_f" ||
27080            case $ac_f in
27081            [\\/$]*) false;;
27082            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27083            esac ||
27084            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27085 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27086    { (exit 1); exit 1; }; };;
27087       esac
27088       ac_file_inputs="$ac_file_inputs $ac_f"
27089     done
27090
27091     # Let's still pretend it is `configure' which instantiates (i.e., don't
27092     # use $as_me), people would be surprised to read:
27093     #    /* config.h.  Generated by config.status.  */
27094     configure_input="Generated from "`IFS=:
27095           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27096     if test x"$ac_file" != x-; then
27097       configure_input="$ac_file.  $configure_input"
27098       { echo "$as_me:$LINENO: creating $ac_file" >&5
27099 echo "$as_me: creating $ac_file" >&6;}
27100     fi
27101
27102     case $ac_tag in
27103     *:-:* | *:-) cat >"$tmp/stdin";;
27104     esac
27105     ;;
27106   esac
27107
27108   ac_dir=`$as_dirname -- "$ac_file" ||
27109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27110          X"$ac_file" : 'X\(//\)[^/]' \| \
27111          X"$ac_file" : 'X\(//\)$' \| \
27112          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27113 echo X"$ac_file" |
27114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27115             s//\1/
27116             q
27117           }
27118           /^X\(\/\/\)[^/].*/{
27119             s//\1/
27120             q
27121           }
27122           /^X\(\/\/\)$/{
27123             s//\1/
27124             q
27125           }
27126           /^X\(\/\).*/{
27127             s//\1/
27128             q
27129           }
27130           s/.*/./; q'`
27131   { as_dir="$ac_dir"
27132   case $as_dir in #(
27133   -*) as_dir=./$as_dir;;
27134   esac
27135   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27136     as_dirs=
27137     while :; do
27138       case $as_dir in #(
27139       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27140       *) as_qdir=$as_dir;;
27141       esac
27142       as_dirs="'$as_qdir' $as_dirs"
27143       as_dir=`$as_dirname -- "$as_dir" ||
27144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27145          X"$as_dir" : 'X\(//\)[^/]' \| \
27146          X"$as_dir" : 'X\(//\)$' \| \
27147          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27148 echo X"$as_dir" |
27149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27150             s//\1/
27151             q
27152           }
27153           /^X\(\/\/\)[^/].*/{
27154             s//\1/
27155             q
27156           }
27157           /^X\(\/\/\)$/{
27158             s//\1/
27159             q
27160           }
27161           /^X\(\/\).*/{
27162             s//\1/
27163             q
27164           }
27165           s/.*/./; q'`
27166       test -d "$as_dir" && break
27167     done
27168     test -z "$as_dirs" || eval "mkdir $as_dirs"
27169   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27170 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27171    { (exit 1); exit 1; }; }; }
27172   ac_builddir=.
27173
27174 case "$ac_dir" in
27175 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27176 *)
27177   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27178   # A ".." for each directory in $ac_dir_suffix.
27179   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27180   case $ac_top_builddir_sub in
27181   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27182   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27183   esac ;;
27184 esac
27185 ac_abs_top_builddir=$ac_pwd
27186 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27187 # for backward compatibility:
27188 ac_top_builddir=$ac_top_build_prefix
27189
27190 case $srcdir in
27191   .)  # We are building in place.
27192     ac_srcdir=.
27193     ac_top_srcdir=$ac_top_builddir_sub
27194     ac_abs_top_srcdir=$ac_pwd ;;
27195   [\\/]* | ?:[\\/]* )  # Absolute name.
27196     ac_srcdir=$srcdir$ac_dir_suffix;
27197     ac_top_srcdir=$srcdir
27198     ac_abs_top_srcdir=$srcdir ;;
27199   *) # Relative name.
27200     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27201     ac_top_srcdir=$ac_top_build_prefix$srcdir
27202     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27203 esac
27204 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27205
27206
27207   case $ac_mode in
27208   :F)
27209   #
27210   # CONFIG_FILE
27211   #
27212
27213 _ACEOF
27214
27215 cat >>$CONFIG_STATUS <<\_ACEOF
27216 # If the template does not know about datarootdir, expand it.
27217 # FIXME: This hack should be removed a few years after 2.60.
27218 ac_datarootdir_hack=; ac_datarootdir_seen=
27219
27220 case `sed -n '/datarootdir/ {
27221   p
27222   q
27223 }
27224 /@datadir@/p
27225 /@docdir@/p
27226 /@infodir@/p
27227 /@localedir@/p
27228 /@mandir@/p
27229 ' $ac_file_inputs` in
27230 *datarootdir*) ac_datarootdir_seen=yes;;
27231 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27232   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27233 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27234 _ACEOF
27235 cat >>$CONFIG_STATUS <<_ACEOF
27236   ac_datarootdir_hack='
27237   s&@datadir@&$datadir&g
27238   s&@docdir@&$docdir&g
27239   s&@infodir@&$infodir&g
27240   s&@localedir@&$localedir&g
27241   s&@mandir@&$mandir&g
27242     s&\\\${datarootdir}&$datarootdir&g' ;;
27243 esac
27244 _ACEOF
27245
27246 # Neutralize VPATH when `$srcdir' = `.'.
27247 # Shell code in configure.ac might set extrasub.
27248 # FIXME: do we really want to maintain this feature?
27249 cat >>$CONFIG_STATUS <<_ACEOF
27250   sed "$ac_vpsub
27251 $extrasub
27252 _ACEOF
27253 cat >>$CONFIG_STATUS <<\_ACEOF
27254 :t
27255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27256 s&@configure_input@&$configure_input&;t t
27257 s&@top_builddir@&$ac_top_builddir_sub&;t t
27258 s&@srcdir@&$ac_srcdir&;t t
27259 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27260 s&@top_srcdir@&$ac_top_srcdir&;t t
27261 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27262 s&@builddir@&$ac_builddir&;t t
27263 s&@abs_builddir@&$ac_abs_builddir&;t t
27264 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27265 $ac_datarootdir_hack
27266 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27267
27268 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27269   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27270   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27271   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27272 which seems to be undefined.  Please make sure it is defined." >&5
27273 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27274 which seems to be undefined.  Please make sure it is defined." >&2;}
27275
27276   rm -f "$tmp/stdin"
27277   case $ac_file in
27278   -) cat "$tmp/out"; rm -f "$tmp/out";;
27279   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27280   esac
27281  ;;
27282   :H)
27283   #
27284   # CONFIG_HEADER
27285   #
27286 _ACEOF
27287
27288 # Transform confdefs.h into a sed script `conftest.defines', that
27289 # substitutes the proper values into config.h.in to produce config.h.
27290 rm -f conftest.defines conftest.tail
27291 # First, append a space to every undef/define line, to ease matching.
27292 echo 's/$/ /' >conftest.defines
27293 # Then, protect against being on the right side of a sed subst, or in
27294 # an unquoted here document, in config.status.  If some macros were
27295 # called several times there might be several #defines for the same
27296 # symbol, which is useless.  But do not sort them, since the last
27297 # AC_DEFINE must be honored.
27298 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27299 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27300 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27301 # PARAMS is the parameter list in the macro definition--in most cases, it's
27302 # just an empty string.
27303 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27304 ac_dB='\\)[      (].*,\\1define\\2'
27305 ac_dC=' '
27306 ac_dD=' ,'
27307
27308 uniq confdefs.h |
27309   sed -n '
27310         t rset
27311         :rset
27312         s/^[     ]*#[    ]*define[       ][      ]*//
27313         t ok
27314         d
27315         :ok
27316         s/[\\&,]/\\&/g
27317         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27318         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27319   ' >>conftest.defines
27320
27321 # Remove the space that was appended to ease matching.
27322 # Then replace #undef with comments.  This is necessary, for
27323 # example, in the case of _POSIX_SOURCE, which is predefined and required
27324 # on some systems where configure will not decide to define it.
27325 # (The regexp can be short, since the line contains either #define or #undef.)
27326 echo 's/ $//
27327 s,^[     #]*u.*,/* & */,' >>conftest.defines
27328
27329 # Break up conftest.defines:
27330 ac_max_sed_lines=50
27331
27332 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27333 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27334 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27335 # et cetera.
27336 ac_in='$ac_file_inputs'
27337 ac_out='"$tmp/out1"'
27338 ac_nxt='"$tmp/out2"'
27339
27340 while :
27341 do
27342   # Write a here document:
27343     cat >>$CONFIG_STATUS <<_ACEOF
27344     # First, check the format of the line:
27345     cat >"\$tmp/defines.sed" <<\\CEOF
27346 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27347 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27348 b
27349 :def
27350 _ACEOF
27351   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27352   echo 'CEOF
27353     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27354   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27355   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27356   grep . conftest.tail >/dev/null || break
27357   rm -f conftest.defines
27358   mv conftest.tail conftest.defines
27359 done
27360 rm -f conftest.defines conftest.tail
27361
27362 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27363 cat >>$CONFIG_STATUS <<\_ACEOF
27364   if test x"$ac_file" != x-; then
27365     echo "/* $configure_input  */" >"$tmp/config.h"
27366     cat "$ac_result" >>"$tmp/config.h"
27367     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27368       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27369 echo "$as_me: $ac_file is unchanged" >&6;}
27370     else
27371       rm -f $ac_file
27372       mv "$tmp/config.h" $ac_file
27373     fi
27374   else
27375     echo "/* $configure_input  */"
27376     cat "$ac_result"
27377   fi
27378   rm -f "$tmp/out12"
27379  ;;
27380
27381   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27382 echo "$as_me: executing $ac_file commands" >&6;}
27383  ;;
27384   esac
27385
27386
27387   case $ac_file$ac_mode in
27388     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
27389     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
27390     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
27391     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
27392
27393   esac
27394 done # for ac_tag
27395
27396
27397 { (exit 0); exit 0; }
27398 _ACEOF
27399 chmod +x $CONFIG_STATUS
27400 ac_clean_files=$ac_clean_files_save
27401
27402
27403 # configure is writing to config.log, and then calls config.status.
27404 # config.status does its own redirection, appending to config.log.
27405 # Unfortunately, on DOS this fails, as config.log is still kept open
27406 # by configure, so config.status won't be able to write to it; its
27407 # output is simply discarded.  So we exec the FD to /dev/null,
27408 # effectively closing config.log, so it can be properly (re)opened and
27409 # appended to by config.status.  When coming back to configure, we
27410 # need to make the FD available again.
27411 if test "$no_create" != yes; then
27412   ac_cs_success=:
27413   ac_config_status_args=
27414   test "$silent" = yes &&
27415     ac_config_status_args="$ac_config_status_args --quiet"
27416   exec 5>/dev/null
27417   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27418   exec 5>>config.log
27419   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27420   # would make configure fail if this is the last instruction.
27421   $ac_cs_success || { (exit 1); exit 1; }
27422 fi
27423
27424 #
27425 # CONFIG_SUBDIRS section.
27426 #
27427 if test "$no_recursion" != yes; then
27428
27429   # Remove --cache-file and --srcdir arguments so they do not pile up.
27430   ac_sub_configure_args=
27431   ac_prev=
27432   eval "set x $ac_configure_args"
27433   shift
27434   for ac_arg
27435   do
27436     if test -n "$ac_prev"; then
27437       ac_prev=
27438       continue
27439     fi
27440     case $ac_arg in
27441     -cache-file | --cache-file | --cache-fil | --cache-fi \
27442     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27443       ac_prev=cache_file ;;
27444     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27445     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27446     | --c=*)
27447       ;;
27448     --config-cache | -C)
27449       ;;
27450     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27451       ac_prev=srcdir ;;
27452     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27453       ;;
27454     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27455       ac_prev=prefix ;;
27456     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27457       ;;
27458     *)
27459       case $ac_arg in
27460       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27461       esac
27462       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27463     esac
27464   done
27465
27466   # Always prepend --prefix to ensure using the same prefix
27467   # in subdir configurations.
27468   ac_arg="--prefix=$prefix"
27469   case $ac_arg in
27470   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27471   esac
27472   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27473
27474   # Pass --silent
27475   if test "$silent" = yes; then
27476     ac_sub_configure_args="--silent $ac_sub_configure_args"
27477   fi
27478
27479   ac_popdir=`pwd`
27480   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27481
27482     # Do not complain, so a configure script can configure whichever
27483     # parts of a large source tree are present.
27484     test -d "$srcdir/$ac_dir" || continue
27485
27486     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27487     echo "$as_me:$LINENO: $ac_msg" >&5
27488     echo "$ac_msg" >&6
27489     { as_dir="$ac_dir"
27490   case $as_dir in #(
27491   -*) as_dir=./$as_dir;;
27492   esac
27493   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27494     as_dirs=
27495     while :; do
27496       case $as_dir in #(
27497       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27498       *) as_qdir=$as_dir;;
27499       esac
27500       as_dirs="'$as_qdir' $as_dirs"
27501       as_dir=`$as_dirname -- "$as_dir" ||
27502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27503          X"$as_dir" : 'X\(//\)[^/]' \| \
27504          X"$as_dir" : 'X\(//\)$' \| \
27505          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27506 echo X"$as_dir" |
27507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27508             s//\1/
27509             q
27510           }
27511           /^X\(\/\/\)[^/].*/{
27512             s//\1/
27513             q
27514           }
27515           /^X\(\/\/\)$/{
27516             s//\1/
27517             q
27518           }
27519           /^X\(\/\).*/{
27520             s//\1/
27521             q
27522           }
27523           s/.*/./; q'`
27524       test -d "$as_dir" && break
27525     done
27526     test -z "$as_dirs" || eval "mkdir $as_dirs"
27527   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27528 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27529    { (exit 1); exit 1; }; }; }
27530     ac_builddir=.
27531
27532 case "$ac_dir" in
27533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27534 *)
27535   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27536   # A ".." for each directory in $ac_dir_suffix.
27537   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27538   case $ac_top_builddir_sub in
27539   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27540   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27541   esac ;;
27542 esac
27543 ac_abs_top_builddir=$ac_pwd
27544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27545 # for backward compatibility:
27546 ac_top_builddir=$ac_top_build_prefix
27547
27548 case $srcdir in
27549   .)  # We are building in place.
27550     ac_srcdir=.
27551     ac_top_srcdir=$ac_top_builddir_sub
27552     ac_abs_top_srcdir=$ac_pwd ;;
27553   [\\/]* | ?:[\\/]* )  # Absolute name.
27554     ac_srcdir=$srcdir$ac_dir_suffix;
27555     ac_top_srcdir=$srcdir
27556     ac_abs_top_srcdir=$srcdir ;;
27557   *) # Relative name.
27558     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27559     ac_top_srcdir=$ac_top_build_prefix$srcdir
27560     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27561 esac
27562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27563
27564
27565     cd "$ac_dir"
27566
27567     # Check for guested configure; otherwise get Cygnus style configure.
27568     if test -f "$ac_srcdir/configure.gnu"; then
27569       ac_sub_configure=$ac_srcdir/configure.gnu
27570     elif test -f "$ac_srcdir/configure"; then
27571       ac_sub_configure=$ac_srcdir/configure
27572     elif test -f "$ac_srcdir/configure.in"; then
27573       # This should be Cygnus configure.
27574       ac_sub_configure=$ac_aux_dir/configure
27575     else
27576       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27578       ac_sub_configure=
27579     fi
27580
27581     # The recursion is here.
27582     if test -n "$ac_sub_configure"; then
27583       # Make the cache file name correct relative to the subdirectory.
27584       case $cache_file in
27585       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27586       *) # Relative name.
27587         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27588       esac
27589
27590       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27591 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27592       # The eval makes quoting arguments work.
27593       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27594            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27595         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27596 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27597    { (exit 1); exit 1; }; }
27598     fi
27599
27600     cd "$ac_popdir"
27601   done
27602 fi
27603
27604