Added new option to the build. Dp1
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.259 .
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 LN_S
835 ECHO
836 AR
837 STRIP
838 CXXCPP
839 F77
840 FFLAGS
841 ac_ct_F77
842 logdir
843 radacctdir
844 raddbdir
845 PERL
846 SNMPGET
847 SNMPWALK
848 RUSERS
849 ACLOCAL
850 AUTOCONF
851 AUTOHEADER
852 LOCATE
853 DIRNAME
854 REGEX
855 REGEX_EXTENDED
856 OPENSSL_INCLUDE
857 OPENSSL_LIBS
858 PCAP_LIBS
859 LIBPREFIX
860 CRYPTLIB
861 SNMP_LIBS
862 SNMP_INCLUDE
863 HOSTINFO
864 LIBLTDL
865 INCLTDL
866 subdirs
867 MODULES
868 INSTALLSTRIP
869 USE_SHARED_LIBS
870 USE_STATIC_LIBS
871 STATIC_MODULES
872 RADIUSD_MAJOR_VERSION
873 RADIUSD_MINOR_VERSION
874 RADIUSD_VERSION
875 LIBOBJS
876 LTLIBOBJS'
877 ac_subst_files=''
878       ac_precious_vars='build_alias
879 host_alias
880 target_alias
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 CXX
887 CXXFLAGS
888 CCC
889 CPP
890 CXXCPP
891 F77
892 FFLAGS'
893 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
894
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
900 cache_file=/dev/null
901 exec_prefix=NONE
902 no_create=
903 no_recursion=
904 prefix=NONE
905 program_prefix=NONE
906 program_suffix=NONE
907 program_transform_name=s,x,x,
908 silent=
909 site=
910 srcdir=
911 verbose=
912 x_includes=NONE
913 x_libraries=NONE
914
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE}'
932 infodir='${datarootdir}/info'
933 htmldir='${docdir}'
934 dvidir='${docdir}'
935 pdfdir='${docdir}'
936 psdir='${docdir}'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
940
941 ac_prev=
942 ac_dashdash=
943 for ac_option
944 do
945   # If the previous option needs an argument, assign it.
946   if test -n "$ac_prev"; then
947     eval $ac_prev=\$ac_option
948     ac_prev=
949     continue
950   fi
951
952   case $ac_option in
953   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954   *)    ac_optarg=yes ;;
955   esac
956
957   # Accept the important Cygnus configure options, so we can diagnose typos.
958
959   case $ac_dashdash$ac_option in
960   --)
961     ac_dashdash=yes ;;
962
963   -bindir | --bindir | --bindi | --bind | --bin | --bi)
964     ac_prev=bindir ;;
965   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966     bindir=$ac_optarg ;;
967
968   -build | --build | --buil | --bui | --bu)
969     ac_prev=build_alias ;;
970   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971     build_alias=$ac_optarg ;;
972
973   -cache-file | --cache-file | --cache-fil | --cache-fi \
974   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975     ac_prev=cache_file ;;
976   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978     cache_file=$ac_optarg ;;
979
980   --config-cache | -C)
981     cache_file=config.cache ;;
982
983   -datadir | --datadir | --datadi | --datad)
984     ac_prev=datadir ;;
985   -datadir=* | --datadir=* | --datadi=* | --datad=*)
986     datadir=$ac_optarg ;;
987
988   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989   | --dataroo | --dataro | --datar)
990     ac_prev=datarootdir ;;
991   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993     datarootdir=$ac_optarg ;;
994
995   -disable-* | --disable-*)
996     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000    { (exit 1); exit 1; }; }
1001     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002     eval enable_$ac_feature=no ;;
1003
1004   -docdir | --docdir | --docdi | --doc | --do)
1005     ac_prev=docdir ;;
1006   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007     docdir=$ac_optarg ;;
1008
1009   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010     ac_prev=dvidir ;;
1011   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012     dvidir=$ac_optarg ;;
1013
1014   -enable-* | --enable-*)
1015     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019    { (exit 1); exit 1; }; }
1020     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021     eval enable_$ac_feature=\$ac_optarg ;;
1022
1023   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025   | --exec | --exe | --ex)
1026     ac_prev=exec_prefix ;;
1027   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029   | --exec=* | --exe=* | --ex=*)
1030     exec_prefix=$ac_optarg ;;
1031
1032   -gas | --gas | --ga | --g)
1033     # Obsolete; use --with-gas.
1034     with_gas=yes ;;
1035
1036   -help | --help | --hel | --he | -h)
1037     ac_init_help=long ;;
1038   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039     ac_init_help=recursive ;;
1040   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041     ac_init_help=short ;;
1042
1043   -host | --host | --hos | --ho)
1044     ac_prev=host_alias ;;
1045   -host=* | --host=* | --hos=* | --ho=*)
1046     host_alias=$ac_optarg ;;
1047
1048   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049     ac_prev=htmldir ;;
1050   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051   | --ht=*)
1052     htmldir=$ac_optarg ;;
1053
1054   -includedir | --includedir | --includedi | --included | --include \
1055   | --includ | --inclu | --incl | --inc)
1056     ac_prev=includedir ;;
1057   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058   | --includ=* | --inclu=* | --incl=* | --inc=*)
1059     includedir=$ac_optarg ;;
1060
1061   -infodir | --infodir | --infodi | --infod | --info | --inf)
1062     ac_prev=infodir ;;
1063   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064     infodir=$ac_optarg ;;
1065
1066   -libdir | --libdir | --libdi | --libd)
1067     ac_prev=libdir ;;
1068   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069     libdir=$ac_optarg ;;
1070
1071   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072   | --libexe | --libex | --libe)
1073     ac_prev=libexecdir ;;
1074   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075   | --libexe=* | --libex=* | --libe=*)
1076     libexecdir=$ac_optarg ;;
1077
1078   -localedir | --localedir | --localedi | --localed | --locale)
1079     ac_prev=localedir ;;
1080   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081     localedir=$ac_optarg ;;
1082
1083   -localstatedir | --localstatedir | --localstatedi | --localstated \
1084   | --localstate | --localstat | --localsta | --localst | --locals)
1085     ac_prev=localstatedir ;;
1086   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088     localstatedir=$ac_optarg ;;
1089
1090   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091     ac_prev=mandir ;;
1092   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093     mandir=$ac_optarg ;;
1094
1095   -nfp | --nfp | --nf)
1096     # Obsolete; use --without-fp.
1097     with_fp=no ;;
1098
1099   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100   | --no-cr | --no-c | -n)
1101     no_create=yes ;;
1102
1103   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105     no_recursion=yes ;;
1106
1107   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109   | --oldin | --oldi | --old | --ol | --o)
1110     ac_prev=oldincludedir ;;
1111   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114     oldincludedir=$ac_optarg ;;
1115
1116   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117     ac_prev=prefix ;;
1118   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119     prefix=$ac_optarg ;;
1120
1121   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122   | --program-pre | --program-pr | --program-p)
1123     ac_prev=program_prefix ;;
1124   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126     program_prefix=$ac_optarg ;;
1127
1128   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129   | --program-suf | --program-su | --program-s)
1130     ac_prev=program_suffix ;;
1131   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133     program_suffix=$ac_optarg ;;
1134
1135   -program-transform-name | --program-transform-name \
1136   | --program-transform-nam | --program-transform-na \
1137   | --program-transform-n | --program-transform- \
1138   | --program-transform | --program-transfor \
1139   | --program-transfo | --program-transf \
1140   | --program-trans | --program-tran \
1141   | --progr-tra | --program-tr | --program-t)
1142     ac_prev=program_transform_name ;;
1143   -program-transform-name=* | --program-transform-name=* \
1144   | --program-transform-nam=* | --program-transform-na=* \
1145   | --program-transform-n=* | --program-transform-=* \
1146   | --program-transform=* | --program-transfor=* \
1147   | --program-transfo=* | --program-transf=* \
1148   | --program-trans=* | --program-tran=* \
1149   | --progr-tra=* | --program-tr=* | --program-t=*)
1150     program_transform_name=$ac_optarg ;;
1151
1152   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153     ac_prev=pdfdir ;;
1154   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155     pdfdir=$ac_optarg ;;
1156
1157   -psdir | --psdir | --psdi | --psd | --ps)
1158     ac_prev=psdir ;;
1159   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160     psdir=$ac_optarg ;;
1161
1162   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163   | -silent | --silent | --silen | --sile | --sil)
1164     silent=yes ;;
1165
1166   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167     ac_prev=sbindir ;;
1168   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169   | --sbi=* | --sb=*)
1170     sbindir=$ac_optarg ;;
1171
1172   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174   | --sharedst | --shareds | --shared | --share | --shar \
1175   | --sha | --sh)
1176     ac_prev=sharedstatedir ;;
1177   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180   | --sha=* | --sh=*)
1181     sharedstatedir=$ac_optarg ;;
1182
1183   -site | --site | --sit)
1184     ac_prev=site ;;
1185   -site=* | --site=* | --sit=*)
1186     site=$ac_optarg ;;
1187
1188   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189     ac_prev=srcdir ;;
1190   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191     srcdir=$ac_optarg ;;
1192
1193   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194   | --syscon | --sysco | --sysc | --sys | --sy)
1195     ac_prev=sysconfdir ;;
1196   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198     sysconfdir=$ac_optarg ;;
1199
1200   -target | --target | --targe | --targ | --tar | --ta | --t)
1201     ac_prev=target_alias ;;
1202   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203     target_alias=$ac_optarg ;;
1204
1205   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206     verbose=yes ;;
1207
1208   -version | --version | --versio | --versi | --vers | -V)
1209     ac_init_version=: ;;
1210
1211   -with-* | --with-*)
1212     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215       { echo "$as_me: error: invalid package name: $ac_package" >&2
1216    { (exit 1); exit 1; }; }
1217     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218     eval with_$ac_package=\$ac_optarg ;;
1219
1220   -without-* | --without-*)
1221     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       { echo "$as_me: error: invalid package name: $ac_package" >&2
1225    { (exit 1); exit 1; }; }
1226     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227     eval with_$ac_package=no ;;
1228
1229   --x)
1230     # Obsolete; use --with-x.
1231     with_x=yes ;;
1232
1233   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234   | --x-incl | --x-inc | --x-in | --x-i)
1235     ac_prev=x_includes ;;
1236   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238     x_includes=$ac_optarg ;;
1239
1240   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242     ac_prev=x_libraries ;;
1243   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245     x_libraries=$ac_optarg ;;
1246
1247   -*) { echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249    { (exit 1); exit 1; }; }
1250     ;;
1251
1252   *=*)
1253     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254     # Reject names that are not valid shell variable names.
1255     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257    { (exit 1); exit 1; }; }
1258     eval $ac_envvar=\$ac_optarg
1259     export $ac_envvar ;;
1260
1261   *)
1262     # FIXME: should be removed in autoconf 3.0.
1263     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267     ;;
1268
1269   esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274   { echo "$as_me: error: missing argument to $ac_option" >&2
1275    { (exit 1); exit 1; }; }
1276 fi
1277
1278 # Be sure to have absolute directory names.
1279 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280                 datadir sysconfdir sharedstatedir localstatedir includedir \
1281                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282                 libdir localedir mandir
1283 do
1284   eval ac_val=\$$ac_var
1285   case $ac_val in
1286     [\\/$]* | ?:[\\/]* )  continue;;
1287     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288   esac
1289   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290    { (exit 1); exit 1; }; }
1291 done
1292
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1299
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302   if test "x$build_alias" = x; then
1303     cross_compiling=maybe
1304     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305     If a cross compiler is detected then cross compile mode will be used." >&2
1306   elif test "x$build_alias" != "x$host_alias"; then
1307     cross_compiling=yes
1308   fi
1309 fi
1310
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314 test "$silent" = yes && exec 6>/dev/null
1315
1316
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320   { echo "$as_me: error: Working directory cannot be determined" >&2
1321    { (exit 1); exit 1; }; }
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323   { echo "$as_me: error: pwd does not report name of working directory" >&2
1324    { (exit 1); exit 1; }; }
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329   ac_srcdir_defaulted=yes
1330   # Try the directory containing this script, then the parent directory.
1331   ac_confdir=`$as_dirname -- "$0" ||
1332 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333          X"$0" : 'X\(//\)[^/]' \| \
1334          X"$0" : 'X\(//\)$' \| \
1335          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336 echo X"$0" |
1337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)[^/].*/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\).*/{
1350             s//\1/
1351             q
1352           }
1353           s/.*/./; q'`
1354   srcdir=$ac_confdir
1355   if test ! -r "$srcdir/$ac_unique_file"; then
1356     srcdir=..
1357   fi
1358 else
1359   ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364    { (exit 1); exit 1; }; }
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369    { (exit 1); exit 1; }; }
1370         pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373   srcdir=.
1374 fi
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_env_${ac_var}_value=\$${ac_var}
1384   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392   # Omit some internal or obsolete options to make the list less imposing.
1393   # This message is too long to be a string in the A/UX 3.1 sh.
1394   cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405   -h, --help              display this help and exit
1406       --help=short        display options specific to this package
1407       --help=recursive    display the short help of all the included packages
1408   -V, --version           display version information and exit
1409   -q, --quiet, --silent   do not print \`checking...' messages
1410       --cache-file=FILE   cache test results in FILE [disabled]
1411   -C, --config-cache      alias for \`--cache-file=config.cache'
1412   -n, --no-create         do not create output files
1413       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416   --prefix=PREFIX         install architecture-independent files in PREFIX
1417                           [$ac_default_prefix]
1418   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419                           [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429   --bindir=DIR           user executables [EPREFIX/bin]
1430   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431   --libexecdir=DIR       program executables [EPREFIX/libexec]
1432   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435   --libdir=DIR           object code libraries [EPREFIX/lib]
1436   --includedir=DIR       C header files [PREFIX/include]
1437   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440   --infodir=DIR          info documentation [DATAROOTDIR/info]
1441   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442   --mandir=DIR           man documentation [DATAROOTDIR/man]
1443   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1444   --htmldir=DIR          html documentation [DOCDIR]
1445   --dvidir=DIR           dvi documentation [DOCDIR]
1446   --pdfdir=DIR           pdf documentation [DOCDIR]
1447   --psdir=DIR            ps documentation [DOCDIR]
1448 _ACEOF
1449
1450   cat <<\_ACEOF
1451
1452 System types:
1453   --build=BUILD     configure for building on BUILD [guessed]
1454   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459
1460   cat <<\_ACEOF
1461
1462 Optional Features:
1463   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465   --disable-largefile     omit support for large files
1466   --enable-shared[=PKGS]  build shared libraries [default=yes]
1467   --enable-static[=PKGS]  build static libraries [default=yes]
1468   --enable-fast-install[=PKGS]
1469                           optimize for fast installation [default=yes]
1470   --disable-libtool-lock  avoid locking (might break parallel builds)
1471   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1472   --enable-developer               Enables features of interest to developers.
1473
1474 Optional Packages:
1475   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1476   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1477   --with-system-libtool              try to use libtool installed in your system default=use our own
1478   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1479   --with-pic              try to use only PIC/non-PIC objects [default=use
1480                           both]
1481   --with-tags[=TAGS]      include additional configurations [automatic]
1482   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1483   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1484   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1485   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1486   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1487   --with-threads          Use threads, if available.  (default=yes)
1488   --with-snmp             Compile in SNMP support. (default=yes)
1489   --with-snmp-include-dir=DIR  Directory to look for include files used by SNMP
1490   --with-vmps             Compile in VMPS support. (default=yes)
1491   --with-dhcp             Compile in DHCP support. (default=no)
1492   --with-static-modules=QUOTED-MODULE-LIST
1493  --with-modules=QUOTED-MODULE-LIST
1494   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1495   --with-openssl                   Use OpenSSL. (default=yes)
1496   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1497   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1498   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1499   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1500   --with-udpfromto        Compile in UDPFROMTO support. (default=yes)
1501
1502 Some influential environment variables:
1503   CC          C compiler command
1504   CFLAGS      C compiler flags
1505   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1506               nonstandard directory <lib dir>
1507   LIBS        libraries to pass to the linker, e.g. -l<library>
1508   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509               you have headers in a nonstandard directory <include dir>
1510   CXX         C++ compiler command
1511   CXXFLAGS    C++ compiler flags
1512   CPP         C preprocessor
1513   CXXCPP      C++ preprocessor
1514   F77         Fortran 77 compiler command
1515   FFLAGS      Fortran 77 compiler flags
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" || continue
1528     ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534   # A ".." for each directory in $ac_dir_suffix.
1535   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536   case $ac_top_builddir_sub in
1537   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539   esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547   .)  # We are building in place.
1548     ac_srcdir=.
1549     ac_top_srcdir=$ac_top_builddir_sub
1550     ac_abs_top_srcdir=$ac_pwd ;;
1551   [\\/]* | ?:[\\/]* )  # Absolute name.
1552     ac_srcdir=$srcdir$ac_dir_suffix;
1553     ac_top_srcdir=$srcdir
1554     ac_abs_top_srcdir=$srcdir ;;
1555   *) # Relative name.
1556     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557     ac_top_srcdir=$ac_top_build_prefix$srcdir
1558     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562     cd "$ac_dir" || { ac_status=$?; continue; }
1563     # Check for guested configure.
1564     if test -f "$ac_srcdir/configure.gnu"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567     elif test -f "$ac_srcdir/configure"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure" --help=recursive
1570     else
1571       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572     fi || ac_status=$?
1573     cd "$ac_pwd" || { ac_status=$?; break; }
1574   done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579   cat <<\_ACEOF
1580 configure
1581 generated by GNU Autoconf 2.61
1582
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588   exit
1589 fi
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1593
1594 It was created by $as_me, which was
1595 generated by GNU Autoconf 2.61.  Invocation command line was
1596
1597   $ $0 $@
1598
1599 _ACEOF
1600 exec 5>>config.log
1601 {
1602 cat <<_ASUNAME
1603 ## --------- ##
1604 ## Platform. ##
1605 ## --------- ##
1606
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1615
1616 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1617 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1620 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1621 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1622 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1623
1624 _ASUNAME
1625
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   echo "PATH: $as_dir"
1632 done
1633 IFS=$as_save_IFS
1634
1635 } >&5
1636
1637 cat >&5 <<_ACEOF
1638
1639
1640 ## ----------- ##
1641 ## Core tests. ##
1642 ## ----------- ##
1643
1644 _ACEOF
1645
1646
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1652 ac_configure_args=
1653 ac_configure_args0=
1654 ac_configure_args1=
1655 ac_must_keep_next=false
1656 for ac_pass in 1 2
1657 do
1658   for ac_arg
1659   do
1660     case $ac_arg in
1661     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663     | -silent | --silent | --silen | --sile | --sil)
1664       continue ;;
1665     *\'*)
1666       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667     esac
1668     case $ac_pass in
1669     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670     2)
1671       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672       if test $ac_must_keep_next = true; then
1673         ac_must_keep_next=false # Got value, back to normal.
1674       else
1675         case $ac_arg in
1676           *=* | --config-cache | -C | -disable-* | --disable-* \
1677           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679           | -with-* | --with-* | -without-* | --without-* | --x)
1680             case "$ac_configure_args0 " in
1681               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682             esac
1683             ;;
1684           -* ) ac_must_keep_next=true ;;
1685         esac
1686       fi
1687       ac_configure_args="$ac_configure_args '$ac_arg'"
1688       ;;
1689     esac
1690   done
1691 done
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log.  We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701   # Save into config.log some information that might help in debugging.
1702   {
1703     echo
1704
1705     cat <<\_ASBOX
1706 ## ---------------- ##
1707 ## Cache variables. ##
1708 ## ---------------- ##
1709 _ASBOX
1710     echo
1711     # The following way of writing the cache mishandles newlines in values,
1712 (
1713   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714     eval ac_val=\$$ac_var
1715     case $ac_val in #(
1716     *${as_nl}*)
1717       case $ac_var in #(
1718       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720       esac
1721       case $ac_var in #(
1722       _ | IFS | as_nl) ;; #(
1723       *) $as_unset $ac_var ;;
1724       esac ;;
1725     esac
1726   done
1727   (set) 2>&1 |
1728     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729     *${as_nl}ac_space=\ *)
1730       sed -n \
1731         "s/'\''/'\''\\\\'\'''\''/g;
1732           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733       ;; #(
1734     *)
1735       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736       ;;
1737     esac |
1738     sort
1739 )
1740     echo
1741
1742     cat <<\_ASBOX
1743 ## ----------------- ##
1744 ## Output variables. ##
1745 ## ----------------- ##
1746 _ASBOX
1747     echo
1748     for ac_var in $ac_subst_vars
1749     do
1750       eval ac_val=\$$ac_var
1751       case $ac_val in
1752       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753       esac
1754       echo "$ac_var='\''$ac_val'\''"
1755     done | sort
1756     echo
1757
1758     if test -n "$ac_subst_files"; then
1759       cat <<\_ASBOX
1760 ## ------------------- ##
1761 ## File substitutions. ##
1762 ## ------------------- ##
1763 _ASBOX
1764       echo
1765       for ac_var in $ac_subst_files
1766       do
1767         eval ac_val=\$$ac_var
1768         case $ac_val in
1769         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770         esac
1771         echo "$ac_var='\''$ac_val'\''"
1772       done | sort
1773       echo
1774     fi
1775
1776     if test -s confdefs.h; then
1777       cat <<\_ASBOX
1778 ## ----------- ##
1779 ## confdefs.h. ##
1780 ## ----------- ##
1781 _ASBOX
1782       echo
1783       cat confdefs.h
1784       echo
1785     fi
1786     test "$ac_signal" != 0 &&
1787       echo "$as_me: caught signal $ac_signal"
1788     echo "$as_me: exit $exit_status"
1789   } >&5
1790   rm -f core *.core core.conftest.* &&
1791     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792     exit $exit_status
1793 ' 0
1794 for ac_signal in 1 2 13 15; do
1795   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796 done
1797 ac_signal=0
1798
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1801
1802 # Predefined preprocessor variables.
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_NAME "$PACKAGE_NAME"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_STRING "$PACKAGE_STRING"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826 _ACEOF
1827
1828
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832   set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835 else
1836   set x "$ac_default_prefix/share/config.site" \
1837         "$ac_default_prefix/etc/config.site"
1838 fi
1839 shift
1840 for ac_site_file
1841 do
1842   if test -r "$ac_site_file"; then
1843     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845     sed 's/^/| /' "$ac_site_file" >&5
1846     . "$ac_site_file"
1847   fi
1848 done
1849
1850 if test -r "$cache_file"; then
1851   # Some versions of bash will fail to source /dev/null (special
1852   # files actually), so we avoid doing that.
1853   if test -f "$cache_file"; then
1854     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1856     case $cache_file in
1857       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858       *)                      . "./$cache_file";;
1859     esac
1860   fi
1861 else
1862   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1864   >$cache_file
1865 fi
1866
1867 # Check that the precious variables saved in the cache have kept the same
1868 # value.
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872   eval ac_new_set=\$ac_env_${ac_var}_set
1873   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874   eval ac_new_val=\$ac_env_${ac_var}_value
1875   case $ac_old_set,$ac_new_set in
1876     set,)
1877       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879       ac_cache_corrupted=: ;;
1880     ,set)
1881       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883       ac_cache_corrupted=: ;;
1884     ,);;
1885     *)
1886       if test "x$ac_old_val" != "x$ac_new_val"; then
1887         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1890 echo "$as_me:   former value:  $ac_old_val" >&2;}
1891         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1892 echo "$as_me:   current value: $ac_new_val" >&2;}
1893         ac_cache_corrupted=:
1894       fi;;
1895   esac
1896   # Pass precious variables to config.status.
1897   if test "$ac_new_set" = set; then
1898     case $ac_new_val in
1899     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900     *) ac_arg=$ac_var=$ac_new_val ;;
1901     esac
1902     case " $ac_configure_args " in
1903       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1904       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905     esac
1906   fi
1907 done
1908 if $ac_cache_corrupted; then
1909   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913    { (exit 1); exit 1; }; }
1914 fi
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937
1938
1939 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1940
1941
1942 RADIUSD_VERSION=`cat VERSION`
1943 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1944 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1945 PACKAGE=freeradius
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 if test -n "$ac_tool_prefix"; then
1954   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$CC"; then
1962   ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1978
1979 fi
1980 fi
1981 CC=$ac_cv_prog_CC
1982 if test -n "$CC"; then
1983   { echo "$as_me:$LINENO: result: $CC" >&5
1984 echo "${ECHO_T}$CC" >&6; }
1985 else
1986   { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1989
1990
1991 fi
1992 if test -z "$ac_cv_prog_CC"; then
1993   ac_ct_CC=$CC
1994   # Extract the first word of "gcc", so it can be a program name with args.
1995 set dummy gcc; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$ac_ct_CC"; then
2002   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2011     ac_cv_prog_ac_ct_CC="gcc"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017 IFS=$as_save_IFS
2018
2019 fi
2020 fi
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6; }
2025 else
2026   { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028 fi
2029
2030   if test "x$ac_ct_CC" = x; then
2031     CC=""
2032   else
2033     case $cross_compiling:$ac_tool_warned in
2034 yes:)
2035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2036 whose name does not start with the host triplet.  If you think this
2037 configuration is useful to you, please write to autoconf@gnu.org." >&5
2038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2039 whose name does not start with the host triplet.  If you think this
2040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2041 ac_tool_warned=yes ;;
2042 esac
2043     CC=$ac_ct_CC
2044   fi
2045 else
2046   CC="$ac_cv_prog_CC"
2047 fi
2048
2049 if test -z "$CC"; then
2050           if test -n "$ac_tool_prefix"; then
2051     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068     ac_cv_prog_CC="${ac_tool_prefix}cc"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074 IFS=$as_save_IFS
2075
2076 fi
2077 fi
2078 CC=$ac_cv_prog_CC
2079 if test -n "$CC"; then
2080   { echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6; }
2082 else
2083   { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2085 fi
2086
2087
2088   fi
2089 fi
2090 if test -z "$CC"; then
2091   # Extract the first word of "cc", so it can be a program name with args.
2092 set dummy cc; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   if test -n "$CC"; then
2099   ac_cv_prog_CC="$CC" # Let the user override the test.
2100 else
2101   ac_prog_rejected=no
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2110        ac_prog_rejected=yes
2111        continue
2112      fi
2113     ac_cv_prog_CC="cc"
2114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119 IFS=$as_save_IFS
2120
2121 if test $ac_prog_rejected = yes; then
2122   # We found a bogon in the path, so make sure we never use it.
2123   set dummy $ac_cv_prog_CC
2124   shift
2125   if test $# != 0; then
2126     # We chose a different compiler from the bogus one.
2127     # However, it has the same basename, so the bogon will be chosen
2128     # first if we set CC to just the basename; use the full file name.
2129     shift
2130     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2131   fi
2132 fi
2133 fi
2134 fi
2135 CC=$ac_cv_prog_CC
2136 if test -n "$CC"; then
2137   { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2139 else
2140   { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2142 fi
2143
2144
2145 fi
2146 if test -z "$CC"; then
2147   if test -n "$ac_tool_prefix"; then
2148   for ac_prog in cl.exe
2149   do
2150     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test -n "$CC"; then
2158   ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_exec_ext in '' $ac_executable_extensions; do
2166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169     break 2
2170   fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2174
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179   { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2181 else
2182   { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187     test -n "$CC" && break
2188   done
2189 fi
2190 if test -z "$CC"; then
2191   ac_ct_CC=$CC
2192   for ac_prog in cl.exe
2193 do
2194   # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$ac_ct_CC"; then
2202   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211     ac_cv_prog_ac_ct_CC="$ac_prog"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6; }
2225 else
2226   { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2228 fi
2229
2230
2231   test -n "$ac_ct_CC" && break
2232 done
2233
2234   if test "x$ac_ct_CC" = x; then
2235     CC=""
2236   else
2237     case $cross_compiling:$ac_tool_warned in
2238 yes:)
2239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet.  If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&5
2242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2243 whose name does not start with the host triplet.  If you think this
2244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2245 ac_tool_warned=yes ;;
2246 esac
2247     CC=$ac_ct_CC
2248   fi
2249 fi
2250
2251 fi
2252
2253
2254 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&2;}
2258    { (exit 1); exit 1; }; }
2259
2260 # Provide some information about the compiler.
2261 echo "$as_me:$LINENO: checking for C compiler version" >&5
2262 ac_compiler=`set X $ac_compile; echo $2`
2263 { (ac_try="$ac_compiler --version >&5"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269   (eval "$ac_compiler --version >&5") 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }
2273 { (ac_try="$ac_compiler -v >&5"
2274 case "(($ac_try" in
2275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276   *) ac_try_echo=$ac_try;;
2277 esac
2278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2279   (eval "$ac_compiler -v >&5") 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (ac_try="$ac_compiler -V >&5"
2284 case "(($ac_try" in
2285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286   *) ac_try_echo=$ac_try;;
2287 esac
2288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2289   (eval "$ac_compiler -V >&5") 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }
2293
2294 cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300
2301 int
2302 main ()
2303 {
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 ac_clean_files_save=$ac_clean_files
2310 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2311 # Try to create an executable without -o first, disregard a.out.
2312 # It will help us diagnose broken compilers, and finding out an intuition
2313 # of exeext.
2314 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2315 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2316 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2317 #
2318 # List of possible output files, starting from the most likely.
2319 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2320 # only as a last resort.  b.out is created by i960 compilers.
2321 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2322 #
2323 # The IRIX 6 linker writes into existing files which may not be
2324 # executable, retaining their permissions.  Remove them first so a
2325 # subsequent execution test works.
2326 ac_rmfiles=
2327 for ac_file in $ac_files
2328 do
2329   case $ac_file in
2330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2332   esac
2333 done
2334 rm -f $ac_rmfiles
2335
2336 if { (ac_try="$ac_link_default"
2337 case "(($ac_try" in
2338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339   *) ac_try_echo=$ac_try;;
2340 esac
2341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342   (eval "$ac_link_default") 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; then
2346   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2348 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2349 # so that the user can short-circuit this test for compilers unknown to
2350 # Autoconf.
2351 for ac_file in $ac_files ''
2352 do
2353   test -f "$ac_file" || continue
2354   case $ac_file in
2355     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2356         ;;
2357     [ab].out )
2358         # We found the default executable, but exeext='' is most
2359         # certainly right.
2360         break;;
2361     *.* )
2362         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2363         then :; else
2364            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365         fi
2366         # We set ac_cv_exeext here because the later test for it is not
2367         # safe: cross compilers may not add the suffix if given an `-o'
2368         # argument, so we may need to know it at that point already.
2369         # Even if this section looks crufty: it has the advantage of
2370         # actually working.
2371         break;;
2372     * )
2373         break;;
2374   esac
2375 done
2376 test "$ac_cv_exeext" = no && ac_cv_exeext=
2377
2378 else
2379   ac_file=''
2380 fi
2381
2382 { echo "$as_me:$LINENO: result: $ac_file" >&5
2383 echo "${ECHO_T}$ac_file" >&6; }
2384 if test -z "$ac_file"; then
2385   echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&2;}
2392    { (exit 77); exit 77; }; }
2393 fi
2394
2395 ac_exeext=$ac_cv_exeext
2396
2397 # Check that the compiler produces executables we can run.  If not, either
2398 # the compiler is broken, or we cross compile.
2399 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2400 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2401 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2402 # If not cross compiling, check that we can run a simple program.
2403 if test "$cross_compiling" != yes; then
2404   if { ac_try='./$ac_file'
2405   { (case "(($ac_try" in
2406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407   *) ac_try_echo=$ac_try;;
2408 esac
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410   (eval "$ac_try") 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414     cross_compiling=no
2415   else
2416     if test "$cross_compiling" = maybe; then
2417         cross_compiling=yes
2418     else
2419         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2420 If you meant to cross compile, use \`--host'.
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&2;}
2425    { (exit 1); exit 1; }; }
2426     fi
2427   fi
2428 fi
2429 { echo "$as_me:$LINENO: result: yes" >&5
2430 echo "${ECHO_T}yes" >&6; }
2431
2432 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2433 ac_clean_files=$ac_clean_files_save
2434 # Check that the compiler produces executables we can run.  If not, either
2435 # the compiler is broken, or we cross compile.
2436 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2437 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2438 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2439 echo "${ECHO_T}$cross_compiling" >&6; }
2440
2441 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2442 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2443 if { (ac_try="$ac_link"
2444 case "(($ac_try" in
2445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446   *) ac_try_echo=$ac_try;;
2447 esac
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449   (eval "$ac_link") 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; then
2453   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2456 # `rm'.
2457 for ac_file in conftest.exe conftest conftest.*; do
2458   test -f "$ac_file" || continue
2459   case $ac_file in
2460     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2461     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462           break;;
2463     * ) break;;
2464   esac
2465 done
2466 else
2467   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&2;}
2471    { (exit 1); exit 1; }; }
2472 fi
2473
2474 rm -f conftest$ac_cv_exeext
2475 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2476 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2477
2478 rm -f conftest.$ac_ext
2479 EXEEXT=$ac_cv_exeext
2480 ac_exeext=$EXEEXT
2481 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2482 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2483 if test "${ac_cv_objext+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h.  */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h.  */
2492
2493 int
2494 main ()
2495 {
2496
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.o conftest.obj
2502 if { (ac_try="$ac_compile"
2503 case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508   (eval "$ac_compile") 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; then
2512   for ac_file in conftest.o conftest.obj conftest.*; do
2513   test -f "$ac_file" || continue;
2514   case $ac_file in
2515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2516     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2517        break;;
2518   esac
2519 done
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&2;}
2528    { (exit 1); exit 1; }; }
2529 fi
2530
2531 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2532 fi
2533 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2534 echo "${ECHO_T}$ac_cv_objext" >&6; }
2535 OBJEXT=$ac_cv_objext
2536 ac_objext=$OBJEXT
2537 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2539 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552 #ifndef __GNUC__
2553        choke me
2554 #endif
2555
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2562 case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_compile") 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } && {
2574          test -z "$ac_c_werror_flag" ||
2575          test ! -s conftest.err
2576        } && test -s conftest.$ac_objext; then
2577   ac_compiler_gnu=yes
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582         ac_compiler_gnu=no
2583 fi
2584
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587
2588 fi
2589 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2591 GCC=`test $ac_compiler_gnu = yes && echo yes`
2592 ac_test_CFLAGS=${CFLAGS+set}
2593 ac_save_CFLAGS=$CFLAGS
2594 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2595 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_cc_g+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   ac_save_c_werror_flag=$ac_c_werror_flag
2600    ac_c_werror_flag=yes
2601    ac_cv_prog_cc_g=no
2602    CFLAGS="-g"
2603    cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609
2610 int
2611 main ()
2612 {
2613
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (ac_try="$ac_compile"
2620 case "(($ac_try" in
2621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622   *) ac_try_echo=$ac_try;;
2623 esac
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625   (eval "$ac_compile") 2>conftest.er1
2626   ac_status=$?
2627   grep -v '^ *+' conftest.er1 >conftest.err
2628   rm -f conftest.er1
2629   cat conftest.err >&5
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } && {
2632          test -z "$ac_c_werror_flag" ||
2633          test ! -s conftest.err
2634        } && test -s conftest.$ac_objext; then
2635   ac_cv_prog_cc_g=yes
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640         CFLAGS=""
2641       cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647
2648 int
2649 main ()
2650 {
2651
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (ac_try="$ac_compile"
2658 case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663   (eval "$ac_compile") 2>conftest.er1
2664   ac_status=$?
2665   grep -v '^ *+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } && {
2670          test -z "$ac_c_werror_flag" ||
2671          test ! -s conftest.err
2672        } && test -s conftest.$ac_objext; then
2673   :
2674 else
2675   echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678         ac_c_werror_flag=$ac_save_c_werror_flag
2679          CFLAGS="-g"
2680          cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686
2687 int
2688 main ()
2689 {
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702   (eval "$ac_compile") 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } && {
2709          test -z "$ac_c_werror_flag" ||
2710          test ! -s conftest.err
2711        } && test -s conftest.$ac_objext; then
2712   ac_cv_prog_cc_g=yes
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717
2718 fi
2719
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 fi
2722
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 fi
2725
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727    ac_c_werror_flag=$ac_save_c_werror_flag
2728 fi
2729 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2731 if test "$ac_test_CFLAGS" = set; then
2732   CFLAGS=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734   if test "$GCC" = yes; then
2735     CFLAGS="-g -O2"
2736   else
2737     CFLAGS="-g"
2738   fi
2739 else
2740   if test "$GCC" = yes; then
2741     CFLAGS="-O2"
2742   else
2743     CFLAGS=
2744   fi
2745 fi
2746 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2747 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_cc_c89+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   ac_cv_prog_cc_c89=no
2752 ac_save_CC=$CC
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759 #include <stdarg.h>
2760 #include <stdio.h>
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2767      char **p;
2768      int i;
2769 {
2770   return p[i];
2771 }
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2773 {
2774   char *s;
2775   va_list v;
2776   va_start (v,p);
2777   s = g (p, va_arg (v,int));
2778   va_end (v);
2779   return s;
2780 }
2781
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2783    function prototypes and stuff, but not '\xHH' hex character constants.
2784    These don't provoke an error unfortunately, instead are silently treated
2785    as 'x'.  The following induces an error, until -std is added to get
2786    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2787    array size at least.  It's necessary to write '\x00'==0 to get something
2788    that's true only with -std.  */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2790
2791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2792    inside strings and character constants.  */
2793 #define FOO(x) 'x'
2794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2795
2796 int test (int i, double x);
2797 struct s1 {int (*f) (int a);};
2798 struct s2 {int (*f) (double a);};
2799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2800 int argc;
2801 char **argv;
2802 int
2803 main ()
2804 {
2805 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2811         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2812 do
2813   CC="$ac_save_CC $ac_arg"
2814   rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2816 case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821   (eval "$ac_compile") 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } && {
2828          test -z "$ac_c_werror_flag" ||
2829          test ! -s conftest.err
2830        } && test -s conftest.$ac_objext; then
2831   ac_cv_prog_cc_c89=$ac_arg
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836
2837 fi
2838
2839 rm -f core conftest.err conftest.$ac_objext
2840   test "x$ac_cv_prog_cc_c89" != "xno" && break
2841 done
2842 rm -f conftest.$ac_ext
2843 CC=$ac_save_CC
2844
2845 fi
2846 # AC_CACHE_VAL
2847 case "x$ac_cv_prog_cc_c89" in
2848   x)
2849     { echo "$as_me:$LINENO: result: none needed" >&5
2850 echo "${ECHO_T}none needed" >&6; } ;;
2851   xno)
2852     { echo "$as_me:$LINENO: result: unsupported" >&5
2853 echo "${ECHO_T}unsupported" >&6; } ;;
2854   *)
2855     CC="$CC $ac_cv_prog_cc_c89"
2856     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2858 esac
2859
2860
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867 ac_ext=cpp
2868 ac_cpp='$CXXCPP $CPPFLAGS'
2869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2872 if test -z "$CXX"; then
2873   if test -n "$CCC"; then
2874     CXX=$CCC
2875   else
2876     if test -n "$ac_tool_prefix"; then
2877   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2878   do
2879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_CXX+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   if test -n "$CXX"; then
2887   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894   for ac_exec_ext in '' $ac_executable_extensions; do
2895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898     break 2
2899   fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 CXX=$ac_cv_prog_CXX
2907 if test -n "$CXX"; then
2908   { echo "$as_me:$LINENO: result: $CXX" >&5
2909 echo "${ECHO_T}$CXX" >&6; }
2910 else
2911   { echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6; }
2913 fi
2914
2915
2916     test -n "$CXX" && break
2917   done
2918 fi
2919 if test -z "$CXX"; then
2920   ac_ct_CXX=$CXX
2921   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2922 do
2923   # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930   if test -n "$ac_ct_CXX"; then
2931   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936   IFS=$as_save_IFS
2937   test -z "$as_dir" && as_dir=.
2938   for ac_exec_ext in '' $ac_executable_extensions; do
2939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940     ac_cv_prog_ac_ct_CXX="$ac_prog"
2941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943   fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2951 if test -n "$ac_ct_CXX"; then
2952   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2953 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2954 else
2955   { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2957 fi
2958
2959
2960   test -n "$ac_ct_CXX" && break
2961 done
2962
2963   if test "x$ac_ct_CXX" = x; then
2964     CXX="g++"
2965   else
2966     case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2969 whose name does not start with the host triplet.  If you think this
2970 configuration is useful to you, please write to autoconf@gnu.org." >&5
2971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2972 whose name does not start with the host triplet.  If you think this
2973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2974 ac_tool_warned=yes ;;
2975 esac
2976     CXX=$ac_ct_CXX
2977   fi
2978 fi
2979
2980   fi
2981 fi
2982 # Provide some information about the compiler.
2983 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2984 ac_compiler=`set X $ac_compile; echo $2`
2985 { (ac_try="$ac_compiler --version >&5"
2986 case "(($ac_try" in
2987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988   *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991   (eval "$ac_compiler --version >&5") 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }
2995 { (ac_try="$ac_compiler -v >&5"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_compiler -v >&5") 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }
3005 { (ac_try="$ac_compiler -V >&5"
3006 case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_compiler -V >&5") 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }
3015
3016 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3017 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3018 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027
3028 int
3029 main ()
3030 {
3031 #ifndef __GNUC__
3032        choke me
3033 #endif
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } && {
3053          test -z "$ac_cxx_werror_flag" ||
3054          test ! -s conftest.err
3055        } && test -s conftest.$ac_objext; then
3056   ac_compiler_gnu=yes
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061         ac_compiler_gnu=no
3062 fi
3063
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3066
3067 fi
3068 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3069 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3070 GXX=`test $ac_compiler_gnu = yes && echo yes`
3071 ac_test_CXXFLAGS=${CXXFLAGS+set}
3072 ac_save_CXXFLAGS=$CXXFLAGS
3073 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3074 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_cxx_g+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3079    ac_cxx_werror_flag=yes
3080    ac_cv_prog_cxx_g=no
3081    CXXFLAGS="-g"
3082    cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } && {
3111          test -z "$ac_cxx_werror_flag" ||
3112          test ! -s conftest.err
3113        } && test -s conftest.$ac_objext; then
3114   ac_cv_prog_cxx_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         CXXFLAGS=""
3120       cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } && {
3149          test -z "$ac_cxx_werror_flag" ||
3150          test ! -s conftest.err
3151        } && test -s conftest.$ac_objext; then
3152   :
3153 else
3154   echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3158          CXXFLAGS="-g"
3159          cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } && {
3188          test -z "$ac_cxx_werror_flag" ||
3189          test ! -s conftest.err
3190        } && test -s conftest.$ac_objext; then
3191   ac_cv_prog_cxx_g=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211   CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213   if test "$GXX" = yes; then
3214     CXXFLAGS="-g -O2"
3215   else
3216     CXXFLAGS="-g"
3217   fi
3218 else
3219   if test "$GXX" = yes; then
3220     CXXFLAGS="-O2"
3221   else
3222     CXXFLAGS=
3223   fi
3224 fi
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3242   CPP=
3243 fi
3244 if test -z "$CPP"; then
3245   if test "${ac_cv_prog_CPP+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248       # Double quotes because CPP needs to be expanded
3249     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250     do
3251       ac_preproc_ok=false
3252 for ac_c_preproc_warn_flag in '' yes
3253 do
3254   # Use a header file that comes with gcc, so configuring glibc
3255   # with a fresh cross-compiler works.
3256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257   # <limits.h> exists even on freestanding compilers.
3258   # On the NeXT, cc -E runs the code through the compiler's parser,
3259   # not just through cpp. "Syntax error" is here to catch this case.
3260   cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271                      Syntax error
3272 _ACEOF
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } >/dev/null && {
3286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3287          test ! -s conftest.err
3288        }; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294   # Broken: fails on valid input.
3295 continue
3296 fi
3297
3298 rm -f conftest.err conftest.$ac_ext
3299
3300   # OK, works on sane cases.  Now check whether nonexistent headers
3301   # can be detected and how.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <ac_nonexistent.h>
3309 _ACEOF
3310 if { (ac_try="$ac_cpp conftest.$ac_ext"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } >/dev/null && {
3323          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3324          test ! -s conftest.err
3325        }; then
3326   # Broken: success on invalid input.
3327 continue
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332   # Passes both tests.
3333 ac_preproc_ok=:
3334 break
3335 fi
3336
3337 rm -f conftest.err conftest.$ac_ext
3338
3339 done
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3343   break
3344 fi
3345
3346     done
3347     ac_cv_prog_CPP=$CPP
3348
3349 fi
3350   CPP=$ac_cv_prog_CPP
3351 else
3352   ac_cv_prog_CPP=$CPP
3353 fi
3354 { echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6; }
3356 ac_preproc_ok=false
3357 for ac_c_preproc_warn_flag in '' yes
3358 do
3359   # Use a header file that comes with gcc, so configuring glibc
3360   # with a fresh cross-compiler works.
3361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362   # <limits.h> exists even on freestanding compilers.
3363   # On the NeXT, cc -E runs the code through the compiler's parser,
3364   # not just through cpp. "Syntax error" is here to catch this case.
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #ifdef __STDC__
3372 # include <limits.h>
3373 #else
3374 # include <assert.h>
3375 #endif
3376                      Syntax error
3377 _ACEOF
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } >/dev/null && {
3391          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3392          test ! -s conftest.err
3393        }; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Broken: fails on valid input.
3400 continue
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether nonexistent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null && {
3428          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429          test ! -s conftest.err
3430        }; then
3431   # Broken: success on invalid input.
3432 continue
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437   # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448   :
3449 else
3450   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3465 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3466 if test "${ac_cv_path_GREP+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   # Extract the first word of "grep ggrep" to use in msg output
3470 if test -z "$GREP"; then
3471 set dummy grep ggrep; ac_prog_name=$2
3472 if test "${ac_cv_path_GREP+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   ac_path_GREP_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482   for ac_prog in grep ggrep; do
3483   for ac_exec_ext in '' $ac_executable_extensions; do
3484     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3485     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3486     # Check for GNU ac_path_GREP and select it if it is found.
3487   # Check for GNU $ac_path_GREP
3488 case `"$ac_path_GREP" --version 2>&1` in
3489 *GNU*)
3490   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3491 *)
3492   ac_count=0
3493   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3494   while :
3495   do
3496     cat "conftest.in" "conftest.in" >"conftest.tmp"
3497     mv "conftest.tmp" "conftest.in"
3498     cp "conftest.in" "conftest.nl"
3499     echo 'GREP' >> "conftest.nl"
3500     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502     ac_count=`expr $ac_count + 1`
3503     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3504       # Best one so far, save it but keep looking for a better one
3505       ac_cv_path_GREP="$ac_path_GREP"
3506       ac_path_GREP_max=$ac_count
3507     fi
3508     # 10*(2^10) chars as input seems more than enough
3509     test $ac_count -gt 10 && break
3510   done
3511   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3512 esac
3513
3514
3515     $ac_path_GREP_found && break 3
3516   done
3517 done
3518
3519 done
3520 IFS=$as_save_IFS
3521
3522
3523 fi
3524
3525 GREP="$ac_cv_path_GREP"
3526 if test -z "$GREP"; then
3527   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3528 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3529    { (exit 1); exit 1; }; }
3530 fi
3531
3532 else
3533   ac_cv_path_GREP=$GREP
3534 fi
3535
3536
3537 fi
3538 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3539 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3540  GREP="$ac_cv_path_GREP"
3541
3542
3543 { echo "$as_me:$LINENO: checking for egrep" >&5
3544 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3545 if test "${ac_cv_path_EGREP+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3549    then ac_cv_path_EGREP="$GREP -E"
3550    else
3551      # Extract the first word of "egrep" to use in msg output
3552 if test -z "$EGREP"; then
3553 set dummy egrep; ac_prog_name=$2
3554 if test "${ac_cv_path_EGREP+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   ac_path_EGREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 do
3562   IFS=$as_save_IFS
3563   test -z "$as_dir" && as_dir=.
3564   for ac_prog in egrep; do
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3567     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3568     # Check for GNU ac_path_EGREP and select it if it is found.
3569   # Check for GNU $ac_path_EGREP
3570 case `"$ac_path_EGREP" --version 2>&1` in
3571 *GNU*)
3572   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3573 *)
3574   ac_count=0
3575   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3576   while :
3577   do
3578     cat "conftest.in" "conftest.in" >"conftest.tmp"
3579     mv "conftest.tmp" "conftest.in"
3580     cp "conftest.in" "conftest.nl"
3581     echo 'EGREP' >> "conftest.nl"
3582     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584     ac_count=`expr $ac_count + 1`
3585     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3586       # Best one so far, save it but keep looking for a better one
3587       ac_cv_path_EGREP="$ac_path_EGREP"
3588       ac_path_EGREP_max=$ac_count
3589     fi
3590     # 10*(2^10) chars as input seems more than enough
3591     test $ac_count -gt 10 && break
3592   done
3593   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 esac
3595
3596
3597     $ac_path_EGREP_found && break 3
3598   done
3599 done
3600
3601 done
3602 IFS=$as_save_IFS
3603
3604
3605 fi
3606
3607 EGREP="$ac_cv_path_EGREP"
3608 if test -z "$EGREP"; then
3609   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3611    { (exit 1); exit 1; }; }
3612 fi
3613
3614 else
3615   ac_cv_path_EGREP=$EGREP
3616 fi
3617
3618
3619    fi
3620 fi
3621 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3622 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3623  EGREP="$ac_cv_path_EGREP"
3624
3625
3626
3627 { echo "$as_me:$LINENO: checking for AIX" >&5
3628 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635 #ifdef _AIX
3636   yes
3637 #endif
3638
3639 _ACEOF
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641   $EGREP "yes" >/dev/null 2>&1; then
3642   { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3644 cat >>confdefs.h <<\_ACEOF
3645 #define _ALL_SOURCE 1
3646 _ACEOF
3647
3648 else
3649   { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3651 fi
3652 rm -f conftest*
3653
3654
3655
3656 if test $ac_cv_c_compiler_gnu = yes; then
3657     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3658 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3659 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662     ac_pattern="Autoconf.*'x'"
3663   cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #include <sgtty.h>
3670 Autoconf TIOCGETP
3671 _ACEOF
3672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3673   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3674   ac_cv_prog_gcc_traditional=yes
3675 else
3676   ac_cv_prog_gcc_traditional=no
3677 fi
3678 rm -f conftest*
3679
3680
3681   if test $ac_cv_prog_gcc_traditional = no; then
3682     cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688 #include <termio.h>
3689 Autoconf TCGETA
3690 _ACEOF
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3693   ac_cv_prog_gcc_traditional=yes
3694 fi
3695 rm -f conftest*
3696
3697   fi
3698 fi
3699 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3700 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3701   if test $ac_cv_prog_gcc_traditional = yes; then
3702     CC="$CC -traditional"
3703   fi
3704 fi
3705
3706 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3707 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3708 if test "${ac_cv_prog_suncc+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   cat > conftest.c <<EOF
3712 #ifdef __SUNPRO_C
3713   yes;
3714 #endif
3715 EOF
3716 if { ac_try='${CC-cc} -E conftest.c'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3722   ac_cv_prog_suncc=yes
3723 else
3724   ac_cv_prog_suncc=no
3725 fi
3726 fi
3727 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3728 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3729 if test -n "$ac_tool_prefix"; then
3730   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3734 if test "${ac_cv_prog_RANLIB+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   if test -n "$RANLIB"; then
3738   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for ac_exec_ext in '' $ac_executable_extensions; do
3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 RANLIB=$ac_cv_prog_RANLIB
3758 if test -n "$RANLIB"; then
3759   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3760 echo "${ECHO_T}$RANLIB" >&6; }
3761 else
3762   { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3764 fi
3765
3766
3767 fi
3768 if test -z "$ac_cv_prog_RANLIB"; then
3769   ac_ct_RANLIB=$RANLIB
3770   # Extract the first word of "ranlib", so it can be a program name with args.
3771 set dummy ranlib; ac_word=$2
3772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   if test -n "$ac_ct_RANLIB"; then
3778   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785   for ac_exec_ext in '' $ac_executable_extensions; do
3786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787     ac_cv_prog_ac_ct_RANLIB="ranlib"
3788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789     break 2
3790   fi
3791 done
3792 done
3793 IFS=$as_save_IFS
3794
3795 fi
3796 fi
3797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3798 if test -n "$ac_ct_RANLIB"; then
3799   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3800 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3801 else
3802   { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3804 fi
3805
3806   if test "x$ac_ct_RANLIB" = x; then
3807     RANLIB=":"
3808   else
3809     case $cross_compiling:$ac_tool_warned in
3810 yes:)
3811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3812 whose name does not start with the host triplet.  If you think this
3813 configuration is useful to you, please write to autoconf@gnu.org." >&5
3814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3815 whose name does not start with the host triplet.  If you think this
3816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3817 ac_tool_warned=yes ;;
3818 esac
3819     RANLIB=$ac_ct_RANLIB
3820   fi
3821 else
3822   RANLIB="$ac_cv_prog_RANLIB"
3823 fi
3824
3825
3826 # Check whether --enable-largefile was given.
3827 if test "${enable_largefile+set}" = set; then
3828   enableval=$enable_largefile;
3829 fi
3830
3831 if test "$enable_largefile" != no; then
3832
3833   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   ac_cv_sys_largefile_CC=no
3839      if test "$GCC" != yes; then
3840        ac_save_CC=$CC
3841        while :; do
3842          # IRIX 6.2 and later do not support large files by default,
3843          # so use the C compiler's -n32 option if that helps.
3844          cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850 #include <sys/types.h>
3851  /* Check that off_t can represent 2**63 - 1 correctly.
3852     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3853     since some C++ compilers masquerading as C compilers
3854     incorrectly reject 9223372036854775807.  */
3855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3856   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3857                        && LARGE_OFF_T % 2147483647 == 1)
3858                       ? 1 : -1];
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867          rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3869 case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874   (eval "$ac_compile") 2>conftest.er1
3875   ac_status=$?
3876   grep -v '^ *+' conftest.er1 >conftest.err
3877   rm -f conftest.er1
3878   cat conftest.err >&5
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); } && {
3881          test -z "$ac_c_werror_flag" ||
3882          test ! -s conftest.err
3883        } && test -s conftest.$ac_objext; then
3884   break
3885 else
3886   echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889
3890 fi
3891
3892 rm -f core conftest.err conftest.$ac_objext
3893          CC="$CC -n32"
3894          rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3896 case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901   (eval "$ac_compile") 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } && {
3908          test -z "$ac_c_werror_flag" ||
3909          test ! -s conftest.err
3910        } && test -s conftest.$ac_objext; then
3911   ac_cv_sys_largefile_CC=' -n32'; break
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916
3917 fi
3918
3919 rm -f core conftest.err conftest.$ac_objext
3920          break
3921        done
3922        CC=$ac_save_CC
3923        rm -f conftest.$ac_ext
3924     fi
3925 fi
3926 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3927 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3928   if test "$ac_cv_sys_largefile_CC" != no; then
3929     CC=$CC$ac_cv_sys_largefile_CC
3930   fi
3931
3932   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3933 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3934 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937   while :; do
3938   cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 #include <sys/types.h>
3945  /* Check that off_t can represent 2**63 - 1 correctly.
3946     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3947     since some C++ compilers masquerading as C compilers
3948     incorrectly reject 9223372036854775807.  */
3949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3950   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3951                        && LARGE_OFF_T % 2147483647 == 1)
3952                       ? 1 : -1];
3953 int
3954 main ()
3955 {
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_compile") 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } && {
3975          test -z "$ac_c_werror_flag" ||
3976          test ! -s conftest.err
3977        } && test -s conftest.$ac_objext; then
3978   ac_cv_sys_file_offset_bits=no; break
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983
3984 fi
3985
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987   cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h.  */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h.  */
3993 #define _FILE_OFFSET_BITS 64
3994 #include <sys/types.h>
3995  /* Check that off_t can represent 2**63 - 1 correctly.
3996     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3997     since some C++ compilers masquerading as C compilers
3998     incorrectly reject 9223372036854775807.  */
3999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4000   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4001                        && LARGE_OFF_T % 2147483647 == 1)
4002                       ? 1 : -1];
4003 int
4004 main ()
4005 {
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4013 case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018   (eval "$ac_compile") 2>conftest.er1
4019   ac_status=$?
4020   grep -v '^ *+' conftest.er1 >conftest.err
4021   rm -f conftest.er1
4022   cat conftest.err >&5
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); } && {
4025          test -z "$ac_c_werror_flag" ||
4026          test ! -s conftest.err
4027        } && test -s conftest.$ac_objext; then
4028   ac_cv_sys_file_offset_bits=64; break
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033
4034 fi
4035
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037   ac_cv_sys_file_offset_bits=unknown
4038   break
4039 done
4040 fi
4041 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4042 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4043 case $ac_cv_sys_file_offset_bits in #(
4044   no | unknown) ;;
4045   *)
4046 cat >>confdefs.h <<_ACEOF
4047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4048 _ACEOF
4049 ;;
4050 esac
4051 rm -f conftest*
4052   if test $ac_cv_sys_file_offset_bits = unknown; then
4053     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4055 if test "${ac_cv_sys_large_files+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   while :; do
4059   cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 #include <sys/types.h>
4066  /* Check that off_t can represent 2**63 - 1 correctly.
4067     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4068     since some C++ compilers masquerading as C compilers
4069     incorrectly reject 9223372036854775807.  */
4070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4071   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4072                        && LARGE_OFF_T % 2147483647 == 1)
4073                       ? 1 : -1];
4074 int
4075 main ()
4076 {
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4084 case "(($ac_try" in
4085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086   *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089   (eval "$ac_compile") 2>conftest.er1
4090   ac_status=$?
4091   grep -v '^ *+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } && {
4096          test -z "$ac_c_werror_flag" ||
4097          test ! -s conftest.err
4098        } && test -s conftest.$ac_objext; then
4099   ac_cv_sys_large_files=no; break
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #define _LARGE_FILES 1
4115 #include <sys/types.h>
4116  /* Check that off_t can represent 2**63 - 1 correctly.
4117     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118     since some C++ compilers masquerading as C compilers
4119     incorrectly reject 9223372036854775807.  */
4120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4121   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122                        && LARGE_OFF_T % 2147483647 == 1)
4123                       ? 1 : -1];
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_compile") 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } && {
4146          test -z "$ac_c_werror_flag" ||
4147          test ! -s conftest.err
4148        } && test -s conftest.$ac_objext; then
4149   ac_cv_sys_large_files=1; break
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158   ac_cv_sys_large_files=unknown
4159   break
4160 done
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4163 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4164 case $ac_cv_sys_large_files in #(
4165   no | unknown) ;;
4166   *)
4167 cat >>confdefs.h <<_ACEOF
4168 #define _LARGE_FILES $ac_cv_sys_large_files
4169 _ACEOF
4170 ;;
4171 esac
4172 rm -f conftest*
4173   fi
4174 fi
4175
4176
4177 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4179 if test "${ac_cv_header_stdc+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <stdlib.h>
4189 #include <stdarg.h>
4190 #include <string.h>
4191 #include <float.h>
4192
4193 int
4194 main ()
4195 {
4196
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_compile") 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } && {
4215          test -z "$ac_c_werror_flag" ||
4216          test ! -s conftest.err
4217        } && test -s conftest.$ac_objext; then
4218   ac_cv_header_stdc=yes
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223         ac_cv_header_stdc=no
4224 fi
4225
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227
4228 if test $ac_cv_header_stdc = yes; then
4229   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4230   cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236 #include <string.h>
4237
4238 _ACEOF
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240   $EGREP "memchr" >/dev/null 2>&1; then
4241   :
4242 else
4243   ac_cv_header_stdc=no
4244 fi
4245 rm -f conftest*
4246
4247 fi
4248
4249 if test $ac_cv_header_stdc = yes; then
4250   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251   cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 #include <stdlib.h>
4258
4259 _ACEOF
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261   $EGREP "free" >/dev/null 2>&1; then
4262   :
4263 else
4264   ac_cv_header_stdc=no
4265 fi
4266 rm -f conftest*
4267
4268 fi
4269
4270 if test $ac_cv_header_stdc = yes; then
4271   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272   if test "$cross_compiling" = yes; then
4273   :
4274 else
4275   cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 #include <ctype.h>
4282 #include <stdlib.h>
4283 #if ((' ' & 0x0FF) == 0x020)
4284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286 #else
4287 # define ISLOWER(c) \
4288                    (('a' <= (c) && (c) <= 'i') \
4289                      || ('j' <= (c) && (c) <= 'r') \
4290                      || ('s' <= (c) && (c) <= 'z'))
4291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4292 #endif
4293
4294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4295 int
4296 main ()
4297 {
4298   int i;
4299   for (i = 0; i < 256; i++)
4300     if (XOR (islower (i), ISLOWER (i))
4301         || toupper (i) != TOUPPER (i))
4302       return 2;
4303   return 0;
4304 }
4305 _ACEOF
4306 rm -f conftest$ac_exeext
4307 if { (ac_try="$ac_link"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_link") 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4317   { (case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322   (eval "$ac_try") 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   :
4327 else
4328   echo "$as_me: program exited with status $ac_status" >&5
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 ( exit $ac_status )
4333 ac_cv_header_stdc=no
4334 fi
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4336 fi
4337
4338
4339 fi
4340 fi
4341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4343 if test $ac_cv_header_stdc = yes; then
4344
4345 cat >>confdefs.h <<\_ACEOF
4346 #define STDC_HEADERS 1
4347 _ACEOF
4348
4349 fi
4350
4351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4362                   inttypes.h stdint.h unistd.h
4363 do
4364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 $ac_includes_default
4377
4378 #include <$ac_header>
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4382 case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387   (eval "$ac_compile") 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } && {
4394          test -z "$ac_c_werror_flag" ||
4395          test ! -s conftest.err
4396        } && test -s conftest.$ac_objext; then
4397   eval "$as_ac_Header=yes"
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402         eval "$as_ac_Header=no"
4403 fi
4404
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 fi
4407 ac_res=`eval echo '${'$as_ac_Header'}'`
4408                { echo "$as_me:$LINENO: result: $ac_res" >&5
4409 echo "${ECHO_T}$ac_res" >&6; }
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411   cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413 _ACEOF
4414
4415 fi
4416
4417 done
4418
4419
4420 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4421 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4422 if test "${ac_cv_c_bigendian+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   # See if sys/param.h defines the BYTE_ORDER macro.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h.  */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h.  */
4432 #include <sys/types.h>
4433 #include <sys/param.h>
4434
4435 int
4436 main ()
4437 {
4438 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4439         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4440  bogus endian macros
4441 #endif
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454   (eval "$ac_compile") 2>conftest.er1
4455   ac_status=$?
4456   grep -v '^ *+' conftest.er1 >conftest.err
4457   rm -f conftest.er1
4458   cat conftest.err >&5
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } && {
4461          test -z "$ac_c_werror_flag" ||
4462          test ! -s conftest.err
4463        } && test -s conftest.$ac_objext; then
4464   # It does; now see whether it defined to BIG_ENDIAN or not.
4465 cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 #include <sys/types.h>
4472 #include <sys/param.h>
4473
4474 int
4475 main ()
4476 {
4477 #if BYTE_ORDER != BIG_ENDIAN
4478  not big endian
4479 #endif
4480
4481   ;
4482   return 0;
4483 }
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (ac_try="$ac_compile"
4487 case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492   (eval "$ac_compile") 2>conftest.er1
4493   ac_status=$?
4494   grep -v '^ *+' conftest.er1 >conftest.err
4495   rm -f conftest.er1
4496   cat conftest.err >&5
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } && {
4499          test -z "$ac_c_werror_flag" ||
4500          test ! -s conftest.err
4501        } && test -s conftest.$ac_objext; then
4502   ac_cv_c_bigendian=yes
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507         ac_cv_c_bigendian=no
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 else
4512   echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515         # It does not; compile a test program.
4516 if test "$cross_compiling" = yes; then
4517   # try to guess the endianness by grepping values into an object file
4518   ac_cv_c_bigendian=unknown
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4526 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4528 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4529 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4531 int
4532 main ()
4533 {
4534  _ascii (); _ebcdic ();
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4541 case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_compile") 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } && {
4553          test -z "$ac_c_werror_flag" ||
4554          test ! -s conftest.err
4555        } && test -s conftest.$ac_objext; then
4556   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4557   ac_cv_c_bigendian=yes
4558 fi
4559 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4560   if test "$ac_cv_c_bigendian" = unknown; then
4561     ac_cv_c_bigendian=no
4562   else
4563     # finding both strings is unlikely to happen, but who knows?
4564     ac_cv_c_bigendian=unknown
4565   fi
4566 fi
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571
4572 fi
4573
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 else
4576   cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h.  */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h.  */
4582 $ac_includes_default
4583 int
4584 main ()
4585 {
4586
4587   /* Are we little or big endian?  From Harbison&Steele.  */
4588   union
4589   {
4590     long int l;
4591     char c[sizeof (long int)];
4592   } u;
4593   u.l = 1;
4594   return u.c[sizeof (long int) - 1] == 1;
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4602 case "(($ac_try" in
4603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604   *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607   (eval "$ac_link") 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4611   { (case "(($ac_try" in
4612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613   *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616   (eval "$ac_try") 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620   ac_cv_c_bigendian=no
4621 else
4622   echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ( exit $ac_status )
4627 ac_cv_c_bigendian=yes
4628 fi
4629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4630 fi
4631
4632
4633 fi
4634
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4638 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4639 case $ac_cv_c_bigendian in
4640   yes)
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define WORDS_BIGENDIAN 1
4644 _ACEOF
4645  ;;
4646   no)
4647      ;;
4648   *)
4649     { { echo "$as_me:$LINENO: error: unknown endianness
4650 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4651 echo "$as_me: error: unknown endianness
4652 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4653    { (exit 1); exit 1; }; } ;;
4654 esac
4655
4656
4657 # Extract the first word of "gmake", so it can be a program name with args.
4658 set dummy gmake; ac_word=$2
4659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661 if test "${ac_cv_prog_GMAKE+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   if test -n "$GMAKE"; then
4665   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_exec_ext in '' $ac_executable_extensions; do
4673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674     ac_cv_prog_GMAKE="yes"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4683 fi
4684 fi
4685 GMAKE=$ac_cv_prog_GMAKE
4686 if test -n "$GMAKE"; then
4687   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4688 echo "${ECHO_T}$GMAKE" >&6; }
4689 else
4690   { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4692 fi
4693
4694
4695 if test $GMAKE = no; then
4696   # Extract the first word of "make", so it can be a program name with args.
4697 set dummy make; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_MAKE+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   case $MAKE in
4704   [\\/]* | ?:[\\/]*)
4705   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4706   ;;
4707   *)
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4724   ;;
4725 esac
4726 fi
4727 MAKE=$ac_cv_path_MAKE
4728 if test -n "$MAKE"; then
4729   { echo "$as_me:$LINENO: result: $MAKE" >&5
4730 echo "${ECHO_T}$MAKE" >&6; }
4731 else
4732   { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4734 fi
4735
4736
4737 else
4738   # Extract the first word of "gmake", so it can be a program name with args.
4739 set dummy gmake; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_MAKE+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   case $MAKE in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4766   ;;
4767 esac
4768 fi
4769 MAKE=$ac_cv_path_MAKE
4770 if test -n "$MAKE"; then
4771   { echo "$as_me:$LINENO: result: $MAKE" >&5
4772 echo "${ECHO_T}$MAKE" >&6; }
4773 else
4774   { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4776 fi
4777
4778
4779 fi
4780 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4781 if test -z "$makever"; then
4782   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4783                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4784 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4785                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4786    { (exit 1); exit 1; }; }
4787 fi
4788
4789   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4790 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4791 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4792   echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794   ac_check_lib_save_LIBS=$LIBS
4795 LIBS="-lltdl  $LIBS"
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802
4803 /* Override any GCC internal prototype to avoid an error.
4804    Use char because int might match the return type of a GCC
4805    builtin and then its argument prototype would still apply.  */
4806 #ifdef __cplusplus
4807 extern "C"
4808 #endif
4809 char lt_dlinit ();
4810 int
4811 main ()
4812 {
4813 return lt_dlinit ();
4814   ;
4815   return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext conftest$ac_exeext
4819 if { (ac_try="$ac_link"
4820 case "(($ac_try" in
4821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822   *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825   (eval "$ac_link") 2>conftest.er1
4826   ac_status=$?
4827   grep -v '^ *+' conftest.er1 >conftest.err
4828   rm -f conftest.er1
4829   cat conftest.err >&5
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); } && {
4832          test -z "$ac_c_werror_flag" ||
4833          test ! -s conftest.err
4834        } && test -s conftest$ac_exeext &&
4835        $as_test_x conftest$ac_exeext; then
4836   ac_cv_lib_ltdl_lt_dlinit=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841         ac_cv_lib_ltdl_lt_dlinit=no
4842 fi
4843
4844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4845       conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4847 fi
4848 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4849 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4850 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4851   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4852 else
4853   if test x"$enable_ltdl_install" = xno; then
4854      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4855 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4856    else
4857      enable_ltdl_install=yes
4858    fi
4859
4860 fi
4861
4862   if test x"$enable_ltdl_install" = x"yes"; then
4863     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4864     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4865     LTDLINCL='-I${top_srcdir}/''libltdl'
4866   else
4867     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4868     LIBLTDL="-lltdl"
4869     LTDLINCL=
4870   fi
4871   # For backwards non-gettext consistent compatibility...
4872   INCLTDL="$LTDLINCL"
4873
4874
4875 if test x"$enable_ltdl_install" = x"yes"; then
4876   LTDL_SUBDIRS=libltdl
4877 fi
4878
4879
4880 # Check whether --enable-shared was given.
4881 if test "${enable_shared+set}" = set; then
4882   enableval=$enable_shared; p=${PACKAGE-default}
4883     case $enableval in
4884     yes) enable_shared=yes ;;
4885     no) enable_shared=no ;;
4886     *)
4887       enable_shared=no
4888       # Look at the argument we got.  We use all the common list separators.
4889       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4890       for pkg in $enableval; do
4891         IFS="$lt_save_ifs"
4892         if test "X$pkg" = "X$p"; then
4893           enable_shared=yes
4894         fi
4895       done
4896       IFS="$lt_save_ifs"
4897       ;;
4898     esac
4899 else
4900   enable_shared=yes
4901 fi
4902
4903
4904 # Check whether --enable-static was given.
4905 if test "${enable_static+set}" = set; then
4906   enableval=$enable_static; p=${PACKAGE-default}
4907     case $enableval in
4908     yes) enable_static=yes ;;
4909     no) enable_static=no ;;
4910     *)
4911      enable_static=no
4912       # Look at the argument we got.  We use all the common list separators.
4913       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4914       for pkg in $enableval; do
4915         IFS="$lt_save_ifs"
4916         if test "X$pkg" = "X$p"; then
4917           enable_static=yes
4918         fi
4919       done
4920       IFS="$lt_save_ifs"
4921       ;;
4922     esac
4923 else
4924   enable_static=yes
4925 fi
4926
4927
4928 # Check whether --enable-fast-install was given.
4929 if test "${enable_fast_install+set}" = set; then
4930   enableval=$enable_fast_install; p=${PACKAGE-default}
4931     case $enableval in
4932     yes) enable_fast_install=yes ;;
4933     no) enable_fast_install=no ;;
4934     *)
4935       enable_fast_install=no
4936       # Look at the argument we got.  We use all the common list separators.
4937       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4938       for pkg in $enableval; do
4939         IFS="$lt_save_ifs"
4940         if test "X$pkg" = "X$p"; then
4941           enable_fast_install=yes
4942         fi
4943       done
4944       IFS="$lt_save_ifs"
4945       ;;
4946     esac
4947 else
4948   enable_fast_install=yes
4949 fi
4950
4951
4952 ac_aux_dir=
4953 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4954   if test -f "$ac_dir/install-sh"; then
4955     ac_aux_dir=$ac_dir
4956     ac_install_sh="$ac_aux_dir/install-sh -c"
4957     break
4958   elif test -f "$ac_dir/install.sh"; then
4959     ac_aux_dir=$ac_dir
4960     ac_install_sh="$ac_aux_dir/install.sh -c"
4961     break
4962   elif test -f "$ac_dir/shtool"; then
4963     ac_aux_dir=$ac_dir
4964     ac_install_sh="$ac_aux_dir/shtool install -c"
4965     break
4966   fi
4967 done
4968 if test -z "$ac_aux_dir"; then
4969   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4970 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4971    { (exit 1); exit 1; }; }
4972 fi
4973
4974 # These three variables are undocumented and unsupported,
4975 # and are intended to be withdrawn in a future Autoconf release.
4976 # They can cause serious problems if a builder's source tree is in a directory
4977 # whose full name contains unusual characters.
4978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4980 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4981
4982
4983 # Make sure we can run config.sub.
4984 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4985   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4986 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4987    { (exit 1); exit 1; }; }
4988
4989 { echo "$as_me:$LINENO: checking build system type" >&5
4990 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4991 if test "${ac_cv_build+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   ac_build_alias=$build_alias
4995 test "x$ac_build_alias" = x &&
4996   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4997 test "x$ac_build_alias" = x &&
4998   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4999 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5000    { (exit 1); exit 1; }; }
5001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5002   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5003 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5004    { (exit 1); exit 1; }; }
5005
5006 fi
5007 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5008 echo "${ECHO_T}$ac_cv_build" >&6; }
5009 case $ac_cv_build in
5010 *-*-*) ;;
5011 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5012 echo "$as_me: error: invalid value of canonical build" >&2;}
5013    { (exit 1); exit 1; }; };;
5014 esac
5015 build=$ac_cv_build
5016 ac_save_IFS=$IFS; IFS='-'
5017 set x $ac_cv_build
5018 shift
5019 build_cpu=$1
5020 build_vendor=$2
5021 shift; shift
5022 # Remember, the first character of IFS is used to create $*,
5023 # except with old shells:
5024 build_os=$*
5025 IFS=$ac_save_IFS
5026 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5027
5028
5029 { echo "$as_me:$LINENO: checking host system type" >&5
5030 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5031 if test "${ac_cv_host+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   if test "x$host_alias" = x; then
5035   ac_cv_host=$ac_cv_build
5036 else
5037   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5038     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5040    { (exit 1); exit 1; }; }
5041 fi
5042
5043 fi
5044 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5045 echo "${ECHO_T}$ac_cv_host" >&6; }
5046 case $ac_cv_host in
5047 *-*-*) ;;
5048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5049 echo "$as_me: error: invalid value of canonical host" >&2;}
5050    { (exit 1); exit 1; }; };;
5051 esac
5052 host=$ac_cv_host
5053 ac_save_IFS=$IFS; IFS='-'
5054 set x $ac_cv_host
5055 shift
5056 host_cpu=$1
5057 host_vendor=$2
5058 shift; shift
5059 # Remember, the first character of IFS is used to create $*,
5060 # except with old shells:
5061 host_os=$*
5062 IFS=$ac_save_IFS
5063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5064
5065
5066 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5068 if test "${lt_cv_path_SED+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071   # Loop through the user's path and test for sed and gsed.
5072 # Then use that list of sed's as ones to test for truncation.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078   for lt_ac_prog in sed gsed; do
5079     for ac_exec_ext in '' $ac_executable_extensions; do
5080       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5081         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5082       fi
5083     done
5084   done
5085 done
5086 lt_ac_max=0
5087 lt_ac_count=0
5088 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5089 # along with /bin/sed that truncates output.
5090 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5091   test ! -f $lt_ac_sed && continue
5092   cat /dev/null > conftest.in
5093   lt_ac_count=0
5094   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5095   # Check for GNU sed and select it if it is found.
5096   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5097     lt_cv_path_SED=$lt_ac_sed
5098     break
5099   fi
5100   while true; do
5101     cat conftest.in conftest.in >conftest.tmp
5102     mv conftest.tmp conftest.in
5103     cp conftest.in conftest.nl
5104     echo >>conftest.nl
5105     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5106     cmp -s conftest.out conftest.nl || break
5107     # 10000 chars as input seems more than enough
5108     test $lt_ac_count -gt 10 && break
5109     lt_ac_count=`expr $lt_ac_count + 1`
5110     if test $lt_ac_count -gt $lt_ac_max; then
5111       lt_ac_max=$lt_ac_count
5112       lt_cv_path_SED=$lt_ac_sed
5113     fi
5114   done
5115 done
5116
5117 fi
5118
5119 SED=$lt_cv_path_SED
5120 { echo "$as_me:$LINENO: result: $SED" >&5
5121 echo "${ECHO_T}$SED" >&6; }
5122
5123
5124 # Check whether --with-gnu-ld was given.
5125 if test "${with_gnu_ld+set}" = set; then
5126   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5127 else
5128   with_gnu_ld=no
5129 fi
5130
5131 ac_prog=ld
5132 if test "$GCC" = yes; then
5133   # Check if gcc -print-prog-name=ld gives a path.
5134   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5135 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5136   case $host in
5137   *-*-mingw*)
5138     # gcc leaves a trailing carriage return which upsets mingw
5139     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5140   *)
5141     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5142   esac
5143   case $ac_prog in
5144     # Accept absolute paths.
5145     [\\/]* | ?:[\\/]*)
5146       re_direlt='/[^/][^/]*/\.\./'
5147       # Canonicalize the pathname of ld
5148       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5149       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5150         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5151       done
5152       test -z "$LD" && LD="$ac_prog"
5153       ;;
5154   "")
5155     # If it fails, then pretend we aren't using GCC.
5156     ac_prog=ld
5157     ;;
5158   *)
5159     # If it is relative, then search for the first ld in PATH.
5160     with_gnu_ld=unknown
5161     ;;
5162   esac
5163 elif test "$with_gnu_ld" = yes; then
5164   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5165 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5166 else
5167   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5168 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5169 fi
5170 if test "${lt_cv_path_LD+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   if test -z "$LD"; then
5174   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5175   for ac_dir in $PATH; do
5176     IFS="$lt_save_ifs"
5177     test -z "$ac_dir" && ac_dir=.
5178     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5179       lt_cv_path_LD="$ac_dir/$ac_prog"
5180       # Check to see if the program is GNU ld.  I'd rather use --version,
5181       # but apparently some variants of GNU ld only accept -v.
5182       # Break only if it was the GNU/non-GNU ld that we prefer.
5183       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5184       *GNU* | *'with BFD'*)
5185         test "$with_gnu_ld" != no && break
5186         ;;
5187       *)
5188         test "$with_gnu_ld" != yes && break
5189         ;;
5190       esac
5191     fi
5192   done
5193   IFS="$lt_save_ifs"
5194 else
5195   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5196 fi
5197 fi
5198
5199 LD="$lt_cv_path_LD"
5200 if test -n "$LD"; then
5201   { echo "$as_me:$LINENO: result: $LD" >&5
5202 echo "${ECHO_T}$LD" >&6; }
5203 else
5204   { echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6; }
5206 fi
5207 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5208 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5209    { (exit 1); exit 1; }; }
5210 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5211 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5212 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5216 case `$LD -v 2>&1 </dev/null` in
5217 *GNU* | *'with BFD'*)
5218   lt_cv_prog_gnu_ld=yes
5219   ;;
5220 *)
5221   lt_cv_prog_gnu_ld=no
5222   ;;
5223 esac
5224 fi
5225 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5226 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5227 with_gnu_ld=$lt_cv_prog_gnu_ld
5228
5229
5230 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5231 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5232 if test "${lt_cv_ld_reload_flag+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   lt_cv_ld_reload_flag='-r'
5236 fi
5237 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5238 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5239 reload_flag=$lt_cv_ld_reload_flag
5240 case $reload_flag in
5241 "" | " "*) ;;
5242 *) reload_flag=" $reload_flag" ;;
5243 esac
5244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5245 case $host_os in
5246   darwin*)
5247     if test "$GCC" = yes; then
5248       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5249     else
5250       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5251     fi
5252     ;;
5253 esac
5254
5255 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5256 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5257 if test "${lt_cv_path_NM+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   if test -n "$NM"; then
5261   # Let the user override the test.
5262   lt_cv_path_NM="$NM"
5263 else
5264   lt_nm_to_check="${ac_tool_prefix}nm"
5265   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5266     lt_nm_to_check="$lt_nm_to_check nm"
5267   fi
5268   for lt_tmp_nm in $lt_nm_to_check; do
5269     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5270     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5271       IFS="$lt_save_ifs"
5272       test -z "$ac_dir" && ac_dir=.
5273       tmp_nm="$ac_dir/$lt_tmp_nm"
5274       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5275         # Check to see if the nm accepts a BSD-compat flag.
5276         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5277         #   nm: unknown option "B" ignored
5278         # Tru64's nm complains that /dev/null is an invalid object file
5279         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5280         */dev/null* | *'Invalid file or object type'*)
5281           lt_cv_path_NM="$tmp_nm -B"
5282           break
5283           ;;
5284         *)
5285           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5286           */dev/null*)
5287             lt_cv_path_NM="$tmp_nm -p"
5288             break
5289             ;;
5290           *)
5291             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5292             continue # so that we can try to find one that supports BSD flags
5293             ;;
5294           esac
5295           ;;
5296         esac
5297       fi
5298     done
5299     IFS="$lt_save_ifs"
5300   done
5301   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5302 fi
5303 fi
5304 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5305 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5306 NM="$lt_cv_path_NM"
5307
5308 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5309 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5310 LN_S=$as_ln_s
5311 if test "$LN_S" = "ln -s"; then
5312   { echo "$as_me:$LINENO: result: yes" >&5
5313 echo "${ECHO_T}yes" >&6; }
5314 else
5315   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5316 echo "${ECHO_T}no, using $LN_S" >&6; }
5317 fi
5318
5319 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5320 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5321 if test "${lt_cv_deplibs_check_method+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   lt_cv_file_magic_cmd='$MAGIC_CMD'
5325 lt_cv_file_magic_test_file=
5326 lt_cv_deplibs_check_method='unknown'
5327 # Need to set the preceding variable on all platforms that support
5328 # interlibrary dependencies.
5329 # 'none' -- dependencies not supported.
5330 # `unknown' -- same as none, but documents that we really don't know.
5331 # 'pass_all' -- all dependencies passed with no checks.
5332 # 'test_compile' -- check by making test program.
5333 # 'file_magic [[regex]]' -- check by looking for files in library path
5334 # which responds to the $file_magic_cmd with a given extended regex.
5335 # If you have `file' or equivalent on your system and you're not sure
5336 # whether `pass_all' will *always* work, you probably want this one.
5337
5338 case $host_os in
5339 aix4* | aix5*)
5340   lt_cv_deplibs_check_method=pass_all
5341   ;;
5342
5343 beos*)
5344   lt_cv_deplibs_check_method=pass_all
5345   ;;
5346
5347 bsdi[45]*)
5348   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5349   lt_cv_file_magic_cmd='/usr/bin/file -L'
5350   lt_cv_file_magic_test_file=/shlib/libc.so
5351   ;;
5352
5353 cygwin*)
5354   # func_win32_libid is a shell function defined in ltmain.sh
5355   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5356   lt_cv_file_magic_cmd='func_win32_libid'
5357   ;;
5358
5359 mingw* | pw32*)
5360   # Base MSYS/MinGW do not provide the 'file' command needed by
5361   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5362   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5363   lt_cv_file_magic_cmd='$OBJDUMP -f'
5364   ;;
5365
5366 darwin* | rhapsody*)
5367   lt_cv_deplibs_check_method=pass_all
5368   ;;
5369
5370 freebsd* | kfreebsd*-gnu | dragonfly*)
5371   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5372     case $host_cpu in
5373     i*86 )
5374       # Not sure whether the presence of OpenBSD here was a mistake.
5375       # Let's accept both of them until this is cleared up.
5376       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5377       lt_cv_file_magic_cmd=/usr/bin/file
5378       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5379       ;;
5380     esac
5381   else
5382     lt_cv_deplibs_check_method=pass_all
5383   fi
5384   ;;
5385
5386 gnu*)
5387   lt_cv_deplibs_check_method=pass_all
5388   ;;
5389
5390 hpux10.20* | hpux11*)
5391   lt_cv_file_magic_cmd=/usr/bin/file
5392   case $host_cpu in
5393   ia64*)
5394     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5395     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5396     ;;
5397   hppa*64*)
5398     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]'
5399     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5400     ;;
5401   *)
5402     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5403     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5404     ;;
5405   esac
5406   ;;
5407
5408 interix3*)
5409   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5410   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5411   ;;
5412
5413 irix5* | irix6* | nonstopux*)
5414   case $LD in
5415   *-32|*"-32 ") libmagic=32-bit;;
5416   *-n32|*"-n32 ") libmagic=N32;;
5417   *-64|*"-64 ") libmagic=64-bit;;
5418   *) libmagic=never-match;;
5419   esac
5420   lt_cv_deplibs_check_method=pass_all
5421   ;;
5422
5423 # This must be Linux ELF.
5424 linux*)
5425   lt_cv_deplibs_check_method=pass_all
5426   ;;
5427
5428 netbsd*)
5429   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5430     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5431   else
5432     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5433   fi
5434   ;;
5435
5436 newos6*)
5437   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5438   lt_cv_file_magic_cmd=/usr/bin/file
5439   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5440   ;;
5441
5442 nto-qnx*)
5443   lt_cv_deplibs_check_method=unknown
5444   ;;
5445
5446 openbsd*)
5447   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5448     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5449   else
5450     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5451   fi
5452   ;;
5453
5454 osf3* | osf4* | osf5*)
5455   lt_cv_deplibs_check_method=pass_all
5456   ;;
5457
5458 solaris*)
5459   lt_cv_deplibs_check_method=pass_all
5460   ;;
5461
5462 sysv4 | sysv4.3*)
5463   case $host_vendor in
5464   motorola)
5465     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]'
5466     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5467     ;;
5468   ncr)
5469     lt_cv_deplibs_check_method=pass_all
5470     ;;
5471   sequent)
5472     lt_cv_file_magic_cmd='/bin/file'
5473     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5474     ;;
5475   sni)
5476     lt_cv_file_magic_cmd='/bin/file'
5477     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5478     lt_cv_file_magic_test_file=/lib/libc.so
5479     ;;
5480   siemens)
5481     lt_cv_deplibs_check_method=pass_all
5482     ;;
5483   pc)
5484     lt_cv_deplibs_check_method=pass_all
5485     ;;
5486   esac
5487   ;;
5488
5489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492 esac
5493
5494 fi
5495 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5496 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5497 file_magic_cmd=$lt_cv_file_magic_cmd
5498 deplibs_check_method=$lt_cv_deplibs_check_method
5499 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5500
5501
5502
5503
5504 # If no C compiler was specified, use CC.
5505 LTCC=${LTCC-"$CC"}
5506
5507 # If no C compiler flags were specified, use CFLAGS.
5508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5509
5510 # Allow CC to be a program name with arguments.
5511 compiler=$CC
5512
5513 # Check whether --enable-libtool-lock was given.
5514 if test "${enable_libtool_lock+set}" = set; then
5515   enableval=$enable_libtool_lock;
5516 fi
5517
5518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5519
5520 # Some flags need to be propagated to the compiler or linker for good
5521 # libtool support.
5522 case $host in
5523 ia64-*-hpux*)
5524   # Find out which ABI we are using.
5525   echo 'int i;' > conftest.$ac_ext
5526   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527   (eval $ac_compile) 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }; then
5531     case `/usr/bin/file conftest.$ac_objext` in
5532     *ELF-32*)
5533       HPUX_IA64_MODE="32"
5534       ;;
5535     *ELF-64*)
5536       HPUX_IA64_MODE="64"
5537       ;;
5538     esac
5539   fi
5540   rm -rf conftest*
5541   ;;
5542 *-*-irix6*)
5543   # Find out which ABI we are using.
5544   echo '#line 5544 "configure"' > conftest.$ac_ext
5545   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546   (eval $ac_compile) 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); }; then
5550    if test "$lt_cv_prog_gnu_ld" = yes; then
5551     case `/usr/bin/file conftest.$ac_objext` in
5552     *32-bit*)
5553       LD="${LD-ld} -melf32bsmip"
5554       ;;
5555     *N32*)
5556       LD="${LD-ld} -melf32bmipn32"
5557       ;;
5558     *64-bit*)
5559       LD="${LD-ld} -melf64bmip"
5560       ;;
5561     esac
5562    else
5563     case `/usr/bin/file conftest.$ac_objext` in
5564     *32-bit*)
5565       LD="${LD-ld} -32"
5566       ;;
5567     *N32*)
5568       LD="${LD-ld} -n32"
5569       ;;
5570     *64-bit*)
5571       LD="${LD-ld} -64"
5572       ;;
5573     esac
5574    fi
5575   fi
5576   rm -rf conftest*
5577   ;;
5578
5579 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5580   # Find out which ABI we are using.
5581   echo 'int i;' > conftest.$ac_ext
5582   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583   (eval $ac_compile) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }; then
5587     case `/usr/bin/file conftest.o` in
5588     *32-bit*)
5589       case $host in
5590         x86_64-*linux*)
5591           LD="${LD-ld} -m elf_i386"
5592           ;;
5593         ppc64-*linux*|powerpc64-*linux*)
5594           LD="${LD-ld} -m elf32ppclinux"
5595           ;;
5596         s390x-*linux*)
5597           LD="${LD-ld} -m elf_s390"
5598           ;;
5599         sparc64-*linux*)
5600           LD="${LD-ld} -m elf32_sparc"
5601           ;;
5602       esac
5603       ;;
5604     *64-bit*)
5605       case $host in
5606         x86_64-*linux*)
5607           LD="${LD-ld} -m elf_x86_64"
5608           ;;
5609         ppc*-*linux*|powerpc*-*linux*)
5610           LD="${LD-ld} -m elf64ppc"
5611           ;;
5612         s390*-*linux*)
5613           LD="${LD-ld} -m elf64_s390"
5614           ;;
5615         sparc*-*linux*)
5616           LD="${LD-ld} -m elf64_sparc"
5617           ;;
5618       esac
5619       ;;
5620     esac
5621   fi
5622   rm -rf conftest*
5623   ;;
5624
5625 *-*-sco3.2v5*)
5626   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5627   SAVE_CFLAGS="$CFLAGS"
5628   CFLAGS="$CFLAGS -belf"
5629   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5630 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5631 if test "${lt_cv_cc_needs_belf+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639
5640      cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h.  */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h.  */
5646
5647 int
5648 main ()
5649 {
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (ac_try="$ac_link"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_link") 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } && {
5669          test -z "$ac_c_werror_flag" ||
5670          test ! -s conftest.err
5671        } && test -s conftest$ac_exeext &&
5672        $as_test_x conftest$ac_exeext; then
5673   lt_cv_cc_needs_belf=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678         lt_cv_cc_needs_belf=no
5679 fi
5680
5681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5682       conftest$ac_exeext conftest.$ac_ext
5683      ac_ext=c
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5688
5689 fi
5690 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5691 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5692   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5693     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5694     CFLAGS="$SAVE_CFLAGS"
5695   fi
5696   ;;
5697 sparc*-*solaris*)
5698   # Find out which ABI we are using.
5699   echo 'int i;' > conftest.$ac_ext
5700   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701   (eval $ac_compile) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; then
5705     case `/usr/bin/file conftest.o` in
5706     *64-bit*)
5707       case $lt_cv_prog_gnu_ld in
5708       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5709       *)    LD="${LD-ld} -64" ;;
5710       esac
5711       ;;
5712     esac
5713   fi
5714   rm -rf conftest*
5715   ;;
5716
5717
5718 esac
5719
5720 need_locks="$enable_libtool_lock"
5721
5722
5723
5724 for ac_header in dlfcn.h
5725 do
5726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5728   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 fi
5733 ac_res=`eval echo '${'$as_ac_Header'}'`
5734                { echo "$as_me:$LINENO: result: $ac_res" >&5
5735 echo "${ECHO_T}$ac_res" >&6; }
5736 else
5737   # Is the header compilable?
5738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746 $ac_includes_default
5747 #include <$ac_header>
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5751 case "(($ac_try" in
5752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753   *) ac_try_echo=$ac_try;;
5754 esac
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756   (eval "$ac_compile") 2>conftest.er1
5757   ac_status=$?
5758   grep -v '^ *+' conftest.er1 >conftest.err
5759   rm -f conftest.er1
5760   cat conftest.err >&5
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); } && {
5763          test -z "$ac_c_werror_flag" ||
5764          test ! -s conftest.err
5765        } && test -s conftest.$ac_objext; then
5766   ac_header_compiler=yes
5767 else
5768   echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771         ac_header_compiler=no
5772 fi
5773
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5776 echo "${ECHO_T}$ac_header_compiler" >&6; }
5777
5778 # Is the header present?
5779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787 #include <$ac_header>
5788 _ACEOF
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } >/dev/null && {
5802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5803          test ! -s conftest.err
5804        }; then
5805   ac_header_preproc=yes
5806 else
5807   echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810   ac_header_preproc=no
5811 fi
5812
5813 rm -f conftest.err conftest.$ac_ext
5814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5815 echo "${ECHO_T}$ac_header_preproc" >&6; }
5816
5817 # So?  What about this header?
5818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5819   yes:no: )
5820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5824     ac_header_preproc=yes
5825     ;;
5826   no:yes:* )
5827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5839
5840     ;;
5841 esac
5842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   eval "$as_ac_Header=\$ac_header_preproc"
5848 fi
5849 ac_res=`eval echo '${'$as_ac_Header'}'`
5850                { echo "$as_me:$LINENO: result: $ac_res" >&5
5851 echo "${ECHO_T}$ac_res" >&6; }
5852
5853 fi
5854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5855   cat >>confdefs.h <<_ACEOF
5856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5857 _ACEOF
5858
5859 fi
5860
5861 done
5862
5863
5864
5865 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5866     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5867     (test "X$CXX" != "Xg++"))) ; then
5868   ac_ext=cpp
5869 ac_cpp='$CXXCPP $CPPFLAGS'
5870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5873 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5874 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5875 if test -z "$CXXCPP"; then
5876   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879       # Double quotes because CXXCPP needs to be expanded
5880     for CXXCPP in "$CXX -E" "/lib/cpp"
5881     do
5882       ac_preproc_ok=false
5883 for ac_cxx_preproc_warn_flag in '' yes
5884 do
5885   # Use a header file that comes with gcc, so configuring glibc
5886   # with a fresh cross-compiler works.
5887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888   # <limits.h> exists even on freestanding compilers.
5889   # On the NeXT, cc -E runs the code through the compiler's parser,
5890   # not just through cpp. "Syntax error" is here to catch this case.
5891   cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897 #ifdef __STDC__
5898 # include <limits.h>
5899 #else
5900 # include <assert.h>
5901 #endif
5902                      Syntax error
5903 _ACEOF
5904 if { (ac_try="$ac_cpp conftest.$ac_ext"
5905 case "(($ac_try" in
5906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907   *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } >/dev/null && {
5917          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5918          test ! -s conftest.err
5919        }; then
5920   :
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925   # Broken: fails on valid input.
5926 continue
5927 fi
5928
5929 rm -f conftest.err conftest.$ac_ext
5930
5931   # OK, works on sane cases.  Now check whether nonexistent headers
5932   # can be detected and how.
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 #include <ac_nonexistent.h>
5940 _ACEOF
5941 if { (ac_try="$ac_cpp conftest.$ac_ext"
5942 case "(($ac_try" in
5943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944   *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948   ac_status=$?
5949   grep -v '^ *+' conftest.er1 >conftest.err
5950   rm -f conftest.er1
5951   cat conftest.err >&5
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } >/dev/null && {
5954          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5955          test ! -s conftest.err
5956        }; then
5957   # Broken: success on invalid input.
5958 continue
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963   # Passes both tests.
5964 ac_preproc_ok=:
5965 break
5966 fi
5967
5968 rm -f conftest.err conftest.$ac_ext
5969
5970 done
5971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5972 rm -f conftest.err conftest.$ac_ext
5973 if $ac_preproc_ok; then
5974   break
5975 fi
5976
5977     done
5978     ac_cv_prog_CXXCPP=$CXXCPP
5979
5980 fi
5981   CXXCPP=$ac_cv_prog_CXXCPP
5982 else
5983   ac_cv_prog_CXXCPP=$CXXCPP
5984 fi
5985 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5986 echo "${ECHO_T}$CXXCPP" >&6; }
5987 ac_preproc_ok=false
5988 for ac_cxx_preproc_warn_flag in '' yes
5989 do
5990   # Use a header file that comes with gcc, so configuring glibc
5991   # with a fresh cross-compiler works.
5992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5993   # <limits.h> exists even on freestanding compilers.
5994   # On the NeXT, cc -E runs the code through the compiler's parser,
5995   # not just through cpp. "Syntax error" is here to catch this case.
5996   cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h.  */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h.  */
6002 #ifdef __STDC__
6003 # include <limits.h>
6004 #else
6005 # include <assert.h>
6006 #endif
6007                      Syntax error
6008 _ACEOF
6009 if { (ac_try="$ac_cpp conftest.$ac_ext"
6010 case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } >/dev/null && {
6022          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6023          test ! -s conftest.err
6024        }; then
6025   :
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030   # Broken: fails on valid input.
6031 continue
6032 fi
6033
6034 rm -f conftest.err conftest.$ac_ext
6035
6036   # OK, works on sane cases.  Now check whether nonexistent headers
6037   # can be detected and how.
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 #include <ac_nonexistent.h>
6045 _ACEOF
6046 if { (ac_try="$ac_cpp conftest.$ac_ext"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } >/dev/null && {
6059          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6060          test ! -s conftest.err
6061        }; then
6062   # Broken: success on invalid input.
6063 continue
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068   # Passes both tests.
6069 ac_preproc_ok=:
6070 break
6071 fi
6072
6073 rm -f conftest.err conftest.$ac_ext
6074
6075 done
6076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6077 rm -f conftest.err conftest.$ac_ext
6078 if $ac_preproc_ok; then
6079   :
6080 else
6081   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6082 See \`config.log' for more details." >&5
6083 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6084 See \`config.log' for more details." >&2;}
6085    { (exit 1); exit 1; }; }
6086 fi
6087
6088 ac_ext=cpp
6089 ac_cpp='$CXXCPP $CPPFLAGS'
6090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6093
6094 fi
6095
6096
6097 ac_ext=f
6098 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6099 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6101 if test -n "$ac_tool_prefix"; then
6102   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
6103   do
6104     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_F77+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   if test -n "$F77"; then
6112   ac_cv_prog_F77="$F77" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119   for ac_exec_ext in '' $ac_executable_extensions; do
6120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 F77=$ac_cv_prog_F77
6132 if test -n "$F77"; then
6133   { echo "$as_me:$LINENO: result: $F77" >&5
6134 echo "${ECHO_T}$F77" >&6; }
6135 else
6136   { echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6; }
6138 fi
6139
6140
6141     test -n "$F77" && break
6142   done
6143 fi
6144 if test -z "$F77"; then
6145   ac_ct_F77=$F77
6146   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
6147 do
6148   # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy $ac_prog; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6153   echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155   if test -n "$ac_ct_F77"; then
6156   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_prog_ac_ct_F77="$ac_prog"
6166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6176 if test -n "$ac_ct_F77"; then
6177   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6178 echo "${ECHO_T}$ac_ct_F77" >&6; }
6179 else
6180   { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6182 fi
6183
6184
6185   test -n "$ac_ct_F77" && break
6186 done
6187
6188   if test "x$ac_ct_F77" = x; then
6189     F77=""
6190   else
6191     case $cross_compiling:$ac_tool_warned in
6192 yes:)
6193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6194 whose name does not start with the host triplet.  If you think this
6195 configuration is useful to you, please write to autoconf@gnu.org." >&5
6196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6197 whose name does not start with the host triplet.  If you think this
6198 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6199 ac_tool_warned=yes ;;
6200 esac
6201     F77=$ac_ct_F77
6202   fi
6203 fi
6204
6205
6206 # Provide some information about the compiler.
6207 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6208 ac_compiler=`set X $ac_compile; echo $2`
6209 { (ac_try="$ac_compiler --version >&5"
6210 case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_compiler --version >&5") 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }
6219 { (ac_try="$ac_compiler -v >&5"
6220 case "(($ac_try" in
6221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222   *) ac_try_echo=$ac_try;;
6223 esac
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225   (eval "$ac_compiler -v >&5") 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }
6229 { (ac_try="$ac_compiler -V >&5"
6230 case "(($ac_try" in
6231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232   *) ac_try_echo=$ac_try;;
6233 esac
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235   (eval "$ac_compiler -V >&5") 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }
6239 rm -f a.out
6240
6241 # If we don't use `.F' as extension, the preprocessor is not run on the
6242 # input file.  (Note that this only needs to work for GNU compilers.)
6243 ac_save_ext=$ac_ext
6244 ac_ext=F
6245 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6246 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6247 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   cat >conftest.$ac_ext <<_ACEOF
6251       program main
6252 #ifndef __GNUC__
6253        choke me
6254 #endif
6255
6256       end
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262   *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265   (eval "$ac_compile") 2>conftest.er1
6266   ac_status=$?
6267   grep -v '^ *+' conftest.er1 >conftest.err
6268   rm -f conftest.er1
6269   cat conftest.err >&5
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); } && {
6272          test -z "$ac_f77_werror_flag" ||
6273          test ! -s conftest.err
6274        } && test -s conftest.$ac_objext; then
6275   ac_compiler_gnu=yes
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280         ac_compiler_gnu=no
6281 fi
6282
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6285
6286 fi
6287 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6288 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6289 ac_ext=$ac_save_ext
6290 ac_test_FFLAGS=${FFLAGS+set}
6291 ac_save_FFLAGS=$FFLAGS
6292 FFLAGS=
6293 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6294 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6295 if test "${ac_cv_prog_f77_g+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   FFLAGS=-g
6299 cat >conftest.$ac_ext <<_ACEOF
6300       program main
6301
6302       end
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6306 case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_compile") 2>conftest.er1
6312   ac_status=$?
6313   grep -v '^ *+' conftest.er1 >conftest.err
6314   rm -f conftest.er1
6315   cat conftest.err >&5
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } && {
6318          test -z "$ac_f77_werror_flag" ||
6319          test ! -s conftest.err
6320        } && test -s conftest.$ac_objext; then
6321   ac_cv_prog_f77_g=yes
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326         ac_cv_prog_f77_g=no
6327 fi
6328
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330
6331 fi
6332 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6333 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6334 if test "$ac_test_FFLAGS" = set; then
6335   FFLAGS=$ac_save_FFLAGS
6336 elif test $ac_cv_prog_f77_g = yes; then
6337   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6338     FFLAGS="-g -O2"
6339   else
6340     FFLAGS="-g"
6341   fi
6342 else
6343   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6344     FFLAGS="-O2"
6345   else
6346     FFLAGS=
6347   fi
6348 fi
6349
6350 G77=`test $ac_compiler_gnu = yes && echo yes`
6351 ac_ext=c
6352 ac_cpp='$CPP $CPPFLAGS'
6353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6356
6357
6358
6359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6360
6361 # find the maximum length of command line arguments
6362 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6363 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367     i=0
6368   teststring="ABCD"
6369
6370   case $build_os in
6371   msdosdjgpp*)
6372     # On DJGPP, this test can blow up pretty badly due to problems in libc
6373     # (any single argument exceeding 2000 bytes causes a buffer overrun
6374     # during glob expansion).  Even if it were fixed, the result of this
6375     # check would be larger than it should be.
6376     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6377     ;;
6378
6379   gnu*)
6380     # Under GNU Hurd, this test is not required because there is
6381     # no limit to the length of command line arguments.
6382     # Libtool will interpret -1 as no limit whatsoever
6383     lt_cv_sys_max_cmd_len=-1;
6384     ;;
6385
6386   cygwin* | mingw*)
6387     # On Win9x/ME, this test blows up -- it succeeds, but takes
6388     # about 5 minutes as the teststring grows exponentially.
6389     # Worse, since 9x/ME are not pre-emptively multitasking,
6390     # you end up with a "frozen" computer, even though with patience
6391     # the test eventually succeeds (with a max line length of 256k).
6392     # Instead, let's just punt: use the minimum linelength reported by
6393     # all of the supported platforms: 8192 (on NT/2K/XP).
6394     lt_cv_sys_max_cmd_len=8192;
6395     ;;
6396
6397   amigaos*)
6398     # On AmigaOS with pdksh, this test takes hours, literally.
6399     # So we just punt and use a minimum line length of 8192.
6400     lt_cv_sys_max_cmd_len=8192;
6401     ;;
6402
6403   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6404     # This has been around since 386BSD, at least.  Likely further.
6405     if test -x /sbin/sysctl; then
6406       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6407     elif test -x /usr/sbin/sysctl; then
6408       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6409     else
6410       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6411     fi
6412     # And add a safety zone
6413     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6414     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6415     ;;
6416
6417   interix*)
6418     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6419     lt_cv_sys_max_cmd_len=196608
6420     ;;
6421
6422   osf*)
6423     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6424     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6425     # nice to cause kernel panics so lets avoid the loop below.
6426     # First set a reasonable default.
6427     lt_cv_sys_max_cmd_len=16384
6428     #
6429     if test -x /sbin/sysconfig; then
6430       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6431         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6432       esac
6433     fi
6434     ;;
6435   sco3.2v5*)
6436     lt_cv_sys_max_cmd_len=102400
6437     ;;
6438   sysv5* | sco5v6* | sysv4.2uw2*)
6439     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6440     if test -n "$kargmax"; then
6441       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6442     else
6443       lt_cv_sys_max_cmd_len=32768
6444     fi
6445     ;;
6446   *)
6447     # If test is not a shell built-in, we'll probably end up computing a
6448     # maximum length that is only half of the actual maximum length, but
6449     # we can't tell.
6450     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6451     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6452                = "XX$teststring") >/dev/null 2>&1 &&
6453             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6454             lt_cv_sys_max_cmd_len=$new_result &&
6455             test $i != 17 # 1/2 MB should be enough
6456     do
6457       i=`expr $i + 1`
6458       teststring=$teststring$teststring
6459     done
6460     teststring=
6461     # Add a significant safety factor because C++ compilers can tack on massive
6462     # amounts of additional arguments before passing them to the linker.
6463     # It appears as though 1/2 is a usable value.
6464     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6465     ;;
6466   esac
6467
6468 fi
6469
6470 if test -n $lt_cv_sys_max_cmd_len ; then
6471   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6472 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6473 else
6474   { echo "$as_me:$LINENO: result: none" >&5
6475 echo "${ECHO_T}none" >&6; }
6476 fi
6477
6478
6479
6480
6481 # Check for command to grab the raw symbol name followed by C symbol from nm.
6482 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6483 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6484 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487
6488 # These are sane defaults that work on at least a few old systems.
6489 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6490
6491 # Character class describing NM global symbol codes.
6492 symcode='[BCDEGRST]'
6493
6494 # Regexp to match symbols that can be accessed directly from C.
6495 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6496
6497 # Transform an extracted symbol line into a proper C declaration
6498 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6499
6500 # Transform an extracted symbol line into symbol name and symbol address
6501 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'"
6502
6503 # Define system-specific variables.
6504 case $host_os in
6505 aix*)
6506   symcode='[BCDT]'
6507   ;;
6508 cygwin* | mingw* | pw32*)
6509   symcode='[ABCDGISTW]'
6510   ;;
6511 hpux*) # Its linker distinguishes data from code symbols
6512   if test "$host_cpu" = ia64; then
6513     symcode='[ABCDEGRST]'
6514   fi
6515   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6516   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'"
6517   ;;
6518 linux*)
6519   if test "$host_cpu" = ia64; then
6520     symcode='[ABCDGIRSTW]'
6521     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6522     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'"
6523   fi
6524   ;;
6525 irix* | nonstopux*)
6526   symcode='[BCDEGRST]'
6527   ;;
6528 osf*)
6529   symcode='[BCDEGQRST]'
6530   ;;
6531 solaris*)
6532   symcode='[BDRT]'
6533   ;;
6534 sco3.2v5*)
6535   symcode='[DT]'
6536   ;;
6537 sysv4.2uw2*)
6538   symcode='[DT]'
6539   ;;
6540 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6541   symcode='[ABDT]'
6542   ;;
6543 sysv4)
6544   symcode='[DFNSTU]'
6545   ;;
6546 esac
6547
6548 # Handle CRLF in mingw tool chain
6549 opt_cr=
6550 case $build_os in
6551 mingw*)
6552   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6553   ;;
6554 esac
6555
6556 # If we're using GNU nm, then use its standard symbol codes.
6557 case `$NM -V 2>&1` in
6558 *GNU* | *'with BFD'*)
6559   symcode='[ABCDGIRSTW]' ;;
6560 esac
6561
6562 # Try without a prefix undercore, then with it.
6563 for ac_symprfx in "" "_"; do
6564
6565   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6566   symxfrm="\\1 $ac_symprfx\\2 \\2"
6567
6568   # Write the raw and C identifiers.
6569   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6570
6571   # Check to see that the pipe works correctly.
6572   pipe_works=no
6573
6574   rm -f conftest*
6575   cat > conftest.$ac_ext <<EOF
6576 #ifdef __cplusplus
6577 extern "C" {
6578 #endif
6579 char nm_test_var;
6580 void nm_test_func(){}
6581 #ifdef __cplusplus
6582 }
6583 #endif
6584 int main(){nm_test_var='a';nm_test_func();return(0);}
6585 EOF
6586
6587   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588   (eval $ac_compile) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; then
6592     # Now try to grab the symbols.
6593     nlist=conftest.nm
6594     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6595   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } && test -s "$nlist"; then
6599       # Try sorting and uniquifying the output.
6600       if sort "$nlist" | uniq > "$nlist"T; then
6601         mv -f "$nlist"T "$nlist"
6602       else
6603         rm -f "$nlist"T
6604       fi
6605
6606       # Make sure that we snagged all the symbols we need.
6607       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6608         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6609           cat <<EOF > conftest.$ac_ext
6610 #ifdef __cplusplus
6611 extern "C" {
6612 #endif
6613
6614 EOF
6615           # Now generate the symbol file.
6616           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6617
6618           cat <<EOF >> conftest.$ac_ext
6619 #if defined (__STDC__) && __STDC__
6620 # define lt_ptr_t void *
6621 #else
6622 # define lt_ptr_t char *
6623 # define const
6624 #endif
6625
6626 /* The mapping between symbol names and symbols. */
6627 const struct {
6628   const char *name;
6629   lt_ptr_t address;
6630 }
6631 lt_preloaded_symbols[] =
6632 {
6633 EOF
6634           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6635           cat <<\EOF >> conftest.$ac_ext
6636   {0, (lt_ptr_t) 0}
6637 };
6638
6639 #ifdef __cplusplus
6640 }
6641 #endif
6642 EOF
6643           # Now try linking the two files.
6644           mv conftest.$ac_objext conftstm.$ac_objext
6645           lt_save_LIBS="$LIBS"
6646           lt_save_CFLAGS="$CFLAGS"
6647           LIBS="conftstm.$ac_objext"
6648           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6649           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650   (eval $ac_link) 2>&5
6651   ac_status=$?
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6654             pipe_works=yes
6655           fi
6656           LIBS="$lt_save_LIBS"
6657           CFLAGS="$lt_save_CFLAGS"
6658         else
6659           echo "cannot find nm_test_func in $nlist" >&5
6660         fi
6661       else
6662         echo "cannot find nm_test_var in $nlist" >&5
6663       fi
6664     else
6665       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6666     fi
6667   else
6668     echo "$progname: failed program was:" >&5
6669     cat conftest.$ac_ext >&5
6670   fi
6671   rm -f conftest* conftst*
6672
6673   # Do not use the global_symbol_pipe unless it works.
6674   if test "$pipe_works" = yes; then
6675     break
6676   else
6677     lt_cv_sys_global_symbol_pipe=
6678   fi
6679 done
6680
6681 fi
6682
6683 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6684   lt_cv_sys_global_symbol_to_cdecl=
6685 fi
6686 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6687   { echo "$as_me:$LINENO: result: failed" >&5
6688 echo "${ECHO_T}failed" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: ok" >&5
6691 echo "${ECHO_T}ok" >&6; }
6692 fi
6693
6694 { echo "$as_me:$LINENO: checking for objdir" >&5
6695 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6696 if test "${lt_cv_objdir+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   rm -f .libs 2>/dev/null
6700 mkdir .libs 2>/dev/null
6701 if test -d .libs; then
6702   lt_cv_objdir=.libs
6703 else
6704   # MS-DOS does not allow filenames that begin with a dot.
6705   lt_cv_objdir=_libs
6706 fi
6707 rmdir .libs 2>/dev/null
6708 fi
6709 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6710 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6711 objdir=$lt_cv_objdir
6712
6713
6714
6715
6716
6717 case $host_os in
6718 aix3*)
6719   # AIX sometimes has problems with the GCC collect2 program.  For some
6720   # reason, if we set the COLLECT_NAMES environment variable, the problems
6721   # vanish in a puff of smoke.
6722   if test "X${COLLECT_NAMES+set}" != Xset; then
6723     COLLECT_NAMES=
6724     export COLLECT_NAMES
6725   fi
6726   ;;
6727 esac
6728
6729 # Sed substitution that helps us do robust quoting.  It backslashifies
6730 # metacharacters that are still active within double-quoted strings.
6731 Xsed='sed -e 1s/^X//'
6732 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6733
6734 # Same as above, but do not quote variable references.
6735 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6736
6737 # Sed substitution to delay expansion of an escaped shell variable in a
6738 # double_quote_subst'ed string.
6739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6740
6741 # Sed substitution to avoid accidental globbing in evaled expressions
6742 no_glob_subst='s/\*/\\\*/g'
6743
6744 # Constants:
6745 rm="rm -f"
6746
6747 # Global variables:
6748 default_ofile=libtool
6749 can_build_shared=yes
6750
6751 # All known linkers require a `.a' archive for static linking (except MSVC,
6752 # which needs '.lib').
6753 libext=a
6754 ltmain="$ac_aux_dir/ltmain.sh"
6755 ofile="$default_ofile"
6756 with_gnu_ld="$lt_cv_prog_gnu_ld"
6757
6758 if test -n "$ac_tool_prefix"; then
6759   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6760 set dummy ${ac_tool_prefix}ar; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_AR+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   if test -n "$AR"; then
6767   ac_cv_prog_AR="$AR" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_prog_AR="${ac_tool_prefix}ar"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 AR=$ac_cv_prog_AR
6787 if test -n "$AR"; then
6788   { echo "$as_me:$LINENO: result: $AR" >&5
6789 echo "${ECHO_T}$AR" >&6; }
6790 else
6791   { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6793 fi
6794
6795
6796 fi
6797 if test -z "$ac_cv_prog_AR"; then
6798   ac_ct_AR=$AR
6799   # Extract the first word of "ar", so it can be a program name with args.
6800 set dummy ar; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6804   echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806   if test -n "$ac_ct_AR"; then
6807   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812   IFS=$as_save_IFS
6813   test -z "$as_dir" && as_dir=.
6814   for ac_exec_ext in '' $ac_executable_extensions; do
6815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816     ac_cv_prog_ac_ct_AR="ar"
6817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818     break 2
6819   fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6827 if test -n "$ac_ct_AR"; then
6828   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6829 echo "${ECHO_T}$ac_ct_AR" >&6; }
6830 else
6831   { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6833 fi
6834
6835   if test "x$ac_ct_AR" = x; then
6836     AR="false"
6837   else
6838     case $cross_compiling:$ac_tool_warned in
6839 yes:)
6840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6841 whose name does not start with the host triplet.  If you think this
6842 configuration is useful to you, please write to autoconf@gnu.org." >&5
6843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6844 whose name does not start with the host triplet.  If you think this
6845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6846 ac_tool_warned=yes ;;
6847 esac
6848     AR=$ac_ct_AR
6849   fi
6850 else
6851   AR="$ac_cv_prog_AR"
6852 fi
6853
6854 if test -n "$ac_tool_prefix"; then
6855   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_RANLIB+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   if test -n "$RANLIB"; then
6863   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870   for ac_exec_ext in '' $ac_executable_extensions; do
6871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 RANLIB=$ac_cv_prog_RANLIB
6883 if test -n "$RANLIB"; then
6884   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6885 echo "${ECHO_T}$RANLIB" >&6; }
6886 else
6887   { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6889 fi
6890
6891
6892 fi
6893 if test -z "$ac_cv_prog_RANLIB"; then
6894   ac_ct_RANLIB=$RANLIB
6895   # Extract the first word of "ranlib", so it can be a program name with args.
6896 set dummy ranlib; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   if test -n "$ac_ct_RANLIB"; then
6903   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908   IFS=$as_save_IFS
6909   test -z "$as_dir" && as_dir=.
6910   for ac_exec_ext in '' $ac_executable_extensions; do
6911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912     ac_cv_prog_ac_ct_RANLIB="ranlib"
6913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914     break 2
6915   fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6923 if test -n "$ac_ct_RANLIB"; then
6924   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6925 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6926 else
6927   { echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6; }
6929 fi
6930
6931   if test "x$ac_ct_RANLIB" = x; then
6932     RANLIB=":"
6933   else
6934     case $cross_compiling:$ac_tool_warned in
6935 yes:)
6936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6937 whose name does not start with the host triplet.  If you think this
6938 configuration is useful to you, please write to autoconf@gnu.org." >&5
6939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6940 whose name does not start with the host triplet.  If you think this
6941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6942 ac_tool_warned=yes ;;
6943 esac
6944     RANLIB=$ac_ct_RANLIB
6945   fi
6946 else
6947   RANLIB="$ac_cv_prog_RANLIB"
6948 fi
6949
6950 if test -n "$ac_tool_prefix"; then
6951   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}strip; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_prog_STRIP+set}" = set; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958   if test -n "$STRIP"; then
6959   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 STRIP=$ac_cv_prog_STRIP
6979 if test -n "$STRIP"; then
6980   { echo "$as_me:$LINENO: result: $STRIP" >&5
6981 echo "${ECHO_T}$STRIP" >&6; }
6982 else
6983   { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987
6988 fi
6989 if test -z "$ac_cv_prog_STRIP"; then
6990   ac_ct_STRIP=$STRIP
6991   # Extract the first word of "strip", so it can be a program name with args.
6992 set dummy strip; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6996   echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998   if test -n "$ac_ct_STRIP"; then
6999   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006   for ac_exec_ext in '' $ac_executable_extensions; do
7007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008     ac_cv_prog_ac_ct_STRIP="strip"
7009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7019 if test -n "$ac_ct_STRIP"; then
7020   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7021 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7022 else
7023   { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7025 fi
7026
7027   if test "x$ac_ct_STRIP" = x; then
7028     STRIP=":"
7029   else
7030     case $cross_compiling:$ac_tool_warned in
7031 yes:)
7032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7033 whose name does not start with the host triplet.  If you think this
7034 configuration is useful to you, please write to autoconf@gnu.org." >&5
7035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7036 whose name does not start with the host triplet.  If you think this
7037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7038 ac_tool_warned=yes ;;
7039 esac
7040     STRIP=$ac_ct_STRIP
7041   fi
7042 else
7043   STRIP="$ac_cv_prog_STRIP"
7044 fi
7045
7046
7047 old_CC="$CC"
7048 old_CFLAGS="$CFLAGS"
7049
7050 # Set sane defaults for various variables
7051 test -z "$AR" && AR=ar
7052 test -z "$AR_FLAGS" && AR_FLAGS=cru
7053 test -z "$AS" && AS=as
7054 test -z "$CC" && CC=cc
7055 test -z "$LTCC" && LTCC=$CC
7056 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7057 test -z "$DLLTOOL" && DLLTOOL=dlltool
7058 test -z "$LD" && LD=ld
7059 test -z "$LN_S" && LN_S="ln -s"
7060 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7061 test -z "$NM" && NM=nm
7062 test -z "$SED" && SED=sed
7063 test -z "$OBJDUMP" && OBJDUMP=objdump
7064 test -z "$RANLIB" && RANLIB=:
7065 test -z "$STRIP" && STRIP=:
7066 test -z "$ac_objext" && ac_objext=o
7067
7068 # Determine commands to create old-style static archives.
7069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7070 old_postinstall_cmds='chmod 644 $oldlib'
7071 old_postuninstall_cmds=
7072
7073 if test -n "$RANLIB"; then
7074   case $host_os in
7075   openbsd*)
7076     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7077     ;;
7078   *)
7079     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7080     ;;
7081   esac
7082   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7083 fi
7084
7085 for cc_temp in $compiler""; do
7086   case $cc_temp in
7087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7089     \-*) ;;
7090     *) break;;
7091   esac
7092 done
7093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7094
7095
7096 # Only perform the check for file, if the check method requires it
7097 case $deplibs_check_method in
7098 file_magic*)
7099   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7100     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7101 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7102 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   case $MAGIC_CMD in
7106 [\\/*] |  ?:[\\/]*)
7107   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7108   ;;
7109 *)
7110   lt_save_MAGIC_CMD="$MAGIC_CMD"
7111   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7112   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7113   for ac_dir in $ac_dummy; do
7114     IFS="$lt_save_ifs"
7115     test -z "$ac_dir" && ac_dir=.
7116     if test -f $ac_dir/${ac_tool_prefix}file; then
7117       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7118       if test -n "$file_magic_test_file"; then
7119         case $deplibs_check_method in
7120         "file_magic "*)
7121           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7122           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7123           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7124             $EGREP "$file_magic_regex" > /dev/null; then
7125             :
7126           else
7127             cat <<EOF 1>&2
7128
7129 *** Warning: the command libtool uses to detect shared libraries,
7130 *** $file_magic_cmd, produces output that libtool cannot recognize.
7131 *** The result is that libtool may fail to recognize shared libraries
7132 *** as such.  This will affect the creation of libtool libraries that
7133 *** depend on shared libraries, but programs linked with such libtool
7134 *** libraries will work regardless of this problem.  Nevertheless, you
7135 *** may want to report the problem to your system manager and/or to
7136 *** bug-libtool@gnu.org
7137
7138 EOF
7139           fi ;;
7140         esac
7141       fi
7142       break
7143     fi
7144   done
7145   IFS="$lt_save_ifs"
7146   MAGIC_CMD="$lt_save_MAGIC_CMD"
7147   ;;
7148 esac
7149 fi
7150
7151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7152 if test -n "$MAGIC_CMD"; then
7153   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7154 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160 if test -z "$lt_cv_path_MAGIC_CMD"; then
7161   if test -n "$ac_tool_prefix"; then
7162     { echo "$as_me:$LINENO: checking for file" >&5
7163 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7164 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $MAGIC_CMD in
7168 [\\/*] |  ?:[\\/]*)
7169   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7170   ;;
7171 *)
7172   lt_save_MAGIC_CMD="$MAGIC_CMD"
7173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7174   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7175   for ac_dir in $ac_dummy; do
7176     IFS="$lt_save_ifs"
7177     test -z "$ac_dir" && ac_dir=.
7178     if test -f $ac_dir/file; then
7179       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7180       if test -n "$file_magic_test_file"; then
7181         case $deplibs_check_method in
7182         "file_magic "*)
7183           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7184           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7185           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7186             $EGREP "$file_magic_regex" > /dev/null; then
7187             :
7188           else
7189             cat <<EOF 1>&2
7190
7191 *** Warning: the command libtool uses to detect shared libraries,
7192 *** $file_magic_cmd, produces output that libtool cannot recognize.
7193 *** The result is that libtool may fail to recognize shared libraries
7194 *** as such.  This will affect the creation of libtool libraries that
7195 *** depend on shared libraries, but programs linked with such libtool
7196 *** libraries will work regardless of this problem.  Nevertheless, you
7197 *** may want to report the problem to your system manager and/or to
7198 *** bug-libtool@gnu.org
7199
7200 EOF
7201           fi ;;
7202         esac
7203       fi
7204       break
7205     fi
7206   done
7207   IFS="$lt_save_ifs"
7208   MAGIC_CMD="$lt_save_MAGIC_CMD"
7209   ;;
7210 esac
7211 fi
7212
7213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7214 if test -n "$MAGIC_CMD"; then
7215   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7216 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7217 else
7218   { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7220 fi
7221
7222   else
7223     MAGIC_CMD=:
7224   fi
7225 fi
7226
7227   fi
7228   ;;
7229 esac
7230
7231 enable_dlopen=yes
7232 enable_win32_dll=no
7233
7234 # Check whether --enable-libtool-lock was given.
7235 if test "${enable_libtool_lock+set}" = set; then
7236   enableval=$enable_libtool_lock;
7237 fi
7238
7239 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7240
7241
7242 # Check whether --with-pic was given.
7243 if test "${with_pic+set}" = set; then
7244   withval=$with_pic; pic_mode="$withval"
7245 else
7246   pic_mode=default
7247 fi
7248
7249 test -z "$pic_mode" && pic_mode=default
7250
7251 # Use C for the default configuration in the libtool script
7252 tagname=
7253 lt_save_CC="$CC"
7254 ac_ext=c
7255 ac_cpp='$CPP $CPPFLAGS'
7256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259
7260
7261 # Source file extension for C test sources.
7262 ac_ext=c
7263
7264 # Object file extension for compiled C test sources.
7265 objext=o
7266 objext=$objext
7267
7268 # Code to be used in simple compile tests
7269 lt_simple_compile_test_code="int some_variable = 0;\n"
7270
7271 # Code to be used in simple link tests
7272 lt_simple_link_test_code='int main(){return(0);}\n'
7273
7274
7275 # If no C compiler was specified, use CC.
7276 LTCC=${LTCC-"$CC"}
7277
7278 # If no C compiler flags were specified, use CFLAGS.
7279 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7280
7281 # Allow CC to be a program name with arguments.
7282 compiler=$CC
7283
7284
7285 # save warnings/boilerplate of simple test code
7286 ac_outfile=conftest.$ac_objext
7287 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7288 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7289 _lt_compiler_boilerplate=`cat conftest.err`
7290 $rm conftest*
7291
7292 ac_outfile=conftest.$ac_objext
7293 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7294 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7295 _lt_linker_boilerplate=`cat conftest.err`
7296 $rm conftest*
7297
7298
7299 ## CAVEAT EMPTOR:
7300 ## There is no encapsulation within the following macros, do not change
7301 ## the running order or otherwise move them around unless you know exactly
7302 ## what you are doing...
7303
7304 lt_prog_compiler_no_builtin_flag=
7305
7306 if test "$GCC" = yes; then
7307   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7308
7309
7310 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7311 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7312 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   lt_cv_prog_compiler_rtti_exceptions=no
7316   ac_outfile=conftest.$ac_objext
7317    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7318    lt_compiler_flag="-fno-rtti -fno-exceptions"
7319    # Insert the option either (1) after the last *FLAGS variable, or
7320    # (2) before a word containing "conftest.", or (3) at the end.
7321    # Note that $ac_compile itself does not contain backslashes and begins
7322    # with a dollar sign (not a hyphen), so the echo should work correctly.
7323    # The option is referenced via a variable to avoid confusing sed.
7324    lt_compile=`echo "$ac_compile" | $SED \
7325    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7327    -e 's:$: $lt_compiler_flag:'`
7328    (eval echo "\"\$as_me:7328: $lt_compile\"" >&5)
7329    (eval "$lt_compile" 2>conftest.err)
7330    ac_status=$?
7331    cat conftest.err >&5
7332    echo "$as_me:7332: \$? = $ac_status" >&5
7333    if (exit $ac_status) && test -s "$ac_outfile"; then
7334      # The compiler can only warn and ignore the option if not recognized
7335      # So say no if there are warnings other than the usual output.
7336      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7337      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7338      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7339        lt_cv_prog_compiler_rtti_exceptions=yes
7340      fi
7341    fi
7342    $rm conftest*
7343
7344 fi
7345 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7346 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7347
7348 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7349     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7350 else
7351     :
7352 fi
7353
7354 fi
7355
7356 lt_prog_compiler_wl=
7357 lt_prog_compiler_pic=
7358 lt_prog_compiler_static=
7359
7360 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7361 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7362
7363   if test "$GCC" = yes; then
7364     lt_prog_compiler_wl='-Wl,'
7365     lt_prog_compiler_static='-static'
7366
7367     case $host_os in
7368       aix*)
7369       # All AIX code is PIC.
7370       if test "$host_cpu" = ia64; then
7371         # AIX 5 now supports IA64 processor
7372         lt_prog_compiler_static='-Bstatic'
7373       fi
7374       ;;
7375
7376     amigaos*)
7377       # FIXME: we need at least 68020 code to build shared libraries, but
7378       # adding the `-m68020' flag to GCC prevents building anything better,
7379       # like `-m68040'.
7380       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7381       ;;
7382
7383     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7384       # PIC is the default for these OSes.
7385       ;;
7386
7387     mingw* | pw32* | os2*)
7388       # This hack is so that the source file can tell whether it is being
7389       # built for inclusion in a dll (and should export symbols for example).
7390       lt_prog_compiler_pic='-DDLL_EXPORT'
7391       ;;
7392
7393     darwin* | rhapsody*)
7394       # PIC is the default on this platform
7395       # Common symbols not allowed in MH_DYLIB files
7396       lt_prog_compiler_pic='-fno-common'
7397       ;;
7398
7399     interix3*)
7400       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7401       # Instead, we relocate shared libraries at runtime.
7402       ;;
7403
7404     msdosdjgpp*)
7405       # Just because we use GCC doesn't mean we suddenly get shared libraries
7406       # on systems that don't support them.
7407       lt_prog_compiler_can_build_shared=no
7408       enable_shared=no
7409       ;;
7410
7411     sysv4*MP*)
7412       if test -d /usr/nec; then
7413         lt_prog_compiler_pic=-Kconform_pic
7414       fi
7415       ;;
7416
7417     hpux*)
7418       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7419       # not for PA HP-UX.
7420       case $host_cpu in
7421       hppa*64*|ia64*)
7422         # +Z the default
7423         ;;
7424       *)
7425         lt_prog_compiler_pic='-fPIC'
7426         ;;
7427       esac
7428       ;;
7429
7430     *)
7431       lt_prog_compiler_pic='-fPIC'
7432       ;;
7433     esac
7434   else
7435     # PORTME Check for flag to pass linker flags through the system compiler.
7436     case $host_os in
7437     aix*)
7438       lt_prog_compiler_wl='-Wl,'
7439       if test "$host_cpu" = ia64; then
7440         # AIX 5 now supports IA64 processor
7441         lt_prog_compiler_static='-Bstatic'
7442       else
7443         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7444       fi
7445       ;;
7446       darwin*)
7447         # PIC is the default on this platform
7448         # Common symbols not allowed in MH_DYLIB files
7449        case $cc_basename in
7450          xlc*)
7451          lt_prog_compiler_pic='-qnocommon'
7452          lt_prog_compiler_wl='-Wl,'
7453          ;;
7454        esac
7455        ;;
7456
7457     mingw* | pw32* | os2*)
7458       # This hack is so that the source file can tell whether it is being
7459       # built for inclusion in a dll (and should export symbols for example).
7460       lt_prog_compiler_pic='-DDLL_EXPORT'
7461       ;;
7462
7463     hpux9* | hpux10* | hpux11*)
7464       lt_prog_compiler_wl='-Wl,'
7465       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7466       # not for PA HP-UX.
7467       case $host_cpu in
7468       hppa*64*|ia64*)
7469         # +Z the default
7470         ;;
7471       *)
7472         lt_prog_compiler_pic='+Z'
7473         ;;
7474       esac
7475       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7476       lt_prog_compiler_static='${wl}-a ${wl}archive'
7477       ;;
7478
7479     irix5* | irix6* | nonstopux*)
7480       lt_prog_compiler_wl='-Wl,'
7481       # PIC (with -KPIC) is the default.
7482       lt_prog_compiler_static='-non_shared'
7483       ;;
7484
7485     newsos6)
7486       lt_prog_compiler_pic='-KPIC'
7487       lt_prog_compiler_static='-Bstatic'
7488       ;;
7489
7490     linux*)
7491       case $cc_basename in
7492       icc* | ecc*)
7493         lt_prog_compiler_wl='-Wl,'
7494         lt_prog_compiler_pic='-KPIC'
7495         lt_prog_compiler_static='-static'
7496         ;;
7497       pgcc* | pgf77* | pgf90* | pgf95*)
7498         # Portland Group compilers (*not* the Pentium gcc compiler,
7499         # which looks to be a dead project)
7500         lt_prog_compiler_wl='-Wl,'
7501         lt_prog_compiler_pic='-fpic'
7502         lt_prog_compiler_static='-Bstatic'
7503         ;;
7504       ccc*)
7505         lt_prog_compiler_wl='-Wl,'
7506         # All Alpha code is PIC.
7507         lt_prog_compiler_static='-non_shared'
7508         ;;
7509       esac
7510       ;;
7511
7512     osf3* | osf4* | osf5*)
7513       lt_prog_compiler_wl='-Wl,'
7514       # All OSF/1 code is PIC.
7515       lt_prog_compiler_static='-non_shared'
7516       ;;
7517
7518     solaris*)
7519       lt_prog_compiler_pic='-KPIC'
7520       lt_prog_compiler_static='-Bstatic'
7521       case $cc_basename in
7522       f77* | f90* | f95*)
7523         lt_prog_compiler_wl='-Qoption ld ';;
7524       *)
7525         lt_prog_compiler_wl='-Wl,';;
7526       esac
7527       ;;
7528
7529     sunos4*)
7530       lt_prog_compiler_wl='-Qoption ld '
7531       lt_prog_compiler_pic='-PIC'
7532       lt_prog_compiler_static='-Bstatic'
7533       ;;
7534
7535     sysv4 | sysv4.2uw2* | sysv4.3*)
7536       lt_prog_compiler_wl='-Wl,'
7537       lt_prog_compiler_pic='-KPIC'
7538       lt_prog_compiler_static='-Bstatic'
7539       ;;
7540
7541     sysv4*MP*)
7542       if test -d /usr/nec ;then
7543         lt_prog_compiler_pic='-Kconform_pic'
7544         lt_prog_compiler_static='-Bstatic'
7545       fi
7546       ;;
7547
7548     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7549       lt_prog_compiler_wl='-Wl,'
7550       lt_prog_compiler_pic='-KPIC'
7551       lt_prog_compiler_static='-Bstatic'
7552       ;;
7553
7554     unicos*)
7555       lt_prog_compiler_wl='-Wl,'
7556       lt_prog_compiler_can_build_shared=no
7557       ;;
7558
7559     uts4*)
7560       lt_prog_compiler_pic='-pic'
7561       lt_prog_compiler_static='-Bstatic'
7562       ;;
7563
7564     *)
7565       lt_prog_compiler_can_build_shared=no
7566       ;;
7567     esac
7568   fi
7569
7570 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7571 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7572
7573 #
7574 # Check to make sure the PIC flag actually works.
7575 #
7576 if test -n "$lt_prog_compiler_pic"; then
7577
7578 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7579 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7580 if test "${lt_prog_compiler_pic_works+set}" = set; then
7581   echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583   lt_prog_compiler_pic_works=no
7584   ac_outfile=conftest.$ac_objext
7585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7586    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7587    # Insert the option either (1) after the last *FLAGS variable, or
7588    # (2) before a word containing "conftest.", or (3) at the end.
7589    # Note that $ac_compile itself does not contain backslashes and begins
7590    # with a dollar sign (not a hyphen), so the echo should work correctly.
7591    # The option is referenced via a variable to avoid confusing sed.
7592    lt_compile=`echo "$ac_compile" | $SED \
7593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595    -e 's:$: $lt_compiler_flag:'`
7596    (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
7597    (eval "$lt_compile" 2>conftest.err)
7598    ac_status=$?
7599    cat conftest.err >&5
7600    echo "$as_me:7600: \$? = $ac_status" >&5
7601    if (exit $ac_status) && test -s "$ac_outfile"; then
7602      # The compiler can only warn and ignore the option if not recognized
7603      # So say no if there are warnings other than the usual output.
7604      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7605      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7606      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7607        lt_prog_compiler_pic_works=yes
7608      fi
7609    fi
7610    $rm conftest*
7611
7612 fi
7613 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7614 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7615
7616 if test x"$lt_prog_compiler_pic_works" = xyes; then
7617     case $lt_prog_compiler_pic in
7618      "" | " "*) ;;
7619      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7620      esac
7621 else
7622     lt_prog_compiler_pic=
7623      lt_prog_compiler_can_build_shared=no
7624 fi
7625
7626 fi
7627 case $host_os in
7628   # For platforms which do not support PIC, -DPIC is meaningless:
7629   *djgpp*)
7630     lt_prog_compiler_pic=
7631     ;;
7632   *)
7633     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7634     ;;
7635 esac
7636
7637 #
7638 # Check to make sure the static flag actually works.
7639 #
7640 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7641 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7642 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7643 if test "${lt_prog_compiler_static_works+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   lt_prog_compiler_static_works=no
7647    save_LDFLAGS="$LDFLAGS"
7648    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7649    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7650    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7651      # The linker can only warn and ignore the option if not recognized
7652      # So say no if there are warnings
7653      if test -s conftest.err; then
7654        # Append any errors to the config.log.
7655        cat conftest.err 1>&5
7656        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7657        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7658        if diff conftest.exp conftest.er2 >/dev/null; then
7659          lt_prog_compiler_static_works=yes
7660        fi
7661      else
7662        lt_prog_compiler_static_works=yes
7663      fi
7664    fi
7665    $rm conftest*
7666    LDFLAGS="$save_LDFLAGS"
7667
7668 fi
7669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7670 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7671
7672 if test x"$lt_prog_compiler_static_works" = xyes; then
7673     :
7674 else
7675     lt_prog_compiler_static=
7676 fi
7677
7678
7679 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7680 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7681 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   lt_cv_prog_compiler_c_o=no
7685    $rm -r conftest 2>/dev/null
7686    mkdir conftest
7687    cd conftest
7688    mkdir out
7689    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7690
7691    lt_compiler_flag="-o out/conftest2.$ac_objext"
7692    # Insert the option either (1) after the last *FLAGS variable, or
7693    # (2) before a word containing "conftest.", or (3) at the end.
7694    # Note that $ac_compile itself does not contain backslashes and begins
7695    # with a dollar sign (not a hyphen), so the echo should work correctly.
7696    lt_compile=`echo "$ac_compile" | $SED \
7697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7699    -e 's:$: $lt_compiler_flag:'`
7700    (eval echo "\"\$as_me:7700: $lt_compile\"" >&5)
7701    (eval "$lt_compile" 2>out/conftest.err)
7702    ac_status=$?
7703    cat out/conftest.err >&5
7704    echo "$as_me:7704: \$? = $ac_status" >&5
7705    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7706    then
7707      # The compiler can only warn and ignore the option if not recognized
7708      # So say no if there are warnings
7709      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7710      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7711      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7712        lt_cv_prog_compiler_c_o=yes
7713      fi
7714    fi
7715    chmod u+w . 2>&5
7716    $rm conftest*
7717    # SGI C++ compiler will create directory out/ii_files/ for
7718    # template instantiation
7719    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7720    $rm out/* && rmdir out
7721    cd ..
7722    rmdir conftest
7723    $rm conftest*
7724
7725 fi
7726 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7727 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7728
7729
7730 hard_links="nottested"
7731 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7732   # do not overwrite the value of need_locks provided by the user
7733   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7734 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7735   hard_links=yes
7736   $rm conftest*
7737   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7738   touch conftest.a
7739   ln conftest.a conftest.b 2>&5 || hard_links=no
7740   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7741   { echo "$as_me:$LINENO: result: $hard_links" >&5
7742 echo "${ECHO_T}$hard_links" >&6; }
7743   if test "$hard_links" = no; then
7744     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7745 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7746     need_locks=warn
7747   fi
7748 else
7749   need_locks=no
7750 fi
7751
7752 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7753 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7754
7755   runpath_var=
7756   allow_undefined_flag=
7757   enable_shared_with_static_runtimes=no
7758   archive_cmds=
7759   archive_expsym_cmds=
7760   old_archive_From_new_cmds=
7761   old_archive_from_expsyms_cmds=
7762   export_dynamic_flag_spec=
7763   whole_archive_flag_spec=
7764   thread_safe_flag_spec=
7765   hardcode_libdir_flag_spec=
7766   hardcode_libdir_flag_spec_ld=
7767   hardcode_libdir_separator=
7768   hardcode_direct=no
7769   hardcode_minus_L=no
7770   hardcode_shlibpath_var=unsupported
7771   link_all_deplibs=unknown
7772   hardcode_automatic=no
7773   module_cmds=
7774   module_expsym_cmds=
7775   always_export_symbols=no
7776   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7777   # include_expsyms should be a list of space-separated symbols to be *always*
7778   # included in the symbol list
7779   include_expsyms=
7780   # exclude_expsyms can be an extended regexp of symbols to exclude
7781   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7782   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7783   # as well as any symbol that contains `d'.
7784   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7785   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7786   # platforms (ab)use it in PIC code, but their linkers get confused if
7787   # the symbol is explicitly referenced.  Since portable code cannot
7788   # rely on this symbol name, it's probably fine to never include it in
7789   # preloaded symbol tables.
7790   extract_expsyms_cmds=
7791   # Just being paranoid about ensuring that cc_basename is set.
7792   for cc_temp in $compiler""; do
7793   case $cc_temp in
7794     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7795     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7796     \-*) ;;
7797     *) break;;
7798   esac
7799 done
7800 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7801
7802   case $host_os in
7803   cygwin* | mingw* | pw32*)
7804     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7805     # When not using gcc, we currently assume that we are using
7806     # Microsoft Visual C++.
7807     if test "$GCC" != yes; then
7808       with_gnu_ld=no
7809     fi
7810     ;;
7811   interix*)
7812     # we just hope/assume this is gcc and not c89 (= MSVC++)
7813     with_gnu_ld=yes
7814     ;;
7815   openbsd*)
7816     with_gnu_ld=no
7817     ;;
7818   esac
7819
7820   ld_shlibs=yes
7821   if test "$with_gnu_ld" = yes; then
7822     # If archive_cmds runs LD, not CC, wlarc should be empty
7823     wlarc='${wl}'
7824
7825     # Set some defaults for GNU ld with shared library support. These
7826     # are reset later if shared libraries are not supported. Putting them
7827     # here allows them to be overridden if necessary.
7828     runpath_var=LD_RUN_PATH
7829     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7830     export_dynamic_flag_spec='${wl}--export-dynamic'
7831     # ancient GNU ld didn't support --whole-archive et. al.
7832     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7833         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7834       else
7835         whole_archive_flag_spec=
7836     fi
7837     supports_anon_versioning=no
7838     case `$LD -v 2>/dev/null` in
7839       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7840       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7841       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7842       *\ 2.11.*) ;; # other 2.11 versions
7843       *) supports_anon_versioning=yes ;;
7844     esac
7845
7846     # See if GNU ld supports shared libraries.
7847     case $host_os in
7848     aix3* | aix4* | aix5*)
7849       # On AIX/PPC, the GNU linker is very broken
7850       if test "$host_cpu" != ia64; then
7851         ld_shlibs=no
7852         cat <<EOF 1>&2
7853
7854 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7855 *** to be unable to reliably create shared libraries on AIX.
7856 *** Therefore, libtool is disabling shared libraries support.  If you
7857 *** really care for shared libraries, you may want to modify your PATH
7858 *** so that a non-GNU linker is found, and then restart.
7859
7860 EOF
7861       fi
7862       ;;
7863
7864     amigaos*)
7865       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)'
7866       hardcode_libdir_flag_spec='-L$libdir'
7867       hardcode_minus_L=yes
7868
7869       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7870       # that the semantics of dynamic libraries on AmigaOS, at least up
7871       # to version 4, is to share data among multiple programs linked
7872       # with the same dynamic library.  Since this doesn't match the
7873       # behavior of shared libraries on other platforms, we can't use
7874       # them.
7875       ld_shlibs=no
7876       ;;
7877
7878     beos*)
7879       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7880         allow_undefined_flag=unsupported
7881         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7882         # support --undefined.  This deserves some investigation.  FIXME
7883         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7884       else
7885         ld_shlibs=no
7886       fi
7887       ;;
7888
7889     cygwin* | mingw* | pw32*)
7890       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7891       # as there is no search path for DLLs.
7892       hardcode_libdir_flag_spec='-L$libdir'
7893       allow_undefined_flag=unsupported
7894       always_export_symbols=no
7895       enable_shared_with_static_runtimes=yes
7896       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7897
7898       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7899         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7900         # If the export-symbols file already is a .def file (1st line
7901         # is EXPORTS), use it as is; otherwise, prepend...
7902         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7903           cp $export_symbols $output_objdir/$soname.def;
7904         else
7905           echo EXPORTS > $output_objdir/$soname.def;
7906           cat $export_symbols >> $output_objdir/$soname.def;
7907         fi~
7908         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7909       else
7910         ld_shlibs=no
7911       fi
7912       ;;
7913
7914     interix3*)
7915       hardcode_direct=no
7916       hardcode_shlibpath_var=no
7917       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7918       export_dynamic_flag_spec='${wl}-E'
7919       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7920       # Instead, shared libraries are loaded at an image base (0x10000000 by
7921       # default) and relocated if they conflict, which is a slow very memory
7922       # consuming and fragmenting process.  To avoid this, we pick a random,
7923       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7924       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7925       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7926       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'
7927       ;;
7928
7929     linux*)
7930       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7931         tmp_addflag=
7932         case $cc_basename,$host_cpu in
7933         pgcc*)                          # Portland Group C compiler
7934           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'
7935           tmp_addflag=' $pic_flag'
7936           ;;
7937         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7938           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'
7939           tmp_addflag=' $pic_flag -Mnomain' ;;
7940         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7941           tmp_addflag=' -i_dynamic' ;;
7942         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7943           tmp_addflag=' -i_dynamic -nofor_main' ;;
7944         ifc* | ifort*)                  # Intel Fortran compiler
7945           tmp_addflag=' -nofor_main' ;;
7946         esac
7947         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7948
7949         if test $supports_anon_versioning = yes; then
7950           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7951   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7952   $echo "local: *; };" >> $output_objdir/$libname.ver~
7953           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7954         fi
7955       else
7956         ld_shlibs=no
7957       fi
7958       ;;
7959
7960     netbsd*)
7961       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7962         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7963         wlarc=
7964       else
7965         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7967       fi
7968       ;;
7969
7970     solaris*)
7971       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7972         ld_shlibs=no
7973         cat <<EOF 1>&2
7974
7975 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7976 *** create shared libraries on Solaris systems.  Therefore, libtool
7977 *** is disabling shared libraries support.  We urge you to upgrade GNU
7978 *** binutils to release 2.9.1 or newer.  Another option is to modify
7979 *** your PATH or compiler configuration so that the native linker is
7980 *** used, and then restart.
7981
7982 EOF
7983       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7984         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7986       else
7987         ld_shlibs=no
7988       fi
7989       ;;
7990
7991     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7992       case `$LD -v 2>&1` in
7993         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7994         ld_shlibs=no
7995         cat <<_LT_EOF 1>&2
7996
7997 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7998 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7999 *** is disabling shared libraries support.  We urge you to upgrade GNU
8000 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8001 *** your PATH or compiler configuration so that the native linker is
8002 *** used, and then restart.
8003
8004 _LT_EOF
8005         ;;
8006         *)
8007           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8008             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8009             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8010             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8011           else
8012             ld_shlibs=no
8013           fi
8014         ;;
8015       esac
8016       ;;
8017
8018     sunos4*)
8019       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8020       wlarc=
8021       hardcode_direct=yes
8022       hardcode_shlibpath_var=no
8023       ;;
8024
8025     *)
8026       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8027         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8028         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8029       else
8030         ld_shlibs=no
8031       fi
8032       ;;
8033     esac
8034
8035     if test "$ld_shlibs" = no; then
8036       runpath_var=
8037       hardcode_libdir_flag_spec=
8038       export_dynamic_flag_spec=
8039       whole_archive_flag_spec=
8040     fi
8041   else
8042     # PORTME fill in a description of your system's linker (not GNU ld)
8043     case $host_os in
8044     aix3*)
8045       allow_undefined_flag=unsupported
8046       always_export_symbols=yes
8047       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'
8048       # Note: this linker hardcodes the directories in LIBPATH if there
8049       # are no directories specified by -L.
8050       hardcode_minus_L=yes
8051       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8052         # Neither direct hardcoding nor static linking is supported with a
8053         # broken collect2.
8054         hardcode_direct=unsupported
8055       fi
8056       ;;
8057
8058     aix4* | aix5*)
8059       if test "$host_cpu" = ia64; then
8060         # On IA64, the linker does run time linking by default, so we don't
8061         # have to do anything special.
8062         aix_use_runtimelinking=no
8063         exp_sym_flag='-Bexport'
8064         no_entry_flag=""
8065       else
8066         # If we're using GNU nm, then we don't want the "-C" option.
8067         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8068         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8069           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'
8070         else
8071           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'
8072         fi
8073         aix_use_runtimelinking=no
8074
8075         # Test if we are trying to use run time linking or normal
8076         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8077         # need to do runtime linking.
8078         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8079           for ld_flag in $LDFLAGS; do
8080           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8081             aix_use_runtimelinking=yes
8082             break
8083           fi
8084           done
8085           ;;
8086         esac
8087
8088         exp_sym_flag='-bexport'
8089         no_entry_flag='-bnoentry'
8090       fi
8091
8092       # When large executables or shared objects are built, AIX ld can
8093       # have problems creating the table of contents.  If linking a library
8094       # or program results in "error TOC overflow" add -mminimal-toc to
8095       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8096       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8097
8098       archive_cmds=''
8099       hardcode_direct=yes
8100       hardcode_libdir_separator=':'
8101       link_all_deplibs=yes
8102
8103       if test "$GCC" = yes; then
8104         case $host_os in aix4.[012]|aix4.[012].*)
8105         # We only want to do this on AIX 4.2 and lower, the check
8106         # below for broken collect2 doesn't work under 4.3+
8107           collect2name=`${CC} -print-prog-name=collect2`
8108           if test -f "$collect2name" && \
8109            strings "$collect2name" | grep resolve_lib_name >/dev/null
8110           then
8111           # We have reworked collect2
8112           hardcode_direct=yes
8113           else
8114           # We have old collect2
8115           hardcode_direct=unsupported
8116           # It fails to find uninstalled libraries when the uninstalled
8117           # path is not listed in the libpath.  Setting hardcode_minus_L
8118           # to unsupported forces relinking
8119           hardcode_minus_L=yes
8120           hardcode_libdir_flag_spec='-L$libdir'
8121           hardcode_libdir_separator=
8122           fi
8123           ;;
8124         esac
8125         shared_flag='-shared'
8126         if test "$aix_use_runtimelinking" = yes; then
8127           shared_flag="$shared_flag "'${wl}-G'
8128         fi
8129       else
8130         # not using gcc
8131         if test "$host_cpu" = ia64; then
8132         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8133         # chokes on -Wl,-G. The following line is correct:
8134           shared_flag='-G'
8135         else
8136           if test "$aix_use_runtimelinking" = yes; then
8137             shared_flag='${wl}-G'
8138           else
8139             shared_flag='${wl}-bM:SRE'
8140           fi
8141         fi
8142       fi
8143
8144       # It seems that -bexpall does not export symbols beginning with
8145       # underscore (_), so it is better to generate a list of symbols to export.
8146       always_export_symbols=yes
8147       if test "$aix_use_runtimelinking" = yes; then
8148         # Warning - without using the other runtime loading flags (-brtl),
8149         # -berok will link without error, but may produce a broken library.
8150         allow_undefined_flag='-berok'
8151        # Determine the default libpath from the value encoded in an empty executable.
8152        cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158
8159 int
8160 main ()
8161 {
8162
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8169 case "(($ac_try" in
8170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171   *) ac_try_echo=$ac_try;;
8172 esac
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174   (eval "$ac_link") 2>conftest.er1
8175   ac_status=$?
8176   grep -v '^ *+' conftest.er1 >conftest.err
8177   rm -f conftest.er1
8178   cat conftest.err >&5
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } && {
8181          test -z "$ac_c_werror_flag" ||
8182          test ! -s conftest.err
8183        } && test -s conftest$ac_exeext &&
8184        $as_test_x conftest$ac_exeext; then
8185
8186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8187 }'`
8188 # Check for a 64-bit object if we didn't find anything.
8189 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8190 }'`; fi
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195
8196 fi
8197
8198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8199       conftest$ac_exeext conftest.$ac_ext
8200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8201
8202        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8203         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"
8204        else
8205         if test "$host_cpu" = ia64; then
8206           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8207           allow_undefined_flag="-z nodefs"
8208           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"
8209         else
8210          # Determine the default libpath from the value encoded in an empty executable.
8211          cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 int
8219 main ()
8220 {
8221
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8228 case "(($ac_try" in
8229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230   *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233   (eval "$ac_link") 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } && {
8240          test -z "$ac_c_werror_flag" ||
8241          test ! -s conftest.err
8242        } && test -s conftest$ac_exeext &&
8243        $as_test_x conftest$ac_exeext; then
8244
8245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8246 }'`
8247 # Check for a 64-bit object if we didn't find anything.
8248 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8249 }'`; fi
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254
8255 fi
8256
8257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8258       conftest$ac_exeext conftest.$ac_ext
8259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8260
8261          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8262           # Warning - without using the other run time loading flags,
8263           # -berok will link without error, but may produce a broken library.
8264           no_undefined_flag=' ${wl}-bernotok'
8265           allow_undefined_flag=' ${wl}-berok'
8266           # Exported symbols can be pulled into shared objects from archives
8267           whole_archive_flag_spec='$convenience'
8268           archive_cmds_need_lc=yes
8269           # This is similar to how AIX traditionally builds its shared libraries.
8270           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'
8271         fi
8272       fi
8273       ;;
8274
8275     amigaos*)
8276       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)'
8277       hardcode_libdir_flag_spec='-L$libdir'
8278       hardcode_minus_L=yes
8279       # see comment about different semantics on the GNU ld section
8280       ld_shlibs=no
8281       ;;
8282
8283     bsdi[45]*)
8284       export_dynamic_flag_spec=-rdynamic
8285       ;;
8286
8287     cygwin* | mingw* | pw32*)
8288       # When not using gcc, we currently assume that we are using
8289       # Microsoft Visual C++.
8290       # hardcode_libdir_flag_spec is actually meaningless, as there is
8291       # no search path for DLLs.
8292       hardcode_libdir_flag_spec=' '
8293       allow_undefined_flag=unsupported
8294       # Tell ltmain to make .lib files, not .a files.
8295       libext=lib
8296       # Tell ltmain to make .dll files, not .so files.
8297       shrext_cmds=".dll"
8298       # FIXME: Setting linknames here is a bad hack.
8299       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8300       # The linker will automatically build a .lib file if we build a DLL.
8301       old_archive_From_new_cmds='true'
8302       # FIXME: Should let the user specify the lib program.
8303       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8304       fix_srcfile_path='`cygpath -w "$srcfile"`'
8305       enable_shared_with_static_runtimes=yes
8306       ;;
8307
8308     darwin* | rhapsody*)
8309       case $host_os in
8310         rhapsody* | darwin1.[012])
8311          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8312          ;;
8313        *) # Darwin 1.3 on
8314          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8315            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8316          else
8317            case ${MACOSX_DEPLOYMENT_TARGET} in
8318              10.[012])
8319                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8320                ;;
8321              10.*)
8322                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8323                ;;
8324            esac
8325          fi
8326          ;;
8327       esac
8328       archive_cmds_need_lc=no
8329       hardcode_direct=no
8330       hardcode_automatic=yes
8331       hardcode_shlibpath_var=unsupported
8332       whole_archive_flag_spec=''
8333       link_all_deplibs=yes
8334     if test "$GCC" = yes ; then
8335         output_verbose_link_cmd='echo'
8336         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8337       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8338       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8339       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8340       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}'
8341     else
8342       case $cc_basename in
8343         xlc*)
8344          output_verbose_link_cmd='echo'
8345          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8346          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8347           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8348          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8349           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}'
8350           ;;
8351        *)
8352          ld_shlibs=no
8353           ;;
8354       esac
8355     fi
8356       ;;
8357
8358     dgux*)
8359       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8360       hardcode_libdir_flag_spec='-L$libdir'
8361       hardcode_shlibpath_var=no
8362       ;;
8363
8364     freebsd1*)
8365       ld_shlibs=no
8366       ;;
8367
8368     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8369     # support.  Future versions do this automatically, but an explicit c++rt0.o
8370     # does not break anything, and helps significantly (at the cost of a little
8371     # extra space).
8372     freebsd2.2*)
8373       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8374       hardcode_libdir_flag_spec='-R$libdir'
8375       hardcode_direct=yes
8376       hardcode_shlibpath_var=no
8377       ;;
8378
8379     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8380     freebsd2*)
8381       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8382       hardcode_direct=yes
8383       hardcode_minus_L=yes
8384       hardcode_shlibpath_var=no
8385       ;;
8386
8387     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8388     freebsd* | kfreebsd*-gnu | dragonfly*)
8389       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8390       hardcode_libdir_flag_spec='-R$libdir'
8391       hardcode_direct=yes
8392       hardcode_shlibpath_var=no
8393       ;;
8394
8395     hpux9*)
8396       if test "$GCC" = yes; then
8397         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'
8398       else
8399         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'
8400       fi
8401       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8402       hardcode_libdir_separator=:
8403       hardcode_direct=yes
8404
8405       # hardcode_minus_L: Not really in the search PATH,
8406       # but as the default location of the library.
8407       hardcode_minus_L=yes
8408       export_dynamic_flag_spec='${wl}-E'
8409       ;;
8410
8411     hpux10*)
8412       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8413         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8414       else
8415         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8416       fi
8417       if test "$with_gnu_ld" = no; then
8418         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8419         hardcode_libdir_separator=:
8420
8421         hardcode_direct=yes
8422         export_dynamic_flag_spec='${wl}-E'
8423
8424         # hardcode_minus_L: Not really in the search PATH,
8425         # but as the default location of the library.
8426         hardcode_minus_L=yes
8427       fi
8428       ;;
8429
8430     hpux11*)
8431       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8432         case $host_cpu in
8433         hppa*64*)
8434           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8435           ;;
8436         ia64*)
8437           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8438           ;;
8439         *)
8440           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8441           ;;
8442         esac
8443       else
8444         case $host_cpu in
8445         hppa*64*)
8446           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8447           ;;
8448         ia64*)
8449           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8450           ;;
8451         *)
8452           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8453           ;;
8454         esac
8455       fi
8456       if test "$with_gnu_ld" = no; then
8457         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8458         hardcode_libdir_separator=:
8459
8460         case $host_cpu in
8461         hppa*64*|ia64*)
8462           hardcode_libdir_flag_spec_ld='+b $libdir'
8463           hardcode_direct=no
8464           hardcode_shlibpath_var=no
8465           ;;
8466         *)
8467           hardcode_direct=yes
8468           export_dynamic_flag_spec='${wl}-E'
8469
8470           # hardcode_minus_L: Not really in the search PATH,
8471           # but as the default location of the library.
8472           hardcode_minus_L=yes
8473           ;;
8474         esac
8475       fi
8476       ;;
8477
8478     irix5* | irix6* | nonstopux*)
8479       if test "$GCC" = yes; then
8480         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'
8481       else
8482         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'
8483         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8484       fi
8485       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486       hardcode_libdir_separator=:
8487       link_all_deplibs=yes
8488       ;;
8489
8490     netbsd*)
8491       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8492         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8493       else
8494         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8495       fi
8496       hardcode_libdir_flag_spec='-R$libdir'
8497       hardcode_direct=yes
8498       hardcode_shlibpath_var=no
8499       ;;
8500
8501     newsos6)
8502       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8503       hardcode_direct=yes
8504       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8505       hardcode_libdir_separator=:
8506       hardcode_shlibpath_var=no
8507       ;;
8508
8509     openbsd*)
8510       hardcode_direct=yes
8511       hardcode_shlibpath_var=no
8512       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8513         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8514         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8515         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8516         export_dynamic_flag_spec='${wl}-E'
8517       else
8518        case $host_os in
8519          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8520            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8521            hardcode_libdir_flag_spec='-R$libdir'
8522            ;;
8523          *)
8524            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8525            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8526            ;;
8527        esac
8528       fi
8529       ;;
8530
8531     os2*)
8532       hardcode_libdir_flag_spec='-L$libdir'
8533       hardcode_minus_L=yes
8534       allow_undefined_flag=unsupported
8535       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'
8536       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8537       ;;
8538
8539     osf3*)
8540       if test "$GCC" = yes; then
8541         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8542         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'
8543       else
8544         allow_undefined_flag=' -expect_unresolved \*'
8545         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'
8546       fi
8547       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8548       hardcode_libdir_separator=:
8549       ;;
8550
8551     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8552       if test "$GCC" = yes; then
8553         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8554         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'
8555         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8556       else
8557         allow_undefined_flag=' -expect_unresolved \*'
8558         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'
8559         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8560         $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'
8561
8562         # Both c and cxx compiler support -rpath directly
8563         hardcode_libdir_flag_spec='-rpath $libdir'
8564       fi
8565       hardcode_libdir_separator=:
8566       ;;
8567
8568     solaris*)
8569       no_undefined_flag=' -z text'
8570       if test "$GCC" = yes; then
8571         wlarc='${wl}'
8572         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8573         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8574           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8575       else
8576         wlarc=''
8577         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8578         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8579         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8580       fi
8581       hardcode_libdir_flag_spec='-R$libdir'
8582       hardcode_shlibpath_var=no
8583       case $host_os in
8584       solaris2.[0-5] | solaris2.[0-5].*) ;;
8585       *)
8586         # The compiler driver will combine linker options so we
8587         # cannot just pass the convience library names through
8588         # without $wl, iff we do not link with $LD.
8589         # Luckily, gcc supports the same syntax we need for Sun Studio.
8590         # Supported since Solaris 2.6 (maybe 2.5.1?)
8591         case $wlarc in
8592         '')
8593           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8594         *)
8595           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8596         esac ;;
8597       esac
8598       link_all_deplibs=yes
8599       ;;
8600
8601     sunos4*)
8602       if test "x$host_vendor" = xsequent; then
8603         # Use $CC to link under sequent, because it throws in some extra .o
8604         # files that make .init and .fini sections work.
8605         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8606       else
8607         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8608       fi
8609       hardcode_libdir_flag_spec='-L$libdir'
8610       hardcode_direct=yes
8611       hardcode_minus_L=yes
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     sysv4)
8616       case $host_vendor in
8617         sni)
8618           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8619           hardcode_direct=yes # is this really true???
8620         ;;
8621         siemens)
8622           ## LD is ld it makes a PLAMLIB
8623           ## CC just makes a GrossModule.
8624           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8625           reload_cmds='$CC -r -o $output$reload_objs'
8626           hardcode_direct=no
8627         ;;
8628         motorola)
8629           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8630           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8631         ;;
8632       esac
8633       runpath_var='LD_RUN_PATH'
8634       hardcode_shlibpath_var=no
8635       ;;
8636
8637     sysv4.3*)
8638       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639       hardcode_shlibpath_var=no
8640       export_dynamic_flag_spec='-Bexport'
8641       ;;
8642
8643     sysv4*MP*)
8644       if test -d /usr/nec; then
8645         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646         hardcode_shlibpath_var=no
8647         runpath_var=LD_RUN_PATH
8648         hardcode_runpath_var=yes
8649         ld_shlibs=yes
8650       fi
8651       ;;
8652
8653     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8654       no_undefined_flag='${wl}-z,text'
8655       archive_cmds_need_lc=no
8656       hardcode_shlibpath_var=no
8657       runpath_var='LD_RUN_PATH'
8658
8659       if test "$GCC" = yes; then
8660         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8661         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8662       else
8663         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8664         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8665       fi
8666       ;;
8667
8668     sysv5* | sco3.2v5* | sco5v6*)
8669       # Note: We can NOT use -z defs as we might desire, because we do not
8670       # link with -lc, and that would cause any symbols used from libc to
8671       # always be unresolved, which means just about no library would
8672       # ever link correctly.  If we're not using GNU ld we use -z text
8673       # though, which does catch some bad symbols but isn't as heavy-handed
8674       # as -z defs.
8675       no_undefined_flag='${wl}-z,text'
8676       allow_undefined_flag='${wl}-z,nodefs'
8677       archive_cmds_need_lc=no
8678       hardcode_shlibpath_var=no
8679       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8680       hardcode_libdir_separator=':'
8681       link_all_deplibs=yes
8682       export_dynamic_flag_spec='${wl}-Bexport'
8683       runpath_var='LD_RUN_PATH'
8684
8685       if test "$GCC" = yes; then
8686         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8688       else
8689         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8690         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691       fi
8692       ;;
8693
8694     uts4*)
8695       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696       hardcode_libdir_flag_spec='-L$libdir'
8697       hardcode_shlibpath_var=no
8698       ;;
8699
8700     *)
8701       ld_shlibs=no
8702       ;;
8703     esac
8704   fi
8705
8706 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8707 echo "${ECHO_T}$ld_shlibs" >&6; }
8708 test "$ld_shlibs" = no && can_build_shared=no
8709
8710 #
8711 # Do we need to explicitly link libc?
8712 #
8713 case "x$archive_cmds_need_lc" in
8714 x|xyes)
8715   # Assume -lc should be added
8716   archive_cmds_need_lc=yes
8717
8718   if test "$enable_shared" = yes && test "$GCC" = yes; then
8719     case $archive_cmds in
8720     *'~'*)
8721       # FIXME: we may have to deal with multi-command sequences.
8722       ;;
8723     '$CC '*)
8724       # Test whether the compiler implicitly links with -lc since on some
8725       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8726       # to ld, don't add -lc before -lgcc.
8727       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8729       $rm conftest*
8730       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8731
8732       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8733   (eval $ac_compile) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } 2>conftest.err; then
8737         soname=conftest
8738         lib=conftest
8739         libobjs=conftest.$ac_objext
8740         deplibs=
8741         wl=$lt_prog_compiler_wl
8742         pic_flag=$lt_prog_compiler_pic
8743         compiler_flags=-v
8744         linker_flags=-v
8745         verstring=
8746         output_objdir=.
8747         libname=conftest
8748         lt_save_allow_undefined_flag=$allow_undefined_flag
8749         allow_undefined_flag=
8750         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8751   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8752   ac_status=$?
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); }
8755         then
8756           archive_cmds_need_lc=no
8757         else
8758           archive_cmds_need_lc=yes
8759         fi
8760         allow_undefined_flag=$lt_save_allow_undefined_flag
8761       else
8762         cat conftest.err 1>&5
8763       fi
8764       $rm conftest*
8765       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8766 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8767       ;;
8768     esac
8769   fi
8770   ;;
8771 esac
8772
8773 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8775 library_names_spec=
8776 libname_spec='lib$name'
8777 soname_spec=
8778 shrext_cmds=".so"
8779 postinstall_cmds=
8780 postuninstall_cmds=
8781 finish_cmds=
8782 finish_eval=
8783 shlibpath_var=
8784 shlibpath_overrides_runpath=unknown
8785 version_type=none
8786 dynamic_linker="$host_os ld.so"
8787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8788 if test "$GCC" = yes; then
8789   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8790   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8791     # if the path contains ";" then we assume it to be the separator
8792     # otherwise default to the standard path separator (i.e. ":") - it is
8793     # assumed that no part of a normal pathname contains ";" but that should
8794     # okay in the real world where ";" in dirpaths is itself problematic.
8795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8796   else
8797     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8798   fi
8799 else
8800   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8801 fi
8802 need_lib_prefix=unknown
8803 hardcode_into_libs=no
8804
8805 # when you set need_version to no, make sure it does not cause -set_version
8806 # flags to be left without arguments
8807 need_version=unknown
8808
8809 case $host_os in
8810 aix3*)
8811   version_type=linux
8812   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8813   shlibpath_var=LIBPATH
8814
8815   # AIX 3 has no versioning support, so we append a major version to the name.
8816   soname_spec='${libname}${release}${shared_ext}$major'
8817   ;;
8818
8819 aix4* | aix5*)
8820   version_type=linux
8821   need_lib_prefix=no
8822   need_version=no
8823   hardcode_into_libs=yes
8824   if test "$host_cpu" = ia64; then
8825     # AIX 5 supports IA64
8826     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8827     shlibpath_var=LD_LIBRARY_PATH
8828   else
8829     # With GCC up to 2.95.x, collect2 would create an import file
8830     # for dependence libraries.  The import file would start with
8831     # the line `#! .'.  This would cause the generated library to
8832     # depend on `.', always an invalid library.  This was fixed in
8833     # development snapshots of GCC prior to 3.0.
8834     case $host_os in
8835       aix4 | aix4.[01] | aix4.[01].*)
8836       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8837            echo ' yes '
8838            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8839         :
8840       else
8841         can_build_shared=no
8842       fi
8843       ;;
8844     esac
8845     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8846     # soname into executable. Probably we can add versioning support to
8847     # collect2, so additional links can be useful in future.
8848     if test "$aix_use_runtimelinking" = yes; then
8849       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8850       # instead of lib<name>.a to let people know that these are not
8851       # typical AIX shared libraries.
8852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853     else
8854       # We preserve .a as extension for shared libraries through AIX4.2
8855       # and later when we are not doing run time linking.
8856       library_names_spec='${libname}${release}.a $libname.a'
8857       soname_spec='${libname}${release}${shared_ext}$major'
8858     fi
8859     shlibpath_var=LIBPATH
8860   fi
8861   ;;
8862
8863 amigaos*)
8864   library_names_spec='$libname.ixlibrary $libname.a'
8865   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8866   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'
8867   ;;
8868
8869 beos*)
8870   library_names_spec='${libname}${shared_ext}'
8871   dynamic_linker="$host_os ld.so"
8872   shlibpath_var=LIBRARY_PATH
8873   ;;
8874
8875 bsdi[45]*)
8876   version_type=linux
8877   need_version=no
8878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879   soname_spec='${libname}${release}${shared_ext}$major'
8880   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8881   shlibpath_var=LD_LIBRARY_PATH
8882   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8883   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8884   # the default ld.so.conf also contains /usr/contrib/lib and
8885   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8886   # libtool to hard-code these into programs
8887   ;;
8888
8889 cygwin* | mingw* | pw32*)
8890   version_type=windows
8891   shrext_cmds=".dll"
8892   need_version=no
8893   need_lib_prefix=no
8894
8895   case $GCC,$host_os in
8896   yes,cygwin* | yes,mingw* | yes,pw32*)
8897     library_names_spec='$libname.dll.a'
8898     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8899     postinstall_cmds='base_file=`basename \${file}`~
8900       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8901       dldir=$destdir/`dirname \$dlpath`~
8902       test -d \$dldir || mkdir -p \$dldir~
8903       $install_prog $dir/$dlname \$dldir/$dlname~
8904       chmod a+x \$dldir/$dlname'
8905     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8906       dlpath=$dir/\$dldll~
8907        $rm \$dlpath'
8908     shlibpath_overrides_runpath=yes
8909
8910     case $host_os in
8911     cygwin*)
8912       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8913       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8914       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8915       ;;
8916     mingw*)
8917       # MinGW DLLs use traditional 'lib' prefix
8918       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8919       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8920       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8921         # It is most probably a Windows format PATH printed by
8922         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8923         # path with ; separators, and with drive letters. We can handle the
8924         # drive letters (cygwin fileutils understands them), so leave them,
8925         # especially as we might pass files found there to a mingw objdump,
8926         # which wouldn't understand a cygwinified path. Ahh.
8927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8928       else
8929         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8930       fi
8931       ;;
8932     pw32*)
8933       # pw32 DLLs use 'pw' prefix rather than 'lib'
8934       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8935       ;;
8936     esac
8937     ;;
8938
8939   *)
8940     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8941     ;;
8942   esac
8943   dynamic_linker='Win32 ld.exe'
8944   # FIXME: first we should search . and the directory the executable is in
8945   shlibpath_var=PATH
8946   ;;
8947
8948 darwin* | rhapsody*)
8949   dynamic_linker="$host_os dyld"
8950   version_type=darwin
8951   need_lib_prefix=no
8952   need_version=no
8953   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8954   soname_spec='${libname}${release}${major}$shared_ext'
8955   shlibpath_overrides_runpath=yes
8956   shlibpath_var=DYLD_LIBRARY_PATH
8957   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8958   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8959   if test "$GCC" = yes; then
8960     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8961   else
8962     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8963   fi
8964   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8965   ;;
8966
8967 dgux*)
8968   version_type=linux
8969   need_lib_prefix=no
8970   need_version=no
8971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8972   soname_spec='${libname}${release}${shared_ext}$major'
8973   shlibpath_var=LD_LIBRARY_PATH
8974   ;;
8975
8976 freebsd1*)
8977   dynamic_linker=no
8978   ;;
8979
8980 kfreebsd*-gnu)
8981   version_type=linux
8982   need_lib_prefix=no
8983   need_version=no
8984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8985   soname_spec='${libname}${release}${shared_ext}$major'
8986   shlibpath_var=LD_LIBRARY_PATH
8987   shlibpath_overrides_runpath=no
8988   hardcode_into_libs=yes
8989   dynamic_linker='GNU ld.so'
8990   ;;
8991
8992 freebsd* | dragonfly*)
8993   # DragonFly does not have aout.  When/if they implement a new
8994   # versioning mechanism, adjust this.
8995   if test -x /usr/bin/objformat; then
8996     objformat=`/usr/bin/objformat`
8997   else
8998     case $host_os in
8999     freebsd[123]*) objformat=aout ;;
9000     *) objformat=elf ;;
9001     esac
9002   fi
9003   version_type=freebsd-$objformat
9004   case $version_type in
9005     freebsd-elf*)
9006       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9007       need_version=no
9008       need_lib_prefix=no
9009       ;;
9010     freebsd-*)
9011       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9012       need_version=yes
9013       ;;
9014   esac
9015   shlibpath_var=LD_LIBRARY_PATH
9016   case $host_os in
9017   freebsd2*)
9018     shlibpath_overrides_runpath=yes
9019     ;;
9020   freebsd3.[01]* | freebsdelf3.[01]*)
9021     shlibpath_overrides_runpath=yes
9022     hardcode_into_libs=yes
9023     ;;
9024   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9025   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9026     shlibpath_overrides_runpath=no
9027     hardcode_into_libs=yes
9028     ;;
9029   freebsd*) # from 4.6 on
9030     shlibpath_overrides_runpath=yes
9031     hardcode_into_libs=yes
9032     ;;
9033   esac
9034   ;;
9035
9036 gnu*)
9037   version_type=linux
9038   need_lib_prefix=no
9039   need_version=no
9040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9041   soname_spec='${libname}${release}${shared_ext}$major'
9042   shlibpath_var=LD_LIBRARY_PATH
9043   hardcode_into_libs=yes
9044   ;;
9045
9046 hpux9* | hpux10* | hpux11*)
9047   # Give a soname corresponding to the major version so that dld.sl refuses to
9048   # link against other versions.
9049   version_type=sunos
9050   need_lib_prefix=no
9051   need_version=no
9052   case $host_cpu in
9053   ia64*)
9054     shrext_cmds='.so'
9055     hardcode_into_libs=yes
9056     dynamic_linker="$host_os dld.so"
9057     shlibpath_var=LD_LIBRARY_PATH
9058     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060     soname_spec='${libname}${release}${shared_ext}$major'
9061     if test "X$HPUX_IA64_MODE" = X32; then
9062       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9063     else
9064       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9065     fi
9066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9067     ;;
9068    hppa*64*)
9069      shrext_cmds='.sl'
9070      hardcode_into_libs=yes
9071      dynamic_linker="$host_os dld.sl"
9072      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9073      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9074      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075      soname_spec='${libname}${release}${shared_ext}$major'
9076      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9077      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9078      ;;
9079    *)
9080     shrext_cmds='.sl'
9081     dynamic_linker="$host_os dld.sl"
9082     shlibpath_var=SHLIB_PATH
9083     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085     soname_spec='${libname}${release}${shared_ext}$major'
9086     ;;
9087   esac
9088   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9089   postinstall_cmds='chmod 555 $lib'
9090   ;;
9091
9092 interix3*)
9093   version_type=linux
9094   need_lib_prefix=no
9095   need_version=no
9096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9097   soname_spec='${libname}${release}${shared_ext}$major'
9098   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9099   shlibpath_var=LD_LIBRARY_PATH
9100   shlibpath_overrides_runpath=no
9101   hardcode_into_libs=yes
9102   ;;
9103
9104 irix5* | irix6* | nonstopux*)
9105   case $host_os in
9106     nonstopux*) version_type=nonstopux ;;
9107     *)
9108         if test "$lt_cv_prog_gnu_ld" = yes; then
9109                 version_type=linux
9110         else
9111                 version_type=irix
9112         fi ;;
9113   esac
9114   need_lib_prefix=no
9115   need_version=no
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9118   case $host_os in
9119   irix5* | nonstopux*)
9120     libsuff= shlibsuff=
9121     ;;
9122   *)
9123     case $LD in # libtool.m4 will add one of these switches to LD
9124     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9125       libsuff= shlibsuff= libmagic=32-bit;;
9126     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9127       libsuff=32 shlibsuff=N32 libmagic=N32;;
9128     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9129       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9130     *) libsuff= shlibsuff= libmagic=never-match;;
9131     esac
9132     ;;
9133   esac
9134   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9135   shlibpath_overrides_runpath=no
9136   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9137   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9138   hardcode_into_libs=yes
9139   ;;
9140
9141 # No shared lib support for Linux oldld, aout, or coff.
9142 linux*oldld* | linux*aout* | linux*coff*)
9143   dynamic_linker=no
9144   ;;
9145
9146 # This must be Linux ELF.
9147 linux*)
9148   version_type=linux
9149   need_lib_prefix=no
9150   need_version=no
9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   shlibpath_overrides_runpath=no
9156   # This implies no fast_install, which is unacceptable.
9157   # Some rework will be needed to allow for fast_install
9158   # before this can be enabled.
9159   hardcode_into_libs=yes
9160
9161   # Append ld.so.conf contents to the search path
9162   if test -f /etc/ld.so.conf; then
9163     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9164     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9165   fi
9166
9167   # We used to test for /lib/ld.so.1 and disable shared libraries on
9168   # powerpc, because MkLinux only supported shared libraries with the
9169   # GNU dynamic linker.  Since this was broken with cross compilers,
9170   # most powerpc-linux boxes support dynamic linking these days and
9171   # people can always --disable-shared, the test was removed, and we
9172   # assume the GNU/Linux dynamic linker is in use.
9173   dynamic_linker='GNU/Linux ld.so'
9174   ;;
9175
9176 knetbsd*-gnu)
9177   version_type=linux
9178   need_lib_prefix=no
9179   need_version=no
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9181   soname_spec='${libname}${release}${shared_ext}$major'
9182   shlibpath_var=LD_LIBRARY_PATH
9183   shlibpath_overrides_runpath=no
9184   hardcode_into_libs=yes
9185   dynamic_linker='GNU ld.so'
9186   ;;
9187
9188 netbsd*)
9189   version_type=sunos
9190   need_lib_prefix=no
9191   need_version=no
9192   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195     dynamic_linker='NetBSD (a.out) ld.so'
9196   else
9197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198     soname_spec='${libname}${release}${shared_ext}$major'
9199     dynamic_linker='NetBSD ld.elf_so'
9200   fi
9201   shlibpath_var=LD_LIBRARY_PATH
9202   shlibpath_overrides_runpath=yes
9203   hardcode_into_libs=yes
9204   ;;
9205
9206 newsos6)
9207   version_type=linux
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209   shlibpath_var=LD_LIBRARY_PATH
9210   shlibpath_overrides_runpath=yes
9211   ;;
9212
9213 nto-qnx*)
9214   version_type=linux
9215   need_lib_prefix=no
9216   need_version=no
9217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218   soname_spec='${libname}${release}${shared_ext}$major'
9219   shlibpath_var=LD_LIBRARY_PATH
9220   shlibpath_overrides_runpath=yes
9221   ;;
9222
9223 openbsd*)
9224   version_type=sunos
9225   sys_lib_dlsearch_path_spec="/usr/lib"
9226   need_lib_prefix=no
9227   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9228   case $host_os in
9229     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9230     *)                         need_version=no  ;;
9231   esac
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9233   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9234   shlibpath_var=LD_LIBRARY_PATH
9235   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9236     case $host_os in
9237       openbsd2.[89] | openbsd2.[89].*)
9238         shlibpath_overrides_runpath=no
9239         ;;
9240       *)
9241         shlibpath_overrides_runpath=yes
9242         ;;
9243       esac
9244   else
9245     shlibpath_overrides_runpath=yes
9246   fi
9247   ;;
9248
9249 os2*)
9250   libname_spec='$name'
9251   shrext_cmds=".dll"
9252   need_lib_prefix=no
9253   library_names_spec='$libname${shared_ext} $libname.a'
9254   dynamic_linker='OS/2 ld.exe'
9255   shlibpath_var=LIBPATH
9256   ;;
9257
9258 osf3* | osf4* | osf5*)
9259   version_type=osf
9260   need_lib_prefix=no
9261   need_version=no
9262   soname_spec='${libname}${release}${shared_ext}$major'
9263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264   shlibpath_var=LD_LIBRARY_PATH
9265   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9266   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9267   ;;
9268
9269 solaris*)
9270   version_type=linux
9271   need_lib_prefix=no
9272   need_version=no
9273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274   soname_spec='${libname}${release}${shared_ext}$major'
9275   shlibpath_var=LD_LIBRARY_PATH
9276   shlibpath_overrides_runpath=yes
9277   hardcode_into_libs=yes
9278   # ldd complains unless libraries are executable
9279   postinstall_cmds='chmod +x $lib'
9280   ;;
9281
9282 sunos4*)
9283   version_type=sunos
9284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9285   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9286   shlibpath_var=LD_LIBRARY_PATH
9287   shlibpath_overrides_runpath=yes
9288   if test "$with_gnu_ld" = yes; then
9289     need_lib_prefix=no
9290   fi
9291   need_version=yes
9292   ;;
9293
9294 sysv4 | sysv4.3*)
9295   version_type=linux
9296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297   soname_spec='${libname}${release}${shared_ext}$major'
9298   shlibpath_var=LD_LIBRARY_PATH
9299   case $host_vendor in
9300     sni)
9301       shlibpath_overrides_runpath=no
9302       need_lib_prefix=no
9303       export_dynamic_flag_spec='${wl}-Blargedynsym'
9304       runpath_var=LD_RUN_PATH
9305       ;;
9306     siemens)
9307       need_lib_prefix=no
9308       ;;
9309     motorola)
9310       need_lib_prefix=no
9311       need_version=no
9312       shlibpath_overrides_runpath=no
9313       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9314       ;;
9315   esac
9316   ;;
9317
9318 sysv4*MP*)
9319   if test -d /usr/nec ;then
9320     version_type=linux
9321     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9322     soname_spec='$libname${shared_ext}.$major'
9323     shlibpath_var=LD_LIBRARY_PATH
9324   fi
9325   ;;
9326
9327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9328   version_type=freebsd-elf
9329   need_lib_prefix=no
9330   need_version=no
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9332   soname_spec='${libname}${release}${shared_ext}$major'
9333   shlibpath_var=LD_LIBRARY_PATH
9334   hardcode_into_libs=yes
9335   if test "$with_gnu_ld" = yes; then
9336     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9337     shlibpath_overrides_runpath=no
9338   else
9339     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9340     shlibpath_overrides_runpath=yes
9341     case $host_os in
9342       sco3.2v5*)
9343         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9344         ;;
9345     esac
9346   fi
9347   sys_lib_dlsearch_path_spec='/usr/lib'
9348   ;;
9349
9350 uts4*)
9351   version_type=linux
9352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353   soname_spec='${libname}${release}${shared_ext}$major'
9354   shlibpath_var=LD_LIBRARY_PATH
9355   ;;
9356
9357 *)
9358   dynamic_linker=no
9359   ;;
9360 esac
9361 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9362 echo "${ECHO_T}$dynamic_linker" >&6; }
9363 test "$dynamic_linker" = no && can_build_shared=no
9364
9365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9366 if test "$GCC" = yes; then
9367   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9368 fi
9369
9370 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9371 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9372 hardcode_action=
9373 if test -n "$hardcode_libdir_flag_spec" || \
9374    test -n "$runpath_var" || \
9375    test "X$hardcode_automatic" = "Xyes" ; then
9376
9377   # We can hardcode non-existant directories.
9378   if test "$hardcode_direct" != no &&
9379      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9380      # have to relink, otherwise we might link with an installed library
9381      # when we should be linking with a yet-to-be-installed one
9382      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9383      test "$hardcode_minus_L" != no; then
9384     # Linking always hardcodes the temporary library directory.
9385     hardcode_action=relink
9386   else
9387     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9388     hardcode_action=immediate
9389   fi
9390 else
9391   # We cannot hardcode anything, or else we can only hardcode existing
9392   # directories.
9393   hardcode_action=unsupported
9394 fi
9395 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9396 echo "${ECHO_T}$hardcode_action" >&6; }
9397
9398 if test "$hardcode_action" = relink; then
9399   # Fast installation is not supported
9400   enable_fast_install=no
9401 elif test "$shlibpath_overrides_runpath" = yes ||
9402      test "$enable_shared" = no; then
9403   # Fast installation is not necessary
9404   enable_fast_install=needless
9405 fi
9406
9407 striplib=
9408 old_striplib=
9409 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9410 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9411 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9412   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9413   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9414   { echo "$as_me:$LINENO: result: yes" >&5
9415 echo "${ECHO_T}yes" >&6; }
9416 else
9417 # FIXME - insert some real tests, host_os isn't really good enough
9418   case $host_os in
9419    darwin*)
9420        if test -n "$STRIP" ; then
9421          striplib="$STRIP -x"
9422          { echo "$as_me:$LINENO: result: yes" >&5
9423 echo "${ECHO_T}yes" >&6; }
9424        else
9425   { echo "$as_me:$LINENO: result: no" >&5
9426 echo "${ECHO_T}no" >&6; }
9427 fi
9428        ;;
9429    *)
9430   { echo "$as_me:$LINENO: result: no" >&5
9431 echo "${ECHO_T}no" >&6; }
9432     ;;
9433   esac
9434 fi
9435
9436 if test "x$enable_dlopen" != xyes; then
9437   enable_dlopen=unknown
9438   enable_dlopen_self=unknown
9439   enable_dlopen_self_static=unknown
9440 else
9441   lt_cv_dlopen=no
9442   lt_cv_dlopen_libs=
9443
9444   case $host_os in
9445   beos*)
9446     lt_cv_dlopen="load_add_on"
9447     lt_cv_dlopen_libs=
9448     lt_cv_dlopen_self=yes
9449     ;;
9450
9451   mingw* | pw32*)
9452     lt_cv_dlopen="LoadLibrary"
9453     lt_cv_dlopen_libs=
9454    ;;
9455
9456   cygwin*)
9457     lt_cv_dlopen="dlopen"
9458     lt_cv_dlopen_libs=
9459    ;;
9460
9461   darwin*)
9462   # if libdl is installed we need to link against it
9463     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9464 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9465 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   ac_check_lib_save_LIBS=$LIBS
9469 LIBS="-ldl  $LIBS"
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h.  */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h.  */
9476
9477 /* Override any GCC internal prototype to avoid an error.
9478    Use char because int might match the return type of a GCC
9479    builtin and then its argument prototype would still apply.  */
9480 #ifdef __cplusplus
9481 extern "C"
9482 #endif
9483 char dlopen ();
9484 int
9485 main ()
9486 {
9487 return dlopen ();
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (ac_try="$ac_link"
9494 case "(($ac_try" in
9495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496   *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499   (eval "$ac_link") 2>conftest.er1
9500   ac_status=$?
9501   grep -v '^ *+' conftest.er1 >conftest.err
9502   rm -f conftest.er1
9503   cat conftest.err >&5
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); } && {
9506          test -z "$ac_c_werror_flag" ||
9507          test ! -s conftest.err
9508        } && test -s conftest$ac_exeext &&
9509        $as_test_x conftest$ac_exeext; then
9510   ac_cv_lib_dl_dlopen=yes
9511 else
9512   echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515         ac_cv_lib_dl_dlopen=no
9516 fi
9517
9518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9519       conftest$ac_exeext conftest.$ac_ext
9520 LIBS=$ac_check_lib_save_LIBS
9521 fi
9522 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9524 if test $ac_cv_lib_dl_dlopen = yes; then
9525   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9526 else
9527
9528     lt_cv_dlopen="dyld"
9529     lt_cv_dlopen_libs=
9530     lt_cv_dlopen_self=yes
9531
9532 fi
9533
9534    ;;
9535
9536   *)
9537     { echo "$as_me:$LINENO: checking for shl_load" >&5
9538 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9539 if test "${ac_cv_func_shl_load+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   cat >conftest.$ac_ext <<_ACEOF
9543 /* confdefs.h.  */
9544 _ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h.  */
9548 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9550 #define shl_load innocuous_shl_load
9551
9552 /* System header to define __stub macros and hopefully few prototypes,
9553     which can conflict with char shl_load (); below.
9554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9555     <limits.h> exists even on freestanding compilers.  */
9556
9557 #ifdef __STDC__
9558 # include <limits.h>
9559 #else
9560 # include <assert.h>
9561 #endif
9562
9563 #undef shl_load
9564
9565 /* Override any GCC internal prototype to avoid an error.
9566    Use char because int might match the return type of a GCC
9567    builtin and then its argument prototype would still apply.  */
9568 #ifdef __cplusplus
9569 extern "C"
9570 #endif
9571 char shl_load ();
9572 /* The GNU C library defines this for functions which it implements
9573     to always fail with ENOSYS.  Some functions are actually named
9574     something starting with __ and the normal name is an alias.  */
9575 #if defined __stub_shl_load || defined __stub___shl_load
9576 choke me
9577 #endif
9578
9579 int
9580 main ()
9581 {
9582 return shl_load ();
9583   ;
9584   return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9589 case "(($ac_try" in
9590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591   *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594   (eval "$ac_link") 2>conftest.er1
9595   ac_status=$?
9596   grep -v '^ *+' conftest.er1 >conftest.err
9597   rm -f conftest.er1
9598   cat conftest.err >&5
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } && {
9601          test -z "$ac_c_werror_flag" ||
9602          test ! -s conftest.err
9603        } && test -s conftest$ac_exeext &&
9604        $as_test_x conftest$ac_exeext; then
9605   ac_cv_func_shl_load=yes
9606 else
9607   echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610         ac_cv_func_shl_load=no
9611 fi
9612
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9614       conftest$ac_exeext conftest.$ac_ext
9615 fi
9616 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9618 if test $ac_cv_func_shl_load = yes; then
9619   lt_cv_dlopen="shl_load"
9620 else
9621   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626   ac_check_lib_save_LIBS=$LIBS
9627 LIBS="-ldld  $LIBS"
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634
9635 /* Override any GCC internal prototype to avoid an error.
9636    Use char because int might match the return type of a GCC
9637    builtin and then its argument prototype would still apply.  */
9638 #ifdef __cplusplus
9639 extern "C"
9640 #endif
9641 char shl_load ();
9642 int
9643 main ()
9644 {
9645 return shl_load ();
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9652 case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657   (eval "$ac_link") 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } && {
9664          test -z "$ac_c_werror_flag" ||
9665          test ! -s conftest.err
9666        } && test -s conftest$ac_exeext &&
9667        $as_test_x conftest$ac_exeext; then
9668   ac_cv_lib_dld_shl_load=yes
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673         ac_cv_lib_dld_shl_load=no
9674 fi
9675
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677       conftest$ac_exeext conftest.$ac_ext
9678 LIBS=$ac_check_lib_save_LIBS
9679 fi
9680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9682 if test $ac_cv_lib_dld_shl_load = yes; then
9683   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9684 else
9685   { echo "$as_me:$LINENO: checking for dlopen" >&5
9686 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9687 if test "${ac_cv_func_dlopen+set}" = set; then
9688   echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690   cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9698 #define dlopen innocuous_dlopen
9699
9700 /* System header to define __stub macros and hopefully few prototypes,
9701     which can conflict with char dlopen (); below.
9702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703     <limits.h> exists even on freestanding compilers.  */
9704
9705 #ifdef __STDC__
9706 # include <limits.h>
9707 #else
9708 # include <assert.h>
9709 #endif
9710
9711 #undef dlopen
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char dlopen ();
9720 /* The GNU C library defines this for functions which it implements
9721     to always fail with ENOSYS.  Some functions are actually named
9722     something starting with __ and the normal name is an alias.  */
9723 #if defined __stub_dlopen || defined __stub___dlopen
9724 choke me
9725 #endif
9726
9727 int
9728 main ()
9729 {
9730 return dlopen ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9737 case "(($ac_try" in
9738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739   *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742   (eval "$ac_link") 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } && {
9749          test -z "$ac_c_werror_flag" ||
9750          test ! -s conftest.err
9751        } && test -s conftest$ac_exeext &&
9752        $as_test_x conftest$ac_exeext; then
9753   ac_cv_func_dlopen=yes
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758         ac_cv_func_dlopen=no
9759 fi
9760
9761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9762       conftest$ac_exeext conftest.$ac_ext
9763 fi
9764 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9766 if test $ac_cv_func_dlopen = yes; then
9767   lt_cv_dlopen="dlopen"
9768 else
9769   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   ac_check_lib_save_LIBS=$LIBS
9775 LIBS="-ldl  $LIBS"
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782
9783 /* Override any GCC internal prototype to avoid an error.
9784    Use char because int might match the return type of a GCC
9785    builtin and then its argument prototype would still apply.  */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 char dlopen ();
9790 int
9791 main ()
9792 {
9793 return dlopen ();
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (ac_try="$ac_link"
9800 case "(($ac_try" in
9801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802   *) ac_try_echo=$ac_try;;
9803 esac
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805   (eval "$ac_link") 2>conftest.er1
9806   ac_status=$?
9807   grep -v '^ *+' conftest.er1 >conftest.err
9808   rm -f conftest.er1
9809   cat conftest.err >&5
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } && {
9812          test -z "$ac_c_werror_flag" ||
9813          test ! -s conftest.err
9814        } && test -s conftest$ac_exeext &&
9815        $as_test_x conftest$ac_exeext; then
9816   ac_cv_lib_dl_dlopen=yes
9817 else
9818   echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821         ac_cv_lib_dl_dlopen=no
9822 fi
9823
9824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9825       conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9827 fi
9828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9830 if test $ac_cv_lib_dl_dlopen = yes; then
9831   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9832 else
9833   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   ac_check_lib_save_LIBS=$LIBS
9839 LIBS="-lsvld  $LIBS"
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h.  */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h.  */
9846
9847 /* Override any GCC internal prototype to avoid an error.
9848    Use char because int might match the return type of a GCC
9849    builtin and then its argument prototype would still apply.  */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 char dlopen ();
9854 int
9855 main ()
9856 {
9857 return dlopen ();
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869   (eval "$ac_link") 2>conftest.er1
9870   ac_status=$?
9871   grep -v '^ *+' conftest.er1 >conftest.err
9872   rm -f conftest.er1
9873   cat conftest.err >&5
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } && {
9876          test -z "$ac_c_werror_flag" ||
9877          test ! -s conftest.err
9878        } && test -s conftest$ac_exeext &&
9879        $as_test_x conftest$ac_exeext; then
9880   ac_cv_lib_svld_dlopen=yes
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885         ac_cv_lib_svld_dlopen=no
9886 fi
9887
9888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9889       conftest$ac_exeext conftest.$ac_ext
9890 LIBS=$ac_check_lib_save_LIBS
9891 fi
9892 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9893 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9894 if test $ac_cv_lib_svld_dlopen = yes; then
9895   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9896 else
9897   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9898 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9899 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9900   echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902   ac_check_lib_save_LIBS=$LIBS
9903 LIBS="-ldld  $LIBS"
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h.  */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h.  */
9910
9911 /* Override any GCC internal prototype to avoid an error.
9912    Use char because int might match the return type of a GCC
9913    builtin and then its argument prototype would still apply.  */
9914 #ifdef __cplusplus
9915 extern "C"
9916 #endif
9917 char dld_link ();
9918 int
9919 main ()
9920 {
9921 return dld_link ();
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (ac_try="$ac_link"
9928 case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_link") 2>conftest.er1
9934   ac_status=$?
9935   grep -v '^ *+' conftest.er1 >conftest.err
9936   rm -f conftest.er1
9937   cat conftest.err >&5
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } && {
9940          test -z "$ac_c_werror_flag" ||
9941          test ! -s conftest.err
9942        } && test -s conftest$ac_exeext &&
9943        $as_test_x conftest$ac_exeext; then
9944   ac_cv_lib_dld_dld_link=yes
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949         ac_cv_lib_dld_dld_link=no
9950 fi
9951
9952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953       conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_lib_save_LIBS
9955 fi
9956 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9957 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9958 if test $ac_cv_lib_dld_dld_link = yes; then
9959   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9960 fi
9961
9962
9963 fi
9964
9965
9966 fi
9967
9968
9969 fi
9970
9971
9972 fi
9973
9974
9975 fi
9976
9977     ;;
9978   esac
9979
9980   if test "x$lt_cv_dlopen" != xno; then
9981     enable_dlopen=yes
9982   else
9983     enable_dlopen=no
9984   fi
9985
9986   case $lt_cv_dlopen in
9987   dlopen)
9988     save_CPPFLAGS="$CPPFLAGS"
9989     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9990
9991     save_LDFLAGS="$LDFLAGS"
9992     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9993
9994     save_LIBS="$LIBS"
9995     LIBS="$lt_cv_dlopen_libs $LIBS"
9996
9997     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9998 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9999 if test "${lt_cv_dlopen_self+set}" = set; then
10000   echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002           if test "$cross_compiling" = yes; then :
10003   lt_cv_dlopen_self=cross
10004 else
10005   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10006   lt_status=$lt_dlunknown
10007   cat > conftest.$ac_ext <<EOF
10008 #line 10008 "configure"
10009 #include "confdefs.h"
10010
10011 #if HAVE_DLFCN_H
10012 #include <dlfcn.h>
10013 #endif
10014
10015 #include <stdio.h>
10016
10017 #ifdef RTLD_GLOBAL
10018 #  define LT_DLGLOBAL           RTLD_GLOBAL
10019 #else
10020 #  ifdef DL_GLOBAL
10021 #    define LT_DLGLOBAL         DL_GLOBAL
10022 #  else
10023 #    define LT_DLGLOBAL         0
10024 #  endif
10025 #endif
10026
10027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10028    find out it does not work in some platform. */
10029 #ifndef LT_DLLAZY_OR_NOW
10030 #  ifdef RTLD_LAZY
10031 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10032 #  else
10033 #    ifdef DL_LAZY
10034 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10035 #    else
10036 #      ifdef RTLD_NOW
10037 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10038 #      else
10039 #        ifdef DL_NOW
10040 #          define LT_DLLAZY_OR_NOW      DL_NOW
10041 #        else
10042 #          define LT_DLLAZY_OR_NOW      0
10043 #        endif
10044 #      endif
10045 #    endif
10046 #  endif
10047 #endif
10048
10049 #ifdef __cplusplus
10050 extern "C" void exit (int);
10051 #endif
10052
10053 void fnord() { int i=42;}
10054 int main ()
10055 {
10056   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10057   int status = $lt_dlunknown;
10058
10059   if (self)
10060     {
10061       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10062       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10063       /* dlclose (self); */
10064     }
10065   else
10066     puts (dlerror ());
10067
10068     exit (status);
10069 }
10070 EOF
10071   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10072   (eval $ac_link) 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10076     (./conftest; exit; ) >&5 2>/dev/null
10077     lt_status=$?
10078     case x$lt_status in
10079       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10080       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10081       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10082     esac
10083   else :
10084     # compilation failed
10085     lt_cv_dlopen_self=no
10086   fi
10087 fi
10088 rm -fr conftest*
10089
10090
10091 fi
10092 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10093 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10094
10095     if test "x$lt_cv_dlopen_self" = xyes; then
10096       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10097       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10098 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10099 if test "${lt_cv_dlopen_self_static+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102           if test "$cross_compiling" = yes; then :
10103   lt_cv_dlopen_self_static=cross
10104 else
10105   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10106   lt_status=$lt_dlunknown
10107   cat > conftest.$ac_ext <<EOF
10108 #line 10108 "configure"
10109 #include "confdefs.h"
10110
10111 #if HAVE_DLFCN_H
10112 #include <dlfcn.h>
10113 #endif
10114
10115 #include <stdio.h>
10116
10117 #ifdef RTLD_GLOBAL
10118 #  define LT_DLGLOBAL           RTLD_GLOBAL
10119 #else
10120 #  ifdef DL_GLOBAL
10121 #    define LT_DLGLOBAL         DL_GLOBAL
10122 #  else
10123 #    define LT_DLGLOBAL         0
10124 #  endif
10125 #endif
10126
10127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10128    find out it does not work in some platform. */
10129 #ifndef LT_DLLAZY_OR_NOW
10130 #  ifdef RTLD_LAZY
10131 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10132 #  else
10133 #    ifdef DL_LAZY
10134 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10135 #    else
10136 #      ifdef RTLD_NOW
10137 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10138 #      else
10139 #        ifdef DL_NOW
10140 #          define LT_DLLAZY_OR_NOW      DL_NOW
10141 #        else
10142 #          define LT_DLLAZY_OR_NOW      0
10143 #        endif
10144 #      endif
10145 #    endif
10146 #  endif
10147 #endif
10148
10149 #ifdef __cplusplus
10150 extern "C" void exit (int);
10151 #endif
10152
10153 void fnord() { int i=42;}
10154 int main ()
10155 {
10156   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10157   int status = $lt_dlunknown;
10158
10159   if (self)
10160     {
10161       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10162       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10163       /* dlclose (self); */
10164     }
10165   else
10166     puts (dlerror ());
10167
10168     exit (status);
10169 }
10170 EOF
10171   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172   (eval $ac_link) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10176     (./conftest; exit; ) >&5 2>/dev/null
10177     lt_status=$?
10178     case x$lt_status in
10179       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10180       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10181       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10182     esac
10183   else :
10184     # compilation failed
10185     lt_cv_dlopen_self_static=no
10186   fi
10187 fi
10188 rm -fr conftest*
10189
10190
10191 fi
10192 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10193 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10194     fi
10195
10196     CPPFLAGS="$save_CPPFLAGS"
10197     LDFLAGS="$save_LDFLAGS"
10198     LIBS="$save_LIBS"
10199     ;;
10200   esac
10201
10202   case $lt_cv_dlopen_self in
10203   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10204   *) enable_dlopen_self=unknown ;;
10205   esac
10206
10207   case $lt_cv_dlopen_self_static in
10208   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10209   *) enable_dlopen_self_static=unknown ;;
10210   esac
10211 fi
10212
10213
10214 # Report which library types will actually be built
10215 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10216 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10217 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10218 echo "${ECHO_T}$can_build_shared" >&6; }
10219
10220 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10221 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10222 test "$can_build_shared" = "no" && enable_shared=no
10223
10224 # On AIX, shared libraries and static libraries use the same namespace, and
10225 # are all built from PIC.
10226 case $host_os in
10227 aix3*)
10228   test "$enable_shared" = yes && enable_static=no
10229   if test -n "$RANLIB"; then
10230     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10231     postinstall_cmds='$RANLIB $lib'
10232   fi
10233   ;;
10234
10235 aix4* | aix5*)
10236   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10237     test "$enable_shared" = yes && enable_static=no
10238   fi
10239     ;;
10240 esac
10241 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10242 echo "${ECHO_T}$enable_shared" >&6; }
10243
10244 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10245 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10246 # Make sure either enable_shared or enable_static is yes.
10247 test "$enable_shared" = yes || enable_static=yes
10248 { echo "$as_me:$LINENO: result: $enable_static" >&5
10249 echo "${ECHO_T}$enable_static" >&6; }
10250
10251 # The else clause should only fire when bootstrapping the
10252 # libtool distribution, otherwise you forgot to ship ltmain.sh
10253 # with your package, and you will get complaints that there are
10254 # no rules to generate ltmain.sh.
10255 if test -f "$ltmain"; then
10256   # See if we are running on zsh, and set the options which allow our commands through
10257   # without removal of \ escapes.
10258   if test -n "${ZSH_VERSION+set}" ; then
10259     setopt NO_GLOB_SUBST
10260   fi
10261   # Now quote all the things that may contain metacharacters while being
10262   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10263   # variables and quote the copies for generation of the libtool script.
10264   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10265     SED SHELL STRIP \
10266     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10267     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10268     deplibs_check_method reload_flag reload_cmds need_locks \
10269     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10270     lt_cv_sys_global_symbol_to_c_name_address \
10271     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10272     old_postinstall_cmds old_postuninstall_cmds \
10273     compiler \
10274     CC \
10275     LD \
10276     lt_prog_compiler_wl \
10277     lt_prog_compiler_pic \
10278     lt_prog_compiler_static \
10279     lt_prog_compiler_no_builtin_flag \
10280     export_dynamic_flag_spec \
10281     thread_safe_flag_spec \
10282     whole_archive_flag_spec \
10283     enable_shared_with_static_runtimes \
10284     old_archive_cmds \
10285     old_archive_from_new_cmds \
10286     predep_objects \
10287     postdep_objects \
10288     predeps \
10289     postdeps \
10290     compiler_lib_search_path \
10291     archive_cmds \
10292     archive_expsym_cmds \
10293     postinstall_cmds \
10294     postuninstall_cmds \
10295     old_archive_from_expsyms_cmds \
10296     allow_undefined_flag \
10297     no_undefined_flag \
10298     export_symbols_cmds \
10299     hardcode_libdir_flag_spec \
10300     hardcode_libdir_flag_spec_ld \
10301     hardcode_libdir_separator \
10302     hardcode_automatic \
10303     module_cmds \
10304     module_expsym_cmds \
10305     lt_cv_prog_compiler_c_o \
10306     exclude_expsyms \
10307     include_expsyms; do
10308
10309     case $var in
10310     old_archive_cmds | \
10311     old_archive_from_new_cmds | \
10312     archive_cmds | \
10313     archive_expsym_cmds | \
10314     module_cmds | \
10315     module_expsym_cmds | \
10316     old_archive_from_expsyms_cmds | \
10317     export_symbols_cmds | \
10318     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10319     postinstall_cmds | postuninstall_cmds | \
10320     old_postinstall_cmds | old_postuninstall_cmds | \
10321     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10322       # Double-quote double-evaled strings.
10323       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10324       ;;
10325     *)
10326       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10327       ;;
10328     esac
10329   done
10330
10331   case $lt_echo in
10332   *'\$0 --fallback-echo"')
10333     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10334     ;;
10335   esac
10336
10337 cfgfile="${ofile}T"
10338   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10339   $rm -f "$cfgfile"
10340   { echo "$as_me:$LINENO: creating $ofile" >&5
10341 echo "$as_me: creating $ofile" >&6;}
10342
10343   cat <<__EOF__ >> "$cfgfile"
10344 #! $SHELL
10345
10346 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10347 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10348 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10349 #
10350 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10351 # Free Software Foundation, Inc.
10352 #
10353 # This file is part of GNU Libtool:
10354 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10355 #
10356 # This program is free software; you can redistribute it and/or modify
10357 # it under the terms of the GNU General Public License as published by
10358 # the Free Software Foundation; either version 2 of the License, or
10359 # (at your option) any later version.
10360 #
10361 # This program is distributed in the hope that it will be useful, but
10362 # WITHOUT ANY WARRANTY; without even the implied warranty of
10363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10364 # General Public License for more details.
10365 #
10366 # You should have received a copy of the GNU General Public License
10367 # along with this program; if not, write to the Free Software
10368 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10369 #
10370 # As a special exception to the GNU General Public License, if you
10371 # distribute this file as part of a program that contains a
10372 # configuration script generated by Autoconf, you may include it under
10373 # the same distribution terms that you use for the rest of that program.
10374
10375 # A sed program that does not truncate output.
10376 SED=$lt_SED
10377
10378 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10379 Xsed="$SED -e 1s/^X//"
10380
10381 # The HP-UX ksh and POSIX shell print the target directory to stdout
10382 # if CDPATH is set.
10383 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10384
10385 # The names of the tagged configurations supported by this script.
10386 available_tags=
10387
10388 # ### BEGIN LIBTOOL CONFIG
10389
10390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10391
10392 # Shell to use when invoking shell scripts.
10393 SHELL=$lt_SHELL
10394
10395 # Whether or not to build shared libraries.
10396 build_libtool_libs=$enable_shared
10397
10398 # Whether or not to build static libraries.
10399 build_old_libs=$enable_static
10400
10401 # Whether or not to add -lc for building shared libraries.
10402 build_libtool_need_lc=$archive_cmds_need_lc
10403
10404 # Whether or not to disallow shared libs when runtime libs are static
10405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10406
10407 # Whether or not to optimize for fast installation.
10408 fast_install=$enable_fast_install
10409
10410 # The host system.
10411 host_alias=$host_alias
10412 host=$host
10413 host_os=$host_os
10414
10415 # The build system.
10416 build_alias=$build_alias
10417 build=$build
10418 build_os=$build_os
10419
10420 # An echo program that does not interpret backslashes.
10421 echo=$lt_echo
10422
10423 # The archiver.
10424 AR=$lt_AR
10425 AR_FLAGS=$lt_AR_FLAGS
10426
10427 # A C compiler.
10428 LTCC=$lt_LTCC
10429
10430 # LTCC compiler flags.
10431 LTCFLAGS=$lt_LTCFLAGS
10432
10433 # A language-specific compiler.
10434 CC=$lt_compiler
10435
10436 # Is the compiler the GNU C compiler?
10437 with_gcc=$GCC
10438
10439 # An ERE matcher.
10440 EGREP=$lt_EGREP
10441
10442 # The linker used to build libraries.
10443 LD=$lt_LD
10444
10445 # Whether we need hard or soft links.
10446 LN_S=$lt_LN_S
10447
10448 # A BSD-compatible nm program.
10449 NM=$lt_NM
10450
10451 # A symbol stripping program
10452 STRIP=$lt_STRIP
10453
10454 # Used to examine libraries when file_magic_cmd begins "file"
10455 MAGIC_CMD=$MAGIC_CMD
10456
10457 # Used on cygwin: DLL creation program.
10458 DLLTOOL="$DLLTOOL"
10459
10460 # Used on cygwin: object dumper.
10461 OBJDUMP="$OBJDUMP"
10462
10463 # Used on cygwin: assembler.
10464 AS="$AS"
10465
10466 # The name of the directory that contains temporary libtool files.
10467 objdir=$objdir
10468
10469 # How to create reloadable object files.
10470 reload_flag=$lt_reload_flag
10471 reload_cmds=$lt_reload_cmds
10472
10473 # How to pass a linker flag through the compiler.
10474 wl=$lt_lt_prog_compiler_wl
10475
10476 # Object file suffix (normally "o").
10477 objext="$ac_objext"
10478
10479 # Old archive suffix (normally "a").
10480 libext="$libext"
10481
10482 # Shared library suffix (normally ".so").
10483 shrext_cmds='$shrext_cmds'
10484
10485 # Executable file suffix (normally "").
10486 exeext="$exeext"
10487
10488 # Additional compiler flags for building library objects.
10489 pic_flag=$lt_lt_prog_compiler_pic
10490 pic_mode=$pic_mode
10491
10492 # What is the maximum length of a command?
10493 max_cmd_len=$lt_cv_sys_max_cmd_len
10494
10495 # Does compiler simultaneously support -c and -o options?
10496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10497
10498 # Must we lock files when doing compilation?
10499 need_locks=$lt_need_locks
10500
10501 # Do we need the lib prefix for modules?
10502 need_lib_prefix=$need_lib_prefix
10503
10504 # Do we need a version for libraries?
10505 need_version=$need_version
10506
10507 # Whether dlopen is supported.
10508 dlopen_support=$enable_dlopen
10509
10510 # Whether dlopen of programs is supported.
10511 dlopen_self=$enable_dlopen_self
10512
10513 # Whether dlopen of statically linked programs is supported.
10514 dlopen_self_static=$enable_dlopen_self_static
10515
10516 # Compiler flag to prevent dynamic linking.
10517 link_static_flag=$lt_lt_prog_compiler_static
10518
10519 # Compiler flag to turn off builtin functions.
10520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10521
10522 # Compiler flag to allow reflexive dlopens.
10523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10524
10525 # Compiler flag to generate shared objects directly from archives.
10526 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10527
10528 # Compiler flag to generate thread-safe objects.
10529 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10530
10531 # Library versioning type.
10532 version_type=$version_type
10533
10534 # Format of library name prefix.
10535 libname_spec=$lt_libname_spec
10536
10537 # List of archive names.  First name is the real one, the rest are links.
10538 # The last name is the one that the linker finds with -lNAME.
10539 library_names_spec=$lt_library_names_spec
10540
10541 # The coded name of the library, if different from the real name.
10542 soname_spec=$lt_soname_spec
10543
10544 # Commands used to build and install an old-style archive.
10545 RANLIB=$lt_RANLIB
10546 old_archive_cmds=$lt_old_archive_cmds
10547 old_postinstall_cmds=$lt_old_postinstall_cmds
10548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10549
10550 # Create an old-style archive from a shared archive.
10551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10552
10553 # Create a temporary old-style archive to link instead of a shared archive.
10554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10555
10556 # Commands used to build and install a shared archive.
10557 archive_cmds=$lt_archive_cmds
10558 archive_expsym_cmds=$lt_archive_expsym_cmds
10559 postinstall_cmds=$lt_postinstall_cmds
10560 postuninstall_cmds=$lt_postuninstall_cmds
10561
10562 # Commands used to build a loadable module (assumed same as above if empty)
10563 module_cmds=$lt_module_cmds
10564 module_expsym_cmds=$lt_module_expsym_cmds
10565
10566 # Commands to strip libraries.
10567 old_striplib=$lt_old_striplib
10568 striplib=$lt_striplib
10569
10570 # Dependencies to place before the objects being linked to create a
10571 # shared library.
10572 predep_objects=$lt_predep_objects
10573
10574 # Dependencies to place after the objects being linked to create a
10575 # shared library.
10576 postdep_objects=$lt_postdep_objects
10577
10578 # Dependencies to place before the objects being linked to create a
10579 # shared library.
10580 predeps=$lt_predeps
10581
10582 # Dependencies to place after the objects being linked to create a
10583 # shared library.
10584 postdeps=$lt_postdeps
10585
10586 # The library search path used internally by the compiler when linking
10587 # a shared library.
10588 compiler_lib_search_path=$lt_compiler_lib_search_path
10589
10590 # Method to check whether dependent libraries are shared objects.
10591 deplibs_check_method=$lt_deplibs_check_method
10592
10593 # Command to use when deplibs_check_method == file_magic.
10594 file_magic_cmd=$lt_file_magic_cmd
10595
10596 # Flag that allows shared libraries with undefined symbols to be built.
10597 allow_undefined_flag=$lt_allow_undefined_flag
10598
10599 # Flag that forces no undefined symbols.
10600 no_undefined_flag=$lt_no_undefined_flag
10601
10602 # Commands used to finish a libtool library installation in a directory.
10603 finish_cmds=$lt_finish_cmds
10604
10605 # Same as above, but a single script fragment to be evaled but not shown.
10606 finish_eval=$lt_finish_eval
10607
10608 # Take the output of nm and produce a listing of raw symbols and C names.
10609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10610
10611 # Transform the output of nm in a proper C declaration
10612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10613
10614 # Transform the output of nm in a C name address pair
10615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10616
10617 # This is the shared library runtime path variable.
10618 runpath_var=$runpath_var
10619
10620 # This is the shared library path variable.
10621 shlibpath_var=$shlibpath_var
10622
10623 # Is shlibpath searched before the hard-coded library search path?
10624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10625
10626 # How to hardcode a shared library path into an executable.
10627 hardcode_action=$hardcode_action
10628
10629 # Whether we should hardcode library paths into libraries.
10630 hardcode_into_libs=$hardcode_into_libs
10631
10632 # Flag to hardcode \$libdir into a binary during linking.
10633 # This must work even if \$libdir does not exist.
10634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10635
10636 # If ld is used when linking, flag to hardcode \$libdir into
10637 # a binary during linking. This must work even if \$libdir does
10638 # not exist.
10639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10640
10641 # Whether we need a single -rpath flag with a separated argument.
10642 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10643
10644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10645 # resulting binary.
10646 hardcode_direct=$hardcode_direct
10647
10648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10649 # resulting binary.
10650 hardcode_minus_L=$hardcode_minus_L
10651
10652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10653 # the resulting binary.
10654 hardcode_shlibpath_var=$hardcode_shlibpath_var
10655
10656 # Set to yes if building a shared library automatically hardcodes DIR into the library
10657 # and all subsequent libraries and executables linked against it.
10658 hardcode_automatic=$hardcode_automatic
10659
10660 # Variables whose values should be saved in libtool wrapper scripts and
10661 # restored at relink time.
10662 variables_saved_for_relink="$variables_saved_for_relink"
10663
10664 # Whether libtool must link a program against all its dependency libraries.
10665 link_all_deplibs=$link_all_deplibs
10666
10667 # Compile-time system search path for libraries
10668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10669
10670 # Run-time system search path for libraries
10671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10672
10673 # Fix the shell variable \$srcfile for the compiler.
10674 fix_srcfile_path="$fix_srcfile_path"
10675
10676 # Set to yes if exported symbols are required.
10677 always_export_symbols=$always_export_symbols
10678
10679 # The commands to list exported symbols.
10680 export_symbols_cmds=$lt_export_symbols_cmds
10681
10682 # The commands to extract the exported symbol list from a shared archive.
10683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10684
10685 # Symbols that should not be listed in the preloaded symbols.
10686 exclude_expsyms=$lt_exclude_expsyms
10687
10688 # Symbols that must always be exported.
10689 include_expsyms=$lt_include_expsyms
10690
10691 # ### END LIBTOOL CONFIG
10692
10693 __EOF__
10694
10695
10696   case $host_os in
10697   aix3*)
10698     cat <<\EOF >> "$cfgfile"
10699
10700 # AIX sometimes has problems with the GCC collect2 program.  For some
10701 # reason, if we set the COLLECT_NAMES environment variable, the problems
10702 # vanish in a puff of smoke.
10703 if test "X${COLLECT_NAMES+set}" != Xset; then
10704   COLLECT_NAMES=
10705   export COLLECT_NAMES
10706 fi
10707 EOF
10708     ;;
10709   esac
10710
10711   # We use sed instead of cat because bash on DJGPP gets confused if
10712   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10713   # text mode, it properly converts lines to CR/LF.  This bash problem
10714   # is reportedly fixed, but why not run on old versions too?
10715   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10716
10717   mv -f "$cfgfile" "$ofile" || \
10718     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10719   chmod +x "$ofile"
10720
10721 else
10722   # If there is no Makefile yet, we rely on a make rule to execute
10723   # `config.status --recheck' to rerun these tests and create the
10724   # libtool script then.
10725   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10726   if test -f "$ltmain_in"; then
10727     test -f Makefile && make "$ltmain"
10728   fi
10729 fi
10730
10731
10732 ac_ext=c
10733 ac_cpp='$CPP $CPPFLAGS'
10734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10737
10738 CC="$lt_save_CC"
10739
10740
10741 # Check whether --with-tags was given.
10742 if test "${with_tags+set}" = set; then
10743   withval=$with_tags; tagnames="$withval"
10744 fi
10745
10746
10747 if test -f "$ltmain" && test -n "$tagnames"; then
10748   if test ! -f "${ofile}"; then
10749     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10750 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10751   fi
10752
10753   if test -z "$LTCC"; then
10754     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10755     if test -z "$LTCC"; then
10756       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10757 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10758     else
10759       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10760 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10761     fi
10762   fi
10763   if test -z "$LTCFLAGS"; then
10764     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10765   fi
10766
10767   # Extract list of available tagged configurations in $ofile.
10768   # Note that this assumes the entire list is on one line.
10769   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10770
10771   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10772   for tagname in $tagnames; do
10773     IFS="$lt_save_ifs"
10774     # Check whether tagname contains only valid characters
10775     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10776     "") ;;
10777     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10778 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10779    { (exit 1); exit 1; }; }
10780         ;;
10781     esac
10782
10783     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10784     then
10785       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10786 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10787    { (exit 1); exit 1; }; }
10788     fi
10789
10790     # Update the list of available tags.
10791     if test -n "$tagname"; then
10792       echo appending configuration tag \"$tagname\" to $ofile
10793
10794       case $tagname in
10795       CXX)
10796         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10797             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10798             (test "X$CXX" != "Xg++"))) ; then
10799           ac_ext=cpp
10800 ac_cpp='$CXXCPP $CPPFLAGS'
10801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10804
10805
10806
10807
10808 archive_cmds_need_lc_CXX=no
10809 allow_undefined_flag_CXX=
10810 always_export_symbols_CXX=no
10811 archive_expsym_cmds_CXX=
10812 export_dynamic_flag_spec_CXX=
10813 hardcode_direct_CXX=no
10814 hardcode_libdir_flag_spec_CXX=
10815 hardcode_libdir_flag_spec_ld_CXX=
10816 hardcode_libdir_separator_CXX=
10817 hardcode_minus_L_CXX=no
10818 hardcode_shlibpath_var_CXX=unsupported
10819 hardcode_automatic_CXX=no
10820 module_cmds_CXX=
10821 module_expsym_cmds_CXX=
10822 link_all_deplibs_CXX=unknown
10823 old_archive_cmds_CXX=$old_archive_cmds
10824 no_undefined_flag_CXX=
10825 whole_archive_flag_spec_CXX=
10826 enable_shared_with_static_runtimes_CXX=no
10827
10828 # Dependencies to place before and after the object being linked:
10829 predep_objects_CXX=
10830 postdep_objects_CXX=
10831 predeps_CXX=
10832 postdeps_CXX=
10833 compiler_lib_search_path_CXX=
10834
10835 # Source file extension for C++ test sources.
10836 ac_ext=cpp
10837
10838 # Object file extension for compiled C++ test sources.
10839 objext=o
10840 objext_CXX=$objext
10841
10842 # Code to be used in simple compile tests
10843 lt_simple_compile_test_code="int some_variable = 0;\n"
10844
10845 # Code to be used in simple link tests
10846 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10847
10848 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10849
10850 # If no C compiler was specified, use CC.
10851 LTCC=${LTCC-"$CC"}
10852
10853 # If no C compiler flags were specified, use CFLAGS.
10854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10855
10856 # Allow CC to be a program name with arguments.
10857 compiler=$CC
10858
10859
10860 # save warnings/boilerplate of simple test code
10861 ac_outfile=conftest.$ac_objext
10862 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10863 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10864 _lt_compiler_boilerplate=`cat conftest.err`
10865 $rm conftest*
10866
10867 ac_outfile=conftest.$ac_objext
10868 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10869 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10870 _lt_linker_boilerplate=`cat conftest.err`
10871 $rm conftest*
10872
10873
10874 # Allow CC to be a program name with arguments.
10875 lt_save_CC=$CC
10876 lt_save_LD=$LD
10877 lt_save_GCC=$GCC
10878 GCC=$GXX
10879 lt_save_with_gnu_ld=$with_gnu_ld
10880 lt_save_path_LD=$lt_cv_path_LD
10881 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10882   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10883 else
10884   $as_unset lt_cv_prog_gnu_ld
10885 fi
10886 if test -n "${lt_cv_path_LDCXX+set}"; then
10887   lt_cv_path_LD=$lt_cv_path_LDCXX
10888 else
10889   $as_unset lt_cv_path_LD
10890 fi
10891 test -z "${LDCXX+set}" || LD=$LDCXX
10892 CC=${CXX-"c++"}
10893 compiler=$CC
10894 compiler_CXX=$CC
10895 for cc_temp in $compiler""; do
10896   case $cc_temp in
10897     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10898     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10899     \-*) ;;
10900     *) break;;
10901   esac
10902 done
10903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10904
10905
10906 # We don't want -fno-exception wen compiling C++ code, so set the
10907 # no_builtin_flag separately
10908 if test "$GXX" = yes; then
10909   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10910 else
10911   lt_prog_compiler_no_builtin_flag_CXX=
10912 fi
10913
10914 if test "$GXX" = yes; then
10915   # Set up default GNU C++ configuration
10916
10917
10918 # Check whether --with-gnu-ld was given.
10919 if test "${with_gnu_ld+set}" = set; then
10920   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10921 else
10922   with_gnu_ld=no
10923 fi
10924
10925 ac_prog=ld
10926 if test "$GCC" = yes; then
10927   # Check if gcc -print-prog-name=ld gives a path.
10928   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10929 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10930   case $host in
10931   *-*-mingw*)
10932     # gcc leaves a trailing carriage return which upsets mingw
10933     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10934   *)
10935     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10936   esac
10937   case $ac_prog in
10938     # Accept absolute paths.
10939     [\\/]* | ?:[\\/]*)
10940       re_direlt='/[^/][^/]*/\.\./'
10941       # Canonicalize the pathname of ld
10942       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10943       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10944         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10945       done
10946       test -z "$LD" && LD="$ac_prog"
10947       ;;
10948   "")
10949     # If it fails, then pretend we aren't using GCC.
10950     ac_prog=ld
10951     ;;
10952   *)
10953     # If it is relative, then search for the first ld in PATH.
10954     with_gnu_ld=unknown
10955     ;;
10956   esac
10957 elif test "$with_gnu_ld" = yes; then
10958   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10959 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10960 else
10961   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10962 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10963 fi
10964 if test "${lt_cv_path_LD+set}" = set; then
10965   echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967   if test -z "$LD"; then
10968   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10969   for ac_dir in $PATH; do
10970     IFS="$lt_save_ifs"
10971     test -z "$ac_dir" && ac_dir=.
10972     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10973       lt_cv_path_LD="$ac_dir/$ac_prog"
10974       # Check to see if the program is GNU ld.  I'd rather use --version,
10975       # but apparently some variants of GNU ld only accept -v.
10976       # Break only if it was the GNU/non-GNU ld that we prefer.
10977       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10978       *GNU* | *'with BFD'*)
10979         test "$with_gnu_ld" != no && break
10980         ;;
10981       *)
10982         test "$with_gnu_ld" != yes && break
10983         ;;
10984       esac
10985     fi
10986   done
10987   IFS="$lt_save_ifs"
10988 else
10989   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10990 fi
10991 fi
10992
10993 LD="$lt_cv_path_LD"
10994 if test -n "$LD"; then
10995   { echo "$as_me:$LINENO: result: $LD" >&5
10996 echo "${ECHO_T}$LD" >&6; }
10997 else
10998   { echo "$as_me:$LINENO: result: no" >&5
10999 echo "${ECHO_T}no" >&6; }
11000 fi
11001 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11002 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11003    { (exit 1); exit 1; }; }
11004 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11005 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11006 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11010 case `$LD -v 2>&1 </dev/null` in
11011 *GNU* | *'with BFD'*)
11012   lt_cv_prog_gnu_ld=yes
11013   ;;
11014 *)
11015   lt_cv_prog_gnu_ld=no
11016   ;;
11017 esac
11018 fi
11019 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11020 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11021 with_gnu_ld=$lt_cv_prog_gnu_ld
11022
11023
11024
11025   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11026   # archiving commands below assume that GNU ld is being used.
11027   if test "$with_gnu_ld" = yes; then
11028     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11029     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'
11030
11031     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11032     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11033
11034     # If archive_cmds runs LD, not CC, wlarc should be empty
11035     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11036     #     investigate it a little bit more. (MM)
11037     wlarc='${wl}'
11038
11039     # ancient GNU ld didn't support --whole-archive et. al.
11040     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11041         grep 'no-whole-archive' > /dev/null; then
11042       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11043     else
11044       whole_archive_flag_spec_CXX=
11045     fi
11046   else
11047     with_gnu_ld=no
11048     wlarc=
11049
11050     # A generic and very simple default shared library creation
11051     # command for GNU C++ for the case where it uses the native
11052     # linker, instead of GNU ld.  If possible, this setting should
11053     # overridden to take advantage of the native linker features on
11054     # the platform it is being used on.
11055     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11056   fi
11057
11058   # Commands to make compiler produce verbose output that lists
11059   # what "hidden" libraries, object files and flags are used when
11060   # linking a shared library.
11061   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11062
11063 else
11064   GXX=no
11065   with_gnu_ld=no
11066   wlarc=
11067 fi
11068
11069 # PORTME: fill in a description of your system's C++ link characteristics
11070 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11072 ld_shlibs_CXX=yes
11073 case $host_os in
11074   aix3*)
11075     # FIXME: insert proper C++ library support
11076     ld_shlibs_CXX=no
11077     ;;
11078   aix4* | aix5*)
11079     if test "$host_cpu" = ia64; then
11080       # On IA64, the linker does run time linking by default, so we don't
11081       # have to do anything special.
11082       aix_use_runtimelinking=no
11083       exp_sym_flag='-Bexport'
11084       no_entry_flag=""
11085     else
11086       aix_use_runtimelinking=no
11087
11088       # Test if we are trying to use run time linking or normal
11089       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11090       # need to do runtime linking.
11091       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11092         for ld_flag in $LDFLAGS; do
11093           case $ld_flag in
11094           *-brtl*)
11095             aix_use_runtimelinking=yes
11096             break
11097             ;;
11098           esac
11099         done
11100         ;;
11101       esac
11102
11103       exp_sym_flag='-bexport'
11104       no_entry_flag='-bnoentry'
11105     fi
11106
11107     # When large executables or shared objects are built, AIX ld can
11108     # have problems creating the table of contents.  If linking a library
11109     # or program results in "error TOC overflow" add -mminimal-toc to
11110     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11111     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11112
11113     archive_cmds_CXX=''
11114     hardcode_direct_CXX=yes
11115     hardcode_libdir_separator_CXX=':'
11116     link_all_deplibs_CXX=yes
11117
11118     if test "$GXX" = yes; then
11119       case $host_os in aix4.[012]|aix4.[012].*)
11120       # We only want to do this on AIX 4.2 and lower, the check
11121       # below for broken collect2 doesn't work under 4.3+
11122         collect2name=`${CC} -print-prog-name=collect2`
11123         if test -f "$collect2name" && \
11124            strings "$collect2name" | grep resolve_lib_name >/dev/null
11125         then
11126           # We have reworked collect2
11127           hardcode_direct_CXX=yes
11128         else
11129           # We have old collect2
11130           hardcode_direct_CXX=unsupported
11131           # It fails to find uninstalled libraries when the uninstalled
11132           # path is not listed in the libpath.  Setting hardcode_minus_L
11133           # to unsupported forces relinking
11134           hardcode_minus_L_CXX=yes
11135           hardcode_libdir_flag_spec_CXX='-L$libdir'
11136           hardcode_libdir_separator_CXX=
11137         fi
11138         ;;
11139       esac
11140       shared_flag='-shared'
11141       if test "$aix_use_runtimelinking" = yes; then
11142         shared_flag="$shared_flag "'${wl}-G'
11143       fi
11144     else
11145       # not using gcc
11146       if test "$host_cpu" = ia64; then
11147         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11148         # chokes on -Wl,-G. The following line is correct:
11149         shared_flag='-G'
11150       else
11151         if test "$aix_use_runtimelinking" = yes; then
11152           shared_flag='${wl}-G'
11153         else
11154           shared_flag='${wl}-bM:SRE'
11155         fi
11156       fi
11157     fi
11158
11159     # It seems that -bexpall does not export symbols beginning with
11160     # underscore (_), so it is better to generate a list of symbols to export.
11161     always_export_symbols_CXX=yes
11162     if test "$aix_use_runtimelinking" = yes; then
11163       # Warning - without using the other runtime loading flags (-brtl),
11164       # -berok will link without error, but may produce a broken library.
11165       allow_undefined_flag_CXX='-berok'
11166       # Determine the default libpath from the value encoded in an empty executable.
11167       cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173
11174 int
11175 main ()
11176 {
11177
11178   ;
11179   return 0;
11180 }
11181 _ACEOF
11182 rm -f conftest.$ac_objext conftest$ac_exeext
11183 if { (ac_try="$ac_link"
11184 case "(($ac_try" in
11185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186   *) ac_try_echo=$ac_try;;
11187 esac
11188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11189   (eval "$ac_link") 2>conftest.er1
11190   ac_status=$?
11191   grep -v '^ *+' conftest.er1 >conftest.err
11192   rm -f conftest.er1
11193   cat conftest.err >&5
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } && {
11196          test -z "$ac_cxx_werror_flag" ||
11197          test ! -s conftest.err
11198        } && test -s conftest$ac_exeext &&
11199        $as_test_x conftest$ac_exeext; then
11200
11201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11202 }'`
11203 # Check for a 64-bit object if we didn't find anything.
11204 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11205 }'`; fi
11206 else
11207   echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210
11211 fi
11212
11213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11214       conftest$ac_exeext conftest.$ac_ext
11215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11216
11217       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11218
11219       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"
11220      else
11221       if test "$host_cpu" = ia64; then
11222         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11223         allow_undefined_flag_CXX="-z nodefs"
11224         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"
11225       else
11226         # Determine the default libpath from the value encoded in an empty executable.
11227         cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h.  */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h.  */
11233
11234 int
11235 main ()
11236 {
11237
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_link") 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } && {
11256          test -z "$ac_cxx_werror_flag" ||
11257          test ! -s conftest.err
11258        } && test -s conftest$ac_exeext &&
11259        $as_test_x conftest$ac_exeext; then
11260
11261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11262 }'`
11263 # Check for a 64-bit object if we didn't find anything.
11264 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11265 }'`; fi
11266 else
11267   echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270
11271 fi
11272
11273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11274       conftest$ac_exeext conftest.$ac_ext
11275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11276
11277         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11278         # Warning - without using the other run time loading flags,
11279         # -berok will link without error, but may produce a broken library.
11280         no_undefined_flag_CXX=' ${wl}-bernotok'
11281         allow_undefined_flag_CXX=' ${wl}-berok'
11282         # Exported symbols can be pulled into shared objects from archives
11283         whole_archive_flag_spec_CXX='$convenience'
11284         archive_cmds_need_lc_CXX=yes
11285         # This is similar to how AIX traditionally builds its shared libraries.
11286         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'
11287       fi
11288     fi
11289     ;;
11290
11291   beos*)
11292     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11293       allow_undefined_flag_CXX=unsupported
11294       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11295       # support --undefined.  This deserves some investigation.  FIXME
11296       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11297     else
11298       ld_shlibs_CXX=no
11299     fi
11300     ;;
11301
11302   chorus*)
11303     case $cc_basename in
11304       *)
11305         # FIXME: insert proper C++ library support
11306         ld_shlibs_CXX=no
11307         ;;
11308     esac
11309     ;;
11310
11311   cygwin* | mingw* | pw32*)
11312     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11313     # as there is no search path for DLLs.
11314     hardcode_libdir_flag_spec_CXX='-L$libdir'
11315     allow_undefined_flag_CXX=unsupported
11316     always_export_symbols_CXX=no
11317     enable_shared_with_static_runtimes_CXX=yes
11318
11319     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11320       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'
11321       # If the export-symbols file already is a .def file (1st line
11322       # is EXPORTS), use it as is; otherwise, prepend...
11323       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11324         cp $export_symbols $output_objdir/$soname.def;
11325       else
11326         echo EXPORTS > $output_objdir/$soname.def;
11327         cat $export_symbols >> $output_objdir/$soname.def;
11328       fi~
11329       $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'
11330     else
11331       ld_shlibs_CXX=no
11332     fi
11333   ;;
11334       darwin* | rhapsody*)
11335         case $host_os in
11336         rhapsody* | darwin1.[012])
11337          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11338          ;;
11339        *) # Darwin 1.3 on
11340          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11341            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11342          else
11343            case ${MACOSX_DEPLOYMENT_TARGET} in
11344              10.[012])
11345                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11346                ;;
11347              10.*)
11348                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11349                ;;
11350            esac
11351          fi
11352          ;;
11353         esac
11354       archive_cmds_need_lc_CXX=no
11355       hardcode_direct_CXX=no
11356       hardcode_automatic_CXX=yes
11357       hardcode_shlibpath_var_CXX=unsupported
11358       whole_archive_flag_spec_CXX=''
11359       link_all_deplibs_CXX=yes
11360
11361     if test "$GXX" = yes ; then
11362       lt_int_apple_cc_single_mod=no
11363       output_verbose_link_cmd='echo'
11364       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11365        lt_int_apple_cc_single_mod=yes
11366       fi
11367       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11368        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11369       else
11370           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'
11371         fi
11372         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11373         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11374           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11375             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11376           else
11377             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11378           fi
11379             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}'
11380       else
11381       case $cc_basename in
11382         xlc*)
11383          output_verbose_link_cmd='echo'
11384           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11385           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11386           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11387           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11388           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}'
11389           ;;
11390        *)
11391          ld_shlibs_CXX=no
11392           ;;
11393       esac
11394       fi
11395         ;;
11396
11397   dgux*)
11398     case $cc_basename in
11399       ec++*)
11400         # FIXME: insert proper C++ library support
11401         ld_shlibs_CXX=no
11402         ;;
11403       ghcx*)
11404         # Green Hills C++ Compiler
11405         # FIXME: insert proper C++ library support
11406         ld_shlibs_CXX=no
11407         ;;
11408       *)
11409         # FIXME: insert proper C++ library support
11410         ld_shlibs_CXX=no
11411         ;;
11412     esac
11413     ;;
11414   freebsd[12]*)
11415     # C++ shared libraries reported to be fairly broken before switch to ELF
11416     ld_shlibs_CXX=no
11417     ;;
11418   freebsd-elf*)
11419     archive_cmds_need_lc_CXX=no
11420     ;;
11421   freebsd* | kfreebsd*-gnu | dragonfly*)
11422     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11423     # conventions
11424     ld_shlibs_CXX=yes
11425     ;;
11426   gnu*)
11427     ;;
11428   hpux9*)
11429     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11430     hardcode_libdir_separator_CXX=:
11431     export_dynamic_flag_spec_CXX='${wl}-E'
11432     hardcode_direct_CXX=yes
11433     hardcode_minus_L_CXX=yes # Not in the search PATH,
11434                                 # but as the default
11435                                 # location of the library.
11436
11437     case $cc_basename in
11438     CC*)
11439       # FIXME: insert proper C++ library support
11440       ld_shlibs_CXX=no
11441       ;;
11442     aCC*)
11443       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'
11444       # Commands to make compiler produce verbose output that lists
11445       # what "hidden" libraries, object files and flags are used when
11446       # linking a shared library.
11447       #
11448       # There doesn't appear to be a way to prevent this compiler from
11449       # explicitly linking system object files so we need to strip them
11450       # from the output so that they don't get included in the library
11451       # dependencies.
11452       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'
11453       ;;
11454     *)
11455       if test "$GXX" = yes; then
11456         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'
11457       else
11458         # FIXME: insert proper C++ library support
11459         ld_shlibs_CXX=no
11460       fi
11461       ;;
11462     esac
11463     ;;
11464   hpux10*|hpux11*)
11465     if test $with_gnu_ld = no; then
11466       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11467       hardcode_libdir_separator_CXX=:
11468
11469       case $host_cpu in
11470       hppa*64*|ia64*)
11471         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11472         ;;
11473       *)
11474         export_dynamic_flag_spec_CXX='${wl}-E'
11475         ;;
11476       esac
11477     fi
11478     case $host_cpu in
11479     hppa*64*|ia64*)
11480       hardcode_direct_CXX=no
11481       hardcode_shlibpath_var_CXX=no
11482       ;;
11483     *)
11484       hardcode_direct_CXX=yes
11485       hardcode_minus_L_CXX=yes # Not in the search PATH,
11486                                               # but as the default
11487                                               # location of the library.
11488       ;;
11489     esac
11490
11491     case $cc_basename in
11492       CC*)
11493         # FIXME: insert proper C++ library support
11494         ld_shlibs_CXX=no
11495         ;;
11496       aCC*)
11497         case $host_cpu in
11498         hppa*64*)
11499           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11500           ;;
11501         ia64*)
11502           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11503           ;;
11504         *)
11505           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11506           ;;
11507         esac
11508         # Commands to make compiler produce verbose output that lists
11509         # what "hidden" libraries, object files and flags are used when
11510         # linking a shared library.
11511         #
11512         # There doesn't appear to be a way to prevent this compiler from
11513         # explicitly linking system object files so we need to strip them
11514         # from the output so that they don't get included in the library
11515         # dependencies.
11516         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'
11517         ;;
11518       *)
11519         if test "$GXX" = yes; then
11520           if test $with_gnu_ld = no; then
11521             case $host_cpu in
11522             hppa*64*)
11523               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11524               ;;
11525             ia64*)
11526               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11527               ;;
11528             *)
11529               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'
11530               ;;
11531             esac
11532           fi
11533         else
11534           # FIXME: insert proper C++ library support
11535           ld_shlibs_CXX=no
11536         fi
11537         ;;
11538     esac
11539     ;;
11540   interix3*)
11541     hardcode_direct_CXX=no
11542     hardcode_shlibpath_var_CXX=no
11543     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11544     export_dynamic_flag_spec_CXX='${wl}-E'
11545     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11546     # Instead, shared libraries are loaded at an image base (0x10000000 by
11547     # default) and relocated if they conflict, which is a slow very memory
11548     # consuming and fragmenting process.  To avoid this, we pick a random,
11549     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11550     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11551     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'
11552     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'
11553     ;;
11554   irix5* | irix6*)
11555     case $cc_basename in
11556       CC*)
11557         # SGI C++
11558         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'
11559
11560         # Archives containing C++ object files must be created using
11561         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11562         # necessary to make sure instantiated templates are included
11563         # in the archive.
11564         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11565         ;;
11566       *)
11567         if test "$GXX" = yes; then
11568           if test "$with_gnu_ld" = no; then
11569             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'
11570           else
11571             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'
11572           fi
11573         fi
11574         link_all_deplibs_CXX=yes
11575         ;;
11576     esac
11577     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11578     hardcode_libdir_separator_CXX=:
11579     ;;
11580   linux*)
11581     case $cc_basename in
11582       KCC*)
11583         # Kuck and Associates, Inc. (KAI) C++ Compiler
11584
11585         # KCC will only create a shared library if the output file
11586         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11587         # to its proper name (with version) after linking.
11588         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'
11589         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'
11590         # Commands to make compiler produce verbose output that lists
11591         # what "hidden" libraries, object files and flags are used when
11592         # linking a shared library.
11593         #
11594         # There doesn't appear to be a way to prevent this compiler from
11595         # explicitly linking system object files so we need to strip them
11596         # from the output so that they don't get included in the library
11597         # dependencies.
11598         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'
11599
11600         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11601         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11602
11603         # Archives containing C++ object files must be created using
11604         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11605         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11606         ;;
11607       icpc*)
11608         # Intel C++
11609         with_gnu_ld=yes
11610         # version 8.0 and above of icpc choke on multiply defined symbols
11611         # if we add $predep_objects and $postdep_objects, however 7.1 and
11612         # earlier do not add the objects themselves.
11613         case `$CC -V 2>&1` in
11614         *"Version 7."*)
11615           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11616           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'
11617           ;;
11618         *)  # Version 8.0 or newer
11619           tmp_idyn=
11620           case $host_cpu in
11621             ia64*) tmp_idyn=' -i_dynamic';;
11622           esac
11623           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11624           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'
11625           ;;
11626         esac
11627         archive_cmds_need_lc_CXX=no
11628         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11629         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11630         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11631         ;;
11632       pgCC*)
11633         # Portland Group C++ compiler
11634         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11635         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'
11636
11637         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11638         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11639         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'
11640         ;;
11641       cxx*)
11642         # Compaq C++
11643         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11644         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'
11645
11646         runpath_var=LD_RUN_PATH
11647         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11648         hardcode_libdir_separator_CXX=:
11649
11650         # Commands to make compiler produce verbose output that lists
11651         # what "hidden" libraries, object files and flags are used when
11652         # linking a shared library.
11653         #
11654         # There doesn't appear to be a way to prevent this compiler from
11655         # explicitly linking system object files so we need to strip them
11656         # from the output so that they don't get included in the library
11657         # dependencies.
11658         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'
11659         ;;
11660     esac
11661     ;;
11662   lynxos*)
11663     # FIXME: insert proper C++ library support
11664     ld_shlibs_CXX=no
11665     ;;
11666   m88k*)
11667     # FIXME: insert proper C++ library support
11668     ld_shlibs_CXX=no
11669     ;;
11670   mvs*)
11671     case $cc_basename in
11672       cxx*)
11673         # FIXME: insert proper C++ library support
11674         ld_shlibs_CXX=no
11675         ;;
11676       *)
11677         # FIXME: insert proper C++ library support
11678         ld_shlibs_CXX=no
11679         ;;
11680     esac
11681     ;;
11682   netbsd*)
11683     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11684       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11685       wlarc=
11686       hardcode_libdir_flag_spec_CXX='-R$libdir'
11687       hardcode_direct_CXX=yes
11688       hardcode_shlibpath_var_CXX=no
11689     fi
11690     # Workaround some broken pre-1.5 toolchains
11691     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11692     ;;
11693   openbsd2*)
11694     # C++ shared libraries are fairly broken
11695     ld_shlibs_CXX=no
11696     ;;
11697   openbsd*)
11698     hardcode_direct_CXX=yes
11699     hardcode_shlibpath_var_CXX=no
11700     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11701     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11702     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11703       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11704       export_dynamic_flag_spec_CXX='${wl}-E'
11705       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11706     fi
11707     output_verbose_link_cmd='echo'
11708     ;;
11709   osf3*)
11710     case $cc_basename in
11711       KCC*)
11712         # Kuck and Associates, Inc. (KAI) C++ Compiler
11713
11714         # KCC will only create a shared library if the output file
11715         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11716         # to its proper name (with version) after linking.
11717         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'
11718
11719         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11720         hardcode_libdir_separator_CXX=:
11721
11722         # Archives containing C++ object files must be created using
11723         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11724         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11725
11726         ;;
11727       RCC*)
11728         # Rational C++ 2.4.1
11729         # FIXME: insert proper C++ library support
11730         ld_shlibs_CXX=no
11731         ;;
11732       cxx*)
11733         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11734         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'
11735
11736         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11737         hardcode_libdir_separator_CXX=:
11738
11739         # Commands to make compiler produce verbose output that lists
11740         # what "hidden" libraries, object files and flags are used when
11741         # linking a shared library.
11742         #
11743         # There doesn't appear to be a way to prevent this compiler from
11744         # explicitly linking system object files so we need to strip them
11745         # from the output so that they don't get included in the library
11746         # dependencies.
11747         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'
11748         ;;
11749       *)
11750         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11751           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11752           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'
11753
11754           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11755           hardcode_libdir_separator_CXX=:
11756
11757           # Commands to make compiler produce verbose output that lists
11758           # what "hidden" libraries, object files and flags are used when
11759           # linking a shared library.
11760           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11761
11762         else
11763           # FIXME: insert proper C++ library support
11764           ld_shlibs_CXX=no
11765         fi
11766         ;;
11767     esac
11768     ;;
11769   osf4* | osf5*)
11770     case $cc_basename in
11771       KCC*)
11772         # Kuck and Associates, Inc. (KAI) C++ Compiler
11773
11774         # KCC will only create a shared library if the output file
11775         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11776         # to its proper name (with version) after linking.
11777         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'
11778
11779         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11780         hardcode_libdir_separator_CXX=:
11781
11782         # Archives containing C++ object files must be created using
11783         # the KAI C++ compiler.
11784         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11785         ;;
11786       RCC*)
11787         # Rational C++ 2.4.1
11788         # FIXME: insert proper C++ library support
11789         ld_shlibs_CXX=no
11790         ;;
11791       cxx*)
11792         allow_undefined_flag_CXX=' -expect_unresolved \*'
11793         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'
11794         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11795           echo "-hidden">> $lib.exp~
11796           $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~
11797           $rm $lib.exp'
11798
11799         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11800         hardcode_libdir_separator_CXX=:
11801
11802         # Commands to make compiler produce verbose output that lists
11803         # what "hidden" libraries, object files and flags are used when
11804         # linking a shared library.
11805         #
11806         # There doesn't appear to be a way to prevent this compiler from
11807         # explicitly linking system object files so we need to strip them
11808         # from the output so that they don't get included in the library
11809         # dependencies.
11810         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'
11811         ;;
11812       *)
11813         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11814           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11815          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'
11816
11817           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11818           hardcode_libdir_separator_CXX=:
11819
11820           # Commands to make compiler produce verbose output that lists
11821           # what "hidden" libraries, object files and flags are used when
11822           # linking a shared library.
11823           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11824
11825         else
11826           # FIXME: insert proper C++ library support
11827           ld_shlibs_CXX=no
11828         fi
11829         ;;
11830     esac
11831     ;;
11832   psos*)
11833     # FIXME: insert proper C++ library support
11834     ld_shlibs_CXX=no
11835     ;;
11836   sunos4*)
11837     case $cc_basename in
11838       CC*)
11839         # Sun C++ 4.x
11840         # FIXME: insert proper C++ library support
11841         ld_shlibs_CXX=no
11842         ;;
11843       lcc*)
11844         # Lucid
11845         # FIXME: insert proper C++ library support
11846         ld_shlibs_CXX=no
11847         ;;
11848       *)
11849         # FIXME: insert proper C++ library support
11850         ld_shlibs_CXX=no
11851         ;;
11852     esac
11853     ;;
11854   solaris*)
11855     case $cc_basename in
11856       CC*)
11857         # Sun C++ 4.2, 5.x and Centerline C++
11858         archive_cmds_need_lc_CXX=yes
11859         no_undefined_flag_CXX=' -zdefs'
11860         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11861         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11862         $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'
11863
11864         hardcode_libdir_flag_spec_CXX='-R$libdir'
11865         hardcode_shlibpath_var_CXX=no
11866         case $host_os in
11867           solaris2.[0-5] | solaris2.[0-5].*) ;;
11868           *)
11869             # The C++ compiler is used as linker so we must use $wl
11870             # flag to pass the commands to the underlying system
11871             # linker. We must also pass each convience library through
11872             # to the system linker between allextract/defaultextract.
11873             # The C++ compiler will combine linker options so we
11874             # cannot just pass the convience library names through
11875             # without $wl.
11876             # Supported since Solaris 2.6 (maybe 2.5.1?)
11877             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11878             ;;
11879         esac
11880         link_all_deplibs_CXX=yes
11881
11882         output_verbose_link_cmd='echo'
11883
11884         # Archives containing C++ object files must be created using
11885         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11886         # necessary to make sure instantiated templates are included
11887         # in the archive.
11888         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11889         ;;
11890       gcx*)
11891         # Green Hills C++ Compiler
11892         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11893
11894         # The C++ compiler must be used to create the archive.
11895         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11896         ;;
11897       *)
11898         # GNU C++ compiler with Solaris linker
11899         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11901           if $CC --version | grep -v '^2\.7' > /dev/null; then
11902             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11903             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11904                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11905
11906             # Commands to make compiler produce verbose output that lists
11907             # what "hidden" libraries, object files and flags are used when
11908             # linking a shared library.
11909             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11910           else
11911             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11912             # platform.
11913             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11914             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11915                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11916
11917             # Commands to make compiler produce verbose output that lists
11918             # what "hidden" libraries, object files and flags are used when
11919             # linking a shared library.
11920             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11921           fi
11922
11923           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11924         fi
11925         ;;
11926     esac
11927     ;;
11928   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11929     no_undefined_flag_CXX='${wl}-z,text'
11930     archive_cmds_need_lc_CXX=no
11931     hardcode_shlibpath_var_CXX=no
11932     runpath_var='LD_RUN_PATH'
11933
11934     case $cc_basename in
11935       CC*)
11936         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938         ;;
11939       *)
11940         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942         ;;
11943     esac
11944     ;;
11945   sysv5* | sco3.2v5* | sco5v6*)
11946     # Note: We can NOT use -z defs as we might desire, because we do not
11947     # link with -lc, and that would cause any symbols used from libc to
11948     # always be unresolved, which means just about no library would
11949     # ever link correctly.  If we're not using GNU ld we use -z text
11950     # though, which does catch some bad symbols but isn't as heavy-handed
11951     # as -z defs.
11952     # For security reasons, it is highly recommended that you always
11953     # use absolute paths for naming shared libraries, and exclude the
11954     # DT_RUNPATH tag from executables and libraries.  But doing so
11955     # requires that you compile everything twice, which is a pain.
11956     # So that behaviour is only enabled if SCOABSPATH is set to a
11957     # non-empty value in the environment.  Most likely only useful for
11958     # creating official distributions of packages.
11959     # This is a hack until libtool officially supports absolute path
11960     # names for shared libraries.
11961     no_undefined_flag_CXX='${wl}-z,text'
11962     allow_undefined_flag_CXX='${wl}-z,nodefs'
11963     archive_cmds_need_lc_CXX=no
11964     hardcode_shlibpath_var_CXX=no
11965     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11966     hardcode_libdir_separator_CXX=':'
11967     link_all_deplibs_CXX=yes
11968     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11969     runpath_var='LD_RUN_PATH'
11970
11971     case $cc_basename in
11972       CC*)
11973         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11974         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11975         ;;
11976       *)
11977         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11978         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11979         ;;
11980     esac
11981     ;;
11982   tandem*)
11983     case $cc_basename in
11984       NCC*)
11985         # NonStop-UX NCC 3.20
11986         # FIXME: insert proper C++ library support
11987         ld_shlibs_CXX=no
11988         ;;
11989       *)
11990         # FIXME: insert proper C++ library support
11991         ld_shlibs_CXX=no
11992         ;;
11993     esac
11994     ;;
11995   vxworks*)
11996     # FIXME: insert proper C++ library support
11997     ld_shlibs_CXX=no
11998     ;;
11999   *)
12000     # FIXME: insert proper C++ library support
12001     ld_shlibs_CXX=no
12002     ;;
12003 esac
12004 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12005 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12006 test "$ld_shlibs_CXX" = no && can_build_shared=no
12007
12008 GCC_CXX="$GXX"
12009 LD_CXX="$LD"
12010
12011 ## CAVEAT EMPTOR:
12012 ## There is no encapsulation within the following macros, do not change
12013 ## the running order or otherwise move them around unless you know exactly
12014 ## what you are doing...
12015
12016 cat > conftest.$ac_ext <<EOF
12017 class Foo
12018 {
12019 public:
12020   Foo (void) { a = 0; }
12021 private:
12022   int a;
12023 };
12024 EOF
12025
12026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12027   (eval $ac_compile) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; then
12031   # Parse the compiler output and extract the necessary
12032   # objects, libraries and library flags.
12033
12034   # Sentinel used to keep track of whether or not we are before
12035   # the conftest object file.
12036   pre_test_object_deps_done=no
12037
12038   # The `*' in the case matches for architectures that use `case' in
12039   # $output_verbose_cmd can trigger glob expansion during the loop
12040   # eval without this substitution.
12041   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12042
12043   for p in `eval $output_verbose_link_cmd`; do
12044     case $p in
12045
12046     -L* | -R* | -l*)
12047        # Some compilers place space between "-{L,R}" and the path.
12048        # Remove the space.
12049        if test $p = "-L" \
12050           || test $p = "-R"; then
12051          prev=$p
12052          continue
12053        else
12054          prev=
12055        fi
12056
12057        if test "$pre_test_object_deps_done" = no; then
12058          case $p in
12059          -L* | -R*)
12060            # Internal compiler library paths should come after those
12061            # provided the user.  The postdeps already come after the
12062            # user supplied libs so there is no need to process them.
12063            if test -z "$compiler_lib_search_path_CXX"; then
12064              compiler_lib_search_path_CXX="${prev}${p}"
12065            else
12066              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12067            fi
12068            ;;
12069          # The "-l" case would never come before the object being
12070          # linked, so don't bother handling this case.
12071          esac
12072        else
12073          if test -z "$postdeps_CXX"; then
12074            postdeps_CXX="${prev}${p}"
12075          else
12076            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12077          fi
12078        fi
12079        ;;
12080
12081     *.$objext)
12082        # This assumes that the test object file only shows up
12083        # once in the compiler output.
12084        if test "$p" = "conftest.$objext"; then
12085          pre_test_object_deps_done=yes
12086          continue
12087        fi
12088
12089        if test "$pre_test_object_deps_done" = no; then
12090          if test -z "$predep_objects_CXX"; then
12091            predep_objects_CXX="$p"
12092          else
12093            predep_objects_CXX="$predep_objects_CXX $p"
12094          fi
12095        else
12096          if test -z "$postdep_objects_CXX"; then
12097            postdep_objects_CXX="$p"
12098          else
12099            postdep_objects_CXX="$postdep_objects_CXX $p"
12100          fi
12101        fi
12102        ;;
12103
12104     *) ;; # Ignore the rest.
12105
12106     esac
12107   done
12108
12109   # Clean up.
12110   rm -f a.out a.exe
12111 else
12112   echo "libtool.m4: error: problem compiling CXX test program"
12113 fi
12114
12115 $rm -f confest.$objext
12116
12117 # PORTME: override above test on systems where it is broken
12118 case $host_os in
12119 interix3*)
12120   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12121   # hack all around it, let's just trust "g++" to DTRT.
12122   predep_objects_CXX=
12123   postdep_objects_CXX=
12124   postdeps_CXX=
12125   ;;
12126
12127 solaris*)
12128   case $cc_basename in
12129   CC*)
12130     # Adding this requires a known-good setup of shared libraries for
12131     # Sun compiler versions before 5.6, else PIC objects from an old
12132     # archive will be linked into the output, leading to subtle bugs.
12133     postdeps_CXX='-lCstd -lCrun'
12134     ;;
12135   esac
12136   ;;
12137 esac
12138
12139
12140 case " $postdeps_CXX " in
12141 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12142 esac
12143
12144 lt_prog_compiler_wl_CXX=
12145 lt_prog_compiler_pic_CXX=
12146 lt_prog_compiler_static_CXX=
12147
12148 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12150
12151   # C++ specific cases for pic, static, wl, etc.
12152   if test "$GXX" = yes; then
12153     lt_prog_compiler_wl_CXX='-Wl,'
12154     lt_prog_compiler_static_CXX='-static'
12155
12156     case $host_os in
12157     aix*)
12158       # All AIX code is PIC.
12159       if test "$host_cpu" = ia64; then
12160         # AIX 5 now supports IA64 processor
12161         lt_prog_compiler_static_CXX='-Bstatic'
12162       fi
12163       ;;
12164     amigaos*)
12165       # FIXME: we need at least 68020 code to build shared libraries, but
12166       # adding the `-m68020' flag to GCC prevents building anything better,
12167       # like `-m68040'.
12168       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12169       ;;
12170     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12171       # PIC is the default for these OSes.
12172       ;;
12173     mingw* | os2* | pw32*)
12174       # This hack is so that the source file can tell whether it is being
12175       # built for inclusion in a dll (and should export symbols for example).
12176       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12177       ;;
12178     darwin* | rhapsody*)
12179       # PIC is the default on this platform
12180       # Common symbols not allowed in MH_DYLIB files
12181       lt_prog_compiler_pic_CXX='-fno-common'
12182       ;;
12183     *djgpp*)
12184       # DJGPP does not support shared libraries at all
12185       lt_prog_compiler_pic_CXX=
12186       ;;
12187     interix3*)
12188       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12189       # Instead, we relocate shared libraries at runtime.
12190       ;;
12191     sysv4*MP*)
12192       if test -d /usr/nec; then
12193         lt_prog_compiler_pic_CXX=-Kconform_pic
12194       fi
12195       ;;
12196     hpux*)
12197       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12198       # not for PA HP-UX.
12199       case $host_cpu in
12200       hppa*64*|ia64*)
12201         ;;
12202       *)
12203         lt_prog_compiler_pic_CXX='-fPIC'
12204         ;;
12205       esac
12206       ;;
12207     *)
12208       lt_prog_compiler_pic_CXX='-fPIC'
12209       ;;
12210     esac
12211   else
12212     case $host_os in
12213       aix4* | aix5*)
12214         # All AIX code is PIC.
12215         if test "$host_cpu" = ia64; then
12216           # AIX 5 now supports IA64 processor
12217           lt_prog_compiler_static_CXX='-Bstatic'
12218         else
12219           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12220         fi
12221         ;;
12222       chorus*)
12223         case $cc_basename in
12224         cxch68*)
12225           # Green Hills C++ Compiler
12226           # _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"
12227           ;;
12228         esac
12229         ;;
12230        darwin*)
12231          # PIC is the default on this platform
12232          # Common symbols not allowed in MH_DYLIB files
12233          case $cc_basename in
12234            xlc*)
12235            lt_prog_compiler_pic_CXX='-qnocommon'
12236            lt_prog_compiler_wl_CXX='-Wl,'
12237            ;;
12238          esac
12239        ;;
12240       dgux*)
12241         case $cc_basename in
12242           ec++*)
12243             lt_prog_compiler_pic_CXX='-KPIC'
12244             ;;
12245           ghcx*)
12246             # Green Hills C++ Compiler
12247             lt_prog_compiler_pic_CXX='-pic'
12248             ;;
12249           *)
12250             ;;
12251         esac
12252         ;;
12253       freebsd* | kfreebsd*-gnu | dragonfly*)
12254         # FreeBSD uses GNU C++
12255         ;;
12256       hpux9* | hpux10* | hpux11*)
12257         case $cc_basename in
12258           CC*)
12259             lt_prog_compiler_wl_CXX='-Wl,'
12260             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12261             if test "$host_cpu" != ia64; then
12262               lt_prog_compiler_pic_CXX='+Z'
12263             fi
12264             ;;
12265           aCC*)
12266             lt_prog_compiler_wl_CXX='-Wl,'
12267             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12268             case $host_cpu in
12269             hppa*64*|ia64*)
12270               # +Z the default
12271               ;;
12272             *)
12273               lt_prog_compiler_pic_CXX='+Z'
12274               ;;
12275             esac
12276             ;;
12277           *)
12278             ;;
12279         esac
12280         ;;
12281       interix*)
12282         # This is c89, which is MS Visual C++ (no shared libs)
12283         # Anyone wants to do a port?
12284         ;;
12285       irix5* | irix6* | nonstopux*)
12286         case $cc_basename in
12287           CC*)
12288             lt_prog_compiler_wl_CXX='-Wl,'
12289             lt_prog_compiler_static_CXX='-non_shared'
12290             # CC pic flag -KPIC is the default.
12291             ;;
12292           *)
12293             ;;
12294         esac
12295         ;;
12296       linux*)
12297         case $cc_basename in
12298           KCC*)
12299             # KAI C++ Compiler
12300             lt_prog_compiler_wl_CXX='--backend -Wl,'
12301             lt_prog_compiler_pic_CXX='-fPIC'
12302             ;;
12303           icpc* | ecpc*)
12304             # Intel C++
12305             lt_prog_compiler_wl_CXX='-Wl,'
12306             lt_prog_compiler_pic_CXX='-KPIC'
12307             lt_prog_compiler_static_CXX='-static'
12308             ;;
12309           pgCC*)
12310             # Portland Group C++ compiler.
12311             lt_prog_compiler_wl_CXX='-Wl,'
12312             lt_prog_compiler_pic_CXX='-fpic'
12313             lt_prog_compiler_static_CXX='-Bstatic'
12314             ;;
12315           cxx*)
12316             # Compaq C++
12317             # Make sure the PIC flag is empty.  It appears that all Alpha
12318             # Linux and Compaq Tru64 Unix objects are PIC.
12319             lt_prog_compiler_pic_CXX=
12320             lt_prog_compiler_static_CXX='-non_shared'
12321             ;;
12322           *)
12323             ;;
12324         esac
12325         ;;
12326       lynxos*)
12327         ;;
12328       m88k*)
12329         ;;
12330       mvs*)
12331         case $cc_basename in
12332           cxx*)
12333             lt_prog_compiler_pic_CXX='-W c,exportall'
12334             ;;
12335           *)
12336             ;;
12337         esac
12338         ;;
12339       netbsd*)
12340         ;;
12341       osf3* | osf4* | osf5*)
12342         case $cc_basename in
12343           KCC*)
12344             lt_prog_compiler_wl_CXX='--backend -Wl,'
12345             ;;
12346           RCC*)
12347             # Rational C++ 2.4.1
12348             lt_prog_compiler_pic_CXX='-pic'
12349             ;;
12350           cxx*)
12351             # Digital/Compaq C++
12352             lt_prog_compiler_wl_CXX='-Wl,'
12353             # Make sure the PIC flag is empty.  It appears that all Alpha
12354             # Linux and Compaq Tru64 Unix objects are PIC.
12355             lt_prog_compiler_pic_CXX=
12356             lt_prog_compiler_static_CXX='-non_shared'
12357             ;;
12358           *)
12359             ;;
12360         esac
12361         ;;
12362       psos*)
12363         ;;
12364       solaris*)
12365         case $cc_basename in
12366           CC*)
12367             # Sun C++ 4.2, 5.x and Centerline C++
12368             lt_prog_compiler_pic_CXX='-KPIC'
12369             lt_prog_compiler_static_CXX='-Bstatic'
12370             lt_prog_compiler_wl_CXX='-Qoption ld '
12371             ;;
12372           gcx*)
12373             # Green Hills C++ Compiler
12374             lt_prog_compiler_pic_CXX='-PIC'
12375             ;;
12376           *)
12377             ;;
12378         esac
12379         ;;
12380       sunos4*)
12381         case $cc_basename in
12382           CC*)
12383             # Sun C++ 4.x
12384             lt_prog_compiler_pic_CXX='-pic'
12385             lt_prog_compiler_static_CXX='-Bstatic'
12386             ;;
12387           lcc*)
12388             # Lucid
12389             lt_prog_compiler_pic_CXX='-pic'
12390             ;;
12391           *)
12392             ;;
12393         esac
12394         ;;
12395       tandem*)
12396         case $cc_basename in
12397           NCC*)
12398             # NonStop-UX NCC 3.20
12399             lt_prog_compiler_pic_CXX='-KPIC'
12400             ;;
12401           *)
12402             ;;
12403         esac
12404         ;;
12405       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12406         case $cc_basename in
12407           CC*)
12408             lt_prog_compiler_wl_CXX='-Wl,'
12409             lt_prog_compiler_pic_CXX='-KPIC'
12410             lt_prog_compiler_static_CXX='-Bstatic'
12411             ;;
12412         esac
12413         ;;
12414       vxworks*)
12415         ;;
12416       *)
12417         lt_prog_compiler_can_build_shared_CXX=no
12418         ;;
12419     esac
12420   fi
12421
12422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12423 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12424
12425 #
12426 # Check to make sure the PIC flag actually works.
12427 #
12428 if test -n "$lt_prog_compiler_pic_CXX"; then
12429
12430 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12431 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12432 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12433   echo $ECHO_N "(cached) $ECHO_C" >&6
12434 else
12435   lt_prog_compiler_pic_works_CXX=no
12436   ac_outfile=conftest.$ac_objext
12437    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12438    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12439    # Insert the option either (1) after the last *FLAGS variable, or
12440    # (2) before a word containing "conftest.", or (3) at the end.
12441    # Note that $ac_compile itself does not contain backslashes and begins
12442    # with a dollar sign (not a hyphen), so the echo should work correctly.
12443    # The option is referenced via a variable to avoid confusing sed.
12444    lt_compile=`echo "$ac_compile" | $SED \
12445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12447    -e 's:$: $lt_compiler_flag:'`
12448    (eval echo "\"\$as_me:12448: $lt_compile\"" >&5)
12449    (eval "$lt_compile" 2>conftest.err)
12450    ac_status=$?
12451    cat conftest.err >&5
12452    echo "$as_me:12452: \$? = $ac_status" >&5
12453    if (exit $ac_status) && test -s "$ac_outfile"; then
12454      # The compiler can only warn and ignore the option if not recognized
12455      # So say no if there are warnings other than the usual output.
12456      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12457      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12458      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12459        lt_prog_compiler_pic_works_CXX=yes
12460      fi
12461    fi
12462    $rm conftest*
12463
12464 fi
12465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12466 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12467
12468 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12469     case $lt_prog_compiler_pic_CXX in
12470      "" | " "*) ;;
12471      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12472      esac
12473 else
12474     lt_prog_compiler_pic_CXX=
12475      lt_prog_compiler_can_build_shared_CXX=no
12476 fi
12477
12478 fi
12479 case $host_os in
12480   # For platforms which do not support PIC, -DPIC is meaningless:
12481   *djgpp*)
12482     lt_prog_compiler_pic_CXX=
12483     ;;
12484   *)
12485     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12486     ;;
12487 esac
12488
12489 #
12490 # Check to make sure the static flag actually works.
12491 #
12492 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12493 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12494 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12495 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   lt_prog_compiler_static_works_CXX=no
12499    save_LDFLAGS="$LDFLAGS"
12500    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12501    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12502    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12503      # The linker can only warn and ignore the option if not recognized
12504      # So say no if there are warnings
12505      if test -s conftest.err; then
12506        # Append any errors to the config.log.
12507        cat conftest.err 1>&5
12508        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12509        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12510        if diff conftest.exp conftest.er2 >/dev/null; then
12511          lt_prog_compiler_static_works_CXX=yes
12512        fi
12513      else
12514        lt_prog_compiler_static_works_CXX=yes
12515      fi
12516    fi
12517    $rm conftest*
12518    LDFLAGS="$save_LDFLAGS"
12519
12520 fi
12521 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12522 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12523
12524 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12525     :
12526 else
12527     lt_prog_compiler_static_CXX=
12528 fi
12529
12530
12531 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12532 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12533 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536   lt_cv_prog_compiler_c_o_CXX=no
12537    $rm -r conftest 2>/dev/null
12538    mkdir conftest
12539    cd conftest
12540    mkdir out
12541    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12542
12543    lt_compiler_flag="-o out/conftest2.$ac_objext"
12544    # Insert the option either (1) after the last *FLAGS variable, or
12545    # (2) before a word containing "conftest.", or (3) at the end.
12546    # Note that $ac_compile itself does not contain backslashes and begins
12547    # with a dollar sign (not a hyphen), so the echo should work correctly.
12548    lt_compile=`echo "$ac_compile" | $SED \
12549    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12551    -e 's:$: $lt_compiler_flag:'`
12552    (eval echo "\"\$as_me:12552: $lt_compile\"" >&5)
12553    (eval "$lt_compile" 2>out/conftest.err)
12554    ac_status=$?
12555    cat out/conftest.err >&5
12556    echo "$as_me:12556: \$? = $ac_status" >&5
12557    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12558    then
12559      # The compiler can only warn and ignore the option if not recognized
12560      # So say no if there are warnings
12561      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12562      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12563      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12564        lt_cv_prog_compiler_c_o_CXX=yes
12565      fi
12566    fi
12567    chmod u+w . 2>&5
12568    $rm conftest*
12569    # SGI C++ compiler will create directory out/ii_files/ for
12570    # template instantiation
12571    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12572    $rm out/* && rmdir out
12573    cd ..
12574    rmdir conftest
12575    $rm conftest*
12576
12577 fi
12578 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12580
12581
12582 hard_links="nottested"
12583 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12584   # do not overwrite the value of need_locks provided by the user
12585   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12587   hard_links=yes
12588   $rm conftest*
12589   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12590   touch conftest.a
12591   ln conftest.a conftest.b 2>&5 || hard_links=no
12592   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12593   { echo "$as_me:$LINENO: result: $hard_links" >&5
12594 echo "${ECHO_T}$hard_links" >&6; }
12595   if test "$hard_links" = no; then
12596     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12598     need_locks=warn
12599   fi
12600 else
12601   need_locks=no
12602 fi
12603
12604 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12606
12607   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12608   case $host_os in
12609   aix4* | aix5*)
12610     # If we're using GNU nm, then we don't want the "-C" option.
12611     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12612     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12613       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'
12614     else
12615       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'
12616     fi
12617     ;;
12618   pw32*)
12619     export_symbols_cmds_CXX="$ltdll_cmds"
12620   ;;
12621   cygwin* | mingw*)
12622     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'
12623   ;;
12624   *)
12625     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12626   ;;
12627   esac
12628
12629 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12630 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12631 test "$ld_shlibs_CXX" = no && can_build_shared=no
12632
12633 #
12634 # Do we need to explicitly link libc?
12635 #
12636 case "x$archive_cmds_need_lc_CXX" in
12637 x|xyes)
12638   # Assume -lc should be added
12639   archive_cmds_need_lc_CXX=yes
12640
12641   if test "$enable_shared" = yes && test "$GCC" = yes; then
12642     case $archive_cmds_CXX in
12643     *'~'*)
12644       # FIXME: we may have to deal with multi-command sequences.
12645       ;;
12646     '$CC '*)
12647       # Test whether the compiler implicitly links with -lc since on some
12648       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12649       # to ld, don't add -lc before -lgcc.
12650       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12651 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12652       $rm conftest*
12653       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12654
12655       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656   (eval $ac_compile) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } 2>conftest.err; then
12660         soname=conftest
12661         lib=conftest
12662         libobjs=conftest.$ac_objext
12663         deplibs=
12664         wl=$lt_prog_compiler_wl_CXX
12665         pic_flag=$lt_prog_compiler_pic_CXX
12666         compiler_flags=-v
12667         linker_flags=-v
12668         verstring=
12669         output_objdir=.
12670         libname=conftest
12671         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12672         allow_undefined_flag_CXX=
12673         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12674   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }
12678         then
12679           archive_cmds_need_lc_CXX=no
12680         else
12681           archive_cmds_need_lc_CXX=yes
12682         fi
12683         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12684       else
12685         cat conftest.err 1>&5
12686       fi
12687       $rm conftest*
12688       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12689 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12690       ;;
12691     esac
12692   fi
12693   ;;
12694 esac
12695
12696 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12697 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12698 library_names_spec=
12699 libname_spec='lib$name'
12700 soname_spec=
12701 shrext_cmds=".so"
12702 postinstall_cmds=
12703 postuninstall_cmds=
12704 finish_cmds=
12705 finish_eval=
12706 shlibpath_var=
12707 shlibpath_overrides_runpath=unknown
12708 version_type=none
12709 dynamic_linker="$host_os ld.so"
12710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12711 if test "$GCC" = yes; then
12712   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12713   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12714     # if the path contains ";" then we assume it to be the separator
12715     # otherwise default to the standard path separator (i.e. ":") - it is
12716     # assumed that no part of a normal pathname contains ";" but that should
12717     # okay in the real world where ";" in dirpaths is itself problematic.
12718     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12719   else
12720     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12721   fi
12722 else
12723   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12724 fi
12725 need_lib_prefix=unknown
12726 hardcode_into_libs=no
12727
12728 # when you set need_version to no, make sure it does not cause -set_version
12729 # flags to be left without arguments
12730 need_version=unknown
12731
12732 case $host_os in
12733 aix3*)
12734   version_type=linux
12735   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12736   shlibpath_var=LIBPATH
12737
12738   # AIX 3 has no versioning support, so we append a major version to the name.
12739   soname_spec='${libname}${release}${shared_ext}$major'
12740   ;;
12741
12742 aix4* | aix5*)
12743   version_type=linux
12744   need_lib_prefix=no
12745   need_version=no
12746   hardcode_into_libs=yes
12747   if test "$host_cpu" = ia64; then
12748     # AIX 5 supports IA64
12749     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12750     shlibpath_var=LD_LIBRARY_PATH
12751   else
12752     # With GCC up to 2.95.x, collect2 would create an import file
12753     # for dependence libraries.  The import file would start with
12754     # the line `#! .'.  This would cause the generated library to
12755     # depend on `.', always an invalid library.  This was fixed in
12756     # development snapshots of GCC prior to 3.0.
12757     case $host_os in
12758       aix4 | aix4.[01] | aix4.[01].*)
12759       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12760            echo ' yes '
12761            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12762         :
12763       else
12764         can_build_shared=no
12765       fi
12766       ;;
12767     esac
12768     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12769     # soname into executable. Probably we can add versioning support to
12770     # collect2, so additional links can be useful in future.
12771     if test "$aix_use_runtimelinking" = yes; then
12772       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12773       # instead of lib<name>.a to let people know that these are not
12774       # typical AIX shared libraries.
12775       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776     else
12777       # We preserve .a as extension for shared libraries through AIX4.2
12778       # and later when we are not doing run time linking.
12779       library_names_spec='${libname}${release}.a $libname.a'
12780       soname_spec='${libname}${release}${shared_ext}$major'
12781     fi
12782     shlibpath_var=LIBPATH
12783   fi
12784   ;;
12785
12786 amigaos*)
12787   library_names_spec='$libname.ixlibrary $libname.a'
12788   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12789   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'
12790   ;;
12791
12792 beos*)
12793   library_names_spec='${libname}${shared_ext}'
12794   dynamic_linker="$host_os ld.so"
12795   shlibpath_var=LIBRARY_PATH
12796   ;;
12797
12798 bsdi[45]*)
12799   version_type=linux
12800   need_version=no
12801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802   soname_spec='${libname}${release}${shared_ext}$major'
12803   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12804   shlibpath_var=LD_LIBRARY_PATH
12805   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12806   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12807   # the default ld.so.conf also contains /usr/contrib/lib and
12808   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12809   # libtool to hard-code these into programs
12810   ;;
12811
12812 cygwin* | mingw* | pw32*)
12813   version_type=windows
12814   shrext_cmds=".dll"
12815   need_version=no
12816   need_lib_prefix=no
12817
12818   case $GCC,$host_os in
12819   yes,cygwin* | yes,mingw* | yes,pw32*)
12820     library_names_spec='$libname.dll.a'
12821     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12822     postinstall_cmds='base_file=`basename \${file}`~
12823       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12824       dldir=$destdir/`dirname \$dlpath`~
12825       test -d \$dldir || mkdir -p \$dldir~
12826       $install_prog $dir/$dlname \$dldir/$dlname~
12827       chmod a+x \$dldir/$dlname'
12828     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12829       dlpath=$dir/\$dldll~
12830        $rm \$dlpath'
12831     shlibpath_overrides_runpath=yes
12832
12833     case $host_os in
12834     cygwin*)
12835       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12836       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12837       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12838       ;;
12839     mingw*)
12840       # MinGW DLLs use traditional 'lib' prefix
12841       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12842       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12843       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12844         # It is most probably a Windows format PATH printed by
12845         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12846         # path with ; separators, and with drive letters. We can handle the
12847         # drive letters (cygwin fileutils understands them), so leave them,
12848         # especially as we might pass files found there to a mingw objdump,
12849         # which wouldn't understand a cygwinified path. Ahh.
12850         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12851       else
12852         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12853       fi
12854       ;;
12855     pw32*)
12856       # pw32 DLLs use 'pw' prefix rather than 'lib'
12857       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12858       ;;
12859     esac
12860     ;;
12861
12862   *)
12863     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12864     ;;
12865   esac
12866   dynamic_linker='Win32 ld.exe'
12867   # FIXME: first we should search . and the directory the executable is in
12868   shlibpath_var=PATH
12869   ;;
12870
12871 darwin* | rhapsody*)
12872   dynamic_linker="$host_os dyld"
12873   version_type=darwin
12874   need_lib_prefix=no
12875   need_version=no
12876   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12877   soname_spec='${libname}${release}${major}$shared_ext'
12878   shlibpath_overrides_runpath=yes
12879   shlibpath_var=DYLD_LIBRARY_PATH
12880   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12881   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12882   if test "$GCC" = yes; then
12883     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12884   else
12885     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12886   fi
12887   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12888   ;;
12889
12890 dgux*)
12891   version_type=linux
12892   need_lib_prefix=no
12893   need_version=no
12894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12895   soname_spec='${libname}${release}${shared_ext}$major'
12896   shlibpath_var=LD_LIBRARY_PATH
12897   ;;
12898
12899 freebsd1*)
12900   dynamic_linker=no
12901   ;;
12902
12903 kfreebsd*-gnu)
12904   version_type=linux
12905   need_lib_prefix=no
12906   need_version=no
12907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12908   soname_spec='${libname}${release}${shared_ext}$major'
12909   shlibpath_var=LD_LIBRARY_PATH
12910   shlibpath_overrides_runpath=no
12911   hardcode_into_libs=yes
12912   dynamic_linker='GNU ld.so'
12913   ;;
12914
12915 freebsd* | dragonfly*)
12916   # DragonFly does not have aout.  When/if they implement a new
12917   # versioning mechanism, adjust this.
12918   if test -x /usr/bin/objformat; then
12919     objformat=`/usr/bin/objformat`
12920   else
12921     case $host_os in
12922     freebsd[123]*) objformat=aout ;;
12923     *) objformat=elf ;;
12924     esac
12925   fi
12926   version_type=freebsd-$objformat
12927   case $version_type in
12928     freebsd-elf*)
12929       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12930       need_version=no
12931       need_lib_prefix=no
12932       ;;
12933     freebsd-*)
12934       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12935       need_version=yes
12936       ;;
12937   esac
12938   shlibpath_var=LD_LIBRARY_PATH
12939   case $host_os in
12940   freebsd2*)
12941     shlibpath_overrides_runpath=yes
12942     ;;
12943   freebsd3.[01]* | freebsdelf3.[01]*)
12944     shlibpath_overrides_runpath=yes
12945     hardcode_into_libs=yes
12946     ;;
12947   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12948   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12949     shlibpath_overrides_runpath=no
12950     hardcode_into_libs=yes
12951     ;;
12952   freebsd*) # from 4.6 on
12953     shlibpath_overrides_runpath=yes
12954     hardcode_into_libs=yes
12955     ;;
12956   esac
12957   ;;
12958
12959 gnu*)
12960   version_type=linux
12961   need_lib_prefix=no
12962   need_version=no
12963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12964   soname_spec='${libname}${release}${shared_ext}$major'
12965   shlibpath_var=LD_LIBRARY_PATH
12966   hardcode_into_libs=yes
12967   ;;
12968
12969 hpux9* | hpux10* | hpux11*)
12970   # Give a soname corresponding to the major version so that dld.sl refuses to
12971   # link against other versions.
12972   version_type=sunos
12973   need_lib_prefix=no
12974   need_version=no
12975   case $host_cpu in
12976   ia64*)
12977     shrext_cmds='.so'
12978     hardcode_into_libs=yes
12979     dynamic_linker="$host_os dld.so"
12980     shlibpath_var=LD_LIBRARY_PATH
12981     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12983     soname_spec='${libname}${release}${shared_ext}$major'
12984     if test "X$HPUX_IA64_MODE" = X32; then
12985       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12986     else
12987       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12988     fi
12989     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12990     ;;
12991    hppa*64*)
12992      shrext_cmds='.sl'
12993      hardcode_into_libs=yes
12994      dynamic_linker="$host_os dld.sl"
12995      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12996      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998      soname_spec='${libname}${release}${shared_ext}$major'
12999      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13000      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13001      ;;
13002    *)
13003     shrext_cmds='.sl'
13004     dynamic_linker="$host_os dld.sl"
13005     shlibpath_var=SHLIB_PATH
13006     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13008     soname_spec='${libname}${release}${shared_ext}$major'
13009     ;;
13010   esac
13011   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13012   postinstall_cmds='chmod 555 $lib'
13013   ;;
13014
13015 interix3*)
13016   version_type=linux
13017   need_lib_prefix=no
13018   need_version=no
13019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13020   soname_spec='${libname}${release}${shared_ext}$major'
13021   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13022   shlibpath_var=LD_LIBRARY_PATH
13023   shlibpath_overrides_runpath=no
13024   hardcode_into_libs=yes
13025   ;;
13026
13027 irix5* | irix6* | nonstopux*)
13028   case $host_os in
13029     nonstopux*) version_type=nonstopux ;;
13030     *)
13031         if test "$lt_cv_prog_gnu_ld" = yes; then
13032                 version_type=linux
13033         else
13034                 version_type=irix
13035         fi ;;
13036   esac
13037   need_lib_prefix=no
13038   need_version=no
13039   soname_spec='${libname}${release}${shared_ext}$major'
13040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13041   case $host_os in
13042   irix5* | nonstopux*)
13043     libsuff= shlibsuff=
13044     ;;
13045   *)
13046     case $LD in # libtool.m4 will add one of these switches to LD
13047     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13048       libsuff= shlibsuff= libmagic=32-bit;;
13049     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13050       libsuff=32 shlibsuff=N32 libmagic=N32;;
13051     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13052       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13053     *) libsuff= shlibsuff= libmagic=never-match;;
13054     esac
13055     ;;
13056   esac
13057   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13058   shlibpath_overrides_runpath=no
13059   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13060   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13061   hardcode_into_libs=yes
13062   ;;
13063
13064 # No shared lib support for Linux oldld, aout, or coff.
13065 linux*oldld* | linux*aout* | linux*coff*)
13066   dynamic_linker=no
13067   ;;
13068
13069 # This must be Linux ELF.
13070 linux*)
13071   version_type=linux
13072   need_lib_prefix=no
13073   need_version=no
13074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13075   soname_spec='${libname}${release}${shared_ext}$major'
13076   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13077   shlibpath_var=LD_LIBRARY_PATH
13078   shlibpath_overrides_runpath=no
13079   # This implies no fast_install, which is unacceptable.
13080   # Some rework will be needed to allow for fast_install
13081   # before this can be enabled.
13082   hardcode_into_libs=yes
13083
13084   # Append ld.so.conf contents to the search path
13085   if test -f /etc/ld.so.conf; then
13086     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13087     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13088   fi
13089
13090   # We used to test for /lib/ld.so.1 and disable shared libraries on
13091   # powerpc, because MkLinux only supported shared libraries with the
13092   # GNU dynamic linker.  Since this was broken with cross compilers,
13093   # most powerpc-linux boxes support dynamic linking these days and
13094   # people can always --disable-shared, the test was removed, and we
13095   # assume the GNU/Linux dynamic linker is in use.
13096   dynamic_linker='GNU/Linux ld.so'
13097   ;;
13098
13099 knetbsd*-gnu)
13100   version_type=linux
13101   need_lib_prefix=no
13102   need_version=no
13103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13104   soname_spec='${libname}${release}${shared_ext}$major'
13105   shlibpath_var=LD_LIBRARY_PATH
13106   shlibpath_overrides_runpath=no
13107   hardcode_into_libs=yes
13108   dynamic_linker='GNU ld.so'
13109   ;;
13110
13111 netbsd*)
13112   version_type=sunos
13113   need_lib_prefix=no
13114   need_version=no
13115   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13117     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13118     dynamic_linker='NetBSD (a.out) ld.so'
13119   else
13120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13121     soname_spec='${libname}${release}${shared_ext}$major'
13122     dynamic_linker='NetBSD ld.elf_so'
13123   fi
13124   shlibpath_var=LD_LIBRARY_PATH
13125   shlibpath_overrides_runpath=yes
13126   hardcode_into_libs=yes
13127   ;;
13128
13129 newsos6)
13130   version_type=linux
13131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132   shlibpath_var=LD_LIBRARY_PATH
13133   shlibpath_overrides_runpath=yes
13134   ;;
13135
13136 nto-qnx*)
13137   version_type=linux
13138   need_lib_prefix=no
13139   need_version=no
13140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141   soname_spec='${libname}${release}${shared_ext}$major'
13142   shlibpath_var=LD_LIBRARY_PATH
13143   shlibpath_overrides_runpath=yes
13144   ;;
13145
13146 openbsd*)
13147   version_type=sunos
13148   sys_lib_dlsearch_path_spec="/usr/lib"
13149   need_lib_prefix=no
13150   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13151   case $host_os in
13152     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13153     *)                         need_version=no  ;;
13154   esac
13155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13156   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13157   shlibpath_var=LD_LIBRARY_PATH
13158   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13159     case $host_os in
13160       openbsd2.[89] | openbsd2.[89].*)
13161         shlibpath_overrides_runpath=no
13162         ;;
13163       *)
13164         shlibpath_overrides_runpath=yes
13165         ;;
13166       esac
13167   else
13168     shlibpath_overrides_runpath=yes
13169   fi
13170   ;;
13171
13172 os2*)
13173   libname_spec='$name'
13174   shrext_cmds=".dll"
13175   need_lib_prefix=no
13176   library_names_spec='$libname${shared_ext} $libname.a'
13177   dynamic_linker='OS/2 ld.exe'
13178   shlibpath_var=LIBPATH
13179   ;;
13180
13181 osf3* | osf4* | osf5*)
13182   version_type=osf
13183   need_lib_prefix=no
13184   need_version=no
13185   soname_spec='${libname}${release}${shared_ext}$major'
13186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187   shlibpath_var=LD_LIBRARY_PATH
13188   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13189   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13190   ;;
13191
13192 solaris*)
13193   version_type=linux
13194   need_lib_prefix=no
13195   need_version=no
13196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197   soname_spec='${libname}${release}${shared_ext}$major'
13198   shlibpath_var=LD_LIBRARY_PATH
13199   shlibpath_overrides_runpath=yes
13200   hardcode_into_libs=yes
13201   # ldd complains unless libraries are executable
13202   postinstall_cmds='chmod +x $lib'
13203   ;;
13204
13205 sunos4*)
13206   version_type=sunos
13207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13208   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13209   shlibpath_var=LD_LIBRARY_PATH
13210   shlibpath_overrides_runpath=yes
13211   if test "$with_gnu_ld" = yes; then
13212     need_lib_prefix=no
13213   fi
13214   need_version=yes
13215   ;;
13216
13217 sysv4 | sysv4.3*)
13218   version_type=linux
13219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220   soname_spec='${libname}${release}${shared_ext}$major'
13221   shlibpath_var=LD_LIBRARY_PATH
13222   case $host_vendor in
13223     sni)
13224       shlibpath_overrides_runpath=no
13225       need_lib_prefix=no
13226       export_dynamic_flag_spec='${wl}-Blargedynsym'
13227       runpath_var=LD_RUN_PATH
13228       ;;
13229     siemens)
13230       need_lib_prefix=no
13231       ;;
13232     motorola)
13233       need_lib_prefix=no
13234       need_version=no
13235       shlibpath_overrides_runpath=no
13236       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13237       ;;
13238   esac
13239   ;;
13240
13241 sysv4*MP*)
13242   if test -d /usr/nec ;then
13243     version_type=linux
13244     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13245     soname_spec='$libname${shared_ext}.$major'
13246     shlibpath_var=LD_LIBRARY_PATH
13247   fi
13248   ;;
13249
13250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13251   version_type=freebsd-elf
13252   need_lib_prefix=no
13253   need_version=no
13254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13255   soname_spec='${libname}${release}${shared_ext}$major'
13256   shlibpath_var=LD_LIBRARY_PATH
13257   hardcode_into_libs=yes
13258   if test "$with_gnu_ld" = yes; then
13259     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13260     shlibpath_overrides_runpath=no
13261   else
13262     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13263     shlibpath_overrides_runpath=yes
13264     case $host_os in
13265       sco3.2v5*)
13266         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13267         ;;
13268     esac
13269   fi
13270   sys_lib_dlsearch_path_spec='/usr/lib'
13271   ;;
13272
13273 uts4*)
13274   version_type=linux
13275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276   soname_spec='${libname}${release}${shared_ext}$major'
13277   shlibpath_var=LD_LIBRARY_PATH
13278   ;;
13279
13280 *)
13281   dynamic_linker=no
13282   ;;
13283 esac
13284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13285 echo "${ECHO_T}$dynamic_linker" >&6; }
13286 test "$dynamic_linker" = no && can_build_shared=no
13287
13288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13289 if test "$GCC" = yes; then
13290   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13291 fi
13292
13293 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13294 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13295 hardcode_action_CXX=
13296 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13297    test -n "$runpath_var_CXX" || \
13298    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13299
13300   # We can hardcode non-existant directories.
13301   if test "$hardcode_direct_CXX" != no &&
13302      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13303      # have to relink, otherwise we might link with an installed library
13304      # when we should be linking with a yet-to-be-installed one
13305      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13306      test "$hardcode_minus_L_CXX" != no; then
13307     # Linking always hardcodes the temporary library directory.
13308     hardcode_action_CXX=relink
13309   else
13310     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13311     hardcode_action_CXX=immediate
13312   fi
13313 else
13314   # We cannot hardcode anything, or else we can only hardcode existing
13315   # directories.
13316   hardcode_action_CXX=unsupported
13317 fi
13318 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13319 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13320
13321 if test "$hardcode_action_CXX" = relink; then
13322   # Fast installation is not supported
13323   enable_fast_install=no
13324 elif test "$shlibpath_overrides_runpath" = yes ||
13325      test "$enable_shared" = no; then
13326   # Fast installation is not necessary
13327   enable_fast_install=needless
13328 fi
13329
13330
13331 # The else clause should only fire when bootstrapping the
13332 # libtool distribution, otherwise you forgot to ship ltmain.sh
13333 # with your package, and you will get complaints that there are
13334 # no rules to generate ltmain.sh.
13335 if test -f "$ltmain"; then
13336   # See if we are running on zsh, and set the options which allow our commands through
13337   # without removal of \ escapes.
13338   if test -n "${ZSH_VERSION+set}" ; then
13339     setopt NO_GLOB_SUBST
13340   fi
13341   # Now quote all the things that may contain metacharacters while being
13342   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13343   # variables and quote the copies for generation of the libtool script.
13344   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13345     SED SHELL STRIP \
13346     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13347     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13348     deplibs_check_method reload_flag reload_cmds need_locks \
13349     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13350     lt_cv_sys_global_symbol_to_c_name_address \
13351     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13352     old_postinstall_cmds old_postuninstall_cmds \
13353     compiler_CXX \
13354     CC_CXX \
13355     LD_CXX \
13356     lt_prog_compiler_wl_CXX \
13357     lt_prog_compiler_pic_CXX \
13358     lt_prog_compiler_static_CXX \
13359     lt_prog_compiler_no_builtin_flag_CXX \
13360     export_dynamic_flag_spec_CXX \
13361     thread_safe_flag_spec_CXX \
13362     whole_archive_flag_spec_CXX \
13363     enable_shared_with_static_runtimes_CXX \
13364     old_archive_cmds_CXX \
13365     old_archive_from_new_cmds_CXX \
13366     predep_objects_CXX \
13367     postdep_objects_CXX \
13368     predeps_CXX \
13369     postdeps_CXX \
13370     compiler_lib_search_path_CXX \
13371     archive_cmds_CXX \
13372     archive_expsym_cmds_CXX \
13373     postinstall_cmds_CXX \
13374     postuninstall_cmds_CXX \
13375     old_archive_from_expsyms_cmds_CXX \
13376     allow_undefined_flag_CXX \
13377     no_undefined_flag_CXX \
13378     export_symbols_cmds_CXX \
13379     hardcode_libdir_flag_spec_CXX \
13380     hardcode_libdir_flag_spec_ld_CXX \
13381     hardcode_libdir_separator_CXX \
13382     hardcode_automatic_CXX \
13383     module_cmds_CXX \
13384     module_expsym_cmds_CXX \
13385     lt_cv_prog_compiler_c_o_CXX \
13386     exclude_expsyms_CXX \
13387     include_expsyms_CXX; do
13388
13389     case $var in
13390     old_archive_cmds_CXX | \
13391     old_archive_from_new_cmds_CXX | \
13392     archive_cmds_CXX | \
13393     archive_expsym_cmds_CXX | \
13394     module_cmds_CXX | \
13395     module_expsym_cmds_CXX | \
13396     old_archive_from_expsyms_cmds_CXX | \
13397     export_symbols_cmds_CXX | \
13398     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13399     postinstall_cmds | postuninstall_cmds | \
13400     old_postinstall_cmds | old_postuninstall_cmds | \
13401     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13402       # Double-quote double-evaled strings.
13403       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13404       ;;
13405     *)
13406       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13407       ;;
13408     esac
13409   done
13410
13411   case $lt_echo in
13412   *'\$0 --fallback-echo"')
13413     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13414     ;;
13415   esac
13416
13417 cfgfile="$ofile"
13418
13419   cat <<__EOF__ >> "$cfgfile"
13420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13421
13422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13423
13424 # Shell to use when invoking shell scripts.
13425 SHELL=$lt_SHELL
13426
13427 # Whether or not to build shared libraries.
13428 build_libtool_libs=$enable_shared
13429
13430 # Whether or not to build static libraries.
13431 build_old_libs=$enable_static
13432
13433 # Whether or not to add -lc for building shared libraries.
13434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13435
13436 # Whether or not to disallow shared libs when runtime libs are static
13437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13438
13439 # Whether or not to optimize for fast installation.
13440 fast_install=$enable_fast_install
13441
13442 # The host system.
13443 host_alias=$host_alias
13444 host=$host
13445 host_os=$host_os
13446
13447 # The build system.
13448 build_alias=$build_alias
13449 build=$build
13450 build_os=$build_os
13451
13452 # An echo program that does not interpret backslashes.
13453 echo=$lt_echo
13454
13455 # The archiver.
13456 AR=$lt_AR
13457 AR_FLAGS=$lt_AR_FLAGS
13458
13459 # A C compiler.
13460 LTCC=$lt_LTCC
13461
13462 # LTCC compiler flags.
13463 LTCFLAGS=$lt_LTCFLAGS
13464
13465 # A language-specific compiler.
13466 CC=$lt_compiler_CXX
13467
13468 # Is the compiler the GNU C compiler?
13469 with_gcc=$GCC_CXX
13470
13471 # An ERE matcher.
13472 EGREP=$lt_EGREP
13473
13474 # The linker used to build libraries.
13475 LD=$lt_LD_CXX
13476
13477 # Whether we need hard or soft links.
13478 LN_S=$lt_LN_S
13479
13480 # A BSD-compatible nm program.
13481 NM=$lt_NM
13482
13483 # A symbol stripping program
13484 STRIP=$lt_STRIP
13485
13486 # Used to examine libraries when file_magic_cmd begins "file"
13487 MAGIC_CMD=$MAGIC_CMD
13488
13489 # Used on cygwin: DLL creation program.
13490 DLLTOOL="$DLLTOOL"
13491
13492 # Used on cygwin: object dumper.
13493 OBJDUMP="$OBJDUMP"
13494
13495 # Used on cygwin: assembler.
13496 AS="$AS"
13497
13498 # The name of the directory that contains temporary libtool files.
13499 objdir=$objdir
13500
13501 # How to create reloadable object files.
13502 reload_flag=$lt_reload_flag
13503 reload_cmds=$lt_reload_cmds
13504
13505 # How to pass a linker flag through the compiler.
13506 wl=$lt_lt_prog_compiler_wl_CXX
13507
13508 # Object file suffix (normally "o").
13509 objext="$ac_objext"
13510
13511 # Old archive suffix (normally "a").
13512 libext="$libext"
13513
13514 # Shared library suffix (normally ".so").
13515 shrext_cmds='$shrext_cmds'
13516
13517 # Executable file suffix (normally "").
13518 exeext="$exeext"
13519
13520 # Additional compiler flags for building library objects.
13521 pic_flag=$lt_lt_prog_compiler_pic_CXX
13522 pic_mode=$pic_mode
13523
13524 # What is the maximum length of a command?
13525 max_cmd_len=$lt_cv_sys_max_cmd_len
13526
13527 # Does compiler simultaneously support -c and -o options?
13528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13529
13530 # Must we lock files when doing compilation?
13531 need_locks=$lt_need_locks
13532
13533 # Do we need the lib prefix for modules?
13534 need_lib_prefix=$need_lib_prefix
13535
13536 # Do we need a version for libraries?
13537 need_version=$need_version
13538
13539 # Whether dlopen is supported.
13540 dlopen_support=$enable_dlopen
13541
13542 # Whether dlopen of programs is supported.
13543 dlopen_self=$enable_dlopen_self
13544
13545 # Whether dlopen of statically linked programs is supported.
13546 dlopen_self_static=$enable_dlopen_self_static
13547
13548 # Compiler flag to prevent dynamic linking.
13549 link_static_flag=$lt_lt_prog_compiler_static_CXX
13550
13551 # Compiler flag to turn off builtin functions.
13552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13553
13554 # Compiler flag to allow reflexive dlopens.
13555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13556
13557 # Compiler flag to generate shared objects directly from archives.
13558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13559
13560 # Compiler flag to generate thread-safe objects.
13561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13562
13563 # Library versioning type.
13564 version_type=$version_type
13565
13566 # Format of library name prefix.
13567 libname_spec=$lt_libname_spec
13568
13569 # List of archive names.  First name is the real one, the rest are links.
13570 # The last name is the one that the linker finds with -lNAME.
13571 library_names_spec=$lt_library_names_spec
13572
13573 # The coded name of the library, if different from the real name.
13574 soname_spec=$lt_soname_spec
13575
13576 # Commands used to build and install an old-style archive.
13577 RANLIB=$lt_RANLIB
13578 old_archive_cmds=$lt_old_archive_cmds_CXX
13579 old_postinstall_cmds=$lt_old_postinstall_cmds
13580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13581
13582 # Create an old-style archive from a shared archive.
13583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13584
13585 # Create a temporary old-style archive to link instead of a shared archive.
13586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13587
13588 # Commands used to build and install a shared archive.
13589 archive_cmds=$lt_archive_cmds_CXX
13590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13591 postinstall_cmds=$lt_postinstall_cmds
13592 postuninstall_cmds=$lt_postuninstall_cmds
13593
13594 # Commands used to build a loadable module (assumed same as above if empty)
13595 module_cmds=$lt_module_cmds_CXX
13596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13597
13598 # Commands to strip libraries.
13599 old_striplib=$lt_old_striplib
13600 striplib=$lt_striplib
13601
13602 # Dependencies to place before the objects being linked to create a
13603 # shared library.
13604 predep_objects=$lt_predep_objects_CXX
13605
13606 # Dependencies to place after the objects being linked to create a
13607 # shared library.
13608 postdep_objects=$lt_postdep_objects_CXX
13609
13610 # Dependencies to place before the objects being linked to create a
13611 # shared library.
13612 predeps=$lt_predeps_CXX
13613
13614 # Dependencies to place after the objects being linked to create a
13615 # shared library.
13616 postdeps=$lt_postdeps_CXX
13617
13618 # The library search path used internally by the compiler when linking
13619 # a shared library.
13620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13621
13622 # Method to check whether dependent libraries are shared objects.
13623 deplibs_check_method=$lt_deplibs_check_method
13624
13625 # Command to use when deplibs_check_method == file_magic.
13626 file_magic_cmd=$lt_file_magic_cmd
13627
13628 # Flag that allows shared libraries with undefined symbols to be built.
13629 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13630
13631 # Flag that forces no undefined symbols.
13632 no_undefined_flag=$lt_no_undefined_flag_CXX
13633
13634 # Commands used to finish a libtool library installation in a directory.
13635 finish_cmds=$lt_finish_cmds
13636
13637 # Same as above, but a single script fragment to be evaled but not shown.
13638 finish_eval=$lt_finish_eval
13639
13640 # Take the output of nm and produce a listing of raw symbols and C names.
13641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13642
13643 # Transform the output of nm in a proper C declaration
13644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13645
13646 # Transform the output of nm in a C name address pair
13647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13648
13649 # This is the shared library runtime path variable.
13650 runpath_var=$runpath_var
13651
13652 # This is the shared library path variable.
13653 shlibpath_var=$shlibpath_var
13654
13655 # Is shlibpath searched before the hard-coded library search path?
13656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13657
13658 # How to hardcode a shared library path into an executable.
13659 hardcode_action=$hardcode_action_CXX
13660
13661 # Whether we should hardcode library paths into libraries.
13662 hardcode_into_libs=$hardcode_into_libs
13663
13664 # Flag to hardcode \$libdir into a binary during linking.
13665 # This must work even if \$libdir does not exist.
13666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13667
13668 # If ld is used when linking, flag to hardcode \$libdir into
13669 # a binary during linking. This must work even if \$libdir does
13670 # not exist.
13671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13672
13673 # Whether we need a single -rpath flag with a separated argument.
13674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13675
13676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13677 # resulting binary.
13678 hardcode_direct=$hardcode_direct_CXX
13679
13680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13681 # resulting binary.
13682 hardcode_minus_L=$hardcode_minus_L_CXX
13683
13684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13685 # the resulting binary.
13686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13687
13688 # Set to yes if building a shared library automatically hardcodes DIR into the library
13689 # and all subsequent libraries and executables linked against it.
13690 hardcode_automatic=$hardcode_automatic_CXX
13691
13692 # Variables whose values should be saved in libtool wrapper scripts and
13693 # restored at relink time.
13694 variables_saved_for_relink="$variables_saved_for_relink"
13695
13696 # Whether libtool must link a program against all its dependency libraries.
13697 link_all_deplibs=$link_all_deplibs_CXX
13698
13699 # Compile-time system search path for libraries
13700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13701
13702 # Run-time system search path for libraries
13703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13704
13705 # Fix the shell variable \$srcfile for the compiler.
13706 fix_srcfile_path="$fix_srcfile_path_CXX"
13707
13708 # Set to yes if exported symbols are required.
13709 always_export_symbols=$always_export_symbols_CXX
13710
13711 # The commands to list exported symbols.
13712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13713
13714 # The commands to extract the exported symbol list from a shared archive.
13715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13716
13717 # Symbols that should not be listed in the preloaded symbols.
13718 exclude_expsyms=$lt_exclude_expsyms_CXX
13719
13720 # Symbols that must always be exported.
13721 include_expsyms=$lt_include_expsyms_CXX
13722
13723 # ### END LIBTOOL TAG CONFIG: $tagname
13724
13725 __EOF__
13726
13727
13728 else
13729   # If there is no Makefile yet, we rely on a make rule to execute
13730   # `config.status --recheck' to rerun these tests and create the
13731   # libtool script then.
13732   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13733   if test -f "$ltmain_in"; then
13734     test -f Makefile && make "$ltmain"
13735   fi
13736 fi
13737
13738
13739 ac_ext=c
13740 ac_cpp='$CPP $CPPFLAGS'
13741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13744
13745 CC=$lt_save_CC
13746 LDCXX=$LD
13747 LD=$lt_save_LD
13748 GCC=$lt_save_GCC
13749 with_gnu_ldcxx=$with_gnu_ld
13750 with_gnu_ld=$lt_save_with_gnu_ld
13751 lt_cv_path_LDCXX=$lt_cv_path_LD
13752 lt_cv_path_LD=$lt_save_path_LD
13753 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13754 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13755
13756         else
13757           tagname=""
13758         fi
13759         ;;
13760
13761       F77)
13762         if test -n "$F77" && test "X$F77" != "Xno"; then
13763
13764 ac_ext=f
13765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13768
13769
13770 archive_cmds_need_lc_F77=no
13771 allow_undefined_flag_F77=
13772 always_export_symbols_F77=no
13773 archive_expsym_cmds_F77=
13774 export_dynamic_flag_spec_F77=
13775 hardcode_direct_F77=no
13776 hardcode_libdir_flag_spec_F77=
13777 hardcode_libdir_flag_spec_ld_F77=
13778 hardcode_libdir_separator_F77=
13779 hardcode_minus_L_F77=no
13780 hardcode_automatic_F77=no
13781 module_cmds_F77=
13782 module_expsym_cmds_F77=
13783 link_all_deplibs_F77=unknown
13784 old_archive_cmds_F77=$old_archive_cmds
13785 no_undefined_flag_F77=
13786 whole_archive_flag_spec_F77=
13787 enable_shared_with_static_runtimes_F77=no
13788
13789 # Source file extension for f77 test sources.
13790 ac_ext=f
13791
13792 # Object file extension for compiled f77 test sources.
13793 objext=o
13794 objext_F77=$objext
13795
13796 # Code to be used in simple compile tests
13797 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13798
13799 # Code to be used in simple link tests
13800 lt_simple_link_test_code="      program t\n      end\n"
13801
13802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13803
13804 # If no C compiler was specified, use CC.
13805 LTCC=${LTCC-"$CC"}
13806
13807 # If no C compiler flags were specified, use CFLAGS.
13808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13809
13810 # Allow CC to be a program name with arguments.
13811 compiler=$CC
13812
13813
13814 # save warnings/boilerplate of simple test code
13815 ac_outfile=conftest.$ac_objext
13816 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13818 _lt_compiler_boilerplate=`cat conftest.err`
13819 $rm conftest*
13820
13821 ac_outfile=conftest.$ac_objext
13822 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13824 _lt_linker_boilerplate=`cat conftest.err`
13825 $rm conftest*
13826
13827
13828 # Allow CC to be a program name with arguments.
13829 lt_save_CC="$CC"
13830 CC=${F77-"f77"}
13831 compiler=$CC
13832 compiler_F77=$CC
13833 for cc_temp in $compiler""; do
13834   case $cc_temp in
13835     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13836     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13837     \-*) ;;
13838     *) break;;
13839   esac
13840 done
13841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13842
13843
13844 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13845 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13846 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13847 echo "${ECHO_T}$can_build_shared" >&6; }
13848
13849 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13850 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13851 test "$can_build_shared" = "no" && enable_shared=no
13852
13853 # On AIX, shared libraries and static libraries use the same namespace, and
13854 # are all built from PIC.
13855 case $host_os in
13856 aix3*)
13857   test "$enable_shared" = yes && enable_static=no
13858   if test -n "$RANLIB"; then
13859     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13860     postinstall_cmds='$RANLIB $lib'
13861   fi
13862   ;;
13863 aix4* | aix5*)
13864   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13865     test "$enable_shared" = yes && enable_static=no
13866   fi
13867   ;;
13868 esac
13869 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13870 echo "${ECHO_T}$enable_shared" >&6; }
13871
13872 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13873 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13874 # Make sure either enable_shared or enable_static is yes.
13875 test "$enable_shared" = yes || enable_static=yes
13876 { echo "$as_me:$LINENO: result: $enable_static" >&5
13877 echo "${ECHO_T}$enable_static" >&6; }
13878
13879 GCC_F77="$G77"
13880 LD_F77="$LD"
13881
13882 lt_prog_compiler_wl_F77=
13883 lt_prog_compiler_pic_F77=
13884 lt_prog_compiler_static_F77=
13885
13886 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13887 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13888
13889   if test "$GCC" = yes; then
13890     lt_prog_compiler_wl_F77='-Wl,'
13891     lt_prog_compiler_static_F77='-static'
13892
13893     case $host_os in
13894       aix*)
13895       # All AIX code is PIC.
13896       if test "$host_cpu" = ia64; then
13897         # AIX 5 now supports IA64 processor
13898         lt_prog_compiler_static_F77='-Bstatic'
13899       fi
13900       ;;
13901
13902     amigaos*)
13903       # FIXME: we need at least 68020 code to build shared libraries, but
13904       # adding the `-m68020' flag to GCC prevents building anything better,
13905       # like `-m68040'.
13906       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13907       ;;
13908
13909     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13910       # PIC is the default for these OSes.
13911       ;;
13912
13913     mingw* | pw32* | os2*)
13914       # This hack is so that the source file can tell whether it is being
13915       # built for inclusion in a dll (and should export symbols for example).
13916       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13917       ;;
13918
13919     darwin* | rhapsody*)
13920       # PIC is the default on this platform
13921       # Common symbols not allowed in MH_DYLIB files
13922       lt_prog_compiler_pic_F77='-fno-common'
13923       ;;
13924
13925     interix3*)
13926       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13927       # Instead, we relocate shared libraries at runtime.
13928       ;;
13929
13930     msdosdjgpp*)
13931       # Just because we use GCC doesn't mean we suddenly get shared libraries
13932       # on systems that don't support them.
13933       lt_prog_compiler_can_build_shared_F77=no
13934       enable_shared=no
13935       ;;
13936
13937     sysv4*MP*)
13938       if test -d /usr/nec; then
13939         lt_prog_compiler_pic_F77=-Kconform_pic
13940       fi
13941       ;;
13942
13943     hpux*)
13944       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13945       # not for PA HP-UX.
13946       case $host_cpu in
13947       hppa*64*|ia64*)
13948         # +Z the default
13949         ;;
13950       *)
13951         lt_prog_compiler_pic_F77='-fPIC'
13952         ;;
13953       esac
13954       ;;
13955
13956     *)
13957       lt_prog_compiler_pic_F77='-fPIC'
13958       ;;
13959     esac
13960   else
13961     # PORTME Check for flag to pass linker flags through the system compiler.
13962     case $host_os in
13963     aix*)
13964       lt_prog_compiler_wl_F77='-Wl,'
13965       if test "$host_cpu" = ia64; then
13966         # AIX 5 now supports IA64 processor
13967         lt_prog_compiler_static_F77='-Bstatic'
13968       else
13969         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13970       fi
13971       ;;
13972       darwin*)
13973         # PIC is the default on this platform
13974         # Common symbols not allowed in MH_DYLIB files
13975        case $cc_basename in
13976          xlc*)
13977          lt_prog_compiler_pic_F77='-qnocommon'
13978          lt_prog_compiler_wl_F77='-Wl,'
13979          ;;
13980        esac
13981        ;;
13982
13983     mingw* | pw32* | os2*)
13984       # This hack is so that the source file can tell whether it is being
13985       # built for inclusion in a dll (and should export symbols for example).
13986       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13987       ;;
13988
13989     hpux9* | hpux10* | hpux11*)
13990       lt_prog_compiler_wl_F77='-Wl,'
13991       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13992       # not for PA HP-UX.
13993       case $host_cpu in
13994       hppa*64*|ia64*)
13995         # +Z the default
13996         ;;
13997       *)
13998         lt_prog_compiler_pic_F77='+Z'
13999         ;;
14000       esac
14001       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14002       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14003       ;;
14004
14005     irix5* | irix6* | nonstopux*)
14006       lt_prog_compiler_wl_F77='-Wl,'
14007       # PIC (with -KPIC) is the default.
14008       lt_prog_compiler_static_F77='-non_shared'
14009       ;;
14010
14011     newsos6)
14012       lt_prog_compiler_pic_F77='-KPIC'
14013       lt_prog_compiler_static_F77='-Bstatic'
14014       ;;
14015
14016     linux*)
14017       case $cc_basename in
14018       icc* | ecc*)
14019         lt_prog_compiler_wl_F77='-Wl,'
14020         lt_prog_compiler_pic_F77='-KPIC'
14021         lt_prog_compiler_static_F77='-static'
14022         ;;
14023       pgcc* | pgf77* | pgf90* | pgf95*)
14024         # Portland Group compilers (*not* the Pentium gcc compiler,
14025         # which looks to be a dead project)
14026         lt_prog_compiler_wl_F77='-Wl,'
14027         lt_prog_compiler_pic_F77='-fpic'
14028         lt_prog_compiler_static_F77='-Bstatic'
14029         ;;
14030       ccc*)
14031         lt_prog_compiler_wl_F77='-Wl,'
14032         # All Alpha code is PIC.
14033         lt_prog_compiler_static_F77='-non_shared'
14034         ;;
14035       esac
14036       ;;
14037
14038     osf3* | osf4* | osf5*)
14039       lt_prog_compiler_wl_F77='-Wl,'
14040       # All OSF/1 code is PIC.
14041       lt_prog_compiler_static_F77='-non_shared'
14042       ;;
14043
14044     solaris*)
14045       lt_prog_compiler_pic_F77='-KPIC'
14046       lt_prog_compiler_static_F77='-Bstatic'
14047       case $cc_basename in
14048       f77* | f90* | f95*)
14049         lt_prog_compiler_wl_F77='-Qoption ld ';;
14050       *)
14051         lt_prog_compiler_wl_F77='-Wl,';;
14052       esac
14053       ;;
14054
14055     sunos4*)
14056       lt_prog_compiler_wl_F77='-Qoption ld '
14057       lt_prog_compiler_pic_F77='-PIC'
14058       lt_prog_compiler_static_F77='-Bstatic'
14059       ;;
14060
14061     sysv4 | sysv4.2uw2* | sysv4.3*)
14062       lt_prog_compiler_wl_F77='-Wl,'
14063       lt_prog_compiler_pic_F77='-KPIC'
14064       lt_prog_compiler_static_F77='-Bstatic'
14065       ;;
14066
14067     sysv4*MP*)
14068       if test -d /usr/nec ;then
14069         lt_prog_compiler_pic_F77='-Kconform_pic'
14070         lt_prog_compiler_static_F77='-Bstatic'
14071       fi
14072       ;;
14073
14074     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14075       lt_prog_compiler_wl_F77='-Wl,'
14076       lt_prog_compiler_pic_F77='-KPIC'
14077       lt_prog_compiler_static_F77='-Bstatic'
14078       ;;
14079
14080     unicos*)
14081       lt_prog_compiler_wl_F77='-Wl,'
14082       lt_prog_compiler_can_build_shared_F77=no
14083       ;;
14084
14085     uts4*)
14086       lt_prog_compiler_pic_F77='-pic'
14087       lt_prog_compiler_static_F77='-Bstatic'
14088       ;;
14089
14090     *)
14091       lt_prog_compiler_can_build_shared_F77=no
14092       ;;
14093     esac
14094   fi
14095
14096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14097 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14098
14099 #
14100 # Check to make sure the PIC flag actually works.
14101 #
14102 if test -n "$lt_prog_compiler_pic_F77"; then
14103
14104 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14106 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14107   echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109   lt_prog_compiler_pic_works_F77=no
14110   ac_outfile=conftest.$ac_objext
14111    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14112    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14113    # Insert the option either (1) after the last *FLAGS variable, or
14114    # (2) before a word containing "conftest.", or (3) at the end.
14115    # Note that $ac_compile itself does not contain backslashes and begins
14116    # with a dollar sign (not a hyphen), so the echo should work correctly.
14117    # The option is referenced via a variable to avoid confusing sed.
14118    lt_compile=`echo "$ac_compile" | $SED \
14119    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14121    -e 's:$: $lt_compiler_flag:'`
14122    (eval echo "\"\$as_me:14122: $lt_compile\"" >&5)
14123    (eval "$lt_compile" 2>conftest.err)
14124    ac_status=$?
14125    cat conftest.err >&5
14126    echo "$as_me:14126: \$? = $ac_status" >&5
14127    if (exit $ac_status) && test -s "$ac_outfile"; then
14128      # The compiler can only warn and ignore the option if not recognized
14129      # So say no if there are warnings other than the usual output.
14130      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14131      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14132      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14133        lt_prog_compiler_pic_works_F77=yes
14134      fi
14135    fi
14136    $rm conftest*
14137
14138 fi
14139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14140 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14141
14142 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14143     case $lt_prog_compiler_pic_F77 in
14144      "" | " "*) ;;
14145      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14146      esac
14147 else
14148     lt_prog_compiler_pic_F77=
14149      lt_prog_compiler_can_build_shared_F77=no
14150 fi
14151
14152 fi
14153 case $host_os in
14154   # For platforms which do not support PIC, -DPIC is meaningless:
14155   *djgpp*)
14156     lt_prog_compiler_pic_F77=
14157     ;;
14158   *)
14159     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14160     ;;
14161 esac
14162
14163 #
14164 # Check to make sure the static flag actually works.
14165 #
14166 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14167 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14168 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14169 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14170   echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172   lt_prog_compiler_static_works_F77=no
14173    save_LDFLAGS="$LDFLAGS"
14174    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14175    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14176    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14177      # The linker can only warn and ignore the option if not recognized
14178      # So say no if there are warnings
14179      if test -s conftest.err; then
14180        # Append any errors to the config.log.
14181        cat conftest.err 1>&5
14182        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14183        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14184        if diff conftest.exp conftest.er2 >/dev/null; then
14185          lt_prog_compiler_static_works_F77=yes
14186        fi
14187      else
14188        lt_prog_compiler_static_works_F77=yes
14189      fi
14190    fi
14191    $rm conftest*
14192    LDFLAGS="$save_LDFLAGS"
14193
14194 fi
14195 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14196 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14197
14198 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14199     :
14200 else
14201     lt_prog_compiler_static_F77=
14202 fi
14203
14204
14205 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14207 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   lt_cv_prog_compiler_c_o_F77=no
14211    $rm -r conftest 2>/dev/null
14212    mkdir conftest
14213    cd conftest
14214    mkdir out
14215    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14216
14217    lt_compiler_flag="-o out/conftest2.$ac_objext"
14218    # Insert the option either (1) after the last *FLAGS variable, or
14219    # (2) before a word containing "conftest.", or (3) at the end.
14220    # Note that $ac_compile itself does not contain backslashes and begins
14221    # with a dollar sign (not a hyphen), so the echo should work correctly.
14222    lt_compile=`echo "$ac_compile" | $SED \
14223    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14225    -e 's:$: $lt_compiler_flag:'`
14226    (eval echo "\"\$as_me:14226: $lt_compile\"" >&5)
14227    (eval "$lt_compile" 2>out/conftest.err)
14228    ac_status=$?
14229    cat out/conftest.err >&5
14230    echo "$as_me:14230: \$? = $ac_status" >&5
14231    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14232    then
14233      # The compiler can only warn and ignore the option if not recognized
14234      # So say no if there are warnings
14235      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14236      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14237      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14238        lt_cv_prog_compiler_c_o_F77=yes
14239      fi
14240    fi
14241    chmod u+w . 2>&5
14242    $rm conftest*
14243    # SGI C++ compiler will create directory out/ii_files/ for
14244    # template instantiation
14245    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14246    $rm out/* && rmdir out
14247    cd ..
14248    rmdir conftest
14249    $rm conftest*
14250
14251 fi
14252 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14254
14255
14256 hard_links="nottested"
14257 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14258   # do not overwrite the value of need_locks provided by the user
14259   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14260 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14261   hard_links=yes
14262   $rm conftest*
14263   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14264   touch conftest.a
14265   ln conftest.a conftest.b 2>&5 || hard_links=no
14266   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14267   { echo "$as_me:$LINENO: result: $hard_links" >&5
14268 echo "${ECHO_T}$hard_links" >&6; }
14269   if test "$hard_links" = no; then
14270     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14271 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14272     need_locks=warn
14273   fi
14274 else
14275   need_locks=no
14276 fi
14277
14278 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14280
14281   runpath_var=
14282   allow_undefined_flag_F77=
14283   enable_shared_with_static_runtimes_F77=no
14284   archive_cmds_F77=
14285   archive_expsym_cmds_F77=
14286   old_archive_From_new_cmds_F77=
14287   old_archive_from_expsyms_cmds_F77=
14288   export_dynamic_flag_spec_F77=
14289   whole_archive_flag_spec_F77=
14290   thread_safe_flag_spec_F77=
14291   hardcode_libdir_flag_spec_F77=
14292   hardcode_libdir_flag_spec_ld_F77=
14293   hardcode_libdir_separator_F77=
14294   hardcode_direct_F77=no
14295   hardcode_minus_L_F77=no
14296   hardcode_shlibpath_var_F77=unsupported
14297   link_all_deplibs_F77=unknown
14298   hardcode_automatic_F77=no
14299   module_cmds_F77=
14300   module_expsym_cmds_F77=
14301   always_export_symbols_F77=no
14302   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14303   # include_expsyms should be a list of space-separated symbols to be *always*
14304   # included in the symbol list
14305   include_expsyms_F77=
14306   # exclude_expsyms can be an extended regexp of symbols to exclude
14307   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14308   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14309   # as well as any symbol that contains `d'.
14310   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14311   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14312   # platforms (ab)use it in PIC code, but their linkers get confused if
14313   # the symbol is explicitly referenced.  Since portable code cannot
14314   # rely on this symbol name, it's probably fine to never include it in
14315   # preloaded symbol tables.
14316   extract_expsyms_cmds=
14317   # Just being paranoid about ensuring that cc_basename is set.
14318   for cc_temp in $compiler""; do
14319   case $cc_temp in
14320     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14321     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14322     \-*) ;;
14323     *) break;;
14324   esac
14325 done
14326 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14327
14328   case $host_os in
14329   cygwin* | mingw* | pw32*)
14330     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14331     # When not using gcc, we currently assume that we are using
14332     # Microsoft Visual C++.
14333     if test "$GCC" != yes; then
14334       with_gnu_ld=no
14335     fi
14336     ;;
14337   interix*)
14338     # we just hope/assume this is gcc and not c89 (= MSVC++)
14339     with_gnu_ld=yes
14340     ;;
14341   openbsd*)
14342     with_gnu_ld=no
14343     ;;
14344   esac
14345
14346   ld_shlibs_F77=yes
14347   if test "$with_gnu_ld" = yes; then
14348     # If archive_cmds runs LD, not CC, wlarc should be empty
14349     wlarc='${wl}'
14350
14351     # Set some defaults for GNU ld with shared library support. These
14352     # are reset later if shared libraries are not supported. Putting them
14353     # here allows them to be overridden if necessary.
14354     runpath_var=LD_RUN_PATH
14355     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14356     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14357     # ancient GNU ld didn't support --whole-archive et. al.
14358     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14359         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14360       else
14361         whole_archive_flag_spec_F77=
14362     fi
14363     supports_anon_versioning=no
14364     case `$LD -v 2>/dev/null` in
14365       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14366       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14367       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14368       *\ 2.11.*) ;; # other 2.11 versions
14369       *) supports_anon_versioning=yes ;;
14370     esac
14371
14372     # See if GNU ld supports shared libraries.
14373     case $host_os in
14374     aix3* | aix4* | aix5*)
14375       # On AIX/PPC, the GNU linker is very broken
14376       if test "$host_cpu" != ia64; then
14377         ld_shlibs_F77=no
14378         cat <<EOF 1>&2
14379
14380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14381 *** to be unable to reliably create shared libraries on AIX.
14382 *** Therefore, libtool is disabling shared libraries support.  If you
14383 *** really care for shared libraries, you may want to modify your PATH
14384 *** so that a non-GNU linker is found, and then restart.
14385
14386 EOF
14387       fi
14388       ;;
14389
14390     amigaos*)
14391       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)'
14392       hardcode_libdir_flag_spec_F77='-L$libdir'
14393       hardcode_minus_L_F77=yes
14394
14395       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14396       # that the semantics of dynamic libraries on AmigaOS, at least up
14397       # to version 4, is to share data among multiple programs linked
14398       # with the same dynamic library.  Since this doesn't match the
14399       # behavior of shared libraries on other platforms, we can't use
14400       # them.
14401       ld_shlibs_F77=no
14402       ;;
14403
14404     beos*)
14405       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14406         allow_undefined_flag_F77=unsupported
14407         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14408         # support --undefined.  This deserves some investigation.  FIXME
14409         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14410       else
14411         ld_shlibs_F77=no
14412       fi
14413       ;;
14414
14415     cygwin* | mingw* | pw32*)
14416       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14417       # as there is no search path for DLLs.
14418       hardcode_libdir_flag_spec_F77='-L$libdir'
14419       allow_undefined_flag_F77=unsupported
14420       always_export_symbols_F77=no
14421       enable_shared_with_static_runtimes_F77=yes
14422       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14423
14424       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14425         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14426         # If the export-symbols file already is a .def file (1st line
14427         # is EXPORTS), use it as is; otherwise, prepend...
14428         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14429           cp $export_symbols $output_objdir/$soname.def;
14430         else
14431           echo EXPORTS > $output_objdir/$soname.def;
14432           cat $export_symbols >> $output_objdir/$soname.def;
14433         fi~
14434         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14435       else
14436         ld_shlibs_F77=no
14437       fi
14438       ;;
14439
14440     interix3*)
14441       hardcode_direct_F77=no
14442       hardcode_shlibpath_var_F77=no
14443       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14444       export_dynamic_flag_spec_F77='${wl}-E'
14445       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14446       # Instead, shared libraries are loaded at an image base (0x10000000 by
14447       # default) and relocated if they conflict, which is a slow very memory
14448       # consuming and fragmenting process.  To avoid this, we pick a random,
14449       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14450       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14451       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'
14452       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'
14453       ;;
14454
14455     linux*)
14456       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14457         tmp_addflag=
14458         case $cc_basename,$host_cpu in
14459         pgcc*)                          # Portland Group C compiler
14460           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'
14461           tmp_addflag=' $pic_flag'
14462           ;;
14463         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14464           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'
14465           tmp_addflag=' $pic_flag -Mnomain' ;;
14466         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14467           tmp_addflag=' -i_dynamic' ;;
14468         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14469           tmp_addflag=' -i_dynamic -nofor_main' ;;
14470         ifc* | ifort*)                  # Intel Fortran compiler
14471           tmp_addflag=' -nofor_main' ;;
14472         esac
14473         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14474
14475         if test $supports_anon_versioning = yes; then
14476           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14477   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14478   $echo "local: *; };" >> $output_objdir/$libname.ver~
14479           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14480         fi
14481       else
14482         ld_shlibs_F77=no
14483       fi
14484       ;;
14485
14486     netbsd*)
14487       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14489         wlarc=
14490       else
14491         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14493       fi
14494       ;;
14495
14496     solaris*)
14497       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14498         ld_shlibs_F77=no
14499         cat <<EOF 1>&2
14500
14501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14502 *** create shared libraries on Solaris systems.  Therefore, libtool
14503 *** is disabling shared libraries support.  We urge you to upgrade GNU
14504 *** binutils to release 2.9.1 or newer.  Another option is to modify
14505 *** your PATH or compiler configuration so that the native linker is
14506 *** used, and then restart.
14507
14508 EOF
14509       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14510         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14511         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14512       else
14513         ld_shlibs_F77=no
14514       fi
14515       ;;
14516
14517     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14518       case `$LD -v 2>&1` in
14519         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14520         ld_shlibs_F77=no
14521         cat <<_LT_EOF 1>&2
14522
14523 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14524 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14525 *** is disabling shared libraries support.  We urge you to upgrade GNU
14526 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14527 *** your PATH or compiler configuration so that the native linker is
14528 *** used, and then restart.
14529
14530 _LT_EOF
14531         ;;
14532         *)
14533           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14535             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14536             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14537           else
14538             ld_shlibs_F77=no
14539           fi
14540         ;;
14541       esac
14542       ;;
14543
14544     sunos4*)
14545       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14546       wlarc=
14547       hardcode_direct_F77=yes
14548       hardcode_shlibpath_var_F77=no
14549       ;;
14550
14551     *)
14552       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14555       else
14556         ld_shlibs_F77=no
14557       fi
14558       ;;
14559     esac
14560
14561     if test "$ld_shlibs_F77" = no; then
14562       runpath_var=
14563       hardcode_libdir_flag_spec_F77=
14564       export_dynamic_flag_spec_F77=
14565       whole_archive_flag_spec_F77=
14566     fi
14567   else
14568     # PORTME fill in a description of your system's linker (not GNU ld)
14569     case $host_os in
14570     aix3*)
14571       allow_undefined_flag_F77=unsupported
14572       always_export_symbols_F77=yes
14573       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'
14574       # Note: this linker hardcodes the directories in LIBPATH if there
14575       # are no directories specified by -L.
14576       hardcode_minus_L_F77=yes
14577       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14578         # Neither direct hardcoding nor static linking is supported with a
14579         # broken collect2.
14580         hardcode_direct_F77=unsupported
14581       fi
14582       ;;
14583
14584     aix4* | aix5*)
14585       if test "$host_cpu" = ia64; then
14586         # On IA64, the linker does run time linking by default, so we don't
14587         # have to do anything special.
14588         aix_use_runtimelinking=no
14589         exp_sym_flag='-Bexport'
14590         no_entry_flag=""
14591       else
14592         # If we're using GNU nm, then we don't want the "-C" option.
14593         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14594         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14595           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'
14596         else
14597           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'
14598         fi
14599         aix_use_runtimelinking=no
14600
14601         # Test if we are trying to use run time linking or normal
14602         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14603         # need to do runtime linking.
14604         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14605           for ld_flag in $LDFLAGS; do
14606           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14607             aix_use_runtimelinking=yes
14608             break
14609           fi
14610           done
14611           ;;
14612         esac
14613
14614         exp_sym_flag='-bexport'
14615         no_entry_flag='-bnoentry'
14616       fi
14617
14618       # When large executables or shared objects are built, AIX ld can
14619       # have problems creating the table of contents.  If linking a library
14620       # or program results in "error TOC overflow" add -mminimal-toc to
14621       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14622       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14623
14624       archive_cmds_F77=''
14625       hardcode_direct_F77=yes
14626       hardcode_libdir_separator_F77=':'
14627       link_all_deplibs_F77=yes
14628
14629       if test "$GCC" = yes; then
14630         case $host_os in aix4.[012]|aix4.[012].*)
14631         # We only want to do this on AIX 4.2 and lower, the check
14632         # below for broken collect2 doesn't work under 4.3+
14633           collect2name=`${CC} -print-prog-name=collect2`
14634           if test -f "$collect2name" && \
14635            strings "$collect2name" | grep resolve_lib_name >/dev/null
14636           then
14637           # We have reworked collect2
14638           hardcode_direct_F77=yes
14639           else
14640           # We have old collect2
14641           hardcode_direct_F77=unsupported
14642           # It fails to find uninstalled libraries when the uninstalled
14643           # path is not listed in the libpath.  Setting hardcode_minus_L
14644           # to unsupported forces relinking
14645           hardcode_minus_L_F77=yes
14646           hardcode_libdir_flag_spec_F77='-L$libdir'
14647           hardcode_libdir_separator_F77=
14648           fi
14649           ;;
14650         esac
14651         shared_flag='-shared'
14652         if test "$aix_use_runtimelinking" = yes; then
14653           shared_flag="$shared_flag "'${wl}-G'
14654         fi
14655       else
14656         # not using gcc
14657         if test "$host_cpu" = ia64; then
14658         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14659         # chokes on -Wl,-G. The following line is correct:
14660           shared_flag='-G'
14661         else
14662           if test "$aix_use_runtimelinking" = yes; then
14663             shared_flag='${wl}-G'
14664           else
14665             shared_flag='${wl}-bM:SRE'
14666           fi
14667         fi
14668       fi
14669
14670       # It seems that -bexpall does not export symbols beginning with
14671       # underscore (_), so it is better to generate a list of symbols to export.
14672       always_export_symbols_F77=yes
14673       if test "$aix_use_runtimelinking" = yes; then
14674         # Warning - without using the other runtime loading flags (-brtl),
14675         # -berok will link without error, but may produce a broken library.
14676         allow_undefined_flag_F77='-berok'
14677        # Determine the default libpath from the value encoded in an empty executable.
14678        cat >conftest.$ac_ext <<_ACEOF
14679       program main
14680
14681       end
14682 _ACEOF
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (ac_try="$ac_link"
14685 case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_link") 2>conftest.er1
14691   ac_status=$?
14692   grep -v '^ *+' conftest.er1 >conftest.err
14693   rm -f conftest.er1
14694   cat conftest.err >&5
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); } && {
14697          test -z "$ac_f77_werror_flag" ||
14698          test ! -s conftest.err
14699        } && test -s conftest$ac_exeext &&
14700        $as_test_x conftest$ac_exeext; then
14701
14702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14703 }'`
14704 # Check for a 64-bit object if we didn't find anything.
14705 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14706 }'`; fi
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711
14712 fi
14713
14714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14715       conftest$ac_exeext conftest.$ac_ext
14716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14717
14718        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14719         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"
14720        else
14721         if test "$host_cpu" = ia64; then
14722           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14723           allow_undefined_flag_F77="-z nodefs"
14724           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"
14725         else
14726          # Determine the default libpath from the value encoded in an empty executable.
14727          cat >conftest.$ac_ext <<_ACEOF
14728       program main
14729
14730       end
14731 _ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_link") 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } && {
14746          test -z "$ac_f77_werror_flag" ||
14747          test ! -s conftest.err
14748        } && test -s conftest$ac_exeext &&
14749        $as_test_x conftest$ac_exeext; then
14750
14751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14752 }'`
14753 # Check for a 64-bit object if we didn't find anything.
14754 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14755 }'`; fi
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760
14761 fi
14762
14763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14764       conftest$ac_exeext conftest.$ac_ext
14765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14766
14767          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14768           # Warning - without using the other run time loading flags,
14769           # -berok will link without error, but may produce a broken library.
14770           no_undefined_flag_F77=' ${wl}-bernotok'
14771           allow_undefined_flag_F77=' ${wl}-berok'
14772           # Exported symbols can be pulled into shared objects from archives
14773           whole_archive_flag_spec_F77='$convenience'
14774           archive_cmds_need_lc_F77=yes
14775           # This is similar to how AIX traditionally builds its shared libraries.
14776           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'
14777         fi
14778       fi
14779       ;;
14780
14781     amigaos*)
14782       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)'
14783       hardcode_libdir_flag_spec_F77='-L$libdir'
14784       hardcode_minus_L_F77=yes
14785       # see comment about different semantics on the GNU ld section
14786       ld_shlibs_F77=no
14787       ;;
14788
14789     bsdi[45]*)
14790       export_dynamic_flag_spec_F77=-rdynamic
14791       ;;
14792
14793     cygwin* | mingw* | pw32*)
14794       # When not using gcc, we currently assume that we are using
14795       # Microsoft Visual C++.
14796       # hardcode_libdir_flag_spec is actually meaningless, as there is
14797       # no search path for DLLs.
14798       hardcode_libdir_flag_spec_F77=' '
14799       allow_undefined_flag_F77=unsupported
14800       # Tell ltmain to make .lib files, not .a files.
14801       libext=lib
14802       # Tell ltmain to make .dll files, not .so files.
14803       shrext_cmds=".dll"
14804       # FIXME: Setting linknames here is a bad hack.
14805       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14806       # The linker will automatically build a .lib file if we build a DLL.
14807       old_archive_From_new_cmds_F77='true'
14808       # FIXME: Should let the user specify the lib program.
14809       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14810       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14811       enable_shared_with_static_runtimes_F77=yes
14812       ;;
14813
14814     darwin* | rhapsody*)
14815       case $host_os in
14816         rhapsody* | darwin1.[012])
14817          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14818          ;;
14819        *) # Darwin 1.3 on
14820          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14821            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14822          else
14823            case ${MACOSX_DEPLOYMENT_TARGET} in
14824              10.[012])
14825                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14826                ;;
14827              10.*)
14828                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14829                ;;
14830            esac
14831          fi
14832          ;;
14833       esac
14834       archive_cmds_need_lc_F77=no
14835       hardcode_direct_F77=no
14836       hardcode_automatic_F77=yes
14837       hardcode_shlibpath_var_F77=unsupported
14838       whole_archive_flag_spec_F77=''
14839       link_all_deplibs_F77=yes
14840     if test "$GCC" = yes ; then
14841         output_verbose_link_cmd='echo'
14842         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14843       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14844       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14845       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14846       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}'
14847     else
14848       case $cc_basename in
14849         xlc*)
14850          output_verbose_link_cmd='echo'
14851          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14852          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14853           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14854          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14855           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}'
14856           ;;
14857        *)
14858          ld_shlibs_F77=no
14859           ;;
14860       esac
14861     fi
14862       ;;
14863
14864     dgux*)
14865       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14866       hardcode_libdir_flag_spec_F77='-L$libdir'
14867       hardcode_shlibpath_var_F77=no
14868       ;;
14869
14870     freebsd1*)
14871       ld_shlibs_F77=no
14872       ;;
14873
14874     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14875     # support.  Future versions do this automatically, but an explicit c++rt0.o
14876     # does not break anything, and helps significantly (at the cost of a little
14877     # extra space).
14878     freebsd2.2*)
14879       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14880       hardcode_libdir_flag_spec_F77='-R$libdir'
14881       hardcode_direct_F77=yes
14882       hardcode_shlibpath_var_F77=no
14883       ;;
14884
14885     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14886     freebsd2*)
14887       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14888       hardcode_direct_F77=yes
14889       hardcode_minus_L_F77=yes
14890       hardcode_shlibpath_var_F77=no
14891       ;;
14892
14893     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14894     freebsd* | kfreebsd*-gnu | dragonfly*)
14895       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14896       hardcode_libdir_flag_spec_F77='-R$libdir'
14897       hardcode_direct_F77=yes
14898       hardcode_shlibpath_var_F77=no
14899       ;;
14900
14901     hpux9*)
14902       if test "$GCC" = yes; then
14903         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'
14904       else
14905         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'
14906       fi
14907       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14908       hardcode_libdir_separator_F77=:
14909       hardcode_direct_F77=yes
14910
14911       # hardcode_minus_L: Not really in the search PATH,
14912       # but as the default location of the library.
14913       hardcode_minus_L_F77=yes
14914       export_dynamic_flag_spec_F77='${wl}-E'
14915       ;;
14916
14917     hpux10*)
14918       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14919         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14920       else
14921         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14922       fi
14923       if test "$with_gnu_ld" = no; then
14924         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14925         hardcode_libdir_separator_F77=:
14926
14927         hardcode_direct_F77=yes
14928         export_dynamic_flag_spec_F77='${wl}-E'
14929
14930         # hardcode_minus_L: Not really in the search PATH,
14931         # but as the default location of the library.
14932         hardcode_minus_L_F77=yes
14933       fi
14934       ;;
14935
14936     hpux11*)
14937       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14938         case $host_cpu in
14939         hppa*64*)
14940           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14941           ;;
14942         ia64*)
14943           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14944           ;;
14945         *)
14946           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14947           ;;
14948         esac
14949       else
14950         case $host_cpu in
14951         hppa*64*)
14952           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14953           ;;
14954         ia64*)
14955           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14956           ;;
14957         *)
14958           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14959           ;;
14960         esac
14961       fi
14962       if test "$with_gnu_ld" = no; then
14963         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14964         hardcode_libdir_separator_F77=:
14965
14966         case $host_cpu in
14967         hppa*64*|ia64*)
14968           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14969           hardcode_direct_F77=no
14970           hardcode_shlibpath_var_F77=no
14971           ;;
14972         *)
14973           hardcode_direct_F77=yes
14974           export_dynamic_flag_spec_F77='${wl}-E'
14975
14976           # hardcode_minus_L: Not really in the search PATH,
14977           # but as the default location of the library.
14978           hardcode_minus_L_F77=yes
14979           ;;
14980         esac
14981       fi
14982       ;;
14983
14984     irix5* | irix6* | nonstopux*)
14985       if test "$GCC" = yes; then
14986         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'
14987       else
14988         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'
14989         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14990       fi
14991       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14992       hardcode_libdir_separator_F77=:
14993       link_all_deplibs_F77=yes
14994       ;;
14995
14996     netbsd*)
14997       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14998         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14999       else
15000         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15001       fi
15002       hardcode_libdir_flag_spec_F77='-R$libdir'
15003       hardcode_direct_F77=yes
15004       hardcode_shlibpath_var_F77=no
15005       ;;
15006
15007     newsos6)
15008       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15009       hardcode_direct_F77=yes
15010       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15011       hardcode_libdir_separator_F77=:
15012       hardcode_shlibpath_var_F77=no
15013       ;;
15014
15015     openbsd*)
15016       hardcode_direct_F77=yes
15017       hardcode_shlibpath_var_F77=no
15018       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15019         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15020         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15021         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15022         export_dynamic_flag_spec_F77='${wl}-E'
15023       else
15024        case $host_os in
15025          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15026            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15027            hardcode_libdir_flag_spec_F77='-R$libdir'
15028            ;;
15029          *)
15030            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15031            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15032            ;;
15033        esac
15034       fi
15035       ;;
15036
15037     os2*)
15038       hardcode_libdir_flag_spec_F77='-L$libdir'
15039       hardcode_minus_L_F77=yes
15040       allow_undefined_flag_F77=unsupported
15041       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'
15042       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15043       ;;
15044
15045     osf3*)
15046       if test "$GCC" = yes; then
15047         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15048         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'
15049       else
15050         allow_undefined_flag_F77=' -expect_unresolved \*'
15051         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'
15052       fi
15053       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15054       hardcode_libdir_separator_F77=:
15055       ;;
15056
15057     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15058       if test "$GCC" = yes; then
15059         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15060         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'
15061         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15062       else
15063         allow_undefined_flag_F77=' -expect_unresolved \*'
15064         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'
15065         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~
15066         $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'
15067
15068         # Both c and cxx compiler support -rpath directly
15069         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15070       fi
15071       hardcode_libdir_separator_F77=:
15072       ;;
15073
15074     solaris*)
15075       no_undefined_flag_F77=' -z text'
15076       if test "$GCC" = yes; then
15077         wlarc='${wl}'
15078         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15079         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15080           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15081       else
15082         wlarc=''
15083         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15085         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15086       fi
15087       hardcode_libdir_flag_spec_F77='-R$libdir'
15088       hardcode_shlibpath_var_F77=no
15089       case $host_os in
15090       solaris2.[0-5] | solaris2.[0-5].*) ;;
15091       *)
15092         # The compiler driver will combine linker options so we
15093         # cannot just pass the convience library names through
15094         # without $wl, iff we do not link with $LD.
15095         # Luckily, gcc supports the same syntax we need for Sun Studio.
15096         # Supported since Solaris 2.6 (maybe 2.5.1?)
15097         case $wlarc in
15098         '')
15099           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15100         *)
15101           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15102         esac ;;
15103       esac
15104       link_all_deplibs_F77=yes
15105       ;;
15106
15107     sunos4*)
15108       if test "x$host_vendor" = xsequent; then
15109         # Use $CC to link under sequent, because it throws in some extra .o
15110         # files that make .init and .fini sections work.
15111         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15112       else
15113         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15114       fi
15115       hardcode_libdir_flag_spec_F77='-L$libdir'
15116       hardcode_direct_F77=yes
15117       hardcode_minus_L_F77=yes
15118       hardcode_shlibpath_var_F77=no
15119       ;;
15120
15121     sysv4)
15122       case $host_vendor in
15123         sni)
15124           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125           hardcode_direct_F77=yes # is this really true???
15126         ;;
15127         siemens)
15128           ## LD is ld it makes a PLAMLIB
15129           ## CC just makes a GrossModule.
15130           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15131           reload_cmds_F77='$CC -r -o $output$reload_objs'
15132           hardcode_direct_F77=no
15133         ;;
15134         motorola)
15135           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15137         ;;
15138       esac
15139       runpath_var='LD_RUN_PATH'
15140       hardcode_shlibpath_var_F77=no
15141       ;;
15142
15143     sysv4.3*)
15144       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145       hardcode_shlibpath_var_F77=no
15146       export_dynamic_flag_spec_F77='-Bexport'
15147       ;;
15148
15149     sysv4*MP*)
15150       if test -d /usr/nec; then
15151         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152         hardcode_shlibpath_var_F77=no
15153         runpath_var=LD_RUN_PATH
15154         hardcode_runpath_var=yes
15155         ld_shlibs_F77=yes
15156       fi
15157       ;;
15158
15159     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15160       no_undefined_flag_F77='${wl}-z,text'
15161       archive_cmds_need_lc_F77=no
15162       hardcode_shlibpath_var_F77=no
15163       runpath_var='LD_RUN_PATH'
15164
15165       if test "$GCC" = yes; then
15166         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168       else
15169         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171       fi
15172       ;;
15173
15174     sysv5* | sco3.2v5* | sco5v6*)
15175       # Note: We can NOT use -z defs as we might desire, because we do not
15176       # link with -lc, and that would cause any symbols used from libc to
15177       # always be unresolved, which means just about no library would
15178       # ever link correctly.  If we're not using GNU ld we use -z text
15179       # though, which does catch some bad symbols but isn't as heavy-handed
15180       # as -z defs.
15181       no_undefined_flag_F77='${wl}-z,text'
15182       allow_undefined_flag_F77='${wl}-z,nodefs'
15183       archive_cmds_need_lc_F77=no
15184       hardcode_shlibpath_var_F77=no
15185       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15186       hardcode_libdir_separator_F77=':'
15187       link_all_deplibs_F77=yes
15188       export_dynamic_flag_spec_F77='${wl}-Bexport'
15189       runpath_var='LD_RUN_PATH'
15190
15191       if test "$GCC" = yes; then
15192         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194       else
15195         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197       fi
15198       ;;
15199
15200     uts4*)
15201       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202       hardcode_libdir_flag_spec_F77='-L$libdir'
15203       hardcode_shlibpath_var_F77=no
15204       ;;
15205
15206     *)
15207       ld_shlibs_F77=no
15208       ;;
15209     esac
15210   fi
15211
15212 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15213 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15214 test "$ld_shlibs_F77" = no && can_build_shared=no
15215
15216 #
15217 # Do we need to explicitly link libc?
15218 #
15219 case "x$archive_cmds_need_lc_F77" in
15220 x|xyes)
15221   # Assume -lc should be added
15222   archive_cmds_need_lc_F77=yes
15223
15224   if test "$enable_shared" = yes && test "$GCC" = yes; then
15225     case $archive_cmds_F77 in
15226     *'~'*)
15227       # FIXME: we may have to deal with multi-command sequences.
15228       ;;
15229     '$CC '*)
15230       # Test whether the compiler implicitly links with -lc since on some
15231       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15232       # to ld, don't add -lc before -lgcc.
15233       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15234 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15235       $rm conftest*
15236       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15237
15238       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239   (eval $ac_compile) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); } 2>conftest.err; then
15243         soname=conftest
15244         lib=conftest
15245         libobjs=conftest.$ac_objext
15246         deplibs=
15247         wl=$lt_prog_compiler_wl_F77
15248         pic_flag=$lt_prog_compiler_pic_F77
15249         compiler_flags=-v
15250         linker_flags=-v
15251         verstring=
15252         output_objdir=.
15253         libname=conftest
15254         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15255         allow_undefined_flag_F77=
15256         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15257   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }
15261         then
15262           archive_cmds_need_lc_F77=no
15263         else
15264           archive_cmds_need_lc_F77=yes
15265         fi
15266         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15267       else
15268         cat conftest.err 1>&5
15269       fi
15270       $rm conftest*
15271       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15272 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15273       ;;
15274     esac
15275   fi
15276   ;;
15277 esac
15278
15279 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15281 library_names_spec=
15282 libname_spec='lib$name'
15283 soname_spec=
15284 shrext_cmds=".so"
15285 postinstall_cmds=
15286 postuninstall_cmds=
15287 finish_cmds=
15288 finish_eval=
15289 shlibpath_var=
15290 shlibpath_overrides_runpath=unknown
15291 version_type=none
15292 dynamic_linker="$host_os ld.so"
15293 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15294 if test "$GCC" = yes; then
15295   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15296   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15297     # if the path contains ";" then we assume it to be the separator
15298     # otherwise default to the standard path separator (i.e. ":") - it is
15299     # assumed that no part of a normal pathname contains ";" but that should
15300     # okay in the real world where ";" in dirpaths is itself problematic.
15301     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302   else
15303     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15304   fi
15305 else
15306   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15307 fi
15308 need_lib_prefix=unknown
15309 hardcode_into_libs=no
15310
15311 # when you set need_version to no, make sure it does not cause -set_version
15312 # flags to be left without arguments
15313 need_version=unknown
15314
15315 case $host_os in
15316 aix3*)
15317   version_type=linux
15318   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15319   shlibpath_var=LIBPATH
15320
15321   # AIX 3 has no versioning support, so we append a major version to the name.
15322   soname_spec='${libname}${release}${shared_ext}$major'
15323   ;;
15324
15325 aix4* | aix5*)
15326   version_type=linux
15327   need_lib_prefix=no
15328   need_version=no
15329   hardcode_into_libs=yes
15330   if test "$host_cpu" = ia64; then
15331     # AIX 5 supports IA64
15332     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15333     shlibpath_var=LD_LIBRARY_PATH
15334   else
15335     # With GCC up to 2.95.x, collect2 would create an import file
15336     # for dependence libraries.  The import file would start with
15337     # the line `#! .'.  This would cause the generated library to
15338     # depend on `.', always an invalid library.  This was fixed in
15339     # development snapshots of GCC prior to 3.0.
15340     case $host_os in
15341       aix4 | aix4.[01] | aix4.[01].*)
15342       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15343            echo ' yes '
15344            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15345         :
15346       else
15347         can_build_shared=no
15348       fi
15349       ;;
15350     esac
15351     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15352     # soname into executable. Probably we can add versioning support to
15353     # collect2, so additional links can be useful in future.
15354     if test "$aix_use_runtimelinking" = yes; then
15355       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15356       # instead of lib<name>.a to let people know that these are not
15357       # typical AIX shared libraries.
15358       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359     else
15360       # We preserve .a as extension for shared libraries through AIX4.2
15361       # and later when we are not doing run time linking.
15362       library_names_spec='${libname}${release}.a $libname.a'
15363       soname_spec='${libname}${release}${shared_ext}$major'
15364     fi
15365     shlibpath_var=LIBPATH
15366   fi
15367   ;;
15368
15369 amigaos*)
15370   library_names_spec='$libname.ixlibrary $libname.a'
15371   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15372   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'
15373   ;;
15374
15375 beos*)
15376   library_names_spec='${libname}${shared_ext}'
15377   dynamic_linker="$host_os ld.so"
15378   shlibpath_var=LIBRARY_PATH
15379   ;;
15380
15381 bsdi[45]*)
15382   version_type=linux
15383   need_version=no
15384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385   soname_spec='${libname}${release}${shared_ext}$major'
15386   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15387   shlibpath_var=LD_LIBRARY_PATH
15388   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15389   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15390   # the default ld.so.conf also contains /usr/contrib/lib and
15391   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15392   # libtool to hard-code these into programs
15393   ;;
15394
15395 cygwin* | mingw* | pw32*)
15396   version_type=windows
15397   shrext_cmds=".dll"
15398   need_version=no
15399   need_lib_prefix=no
15400
15401   case $GCC,$host_os in
15402   yes,cygwin* | yes,mingw* | yes,pw32*)
15403     library_names_spec='$libname.dll.a'
15404     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15405     postinstall_cmds='base_file=`basename \${file}`~
15406       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15407       dldir=$destdir/`dirname \$dlpath`~
15408       test -d \$dldir || mkdir -p \$dldir~
15409       $install_prog $dir/$dlname \$dldir/$dlname~
15410       chmod a+x \$dldir/$dlname'
15411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15412       dlpath=$dir/\$dldll~
15413        $rm \$dlpath'
15414     shlibpath_overrides_runpath=yes
15415
15416     case $host_os in
15417     cygwin*)
15418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15420       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15421       ;;
15422     mingw*)
15423       # MinGW DLLs use traditional 'lib' prefix
15424       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15425       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15426       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15427         # It is most probably a Windows format PATH printed by
15428         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15429         # path with ; separators, and with drive letters. We can handle the
15430         # drive letters (cygwin fileutils understands them), so leave them,
15431         # especially as we might pass files found there to a mingw objdump,
15432         # which wouldn't understand a cygwinified path. Ahh.
15433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15434       else
15435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15436       fi
15437       ;;
15438     pw32*)
15439       # pw32 DLLs use 'pw' prefix rather than 'lib'
15440       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15441       ;;
15442     esac
15443     ;;
15444
15445   *)
15446     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15447     ;;
15448   esac
15449   dynamic_linker='Win32 ld.exe'
15450   # FIXME: first we should search . and the directory the executable is in
15451   shlibpath_var=PATH
15452   ;;
15453
15454 darwin* | rhapsody*)
15455   dynamic_linker="$host_os dyld"
15456   version_type=darwin
15457   need_lib_prefix=no
15458   need_version=no
15459   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15460   soname_spec='${libname}${release}${major}$shared_ext'
15461   shlibpath_overrides_runpath=yes
15462   shlibpath_var=DYLD_LIBRARY_PATH
15463   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15464   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15465   if test "$GCC" = yes; then
15466     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15467   else
15468     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15469   fi
15470   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15471   ;;
15472
15473 dgux*)
15474   version_type=linux
15475   need_lib_prefix=no
15476   need_version=no
15477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15478   soname_spec='${libname}${release}${shared_ext}$major'
15479   shlibpath_var=LD_LIBRARY_PATH
15480   ;;
15481
15482 freebsd1*)
15483   dynamic_linker=no
15484   ;;
15485
15486 kfreebsd*-gnu)
15487   version_type=linux
15488   need_lib_prefix=no
15489   need_version=no
15490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   shlibpath_var=LD_LIBRARY_PATH
15493   shlibpath_overrides_runpath=no
15494   hardcode_into_libs=yes
15495   dynamic_linker='GNU ld.so'
15496   ;;
15497
15498 freebsd* | dragonfly*)
15499   # DragonFly does not have aout.  When/if they implement a new
15500   # versioning mechanism, adjust this.
15501   if test -x /usr/bin/objformat; then
15502     objformat=`/usr/bin/objformat`
15503   else
15504     case $host_os in
15505     freebsd[123]*) objformat=aout ;;
15506     *) objformat=elf ;;
15507     esac
15508   fi
15509   version_type=freebsd-$objformat
15510   case $version_type in
15511     freebsd-elf*)
15512       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15513       need_version=no
15514       need_lib_prefix=no
15515       ;;
15516     freebsd-*)
15517       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15518       need_version=yes
15519       ;;
15520   esac
15521   shlibpath_var=LD_LIBRARY_PATH
15522   case $host_os in
15523   freebsd2*)
15524     shlibpath_overrides_runpath=yes
15525     ;;
15526   freebsd3.[01]* | freebsdelf3.[01]*)
15527     shlibpath_overrides_runpath=yes
15528     hardcode_into_libs=yes
15529     ;;
15530   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15531   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15532     shlibpath_overrides_runpath=no
15533     hardcode_into_libs=yes
15534     ;;
15535   freebsd*) # from 4.6 on
15536     shlibpath_overrides_runpath=yes
15537     hardcode_into_libs=yes
15538     ;;
15539   esac
15540   ;;
15541
15542 gnu*)
15543   version_type=linux
15544   need_lib_prefix=no
15545   need_version=no
15546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15547   soname_spec='${libname}${release}${shared_ext}$major'
15548   shlibpath_var=LD_LIBRARY_PATH
15549   hardcode_into_libs=yes
15550   ;;
15551
15552 hpux9* | hpux10* | hpux11*)
15553   # Give a soname corresponding to the major version so that dld.sl refuses to
15554   # link against other versions.
15555   version_type=sunos
15556   need_lib_prefix=no
15557   need_version=no
15558   case $host_cpu in
15559   ia64*)
15560     shrext_cmds='.so'
15561     hardcode_into_libs=yes
15562     dynamic_linker="$host_os dld.so"
15563     shlibpath_var=LD_LIBRARY_PATH
15564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566     soname_spec='${libname}${release}${shared_ext}$major'
15567     if test "X$HPUX_IA64_MODE" = X32; then
15568       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15569     else
15570       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15571     fi
15572     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15573     ;;
15574    hppa*64*)
15575      shrext_cmds='.sl'
15576      hardcode_into_libs=yes
15577      dynamic_linker="$host_os dld.sl"
15578      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15579      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15580      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581      soname_spec='${libname}${release}${shared_ext}$major'
15582      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15583      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15584      ;;
15585    *)
15586     shrext_cmds='.sl'
15587     dynamic_linker="$host_os dld.sl"
15588     shlibpath_var=SHLIB_PATH
15589     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15591     soname_spec='${libname}${release}${shared_ext}$major'
15592     ;;
15593   esac
15594   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15595   postinstall_cmds='chmod 555 $lib'
15596   ;;
15597
15598 interix3*)
15599   version_type=linux
15600   need_lib_prefix=no
15601   need_version=no
15602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15603   soname_spec='${libname}${release}${shared_ext}$major'
15604   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15605   shlibpath_var=LD_LIBRARY_PATH
15606   shlibpath_overrides_runpath=no
15607   hardcode_into_libs=yes
15608   ;;
15609
15610 irix5* | irix6* | nonstopux*)
15611   case $host_os in
15612     nonstopux*) version_type=nonstopux ;;
15613     *)
15614         if test "$lt_cv_prog_gnu_ld" = yes; then
15615                 version_type=linux
15616         else
15617                 version_type=irix
15618         fi ;;
15619   esac
15620   need_lib_prefix=no
15621   need_version=no
15622   soname_spec='${libname}${release}${shared_ext}$major'
15623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15624   case $host_os in
15625   irix5* | nonstopux*)
15626     libsuff= shlibsuff=
15627     ;;
15628   *)
15629     case $LD in # libtool.m4 will add one of these switches to LD
15630     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15631       libsuff= shlibsuff= libmagic=32-bit;;
15632     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15633       libsuff=32 shlibsuff=N32 libmagic=N32;;
15634     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15635       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15636     *) libsuff= shlibsuff= libmagic=never-match;;
15637     esac
15638     ;;
15639   esac
15640   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15641   shlibpath_overrides_runpath=no
15642   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15643   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15644   hardcode_into_libs=yes
15645   ;;
15646
15647 # No shared lib support for Linux oldld, aout, or coff.
15648 linux*oldld* | linux*aout* | linux*coff*)
15649   dynamic_linker=no
15650   ;;
15651
15652 # This must be Linux ELF.
15653 linux*)
15654   version_type=linux
15655   need_lib_prefix=no
15656   need_version=no
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658   soname_spec='${libname}${release}${shared_ext}$major'
15659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15660   shlibpath_var=LD_LIBRARY_PATH
15661   shlibpath_overrides_runpath=no
15662   # This implies no fast_install, which is unacceptable.
15663   # Some rework will be needed to allow for fast_install
15664   # before this can be enabled.
15665   hardcode_into_libs=yes
15666
15667   # Append ld.so.conf contents to the search path
15668   if test -f /etc/ld.so.conf; then
15669     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15670     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15671   fi
15672
15673   # We used to test for /lib/ld.so.1 and disable shared libraries on
15674   # powerpc, because MkLinux only supported shared libraries with the
15675   # GNU dynamic linker.  Since this was broken with cross compilers,
15676   # most powerpc-linux boxes support dynamic linking these days and
15677   # people can always --disable-shared, the test was removed, and we
15678   # assume the GNU/Linux dynamic linker is in use.
15679   dynamic_linker='GNU/Linux ld.so'
15680   ;;
15681
15682 knetbsd*-gnu)
15683   version_type=linux
15684   need_lib_prefix=no
15685   need_version=no
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15687   soname_spec='${libname}${release}${shared_ext}$major'
15688   shlibpath_var=LD_LIBRARY_PATH
15689   shlibpath_overrides_runpath=no
15690   hardcode_into_libs=yes
15691   dynamic_linker='GNU ld.so'
15692   ;;
15693
15694 netbsd*)
15695   version_type=sunos
15696   need_lib_prefix=no
15697   need_version=no
15698   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15700     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15701     dynamic_linker='NetBSD (a.out) ld.so'
15702   else
15703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15704     soname_spec='${libname}${release}${shared_ext}$major'
15705     dynamic_linker='NetBSD ld.elf_so'
15706   fi
15707   shlibpath_var=LD_LIBRARY_PATH
15708   shlibpath_overrides_runpath=yes
15709   hardcode_into_libs=yes
15710   ;;
15711
15712 newsos6)
15713   version_type=linux
15714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   shlibpath_overrides_runpath=yes
15717   ;;
15718
15719 nto-qnx*)
15720   version_type=linux
15721   need_lib_prefix=no
15722   need_version=no
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   soname_spec='${libname}${release}${shared_ext}$major'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   shlibpath_overrides_runpath=yes
15727   ;;
15728
15729 openbsd*)
15730   version_type=sunos
15731   sys_lib_dlsearch_path_spec="/usr/lib"
15732   need_lib_prefix=no
15733   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15734   case $host_os in
15735     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15736     *)                         need_version=no  ;;
15737   esac
15738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15739   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15740   shlibpath_var=LD_LIBRARY_PATH
15741   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15742     case $host_os in
15743       openbsd2.[89] | openbsd2.[89].*)
15744         shlibpath_overrides_runpath=no
15745         ;;
15746       *)
15747         shlibpath_overrides_runpath=yes
15748         ;;
15749       esac
15750   else
15751     shlibpath_overrides_runpath=yes
15752   fi
15753   ;;
15754
15755 os2*)
15756   libname_spec='$name'
15757   shrext_cmds=".dll"
15758   need_lib_prefix=no
15759   library_names_spec='$libname${shared_ext} $libname.a'
15760   dynamic_linker='OS/2 ld.exe'
15761   shlibpath_var=LIBPATH
15762   ;;
15763
15764 osf3* | osf4* | osf5*)
15765   version_type=osf
15766   need_lib_prefix=no
15767   need_version=no
15768   soname_spec='${libname}${release}${shared_ext}$major'
15769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770   shlibpath_var=LD_LIBRARY_PATH
15771   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15772   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15773   ;;
15774
15775 solaris*)
15776   version_type=linux
15777   need_lib_prefix=no
15778   need_version=no
15779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780   soname_spec='${libname}${release}${shared_ext}$major'
15781   shlibpath_var=LD_LIBRARY_PATH
15782   shlibpath_overrides_runpath=yes
15783   hardcode_into_libs=yes
15784   # ldd complains unless libraries are executable
15785   postinstall_cmds='chmod +x $lib'
15786   ;;
15787
15788 sunos4*)
15789   version_type=sunos
15790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15791   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15792   shlibpath_var=LD_LIBRARY_PATH
15793   shlibpath_overrides_runpath=yes
15794   if test "$with_gnu_ld" = yes; then
15795     need_lib_prefix=no
15796   fi
15797   need_version=yes
15798   ;;
15799
15800 sysv4 | sysv4.3*)
15801   version_type=linux
15802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15803   soname_spec='${libname}${release}${shared_ext}$major'
15804   shlibpath_var=LD_LIBRARY_PATH
15805   case $host_vendor in
15806     sni)
15807       shlibpath_overrides_runpath=no
15808       need_lib_prefix=no
15809       export_dynamic_flag_spec='${wl}-Blargedynsym'
15810       runpath_var=LD_RUN_PATH
15811       ;;
15812     siemens)
15813       need_lib_prefix=no
15814       ;;
15815     motorola)
15816       need_lib_prefix=no
15817       need_version=no
15818       shlibpath_overrides_runpath=no
15819       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15820       ;;
15821   esac
15822   ;;
15823
15824 sysv4*MP*)
15825   if test -d /usr/nec ;then
15826     version_type=linux
15827     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15828     soname_spec='$libname${shared_ext}.$major'
15829     shlibpath_var=LD_LIBRARY_PATH
15830   fi
15831   ;;
15832
15833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15834   version_type=freebsd-elf
15835   need_lib_prefix=no
15836   need_version=no
15837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15838   soname_spec='${libname}${release}${shared_ext}$major'
15839   shlibpath_var=LD_LIBRARY_PATH
15840   hardcode_into_libs=yes
15841   if test "$with_gnu_ld" = yes; then
15842     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15843     shlibpath_overrides_runpath=no
15844   else
15845     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15846     shlibpath_overrides_runpath=yes
15847     case $host_os in
15848       sco3.2v5*)
15849         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15850         ;;
15851     esac
15852   fi
15853   sys_lib_dlsearch_path_spec='/usr/lib'
15854   ;;
15855
15856 uts4*)
15857   version_type=linux
15858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859   soname_spec='${libname}${release}${shared_ext}$major'
15860   shlibpath_var=LD_LIBRARY_PATH
15861   ;;
15862
15863 *)
15864   dynamic_linker=no
15865   ;;
15866 esac
15867 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15868 echo "${ECHO_T}$dynamic_linker" >&6; }
15869 test "$dynamic_linker" = no && can_build_shared=no
15870
15871 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15872 if test "$GCC" = yes; then
15873   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15874 fi
15875
15876 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15877 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15878 hardcode_action_F77=
15879 if test -n "$hardcode_libdir_flag_spec_F77" || \
15880    test -n "$runpath_var_F77" || \
15881    test "X$hardcode_automatic_F77" = "Xyes" ; then
15882
15883   # We can hardcode non-existant directories.
15884   if test "$hardcode_direct_F77" != no &&
15885      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15886      # have to relink, otherwise we might link with an installed library
15887      # when we should be linking with a yet-to-be-installed one
15888      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15889      test "$hardcode_minus_L_F77" != no; then
15890     # Linking always hardcodes the temporary library directory.
15891     hardcode_action_F77=relink
15892   else
15893     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15894     hardcode_action_F77=immediate
15895   fi
15896 else
15897   # We cannot hardcode anything, or else we can only hardcode existing
15898   # directories.
15899   hardcode_action_F77=unsupported
15900 fi
15901 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15902 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15903
15904 if test "$hardcode_action_F77" = relink; then
15905   # Fast installation is not supported
15906   enable_fast_install=no
15907 elif test "$shlibpath_overrides_runpath" = yes ||
15908      test "$enable_shared" = no; then
15909   # Fast installation is not necessary
15910   enable_fast_install=needless
15911 fi
15912
15913
15914 # The else clause should only fire when bootstrapping the
15915 # libtool distribution, otherwise you forgot to ship ltmain.sh
15916 # with your package, and you will get complaints that there are
15917 # no rules to generate ltmain.sh.
15918 if test -f "$ltmain"; then
15919   # See if we are running on zsh, and set the options which allow our commands through
15920   # without removal of \ escapes.
15921   if test -n "${ZSH_VERSION+set}" ; then
15922     setopt NO_GLOB_SUBST
15923   fi
15924   # Now quote all the things that may contain metacharacters while being
15925   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15926   # variables and quote the copies for generation of the libtool script.
15927   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15928     SED SHELL STRIP \
15929     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15930     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15931     deplibs_check_method reload_flag reload_cmds need_locks \
15932     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15933     lt_cv_sys_global_symbol_to_c_name_address \
15934     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15935     old_postinstall_cmds old_postuninstall_cmds \
15936     compiler_F77 \
15937     CC_F77 \
15938     LD_F77 \
15939     lt_prog_compiler_wl_F77 \
15940     lt_prog_compiler_pic_F77 \
15941     lt_prog_compiler_static_F77 \
15942     lt_prog_compiler_no_builtin_flag_F77 \
15943     export_dynamic_flag_spec_F77 \
15944     thread_safe_flag_spec_F77 \
15945     whole_archive_flag_spec_F77 \
15946     enable_shared_with_static_runtimes_F77 \
15947     old_archive_cmds_F77 \
15948     old_archive_from_new_cmds_F77 \
15949     predep_objects_F77 \
15950     postdep_objects_F77 \
15951     predeps_F77 \
15952     postdeps_F77 \
15953     compiler_lib_search_path_F77 \
15954     archive_cmds_F77 \
15955     archive_expsym_cmds_F77 \
15956     postinstall_cmds_F77 \
15957     postuninstall_cmds_F77 \
15958     old_archive_from_expsyms_cmds_F77 \
15959     allow_undefined_flag_F77 \
15960     no_undefined_flag_F77 \
15961     export_symbols_cmds_F77 \
15962     hardcode_libdir_flag_spec_F77 \
15963     hardcode_libdir_flag_spec_ld_F77 \
15964     hardcode_libdir_separator_F77 \
15965     hardcode_automatic_F77 \
15966     module_cmds_F77 \
15967     module_expsym_cmds_F77 \
15968     lt_cv_prog_compiler_c_o_F77 \
15969     exclude_expsyms_F77 \
15970     include_expsyms_F77; do
15971
15972     case $var in
15973     old_archive_cmds_F77 | \
15974     old_archive_from_new_cmds_F77 | \
15975     archive_cmds_F77 | \
15976     archive_expsym_cmds_F77 | \
15977     module_cmds_F77 | \
15978     module_expsym_cmds_F77 | \
15979     old_archive_from_expsyms_cmds_F77 | \
15980     export_symbols_cmds_F77 | \
15981     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15982     postinstall_cmds | postuninstall_cmds | \
15983     old_postinstall_cmds | old_postuninstall_cmds | \
15984     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15985       # Double-quote double-evaled strings.
15986       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15987       ;;
15988     *)
15989       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15990       ;;
15991     esac
15992   done
15993
15994   case $lt_echo in
15995   *'\$0 --fallback-echo"')
15996     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15997     ;;
15998   esac
15999
16000 cfgfile="$ofile"
16001
16002   cat <<__EOF__ >> "$cfgfile"
16003 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16004
16005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16006
16007 # Shell to use when invoking shell scripts.
16008 SHELL=$lt_SHELL
16009
16010 # Whether or not to build shared libraries.
16011 build_libtool_libs=$enable_shared
16012
16013 # Whether or not to build static libraries.
16014 build_old_libs=$enable_static
16015
16016 # Whether or not to add -lc for building shared libraries.
16017 build_libtool_need_lc=$archive_cmds_need_lc_F77
16018
16019 # Whether or not to disallow shared libs when runtime libs are static
16020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16021
16022 # Whether or not to optimize for fast installation.
16023 fast_install=$enable_fast_install
16024
16025 # The host system.
16026 host_alias=$host_alias
16027 host=$host
16028 host_os=$host_os
16029
16030 # The build system.
16031 build_alias=$build_alias
16032 build=$build
16033 build_os=$build_os
16034
16035 # An echo program that does not interpret backslashes.
16036 echo=$lt_echo
16037
16038 # The archiver.
16039 AR=$lt_AR
16040 AR_FLAGS=$lt_AR_FLAGS
16041
16042 # A C compiler.
16043 LTCC=$lt_LTCC
16044
16045 # LTCC compiler flags.
16046 LTCFLAGS=$lt_LTCFLAGS
16047
16048 # A language-specific compiler.
16049 CC=$lt_compiler_F77
16050
16051 # Is the compiler the GNU C compiler?
16052 with_gcc=$GCC_F77
16053
16054 # An ERE matcher.
16055 EGREP=$lt_EGREP
16056
16057 # The linker used to build libraries.
16058 LD=$lt_LD_F77
16059
16060 # Whether we need hard or soft links.
16061 LN_S=$lt_LN_S
16062
16063 # A BSD-compatible nm program.
16064 NM=$lt_NM
16065
16066 # A symbol stripping program
16067 STRIP=$lt_STRIP
16068
16069 # Used to examine libraries when file_magic_cmd begins "file"
16070 MAGIC_CMD=$MAGIC_CMD
16071
16072 # Used on cygwin: DLL creation program.
16073 DLLTOOL="$DLLTOOL"
16074
16075 # Used on cygwin: object dumper.
16076 OBJDUMP="$OBJDUMP"
16077
16078 # Used on cygwin: assembler.
16079 AS="$AS"
16080
16081 # The name of the directory that contains temporary libtool files.
16082 objdir=$objdir
16083
16084 # How to create reloadable object files.
16085 reload_flag=$lt_reload_flag
16086 reload_cmds=$lt_reload_cmds
16087
16088 # How to pass a linker flag through the compiler.
16089 wl=$lt_lt_prog_compiler_wl_F77
16090
16091 # Object file suffix (normally "o").
16092 objext="$ac_objext"
16093
16094 # Old archive suffix (normally "a").
16095 libext="$libext"
16096
16097 # Shared library suffix (normally ".so").
16098 shrext_cmds='$shrext_cmds'
16099
16100 # Executable file suffix (normally "").
16101 exeext="$exeext"
16102
16103 # Additional compiler flags for building library objects.
16104 pic_flag=$lt_lt_prog_compiler_pic_F77
16105 pic_mode=$pic_mode
16106
16107 # What is the maximum length of a command?
16108 max_cmd_len=$lt_cv_sys_max_cmd_len
16109
16110 # Does compiler simultaneously support -c and -o options?
16111 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16112
16113 # Must we lock files when doing compilation?
16114 need_locks=$lt_need_locks
16115
16116 # Do we need the lib prefix for modules?
16117 need_lib_prefix=$need_lib_prefix
16118
16119 # Do we need a version for libraries?
16120 need_version=$need_version
16121
16122 # Whether dlopen is supported.
16123 dlopen_support=$enable_dlopen
16124
16125 # Whether dlopen of programs is supported.
16126 dlopen_self=$enable_dlopen_self
16127
16128 # Whether dlopen of statically linked programs is supported.
16129 dlopen_self_static=$enable_dlopen_self_static
16130
16131 # Compiler flag to prevent dynamic linking.
16132 link_static_flag=$lt_lt_prog_compiler_static_F77
16133
16134 # Compiler flag to turn off builtin functions.
16135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16136
16137 # Compiler flag to allow reflexive dlopens.
16138 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16139
16140 # Compiler flag to generate shared objects directly from archives.
16141 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16142
16143 # Compiler flag to generate thread-safe objects.
16144 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16145
16146 # Library versioning type.
16147 version_type=$version_type
16148
16149 # Format of library name prefix.
16150 libname_spec=$lt_libname_spec
16151
16152 # List of archive names.  First name is the real one, the rest are links.
16153 # The last name is the one that the linker finds with -lNAME.
16154 library_names_spec=$lt_library_names_spec
16155
16156 # The coded name of the library, if different from the real name.
16157 soname_spec=$lt_soname_spec
16158
16159 # Commands used to build and install an old-style archive.
16160 RANLIB=$lt_RANLIB
16161 old_archive_cmds=$lt_old_archive_cmds_F77
16162 old_postinstall_cmds=$lt_old_postinstall_cmds
16163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16164
16165 # Create an old-style archive from a shared archive.
16166 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16167
16168 # Create a temporary old-style archive to link instead of a shared archive.
16169 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16170
16171 # Commands used to build and install a shared archive.
16172 archive_cmds=$lt_archive_cmds_F77
16173 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16174 postinstall_cmds=$lt_postinstall_cmds
16175 postuninstall_cmds=$lt_postuninstall_cmds
16176
16177 # Commands used to build a loadable module (assumed same as above if empty)
16178 module_cmds=$lt_module_cmds_F77
16179 module_expsym_cmds=$lt_module_expsym_cmds_F77
16180
16181 # Commands to strip libraries.
16182 old_striplib=$lt_old_striplib
16183 striplib=$lt_striplib
16184
16185 # Dependencies to place before the objects being linked to create a
16186 # shared library.
16187 predep_objects=$lt_predep_objects_F77
16188
16189 # Dependencies to place after the objects being linked to create a
16190 # shared library.
16191 postdep_objects=$lt_postdep_objects_F77
16192
16193 # Dependencies to place before the objects being linked to create a
16194 # shared library.
16195 predeps=$lt_predeps_F77
16196
16197 # Dependencies to place after the objects being linked to create a
16198 # shared library.
16199 postdeps=$lt_postdeps_F77
16200
16201 # The library search path used internally by the compiler when linking
16202 # a shared library.
16203 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16204
16205 # Method to check whether dependent libraries are shared objects.
16206 deplibs_check_method=$lt_deplibs_check_method
16207
16208 # Command to use when deplibs_check_method == file_magic.
16209 file_magic_cmd=$lt_file_magic_cmd
16210
16211 # Flag that allows shared libraries with undefined symbols to be built.
16212 allow_undefined_flag=$lt_allow_undefined_flag_F77
16213
16214 # Flag that forces no undefined symbols.
16215 no_undefined_flag=$lt_no_undefined_flag_F77
16216
16217 # Commands used to finish a libtool library installation in a directory.
16218 finish_cmds=$lt_finish_cmds
16219
16220 # Same as above, but a single script fragment to be evaled but not shown.
16221 finish_eval=$lt_finish_eval
16222
16223 # Take the output of nm and produce a listing of raw symbols and C names.
16224 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16225
16226 # Transform the output of nm in a proper C declaration
16227 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16228
16229 # Transform the output of nm in a C name address pair
16230 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16231
16232 # This is the shared library runtime path variable.
16233 runpath_var=$runpath_var
16234
16235 # This is the shared library path variable.
16236 shlibpath_var=$shlibpath_var
16237
16238 # Is shlibpath searched before the hard-coded library search path?
16239 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16240
16241 # How to hardcode a shared library path into an executable.
16242 hardcode_action=$hardcode_action_F77
16243
16244 # Whether we should hardcode library paths into libraries.
16245 hardcode_into_libs=$hardcode_into_libs
16246
16247 # Flag to hardcode \$libdir into a binary during linking.
16248 # This must work even if \$libdir does not exist.
16249 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16250
16251 # If ld is used when linking, flag to hardcode \$libdir into
16252 # a binary during linking. This must work even if \$libdir does
16253 # not exist.
16254 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16255
16256 # Whether we need a single -rpath flag with a separated argument.
16257 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16258
16259 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16260 # resulting binary.
16261 hardcode_direct=$hardcode_direct_F77
16262
16263 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16264 # resulting binary.
16265 hardcode_minus_L=$hardcode_minus_L_F77
16266
16267 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16268 # the resulting binary.
16269 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16270
16271 # Set to yes if building a shared library automatically hardcodes DIR into the library
16272 # and all subsequent libraries and executables linked against it.
16273 hardcode_automatic=$hardcode_automatic_F77
16274
16275 # Variables whose values should be saved in libtool wrapper scripts and
16276 # restored at relink time.
16277 variables_saved_for_relink="$variables_saved_for_relink"
16278
16279 # Whether libtool must link a program against all its dependency libraries.
16280 link_all_deplibs=$link_all_deplibs_F77
16281
16282 # Compile-time system search path for libraries
16283 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16284
16285 # Run-time system search path for libraries
16286 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16287
16288 # Fix the shell variable \$srcfile for the compiler.
16289 fix_srcfile_path="$fix_srcfile_path_F77"
16290
16291 # Set to yes if exported symbols are required.
16292 always_export_symbols=$always_export_symbols_F77
16293
16294 # The commands to list exported symbols.
16295 export_symbols_cmds=$lt_export_symbols_cmds_F77
16296
16297 # The commands to extract the exported symbol list from a shared archive.
16298 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16299
16300 # Symbols that should not be listed in the preloaded symbols.
16301 exclude_expsyms=$lt_exclude_expsyms_F77
16302
16303 # Symbols that must always be exported.
16304 include_expsyms=$lt_include_expsyms_F77
16305
16306 # ### END LIBTOOL TAG CONFIG: $tagname
16307
16308 __EOF__
16309
16310
16311 else
16312   # If there is no Makefile yet, we rely on a make rule to execute
16313   # `config.status --recheck' to rerun these tests and create the
16314   # libtool script then.
16315   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16316   if test -f "$ltmain_in"; then
16317     test -f Makefile && make "$ltmain"
16318   fi
16319 fi
16320
16321
16322 ac_ext=c
16323 ac_cpp='$CPP $CPPFLAGS'
16324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16327
16328 CC="$lt_save_CC"
16329
16330         else
16331           tagname=""
16332         fi
16333         ;;
16334
16335       GCJ)
16336         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16337
16338
16339 # Source file extension for Java test sources.
16340 ac_ext=java
16341
16342 # Object file extension for compiled Java test sources.
16343 objext=o
16344 objext_GCJ=$objext
16345
16346 # Code to be used in simple compile tests
16347 lt_simple_compile_test_code="class foo {}\n"
16348
16349 # Code to be used in simple link tests
16350 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16351
16352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16353
16354 # If no C compiler was specified, use CC.
16355 LTCC=${LTCC-"$CC"}
16356
16357 # If no C compiler flags were specified, use CFLAGS.
16358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16359
16360 # Allow CC to be a program name with arguments.
16361 compiler=$CC
16362
16363
16364 # save warnings/boilerplate of simple test code
16365 ac_outfile=conftest.$ac_objext
16366 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16368 _lt_compiler_boilerplate=`cat conftest.err`
16369 $rm conftest*
16370
16371 ac_outfile=conftest.$ac_objext
16372 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16374 _lt_linker_boilerplate=`cat conftest.err`
16375 $rm conftest*
16376
16377
16378 # Allow CC to be a program name with arguments.
16379 lt_save_CC="$CC"
16380 CC=${GCJ-"gcj"}
16381 compiler=$CC
16382 compiler_GCJ=$CC
16383 for cc_temp in $compiler""; do
16384   case $cc_temp in
16385     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16386     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16387     \-*) ;;
16388     *) break;;
16389   esac
16390 done
16391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16392
16393
16394 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16395 archive_cmds_need_lc_GCJ=no
16396
16397 old_archive_cmds_GCJ=$old_archive_cmds
16398
16399 ## CAVEAT EMPTOR:
16400 ## There is no encapsulation within the following macros, do not change
16401 ## the running order or otherwise move them around unless you know exactly
16402 ## what you are doing...
16403
16404 lt_prog_compiler_no_builtin_flag_GCJ=
16405
16406 if test "$GCC" = yes; then
16407   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16408
16409
16410 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16411 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16412 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   lt_cv_prog_compiler_rtti_exceptions=no
16416   ac_outfile=conftest.$ac_objext
16417    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16418    lt_compiler_flag="-fno-rtti -fno-exceptions"
16419    # Insert the option either (1) after the last *FLAGS variable, or
16420    # (2) before a word containing "conftest.", or (3) at the end.
16421    # Note that $ac_compile itself does not contain backslashes and begins
16422    # with a dollar sign (not a hyphen), so the echo should work correctly.
16423    # The option is referenced via a variable to avoid confusing sed.
16424    lt_compile=`echo "$ac_compile" | $SED \
16425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16427    -e 's:$: $lt_compiler_flag:'`
16428    (eval echo "\"\$as_me:16428: $lt_compile\"" >&5)
16429    (eval "$lt_compile" 2>conftest.err)
16430    ac_status=$?
16431    cat conftest.err >&5
16432    echo "$as_me:16432: \$? = $ac_status" >&5
16433    if (exit $ac_status) && test -s "$ac_outfile"; then
16434      # The compiler can only warn and ignore the option if not recognized
16435      # So say no if there are warnings other than the usual output.
16436      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16439        lt_cv_prog_compiler_rtti_exceptions=yes
16440      fi
16441    fi
16442    $rm conftest*
16443
16444 fi
16445 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16446 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16447
16448 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16449     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16450 else
16451     :
16452 fi
16453
16454 fi
16455
16456 lt_prog_compiler_wl_GCJ=
16457 lt_prog_compiler_pic_GCJ=
16458 lt_prog_compiler_static_GCJ=
16459
16460 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16461 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16462
16463   if test "$GCC" = yes; then
16464     lt_prog_compiler_wl_GCJ='-Wl,'
16465     lt_prog_compiler_static_GCJ='-static'
16466
16467     case $host_os in
16468       aix*)
16469       # All AIX code is PIC.
16470       if test "$host_cpu" = ia64; then
16471         # AIX 5 now supports IA64 processor
16472         lt_prog_compiler_static_GCJ='-Bstatic'
16473       fi
16474       ;;
16475
16476     amigaos*)
16477       # FIXME: we need at least 68020 code to build shared libraries, but
16478       # adding the `-m68020' flag to GCC prevents building anything better,
16479       # like `-m68040'.
16480       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16481       ;;
16482
16483     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16484       # PIC is the default for these OSes.
16485       ;;
16486
16487     mingw* | pw32* | os2*)
16488       # This hack is so that the source file can tell whether it is being
16489       # built for inclusion in a dll (and should export symbols for example).
16490       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16491       ;;
16492
16493     darwin* | rhapsody*)
16494       # PIC is the default on this platform
16495       # Common symbols not allowed in MH_DYLIB files
16496       lt_prog_compiler_pic_GCJ='-fno-common'
16497       ;;
16498
16499     interix3*)
16500       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16501       # Instead, we relocate shared libraries at runtime.
16502       ;;
16503
16504     msdosdjgpp*)
16505       # Just because we use GCC doesn't mean we suddenly get shared libraries
16506       # on systems that don't support them.
16507       lt_prog_compiler_can_build_shared_GCJ=no
16508       enable_shared=no
16509       ;;
16510
16511     sysv4*MP*)
16512       if test -d /usr/nec; then
16513         lt_prog_compiler_pic_GCJ=-Kconform_pic
16514       fi
16515       ;;
16516
16517     hpux*)
16518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16519       # not for PA HP-UX.
16520       case $host_cpu in
16521       hppa*64*|ia64*)
16522         # +Z the default
16523         ;;
16524       *)
16525         lt_prog_compiler_pic_GCJ='-fPIC'
16526         ;;
16527       esac
16528       ;;
16529
16530     *)
16531       lt_prog_compiler_pic_GCJ='-fPIC'
16532       ;;
16533     esac
16534   else
16535     # PORTME Check for flag to pass linker flags through the system compiler.
16536     case $host_os in
16537     aix*)
16538       lt_prog_compiler_wl_GCJ='-Wl,'
16539       if test "$host_cpu" = ia64; then
16540         # AIX 5 now supports IA64 processor
16541         lt_prog_compiler_static_GCJ='-Bstatic'
16542       else
16543         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16544       fi
16545       ;;
16546       darwin*)
16547         # PIC is the default on this platform
16548         # Common symbols not allowed in MH_DYLIB files
16549        case $cc_basename in
16550          xlc*)
16551          lt_prog_compiler_pic_GCJ='-qnocommon'
16552          lt_prog_compiler_wl_GCJ='-Wl,'
16553          ;;
16554        esac
16555        ;;
16556
16557     mingw* | pw32* | os2*)
16558       # This hack is so that the source file can tell whether it is being
16559       # built for inclusion in a dll (and should export symbols for example).
16560       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16561       ;;
16562
16563     hpux9* | hpux10* | hpux11*)
16564       lt_prog_compiler_wl_GCJ='-Wl,'
16565       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16566       # not for PA HP-UX.
16567       case $host_cpu in
16568       hppa*64*|ia64*)
16569         # +Z the default
16570         ;;
16571       *)
16572         lt_prog_compiler_pic_GCJ='+Z'
16573         ;;
16574       esac
16575       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16576       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16577       ;;
16578
16579     irix5* | irix6* | nonstopux*)
16580       lt_prog_compiler_wl_GCJ='-Wl,'
16581       # PIC (with -KPIC) is the default.
16582       lt_prog_compiler_static_GCJ='-non_shared'
16583       ;;
16584
16585     newsos6)
16586       lt_prog_compiler_pic_GCJ='-KPIC'
16587       lt_prog_compiler_static_GCJ='-Bstatic'
16588       ;;
16589
16590     linux*)
16591       case $cc_basename in
16592       icc* | ecc*)
16593         lt_prog_compiler_wl_GCJ='-Wl,'
16594         lt_prog_compiler_pic_GCJ='-KPIC'
16595         lt_prog_compiler_static_GCJ='-static'
16596         ;;
16597       pgcc* | pgf77* | pgf90* | pgf95*)
16598         # Portland Group compilers (*not* the Pentium gcc compiler,
16599         # which looks to be a dead project)
16600         lt_prog_compiler_wl_GCJ='-Wl,'
16601         lt_prog_compiler_pic_GCJ='-fpic'
16602         lt_prog_compiler_static_GCJ='-Bstatic'
16603         ;;
16604       ccc*)
16605         lt_prog_compiler_wl_GCJ='-Wl,'
16606         # All Alpha code is PIC.
16607         lt_prog_compiler_static_GCJ='-non_shared'
16608         ;;
16609       esac
16610       ;;
16611
16612     osf3* | osf4* | osf5*)
16613       lt_prog_compiler_wl_GCJ='-Wl,'
16614       # All OSF/1 code is PIC.
16615       lt_prog_compiler_static_GCJ='-non_shared'
16616       ;;
16617
16618     solaris*)
16619       lt_prog_compiler_pic_GCJ='-KPIC'
16620       lt_prog_compiler_static_GCJ='-Bstatic'
16621       case $cc_basename in
16622       f77* | f90* | f95*)
16623         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16624       *)
16625         lt_prog_compiler_wl_GCJ='-Wl,';;
16626       esac
16627       ;;
16628
16629     sunos4*)
16630       lt_prog_compiler_wl_GCJ='-Qoption ld '
16631       lt_prog_compiler_pic_GCJ='-PIC'
16632       lt_prog_compiler_static_GCJ='-Bstatic'
16633       ;;
16634
16635     sysv4 | sysv4.2uw2* | sysv4.3*)
16636       lt_prog_compiler_wl_GCJ='-Wl,'
16637       lt_prog_compiler_pic_GCJ='-KPIC'
16638       lt_prog_compiler_static_GCJ='-Bstatic'
16639       ;;
16640
16641     sysv4*MP*)
16642       if test -d /usr/nec ;then
16643         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16644         lt_prog_compiler_static_GCJ='-Bstatic'
16645       fi
16646       ;;
16647
16648     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16649       lt_prog_compiler_wl_GCJ='-Wl,'
16650       lt_prog_compiler_pic_GCJ='-KPIC'
16651       lt_prog_compiler_static_GCJ='-Bstatic'
16652       ;;
16653
16654     unicos*)
16655       lt_prog_compiler_wl_GCJ='-Wl,'
16656       lt_prog_compiler_can_build_shared_GCJ=no
16657       ;;
16658
16659     uts4*)
16660       lt_prog_compiler_pic_GCJ='-pic'
16661       lt_prog_compiler_static_GCJ='-Bstatic'
16662       ;;
16663
16664     *)
16665       lt_prog_compiler_can_build_shared_GCJ=no
16666       ;;
16667     esac
16668   fi
16669
16670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16671 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16672
16673 #
16674 # Check to make sure the PIC flag actually works.
16675 #
16676 if test -n "$lt_prog_compiler_pic_GCJ"; then
16677
16678 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16679 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16680 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16681   echo $ECHO_N "(cached) $ECHO_C" >&6
16682 else
16683   lt_prog_compiler_pic_works_GCJ=no
16684   ac_outfile=conftest.$ac_objext
16685    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16686    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16687    # Insert the option either (1) after the last *FLAGS variable, or
16688    # (2) before a word containing "conftest.", or (3) at the end.
16689    # Note that $ac_compile itself does not contain backslashes and begins
16690    # with a dollar sign (not a hyphen), so the echo should work correctly.
16691    # The option is referenced via a variable to avoid confusing sed.
16692    lt_compile=`echo "$ac_compile" | $SED \
16693    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695    -e 's:$: $lt_compiler_flag:'`
16696    (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
16697    (eval "$lt_compile" 2>conftest.err)
16698    ac_status=$?
16699    cat conftest.err >&5
16700    echo "$as_me:16700: \$? = $ac_status" >&5
16701    if (exit $ac_status) && test -s "$ac_outfile"; then
16702      # The compiler can only warn and ignore the option if not recognized
16703      # So say no if there are warnings other than the usual output.
16704      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16705      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16706      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16707        lt_prog_compiler_pic_works_GCJ=yes
16708      fi
16709    fi
16710    $rm conftest*
16711
16712 fi
16713 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16714 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16715
16716 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16717     case $lt_prog_compiler_pic_GCJ in
16718      "" | " "*) ;;
16719      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16720      esac
16721 else
16722     lt_prog_compiler_pic_GCJ=
16723      lt_prog_compiler_can_build_shared_GCJ=no
16724 fi
16725
16726 fi
16727 case $host_os in
16728   # For platforms which do not support PIC, -DPIC is meaningless:
16729   *djgpp*)
16730     lt_prog_compiler_pic_GCJ=
16731     ;;
16732   *)
16733     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16734     ;;
16735 esac
16736
16737 #
16738 # Check to make sure the static flag actually works.
16739 #
16740 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16741 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16742 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16743 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746   lt_prog_compiler_static_works_GCJ=no
16747    save_LDFLAGS="$LDFLAGS"
16748    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16749    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16750    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16751      # The linker can only warn and ignore the option if not recognized
16752      # So say no if there are warnings
16753      if test -s conftest.err; then
16754        # Append any errors to the config.log.
16755        cat conftest.err 1>&5
16756        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16757        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16758        if diff conftest.exp conftest.er2 >/dev/null; then
16759          lt_prog_compiler_static_works_GCJ=yes
16760        fi
16761      else
16762        lt_prog_compiler_static_works_GCJ=yes
16763      fi
16764    fi
16765    $rm conftest*
16766    LDFLAGS="$save_LDFLAGS"
16767
16768 fi
16769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16770 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16771
16772 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16773     :
16774 else
16775     lt_prog_compiler_static_GCJ=
16776 fi
16777
16778
16779 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16781 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16782   echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784   lt_cv_prog_compiler_c_o_GCJ=no
16785    $rm -r conftest 2>/dev/null
16786    mkdir conftest
16787    cd conftest
16788    mkdir out
16789    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16790
16791    lt_compiler_flag="-o out/conftest2.$ac_objext"
16792    # Insert the option either (1) after the last *FLAGS variable, or
16793    # (2) before a word containing "conftest.", or (3) at the end.
16794    # Note that $ac_compile itself does not contain backslashes and begins
16795    # with a dollar sign (not a hyphen), so the echo should work correctly.
16796    lt_compile=`echo "$ac_compile" | $SED \
16797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16799    -e 's:$: $lt_compiler_flag:'`
16800    (eval echo "\"\$as_me:16800: $lt_compile\"" >&5)
16801    (eval "$lt_compile" 2>out/conftest.err)
16802    ac_status=$?
16803    cat out/conftest.err >&5
16804    echo "$as_me:16804: \$? = $ac_status" >&5
16805    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16806    then
16807      # The compiler can only warn and ignore the option if not recognized
16808      # So say no if there are warnings
16809      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16810      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16811      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16812        lt_cv_prog_compiler_c_o_GCJ=yes
16813      fi
16814    fi
16815    chmod u+w . 2>&5
16816    $rm conftest*
16817    # SGI C++ compiler will create directory out/ii_files/ for
16818    # template instantiation
16819    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16820    $rm out/* && rmdir out
16821    cd ..
16822    rmdir conftest
16823    $rm conftest*
16824
16825 fi
16826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16827 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16828
16829
16830 hard_links="nottested"
16831 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16832   # do not overwrite the value of need_locks provided by the user
16833   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16834 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16835   hard_links=yes
16836   $rm conftest*
16837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16838   touch conftest.a
16839   ln conftest.a conftest.b 2>&5 || hard_links=no
16840   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16841   { echo "$as_me:$LINENO: result: $hard_links" >&5
16842 echo "${ECHO_T}$hard_links" >&6; }
16843   if test "$hard_links" = no; then
16844     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16845 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16846     need_locks=warn
16847   fi
16848 else
16849   need_locks=no
16850 fi
16851
16852 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16854
16855   runpath_var=
16856   allow_undefined_flag_GCJ=
16857   enable_shared_with_static_runtimes_GCJ=no
16858   archive_cmds_GCJ=
16859   archive_expsym_cmds_GCJ=
16860   old_archive_From_new_cmds_GCJ=
16861   old_archive_from_expsyms_cmds_GCJ=
16862   export_dynamic_flag_spec_GCJ=
16863   whole_archive_flag_spec_GCJ=
16864   thread_safe_flag_spec_GCJ=
16865   hardcode_libdir_flag_spec_GCJ=
16866   hardcode_libdir_flag_spec_ld_GCJ=
16867   hardcode_libdir_separator_GCJ=
16868   hardcode_direct_GCJ=no
16869   hardcode_minus_L_GCJ=no
16870   hardcode_shlibpath_var_GCJ=unsupported
16871   link_all_deplibs_GCJ=unknown
16872   hardcode_automatic_GCJ=no
16873   module_cmds_GCJ=
16874   module_expsym_cmds_GCJ=
16875   always_export_symbols_GCJ=no
16876   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16877   # include_expsyms should be a list of space-separated symbols to be *always*
16878   # included in the symbol list
16879   include_expsyms_GCJ=
16880   # exclude_expsyms can be an extended regexp of symbols to exclude
16881   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16882   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16883   # as well as any symbol that contains `d'.
16884   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16885   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16886   # platforms (ab)use it in PIC code, but their linkers get confused if
16887   # the symbol is explicitly referenced.  Since portable code cannot
16888   # rely on this symbol name, it's probably fine to never include it in
16889   # preloaded symbol tables.
16890   extract_expsyms_cmds=
16891   # Just being paranoid about ensuring that cc_basename is set.
16892   for cc_temp in $compiler""; do
16893   case $cc_temp in
16894     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16895     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16896     \-*) ;;
16897     *) break;;
16898   esac
16899 done
16900 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16901
16902   case $host_os in
16903   cygwin* | mingw* | pw32*)
16904     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16905     # When not using gcc, we currently assume that we are using
16906     # Microsoft Visual C++.
16907     if test "$GCC" != yes; then
16908       with_gnu_ld=no
16909     fi
16910     ;;
16911   interix*)
16912     # we just hope/assume this is gcc and not c89 (= MSVC++)
16913     with_gnu_ld=yes
16914     ;;
16915   openbsd*)
16916     with_gnu_ld=no
16917     ;;
16918   esac
16919
16920   ld_shlibs_GCJ=yes
16921   if test "$with_gnu_ld" = yes; then
16922     # If archive_cmds runs LD, not CC, wlarc should be empty
16923     wlarc='${wl}'
16924
16925     # Set some defaults for GNU ld with shared library support. These
16926     # are reset later if shared libraries are not supported. Putting them
16927     # here allows them to be overridden if necessary.
16928     runpath_var=LD_RUN_PATH
16929     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16930     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16931     # ancient GNU ld didn't support --whole-archive et. al.
16932     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16933         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16934       else
16935         whole_archive_flag_spec_GCJ=
16936     fi
16937     supports_anon_versioning=no
16938     case `$LD -v 2>/dev/null` in
16939       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16940       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16941       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16942       *\ 2.11.*) ;; # other 2.11 versions
16943       *) supports_anon_versioning=yes ;;
16944     esac
16945
16946     # See if GNU ld supports shared libraries.
16947     case $host_os in
16948     aix3* | aix4* | aix5*)
16949       # On AIX/PPC, the GNU linker is very broken
16950       if test "$host_cpu" != ia64; then
16951         ld_shlibs_GCJ=no
16952         cat <<EOF 1>&2
16953
16954 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16955 *** to be unable to reliably create shared libraries on AIX.
16956 *** Therefore, libtool is disabling shared libraries support.  If you
16957 *** really care for shared libraries, you may want to modify your PATH
16958 *** so that a non-GNU linker is found, and then restart.
16959
16960 EOF
16961       fi
16962       ;;
16963
16964     amigaos*)
16965       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)'
16966       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16967       hardcode_minus_L_GCJ=yes
16968
16969       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16970       # that the semantics of dynamic libraries on AmigaOS, at least up
16971       # to version 4, is to share data among multiple programs linked
16972       # with the same dynamic library.  Since this doesn't match the
16973       # behavior of shared libraries on other platforms, we can't use
16974       # them.
16975       ld_shlibs_GCJ=no
16976       ;;
16977
16978     beos*)
16979       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16980         allow_undefined_flag_GCJ=unsupported
16981         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16982         # support --undefined.  This deserves some investigation.  FIXME
16983         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984       else
16985         ld_shlibs_GCJ=no
16986       fi
16987       ;;
16988
16989     cygwin* | mingw* | pw32*)
16990       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16991       # as there is no search path for DLLs.
16992       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16993       allow_undefined_flag_GCJ=unsupported
16994       always_export_symbols_GCJ=no
16995       enable_shared_with_static_runtimes_GCJ=yes
16996       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16997
16998       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16999         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17000         # If the export-symbols file already is a .def file (1st line
17001         # is EXPORTS), use it as is; otherwise, prepend...
17002         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17003           cp $export_symbols $output_objdir/$soname.def;
17004         else
17005           echo EXPORTS > $output_objdir/$soname.def;
17006           cat $export_symbols >> $output_objdir/$soname.def;
17007         fi~
17008         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17009       else
17010         ld_shlibs_GCJ=no
17011       fi
17012       ;;
17013
17014     interix3*)
17015       hardcode_direct_GCJ=no
17016       hardcode_shlibpath_var_GCJ=no
17017       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17018       export_dynamic_flag_spec_GCJ='${wl}-E'
17019       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17020       # Instead, shared libraries are loaded at an image base (0x10000000 by
17021       # default) and relocated if they conflict, which is a slow very memory
17022       # consuming and fragmenting process.  To avoid this, we pick a random,
17023       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17024       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17025       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'
17026       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'
17027       ;;
17028
17029     linux*)
17030       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17031         tmp_addflag=
17032         case $cc_basename,$host_cpu in
17033         pgcc*)                          # Portland Group C compiler
17034           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'
17035           tmp_addflag=' $pic_flag'
17036           ;;
17037         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17038           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'
17039           tmp_addflag=' $pic_flag -Mnomain' ;;
17040         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17041           tmp_addflag=' -i_dynamic' ;;
17042         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17043           tmp_addflag=' -i_dynamic -nofor_main' ;;
17044         ifc* | ifort*)                  # Intel Fortran compiler
17045           tmp_addflag=' -nofor_main' ;;
17046         esac
17047         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17048
17049         if test $supports_anon_versioning = yes; then
17050           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17051   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17052   $echo "local: *; };" >> $output_objdir/$libname.ver~
17053           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17054         fi
17055       else
17056         ld_shlibs_GCJ=no
17057       fi
17058       ;;
17059
17060     netbsd*)
17061       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17062         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17063         wlarc=
17064       else
17065         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17066         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17067       fi
17068       ;;
17069
17070     solaris*)
17071       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17072         ld_shlibs_GCJ=no
17073         cat <<EOF 1>&2
17074
17075 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17076 *** create shared libraries on Solaris systems.  Therefore, libtool
17077 *** is disabling shared libraries support.  We urge you to upgrade GNU
17078 *** binutils to release 2.9.1 or newer.  Another option is to modify
17079 *** your PATH or compiler configuration so that the native linker is
17080 *** used, and then restart.
17081
17082 EOF
17083       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17084         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17085         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17086       else
17087         ld_shlibs_GCJ=no
17088       fi
17089       ;;
17090
17091     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17092       case `$LD -v 2>&1` in
17093         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17094         ld_shlibs_GCJ=no
17095         cat <<_LT_EOF 1>&2
17096
17097 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17098 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17099 *** is disabling shared libraries support.  We urge you to upgrade GNU
17100 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17101 *** your PATH or compiler configuration so that the native linker is
17102 *** used, and then restart.
17103
17104 _LT_EOF
17105         ;;
17106         *)
17107           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17108             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17109             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17110             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17111           else
17112             ld_shlibs_GCJ=no
17113           fi
17114         ;;
17115       esac
17116       ;;
17117
17118     sunos4*)
17119       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17120       wlarc=
17121       hardcode_direct_GCJ=yes
17122       hardcode_shlibpath_var_GCJ=no
17123       ;;
17124
17125     *)
17126       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17127         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17128         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17129       else
17130         ld_shlibs_GCJ=no
17131       fi
17132       ;;
17133     esac
17134
17135     if test "$ld_shlibs_GCJ" = no; then
17136       runpath_var=
17137       hardcode_libdir_flag_spec_GCJ=
17138       export_dynamic_flag_spec_GCJ=
17139       whole_archive_flag_spec_GCJ=
17140     fi
17141   else
17142     # PORTME fill in a description of your system's linker (not GNU ld)
17143     case $host_os in
17144     aix3*)
17145       allow_undefined_flag_GCJ=unsupported
17146       always_export_symbols_GCJ=yes
17147       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'
17148       # Note: this linker hardcodes the directories in LIBPATH if there
17149       # are no directories specified by -L.
17150       hardcode_minus_L_GCJ=yes
17151       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17152         # Neither direct hardcoding nor static linking is supported with a
17153         # broken collect2.
17154         hardcode_direct_GCJ=unsupported
17155       fi
17156       ;;
17157
17158     aix4* | aix5*)
17159       if test "$host_cpu" = ia64; then
17160         # On IA64, the linker does run time linking by default, so we don't
17161         # have to do anything special.
17162         aix_use_runtimelinking=no
17163         exp_sym_flag='-Bexport'
17164         no_entry_flag=""
17165       else
17166         # If we're using GNU nm, then we don't want the "-C" option.
17167         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17168         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17169           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'
17170         else
17171           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'
17172         fi
17173         aix_use_runtimelinking=no
17174
17175         # Test if we are trying to use run time linking or normal
17176         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17177         # need to do runtime linking.
17178         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17179           for ld_flag in $LDFLAGS; do
17180           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17181             aix_use_runtimelinking=yes
17182             break
17183           fi
17184           done
17185           ;;
17186         esac
17187
17188         exp_sym_flag='-bexport'
17189         no_entry_flag='-bnoentry'
17190       fi
17191
17192       # When large executables or shared objects are built, AIX ld can
17193       # have problems creating the table of contents.  If linking a library
17194       # or program results in "error TOC overflow" add -mminimal-toc to
17195       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17196       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17197
17198       archive_cmds_GCJ=''
17199       hardcode_direct_GCJ=yes
17200       hardcode_libdir_separator_GCJ=':'
17201       link_all_deplibs_GCJ=yes
17202
17203       if test "$GCC" = yes; then
17204         case $host_os in aix4.[012]|aix4.[012].*)
17205         # We only want to do this on AIX 4.2 and lower, the check
17206         # below for broken collect2 doesn't work under 4.3+
17207           collect2name=`${CC} -print-prog-name=collect2`
17208           if test -f "$collect2name" && \
17209            strings "$collect2name" | grep resolve_lib_name >/dev/null
17210           then
17211           # We have reworked collect2
17212           hardcode_direct_GCJ=yes
17213           else
17214           # We have old collect2
17215           hardcode_direct_GCJ=unsupported
17216           # It fails to find uninstalled libraries when the uninstalled
17217           # path is not listed in the libpath.  Setting hardcode_minus_L
17218           # to unsupported forces relinking
17219           hardcode_minus_L_GCJ=yes
17220           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17221           hardcode_libdir_separator_GCJ=
17222           fi
17223           ;;
17224         esac
17225         shared_flag='-shared'
17226         if test "$aix_use_runtimelinking" = yes; then
17227           shared_flag="$shared_flag "'${wl}-G'
17228         fi
17229       else
17230         # not using gcc
17231         if test "$host_cpu" = ia64; then
17232         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17233         # chokes on -Wl,-G. The following line is correct:
17234           shared_flag='-G'
17235         else
17236           if test "$aix_use_runtimelinking" = yes; then
17237             shared_flag='${wl}-G'
17238           else
17239             shared_flag='${wl}-bM:SRE'
17240           fi
17241         fi
17242       fi
17243
17244       # It seems that -bexpall does not export symbols beginning with
17245       # underscore (_), so it is better to generate a list of symbols to export.
17246       always_export_symbols_GCJ=yes
17247       if test "$aix_use_runtimelinking" = yes; then
17248         # Warning - without using the other runtime loading flags (-brtl),
17249         # -berok will link without error, but may produce a broken library.
17250         allow_undefined_flag_GCJ='-berok'
17251        # Determine the default libpath from the value encoded in an empty executable.
17252        cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258
17259 int
17260 main ()
17261 {
17262
17263   ;
17264   return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (ac_try="$ac_link"
17269 case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_link") 2>conftest.er1
17275   ac_status=$?
17276   grep -v '^ *+' conftest.er1 >conftest.err
17277   rm -f conftest.er1
17278   cat conftest.err >&5
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } && {
17281          test -z "$ac_c_werror_flag" ||
17282          test ! -s conftest.err
17283        } && test -s conftest$ac_exeext &&
17284        $as_test_x conftest$ac_exeext; then
17285
17286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17287 }'`
17288 # Check for a 64-bit object if we didn't find anything.
17289 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17290 }'`; fi
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17299       conftest$ac_exeext conftest.$ac_ext
17300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17301
17302        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17303         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"
17304        else
17305         if test "$host_cpu" = ia64; then
17306           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17307           allow_undefined_flag_GCJ="-z nodefs"
17308           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"
17309         else
17310          # Determine the default libpath from the value encoded in an empty executable.
17311          cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317
17318 int
17319 main ()
17320 {
17321
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330   *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333   (eval "$ac_link") 2>conftest.er1
17334   ac_status=$?
17335   grep -v '^ *+' conftest.er1 >conftest.err
17336   rm -f conftest.er1
17337   cat conftest.err >&5
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } && {
17340          test -z "$ac_c_werror_flag" ||
17341          test ! -s conftest.err
17342        } && test -s conftest$ac_exeext &&
17343        $as_test_x conftest$ac_exeext; then
17344
17345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17346 }'`
17347 # Check for a 64-bit object if we didn't find anything.
17348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17349 }'`; fi
17350 else
17351   echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354
17355 fi
17356
17357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17358       conftest$ac_exeext conftest.$ac_ext
17359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17360
17361          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17362           # Warning - without using the other run time loading flags,
17363           # -berok will link without error, but may produce a broken library.
17364           no_undefined_flag_GCJ=' ${wl}-bernotok'
17365           allow_undefined_flag_GCJ=' ${wl}-berok'
17366           # Exported symbols can be pulled into shared objects from archives
17367           whole_archive_flag_spec_GCJ='$convenience'
17368           archive_cmds_need_lc_GCJ=yes
17369           # This is similar to how AIX traditionally builds its shared libraries.
17370           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'
17371         fi
17372       fi
17373       ;;
17374
17375     amigaos*)
17376       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)'
17377       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17378       hardcode_minus_L_GCJ=yes
17379       # see comment about different semantics on the GNU ld section
17380       ld_shlibs_GCJ=no
17381       ;;
17382
17383     bsdi[45]*)
17384       export_dynamic_flag_spec_GCJ=-rdynamic
17385       ;;
17386
17387     cygwin* | mingw* | pw32*)
17388       # When not using gcc, we currently assume that we are using
17389       # Microsoft Visual C++.
17390       # hardcode_libdir_flag_spec is actually meaningless, as there is
17391       # no search path for DLLs.
17392       hardcode_libdir_flag_spec_GCJ=' '
17393       allow_undefined_flag_GCJ=unsupported
17394       # Tell ltmain to make .lib files, not .a files.
17395       libext=lib
17396       # Tell ltmain to make .dll files, not .so files.
17397       shrext_cmds=".dll"
17398       # FIXME: Setting linknames here is a bad hack.
17399       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17400       # The linker will automatically build a .lib file if we build a DLL.
17401       old_archive_From_new_cmds_GCJ='true'
17402       # FIXME: Should let the user specify the lib program.
17403       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17404       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17405       enable_shared_with_static_runtimes_GCJ=yes
17406       ;;
17407
17408     darwin* | rhapsody*)
17409       case $host_os in
17410         rhapsody* | darwin1.[012])
17411          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17412          ;;
17413        *) # Darwin 1.3 on
17414          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17415            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17416          else
17417            case ${MACOSX_DEPLOYMENT_TARGET} in
17418              10.[012])
17419                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17420                ;;
17421              10.*)
17422                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17423                ;;
17424            esac
17425          fi
17426          ;;
17427       esac
17428       archive_cmds_need_lc_GCJ=no
17429       hardcode_direct_GCJ=no
17430       hardcode_automatic_GCJ=yes
17431       hardcode_shlibpath_var_GCJ=unsupported
17432       whole_archive_flag_spec_GCJ=''
17433       link_all_deplibs_GCJ=yes
17434     if test "$GCC" = yes ; then
17435         output_verbose_link_cmd='echo'
17436         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17437       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17438       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17439       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17440       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}'
17441     else
17442       case $cc_basename in
17443         xlc*)
17444          output_verbose_link_cmd='echo'
17445          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17446          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17447           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17448          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17449           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}'
17450           ;;
17451        *)
17452          ld_shlibs_GCJ=no
17453           ;;
17454       esac
17455     fi
17456       ;;
17457
17458     dgux*)
17459       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17460       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17461       hardcode_shlibpath_var_GCJ=no
17462       ;;
17463
17464     freebsd1*)
17465       ld_shlibs_GCJ=no
17466       ;;
17467
17468     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17469     # support.  Future versions do this automatically, but an explicit c++rt0.o
17470     # does not break anything, and helps significantly (at the cost of a little
17471     # extra space).
17472     freebsd2.2*)
17473       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17474       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17475       hardcode_direct_GCJ=yes
17476       hardcode_shlibpath_var_GCJ=no
17477       ;;
17478
17479     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17480     freebsd2*)
17481       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17482       hardcode_direct_GCJ=yes
17483       hardcode_minus_L_GCJ=yes
17484       hardcode_shlibpath_var_GCJ=no
17485       ;;
17486
17487     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17488     freebsd* | kfreebsd*-gnu | dragonfly*)
17489       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17490       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17491       hardcode_direct_GCJ=yes
17492       hardcode_shlibpath_var_GCJ=no
17493       ;;
17494
17495     hpux9*)
17496       if test "$GCC" = yes; then
17497         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'
17498       else
17499         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'
17500       fi
17501       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17502       hardcode_libdir_separator_GCJ=:
17503       hardcode_direct_GCJ=yes
17504
17505       # hardcode_minus_L: Not really in the search PATH,
17506       # but as the default location of the library.
17507       hardcode_minus_L_GCJ=yes
17508       export_dynamic_flag_spec_GCJ='${wl}-E'
17509       ;;
17510
17511     hpux10*)
17512       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17513         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17514       else
17515         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17516       fi
17517       if test "$with_gnu_ld" = no; then
17518         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17519         hardcode_libdir_separator_GCJ=:
17520
17521         hardcode_direct_GCJ=yes
17522         export_dynamic_flag_spec_GCJ='${wl}-E'
17523
17524         # hardcode_minus_L: Not really in the search PATH,
17525         # but as the default location of the library.
17526         hardcode_minus_L_GCJ=yes
17527       fi
17528       ;;
17529
17530     hpux11*)
17531       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17532         case $host_cpu in
17533         hppa*64*)
17534           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17535           ;;
17536         ia64*)
17537           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17538           ;;
17539         *)
17540           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17541           ;;
17542         esac
17543       else
17544         case $host_cpu in
17545         hppa*64*)
17546           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17547           ;;
17548         ia64*)
17549           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17550           ;;
17551         *)
17552           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17553           ;;
17554         esac
17555       fi
17556       if test "$with_gnu_ld" = no; then
17557         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17558         hardcode_libdir_separator_GCJ=:
17559
17560         case $host_cpu in
17561         hppa*64*|ia64*)
17562           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17563           hardcode_direct_GCJ=no
17564           hardcode_shlibpath_var_GCJ=no
17565           ;;
17566         *)
17567           hardcode_direct_GCJ=yes
17568           export_dynamic_flag_spec_GCJ='${wl}-E'
17569
17570           # hardcode_minus_L: Not really in the search PATH,
17571           # but as the default location of the library.
17572           hardcode_minus_L_GCJ=yes
17573           ;;
17574         esac
17575       fi
17576       ;;
17577
17578     irix5* | irix6* | nonstopux*)
17579       if test "$GCC" = yes; then
17580         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'
17581       else
17582         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'
17583         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17584       fi
17585       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17586       hardcode_libdir_separator_GCJ=:
17587       link_all_deplibs_GCJ=yes
17588       ;;
17589
17590     netbsd*)
17591       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17592         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17593       else
17594         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17595       fi
17596       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17597       hardcode_direct_GCJ=yes
17598       hardcode_shlibpath_var_GCJ=no
17599       ;;
17600
17601     newsos6)
17602       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17603       hardcode_direct_GCJ=yes
17604       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17605       hardcode_libdir_separator_GCJ=:
17606       hardcode_shlibpath_var_GCJ=no
17607       ;;
17608
17609     openbsd*)
17610       hardcode_direct_GCJ=yes
17611       hardcode_shlibpath_var_GCJ=no
17612       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17613         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17614         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17615         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17616         export_dynamic_flag_spec_GCJ='${wl}-E'
17617       else
17618        case $host_os in
17619          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17620            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17621            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17622            ;;
17623          *)
17624            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17625            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17626            ;;
17627        esac
17628       fi
17629       ;;
17630
17631     os2*)
17632       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17633       hardcode_minus_L_GCJ=yes
17634       allow_undefined_flag_GCJ=unsupported
17635       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'
17636       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17637       ;;
17638
17639     osf3*)
17640       if test "$GCC" = yes; then
17641         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17642         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'
17643       else
17644         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17645         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'
17646       fi
17647       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17648       hardcode_libdir_separator_GCJ=:
17649       ;;
17650
17651     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17652       if test "$GCC" = yes; then
17653         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17654         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'
17655         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17656       else
17657         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17658         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'
17659         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~
17660         $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'
17661
17662         # Both c and cxx compiler support -rpath directly
17663         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17664       fi
17665       hardcode_libdir_separator_GCJ=:
17666       ;;
17667
17668     solaris*)
17669       no_undefined_flag_GCJ=' -z text'
17670       if test "$GCC" = yes; then
17671         wlarc='${wl}'
17672         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17673         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17674           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17675       else
17676         wlarc=''
17677         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17678         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17679         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17680       fi
17681       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17682       hardcode_shlibpath_var_GCJ=no
17683       case $host_os in
17684       solaris2.[0-5] | solaris2.[0-5].*) ;;
17685       *)
17686         # The compiler driver will combine linker options so we
17687         # cannot just pass the convience library names through
17688         # without $wl, iff we do not link with $LD.
17689         # Luckily, gcc supports the same syntax we need for Sun Studio.
17690         # Supported since Solaris 2.6 (maybe 2.5.1?)
17691         case $wlarc in
17692         '')
17693           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17694         *)
17695           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17696         esac ;;
17697       esac
17698       link_all_deplibs_GCJ=yes
17699       ;;
17700
17701     sunos4*)
17702       if test "x$host_vendor" = xsequent; then
17703         # Use $CC to link under sequent, because it throws in some extra .o
17704         # files that make .init and .fini sections work.
17705         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17706       else
17707         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17708       fi
17709       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17710       hardcode_direct_GCJ=yes
17711       hardcode_minus_L_GCJ=yes
17712       hardcode_shlibpath_var_GCJ=no
17713       ;;
17714
17715     sysv4)
17716       case $host_vendor in
17717         sni)
17718           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719           hardcode_direct_GCJ=yes # is this really true???
17720         ;;
17721         siemens)
17722           ## LD is ld it makes a PLAMLIB
17723           ## CC just makes a GrossModule.
17724           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17725           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17726           hardcode_direct_GCJ=no
17727         ;;
17728         motorola)
17729           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17730           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17731         ;;
17732       esac
17733       runpath_var='LD_RUN_PATH'
17734       hardcode_shlibpath_var_GCJ=no
17735       ;;
17736
17737     sysv4.3*)
17738       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739       hardcode_shlibpath_var_GCJ=no
17740       export_dynamic_flag_spec_GCJ='-Bexport'
17741       ;;
17742
17743     sysv4*MP*)
17744       if test -d /usr/nec; then
17745         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17746         hardcode_shlibpath_var_GCJ=no
17747         runpath_var=LD_RUN_PATH
17748         hardcode_runpath_var=yes
17749         ld_shlibs_GCJ=yes
17750       fi
17751       ;;
17752
17753     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17754       no_undefined_flag_GCJ='${wl}-z,text'
17755       archive_cmds_need_lc_GCJ=no
17756       hardcode_shlibpath_var_GCJ=no
17757       runpath_var='LD_RUN_PATH'
17758
17759       if test "$GCC" = yes; then
17760         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17762       else
17763         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17764         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17765       fi
17766       ;;
17767
17768     sysv5* | sco3.2v5* | sco5v6*)
17769       # Note: We can NOT use -z defs as we might desire, because we do not
17770       # link with -lc, and that would cause any symbols used from libc to
17771       # always be unresolved, which means just about no library would
17772       # ever link correctly.  If we're not using GNU ld we use -z text
17773       # though, which does catch some bad symbols but isn't as heavy-handed
17774       # as -z defs.
17775       no_undefined_flag_GCJ='${wl}-z,text'
17776       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17777       archive_cmds_need_lc_GCJ=no
17778       hardcode_shlibpath_var_GCJ=no
17779       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17780       hardcode_libdir_separator_GCJ=':'
17781       link_all_deplibs_GCJ=yes
17782       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17783       runpath_var='LD_RUN_PATH'
17784
17785       if test "$GCC" = yes; then
17786         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17788       else
17789         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17790         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17791       fi
17792       ;;
17793
17794     uts4*)
17795       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17796       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797       hardcode_shlibpath_var_GCJ=no
17798       ;;
17799
17800     *)
17801       ld_shlibs_GCJ=no
17802       ;;
17803     esac
17804   fi
17805
17806 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17807 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17808 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17809
17810 #
17811 # Do we need to explicitly link libc?
17812 #
17813 case "x$archive_cmds_need_lc_GCJ" in
17814 x|xyes)
17815   # Assume -lc should be added
17816   archive_cmds_need_lc_GCJ=yes
17817
17818   if test "$enable_shared" = yes && test "$GCC" = yes; then
17819     case $archive_cmds_GCJ in
17820     *'~'*)
17821       # FIXME: we may have to deal with multi-command sequences.
17822       ;;
17823     '$CC '*)
17824       # Test whether the compiler implicitly links with -lc since on some
17825       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17826       # to ld, don't add -lc before -lgcc.
17827       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17828 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17829       $rm conftest*
17830       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17831
17832       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833   (eval $ac_compile) 2>&5
17834   ac_status=$?
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } 2>conftest.err; then
17837         soname=conftest
17838         lib=conftest
17839         libobjs=conftest.$ac_objext
17840         deplibs=
17841         wl=$lt_prog_compiler_wl_GCJ
17842         pic_flag=$lt_prog_compiler_pic_GCJ
17843         compiler_flags=-v
17844         linker_flags=-v
17845         verstring=
17846         output_objdir=.
17847         libname=conftest
17848         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17849         allow_undefined_flag_GCJ=
17850         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17851   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }
17855         then
17856           archive_cmds_need_lc_GCJ=no
17857         else
17858           archive_cmds_need_lc_GCJ=yes
17859         fi
17860         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17861       else
17862         cat conftest.err 1>&5
17863       fi
17864       $rm conftest*
17865       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17866 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17867       ;;
17868     esac
17869   fi
17870   ;;
17871 esac
17872
17873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17875 library_names_spec=
17876 libname_spec='lib$name'
17877 soname_spec=
17878 shrext_cmds=".so"
17879 postinstall_cmds=
17880 postuninstall_cmds=
17881 finish_cmds=
17882 finish_eval=
17883 shlibpath_var=
17884 shlibpath_overrides_runpath=unknown
17885 version_type=none
17886 dynamic_linker="$host_os ld.so"
17887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17888 if test "$GCC" = yes; then
17889   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17890   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17891     # if the path contains ";" then we assume it to be the separator
17892     # otherwise default to the standard path separator (i.e. ":") - it is
17893     # assumed that no part of a normal pathname contains ";" but that should
17894     # okay in the real world where ";" in dirpaths is itself problematic.
17895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17896   else
17897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17898   fi
17899 else
17900   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17901 fi
17902 need_lib_prefix=unknown
17903 hardcode_into_libs=no
17904
17905 # when you set need_version to no, make sure it does not cause -set_version
17906 # flags to be left without arguments
17907 need_version=unknown
17908
17909 case $host_os in
17910 aix3*)
17911   version_type=linux
17912   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17913   shlibpath_var=LIBPATH
17914
17915   # AIX 3 has no versioning support, so we append a major version to the name.
17916   soname_spec='${libname}${release}${shared_ext}$major'
17917   ;;
17918
17919 aix4* | aix5*)
17920   version_type=linux
17921   need_lib_prefix=no
17922   need_version=no
17923   hardcode_into_libs=yes
17924   if test "$host_cpu" = ia64; then
17925     # AIX 5 supports IA64
17926     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17927     shlibpath_var=LD_LIBRARY_PATH
17928   else
17929     # With GCC up to 2.95.x, collect2 would create an import file
17930     # for dependence libraries.  The import file would start with
17931     # the line `#! .'.  This would cause the generated library to
17932     # depend on `.', always an invalid library.  This was fixed in
17933     # development snapshots of GCC prior to 3.0.
17934     case $host_os in
17935       aix4 | aix4.[01] | aix4.[01].*)
17936       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17937            echo ' yes '
17938            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17939         :
17940       else
17941         can_build_shared=no
17942       fi
17943       ;;
17944     esac
17945     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17946     # soname into executable. Probably we can add versioning support to
17947     # collect2, so additional links can be useful in future.
17948     if test "$aix_use_runtimelinking" = yes; then
17949       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17950       # instead of lib<name>.a to let people know that these are not
17951       # typical AIX shared libraries.
17952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953     else
17954       # We preserve .a as extension for shared libraries through AIX4.2
17955       # and later when we are not doing run time linking.
17956       library_names_spec='${libname}${release}.a $libname.a'
17957       soname_spec='${libname}${release}${shared_ext}$major'
17958     fi
17959     shlibpath_var=LIBPATH
17960   fi
17961   ;;
17962
17963 amigaos*)
17964   library_names_spec='$libname.ixlibrary $libname.a'
17965   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17966   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'
17967   ;;
17968
17969 beos*)
17970   library_names_spec='${libname}${shared_ext}'
17971   dynamic_linker="$host_os ld.so"
17972   shlibpath_var=LIBRARY_PATH
17973   ;;
17974
17975 bsdi[45]*)
17976   version_type=linux
17977   need_version=no
17978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17979   soname_spec='${libname}${release}${shared_ext}$major'
17980   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17981   shlibpath_var=LD_LIBRARY_PATH
17982   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17983   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17984   # the default ld.so.conf also contains /usr/contrib/lib and
17985   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17986   # libtool to hard-code these into programs
17987   ;;
17988
17989 cygwin* | mingw* | pw32*)
17990   version_type=windows
17991   shrext_cmds=".dll"
17992   need_version=no
17993   need_lib_prefix=no
17994
17995   case $GCC,$host_os in
17996   yes,cygwin* | yes,mingw* | yes,pw32*)
17997     library_names_spec='$libname.dll.a'
17998     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17999     postinstall_cmds='base_file=`basename \${file}`~
18000       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18001       dldir=$destdir/`dirname \$dlpath`~
18002       test -d \$dldir || mkdir -p \$dldir~
18003       $install_prog $dir/$dlname \$dldir/$dlname~
18004       chmod a+x \$dldir/$dlname'
18005     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18006       dlpath=$dir/\$dldll~
18007        $rm \$dlpath'
18008     shlibpath_overrides_runpath=yes
18009
18010     case $host_os in
18011     cygwin*)
18012       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18013       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18014       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18015       ;;
18016     mingw*)
18017       # MinGW DLLs use traditional 'lib' prefix
18018       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18019       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18020       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18021         # It is most probably a Windows format PATH printed by
18022         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18023         # path with ; separators, and with drive letters. We can handle the
18024         # drive letters (cygwin fileutils understands them), so leave them,
18025         # especially as we might pass files found there to a mingw objdump,
18026         # which wouldn't understand a cygwinified path. Ahh.
18027         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18028       else
18029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18030       fi
18031       ;;
18032     pw32*)
18033       # pw32 DLLs use 'pw' prefix rather than 'lib'
18034       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18035       ;;
18036     esac
18037     ;;
18038
18039   *)
18040     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18041     ;;
18042   esac
18043   dynamic_linker='Win32 ld.exe'
18044   # FIXME: first we should search . and the directory the executable is in
18045   shlibpath_var=PATH
18046   ;;
18047
18048 darwin* | rhapsody*)
18049   dynamic_linker="$host_os dyld"
18050   version_type=darwin
18051   need_lib_prefix=no
18052   need_version=no
18053   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18054   soname_spec='${libname}${release}${major}$shared_ext'
18055   shlibpath_overrides_runpath=yes
18056   shlibpath_var=DYLD_LIBRARY_PATH
18057   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18058   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18059   if test "$GCC" = yes; then
18060     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18061   else
18062     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18063   fi
18064   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18065   ;;
18066
18067 dgux*)
18068   version_type=linux
18069   need_lib_prefix=no
18070   need_version=no
18071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18072   soname_spec='${libname}${release}${shared_ext}$major'
18073   shlibpath_var=LD_LIBRARY_PATH
18074   ;;
18075
18076 freebsd1*)
18077   dynamic_linker=no
18078   ;;
18079
18080 kfreebsd*-gnu)
18081   version_type=linux
18082   need_lib_prefix=no
18083   need_version=no
18084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085   soname_spec='${libname}${release}${shared_ext}$major'
18086   shlibpath_var=LD_LIBRARY_PATH
18087   shlibpath_overrides_runpath=no
18088   hardcode_into_libs=yes
18089   dynamic_linker='GNU ld.so'
18090   ;;
18091
18092 freebsd* | dragonfly*)
18093   # DragonFly does not have aout.  When/if they implement a new
18094   # versioning mechanism, adjust this.
18095   if test -x /usr/bin/objformat; then
18096     objformat=`/usr/bin/objformat`
18097   else
18098     case $host_os in
18099     freebsd[123]*) objformat=aout ;;
18100     *) objformat=elf ;;
18101     esac
18102   fi
18103   version_type=freebsd-$objformat
18104   case $version_type in
18105     freebsd-elf*)
18106       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18107       need_version=no
18108       need_lib_prefix=no
18109       ;;
18110     freebsd-*)
18111       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18112       need_version=yes
18113       ;;
18114   esac
18115   shlibpath_var=LD_LIBRARY_PATH
18116   case $host_os in
18117   freebsd2*)
18118     shlibpath_overrides_runpath=yes
18119     ;;
18120   freebsd3.[01]* | freebsdelf3.[01]*)
18121     shlibpath_overrides_runpath=yes
18122     hardcode_into_libs=yes
18123     ;;
18124   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18125   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18126     shlibpath_overrides_runpath=no
18127     hardcode_into_libs=yes
18128     ;;
18129   freebsd*) # from 4.6 on
18130     shlibpath_overrides_runpath=yes
18131     hardcode_into_libs=yes
18132     ;;
18133   esac
18134   ;;
18135
18136 gnu*)
18137   version_type=linux
18138   need_lib_prefix=no
18139   need_version=no
18140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18141   soname_spec='${libname}${release}${shared_ext}$major'
18142   shlibpath_var=LD_LIBRARY_PATH
18143   hardcode_into_libs=yes
18144   ;;
18145
18146 hpux9* | hpux10* | hpux11*)
18147   # Give a soname corresponding to the major version so that dld.sl refuses to
18148   # link against other versions.
18149   version_type=sunos
18150   need_lib_prefix=no
18151   need_version=no
18152   case $host_cpu in
18153   ia64*)
18154     shrext_cmds='.so'
18155     hardcode_into_libs=yes
18156     dynamic_linker="$host_os dld.so"
18157     shlibpath_var=LD_LIBRARY_PATH
18158     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160     soname_spec='${libname}${release}${shared_ext}$major'
18161     if test "X$HPUX_IA64_MODE" = X32; then
18162       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18163     else
18164       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18165     fi
18166     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18167     ;;
18168    hppa*64*)
18169      shrext_cmds='.sl'
18170      hardcode_into_libs=yes
18171      dynamic_linker="$host_os dld.sl"
18172      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18173      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18174      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175      soname_spec='${libname}${release}${shared_ext}$major'
18176      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18177      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18178      ;;
18179    *)
18180     shrext_cmds='.sl'
18181     dynamic_linker="$host_os dld.sl"
18182     shlibpath_var=SHLIB_PATH
18183     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185     soname_spec='${libname}${release}${shared_ext}$major'
18186     ;;
18187   esac
18188   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18189   postinstall_cmds='chmod 555 $lib'
18190   ;;
18191
18192 interix3*)
18193   version_type=linux
18194   need_lib_prefix=no
18195   need_version=no
18196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18197   soname_spec='${libname}${release}${shared_ext}$major'
18198   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18199   shlibpath_var=LD_LIBRARY_PATH
18200   shlibpath_overrides_runpath=no
18201   hardcode_into_libs=yes
18202   ;;
18203
18204 irix5* | irix6* | nonstopux*)
18205   case $host_os in
18206     nonstopux*) version_type=nonstopux ;;
18207     *)
18208         if test "$lt_cv_prog_gnu_ld" = yes; then
18209                 version_type=linux
18210         else
18211                 version_type=irix
18212         fi ;;
18213   esac
18214   need_lib_prefix=no
18215   need_version=no
18216   soname_spec='${libname}${release}${shared_ext}$major'
18217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18218   case $host_os in
18219   irix5* | nonstopux*)
18220     libsuff= shlibsuff=
18221     ;;
18222   *)
18223     case $LD in # libtool.m4 will add one of these switches to LD
18224     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18225       libsuff= shlibsuff= libmagic=32-bit;;
18226     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18227       libsuff=32 shlibsuff=N32 libmagic=N32;;
18228     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18229       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18230     *) libsuff= shlibsuff= libmagic=never-match;;
18231     esac
18232     ;;
18233   esac
18234   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18235   shlibpath_overrides_runpath=no
18236   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18237   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18238   hardcode_into_libs=yes
18239   ;;
18240
18241 # No shared lib support for Linux oldld, aout, or coff.
18242 linux*oldld* | linux*aout* | linux*coff*)
18243   dynamic_linker=no
18244   ;;
18245
18246 # This must be Linux ELF.
18247 linux*)
18248   version_type=linux
18249   need_lib_prefix=no
18250   need_version=no
18251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252   soname_spec='${libname}${release}${shared_ext}$major'
18253   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18254   shlibpath_var=LD_LIBRARY_PATH
18255   shlibpath_overrides_runpath=no
18256   # This implies no fast_install, which is unacceptable.
18257   # Some rework will be needed to allow for fast_install
18258   # before this can be enabled.
18259   hardcode_into_libs=yes
18260
18261   # Append ld.so.conf contents to the search path
18262   if test -f /etc/ld.so.conf; then
18263     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18264     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18265   fi
18266
18267   # We used to test for /lib/ld.so.1 and disable shared libraries on
18268   # powerpc, because MkLinux only supported shared libraries with the
18269   # GNU dynamic linker.  Since this was broken with cross compilers,
18270   # most powerpc-linux boxes support dynamic linking these days and
18271   # people can always --disable-shared, the test was removed, and we
18272   # assume the GNU/Linux dynamic linker is in use.
18273   dynamic_linker='GNU/Linux ld.so'
18274   ;;
18275
18276 knetbsd*-gnu)
18277   version_type=linux
18278   need_lib_prefix=no
18279   need_version=no
18280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18281   soname_spec='${libname}${release}${shared_ext}$major'
18282   shlibpath_var=LD_LIBRARY_PATH
18283   shlibpath_overrides_runpath=no
18284   hardcode_into_libs=yes
18285   dynamic_linker='GNU ld.so'
18286   ;;
18287
18288 netbsd*)
18289   version_type=sunos
18290   need_lib_prefix=no
18291   need_version=no
18292   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18294     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18295     dynamic_linker='NetBSD (a.out) ld.so'
18296   else
18297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18298     soname_spec='${libname}${release}${shared_ext}$major'
18299     dynamic_linker='NetBSD ld.elf_so'
18300   fi
18301   shlibpath_var=LD_LIBRARY_PATH
18302   shlibpath_overrides_runpath=yes
18303   hardcode_into_libs=yes
18304   ;;
18305
18306 newsos6)
18307   version_type=linux
18308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309   shlibpath_var=LD_LIBRARY_PATH
18310   shlibpath_overrides_runpath=yes
18311   ;;
18312
18313 nto-qnx*)
18314   version_type=linux
18315   need_lib_prefix=no
18316   need_version=no
18317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318   soname_spec='${libname}${release}${shared_ext}$major'
18319   shlibpath_var=LD_LIBRARY_PATH
18320   shlibpath_overrides_runpath=yes
18321   ;;
18322
18323 openbsd*)
18324   version_type=sunos
18325   sys_lib_dlsearch_path_spec="/usr/lib"
18326   need_lib_prefix=no
18327   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18328   case $host_os in
18329     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18330     *)                         need_version=no  ;;
18331   esac
18332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18333   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18334   shlibpath_var=LD_LIBRARY_PATH
18335   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18336     case $host_os in
18337       openbsd2.[89] | openbsd2.[89].*)
18338         shlibpath_overrides_runpath=no
18339         ;;
18340       *)
18341         shlibpath_overrides_runpath=yes
18342         ;;
18343       esac
18344   else
18345     shlibpath_overrides_runpath=yes
18346   fi
18347   ;;
18348
18349 os2*)
18350   libname_spec='$name'
18351   shrext_cmds=".dll"
18352   need_lib_prefix=no
18353   library_names_spec='$libname${shared_ext} $libname.a'
18354   dynamic_linker='OS/2 ld.exe'
18355   shlibpath_var=LIBPATH
18356   ;;
18357
18358 osf3* | osf4* | osf5*)
18359   version_type=osf
18360   need_lib_prefix=no
18361   need_version=no
18362   soname_spec='${libname}${release}${shared_ext}$major'
18363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364   shlibpath_var=LD_LIBRARY_PATH
18365   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18366   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18367   ;;
18368
18369 solaris*)
18370   version_type=linux
18371   need_lib_prefix=no
18372   need_version=no
18373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18374   soname_spec='${libname}${release}${shared_ext}$major'
18375   shlibpath_var=LD_LIBRARY_PATH
18376   shlibpath_overrides_runpath=yes
18377   hardcode_into_libs=yes
18378   # ldd complains unless libraries are executable
18379   postinstall_cmds='chmod +x $lib'
18380   ;;
18381
18382 sunos4*)
18383   version_type=sunos
18384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18385   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18386   shlibpath_var=LD_LIBRARY_PATH
18387   shlibpath_overrides_runpath=yes
18388   if test "$with_gnu_ld" = yes; then
18389     need_lib_prefix=no
18390   fi
18391   need_version=yes
18392   ;;
18393
18394 sysv4 | sysv4.3*)
18395   version_type=linux
18396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18397   soname_spec='${libname}${release}${shared_ext}$major'
18398   shlibpath_var=LD_LIBRARY_PATH
18399   case $host_vendor in
18400     sni)
18401       shlibpath_overrides_runpath=no
18402       need_lib_prefix=no
18403       export_dynamic_flag_spec='${wl}-Blargedynsym'
18404       runpath_var=LD_RUN_PATH
18405       ;;
18406     siemens)
18407       need_lib_prefix=no
18408       ;;
18409     motorola)
18410       need_lib_prefix=no
18411       need_version=no
18412       shlibpath_overrides_runpath=no
18413       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18414       ;;
18415   esac
18416   ;;
18417
18418 sysv4*MP*)
18419   if test -d /usr/nec ;then
18420     version_type=linux
18421     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18422     soname_spec='$libname${shared_ext}.$major'
18423     shlibpath_var=LD_LIBRARY_PATH
18424   fi
18425   ;;
18426
18427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18428   version_type=freebsd-elf
18429   need_lib_prefix=no
18430   need_version=no
18431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18432   soname_spec='${libname}${release}${shared_ext}$major'
18433   shlibpath_var=LD_LIBRARY_PATH
18434   hardcode_into_libs=yes
18435   if test "$with_gnu_ld" = yes; then
18436     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18437     shlibpath_overrides_runpath=no
18438   else
18439     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18440     shlibpath_overrides_runpath=yes
18441     case $host_os in
18442       sco3.2v5*)
18443         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18444         ;;
18445     esac
18446   fi
18447   sys_lib_dlsearch_path_spec='/usr/lib'
18448   ;;
18449
18450 uts4*)
18451   version_type=linux
18452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18453   soname_spec='${libname}${release}${shared_ext}$major'
18454   shlibpath_var=LD_LIBRARY_PATH
18455   ;;
18456
18457 *)
18458   dynamic_linker=no
18459   ;;
18460 esac
18461 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18462 echo "${ECHO_T}$dynamic_linker" >&6; }
18463 test "$dynamic_linker" = no && can_build_shared=no
18464
18465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18466 if test "$GCC" = yes; then
18467   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18468 fi
18469
18470 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18471 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18472 hardcode_action_GCJ=
18473 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18474    test -n "$runpath_var_GCJ" || \
18475    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18476
18477   # We can hardcode non-existant directories.
18478   if test "$hardcode_direct_GCJ" != no &&
18479      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18480      # have to relink, otherwise we might link with an installed library
18481      # when we should be linking with a yet-to-be-installed one
18482      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18483      test "$hardcode_minus_L_GCJ" != no; then
18484     # Linking always hardcodes the temporary library directory.
18485     hardcode_action_GCJ=relink
18486   else
18487     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18488     hardcode_action_GCJ=immediate
18489   fi
18490 else
18491   # We cannot hardcode anything, or else we can only hardcode existing
18492   # directories.
18493   hardcode_action_GCJ=unsupported
18494 fi
18495 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18496 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18497
18498 if test "$hardcode_action_GCJ" = relink; then
18499   # Fast installation is not supported
18500   enable_fast_install=no
18501 elif test "$shlibpath_overrides_runpath" = yes ||
18502      test "$enable_shared" = no; then
18503   # Fast installation is not necessary
18504   enable_fast_install=needless
18505 fi
18506
18507
18508 # The else clause should only fire when bootstrapping the
18509 # libtool distribution, otherwise you forgot to ship ltmain.sh
18510 # with your package, and you will get complaints that there are
18511 # no rules to generate ltmain.sh.
18512 if test -f "$ltmain"; then
18513   # See if we are running on zsh, and set the options which allow our commands through
18514   # without removal of \ escapes.
18515   if test -n "${ZSH_VERSION+set}" ; then
18516     setopt NO_GLOB_SUBST
18517   fi
18518   # Now quote all the things that may contain metacharacters while being
18519   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18520   # variables and quote the copies for generation of the libtool script.
18521   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18522     SED SHELL STRIP \
18523     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18524     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18525     deplibs_check_method reload_flag reload_cmds need_locks \
18526     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18527     lt_cv_sys_global_symbol_to_c_name_address \
18528     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18529     old_postinstall_cmds old_postuninstall_cmds \
18530     compiler_GCJ \
18531     CC_GCJ \
18532     LD_GCJ \
18533     lt_prog_compiler_wl_GCJ \
18534     lt_prog_compiler_pic_GCJ \
18535     lt_prog_compiler_static_GCJ \
18536     lt_prog_compiler_no_builtin_flag_GCJ \
18537     export_dynamic_flag_spec_GCJ \
18538     thread_safe_flag_spec_GCJ \
18539     whole_archive_flag_spec_GCJ \
18540     enable_shared_with_static_runtimes_GCJ \
18541     old_archive_cmds_GCJ \
18542     old_archive_from_new_cmds_GCJ \
18543     predep_objects_GCJ \
18544     postdep_objects_GCJ \
18545     predeps_GCJ \
18546     postdeps_GCJ \
18547     compiler_lib_search_path_GCJ \
18548     archive_cmds_GCJ \
18549     archive_expsym_cmds_GCJ \
18550     postinstall_cmds_GCJ \
18551     postuninstall_cmds_GCJ \
18552     old_archive_from_expsyms_cmds_GCJ \
18553     allow_undefined_flag_GCJ \
18554     no_undefined_flag_GCJ \
18555     export_symbols_cmds_GCJ \
18556     hardcode_libdir_flag_spec_GCJ \
18557     hardcode_libdir_flag_spec_ld_GCJ \
18558     hardcode_libdir_separator_GCJ \
18559     hardcode_automatic_GCJ \
18560     module_cmds_GCJ \
18561     module_expsym_cmds_GCJ \
18562     lt_cv_prog_compiler_c_o_GCJ \
18563     exclude_expsyms_GCJ \
18564     include_expsyms_GCJ; do
18565
18566     case $var in
18567     old_archive_cmds_GCJ | \
18568     old_archive_from_new_cmds_GCJ | \
18569     archive_cmds_GCJ | \
18570     archive_expsym_cmds_GCJ | \
18571     module_cmds_GCJ | \
18572     module_expsym_cmds_GCJ | \
18573     old_archive_from_expsyms_cmds_GCJ | \
18574     export_symbols_cmds_GCJ | \
18575     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18576     postinstall_cmds | postuninstall_cmds | \
18577     old_postinstall_cmds | old_postuninstall_cmds | \
18578     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18579       # Double-quote double-evaled strings.
18580       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18581       ;;
18582     *)
18583       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18584       ;;
18585     esac
18586   done
18587
18588   case $lt_echo in
18589   *'\$0 --fallback-echo"')
18590     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18591     ;;
18592   esac
18593
18594 cfgfile="$ofile"
18595
18596   cat <<__EOF__ >> "$cfgfile"
18597 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18598
18599 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18600
18601 # Shell to use when invoking shell scripts.
18602 SHELL=$lt_SHELL
18603
18604 # Whether or not to build shared libraries.
18605 build_libtool_libs=$enable_shared
18606
18607 # Whether or not to build static libraries.
18608 build_old_libs=$enable_static
18609
18610 # Whether or not to add -lc for building shared libraries.
18611 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18612
18613 # Whether or not to disallow shared libs when runtime libs are static
18614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18615
18616 # Whether or not to optimize for fast installation.
18617 fast_install=$enable_fast_install
18618
18619 # The host system.
18620 host_alias=$host_alias
18621 host=$host
18622 host_os=$host_os
18623
18624 # The build system.
18625 build_alias=$build_alias
18626 build=$build
18627 build_os=$build_os
18628
18629 # An echo program that does not interpret backslashes.
18630 echo=$lt_echo
18631
18632 # The archiver.
18633 AR=$lt_AR
18634 AR_FLAGS=$lt_AR_FLAGS
18635
18636 # A C compiler.
18637 LTCC=$lt_LTCC
18638
18639 # LTCC compiler flags.
18640 LTCFLAGS=$lt_LTCFLAGS
18641
18642 # A language-specific compiler.
18643 CC=$lt_compiler_GCJ
18644
18645 # Is the compiler the GNU C compiler?
18646 with_gcc=$GCC_GCJ
18647
18648 # An ERE matcher.
18649 EGREP=$lt_EGREP
18650
18651 # The linker used to build libraries.
18652 LD=$lt_LD_GCJ
18653
18654 # Whether we need hard or soft links.
18655 LN_S=$lt_LN_S
18656
18657 # A BSD-compatible nm program.
18658 NM=$lt_NM
18659
18660 # A symbol stripping program
18661 STRIP=$lt_STRIP
18662
18663 # Used to examine libraries when file_magic_cmd begins "file"
18664 MAGIC_CMD=$MAGIC_CMD
18665
18666 # Used on cygwin: DLL creation program.
18667 DLLTOOL="$DLLTOOL"
18668
18669 # Used on cygwin: object dumper.
18670 OBJDUMP="$OBJDUMP"
18671
18672 # Used on cygwin: assembler.
18673 AS="$AS"
18674
18675 # The name of the directory that contains temporary libtool files.
18676 objdir=$objdir
18677
18678 # How to create reloadable object files.
18679 reload_flag=$lt_reload_flag
18680 reload_cmds=$lt_reload_cmds
18681
18682 # How to pass a linker flag through the compiler.
18683 wl=$lt_lt_prog_compiler_wl_GCJ
18684
18685 # Object file suffix (normally "o").
18686 objext="$ac_objext"
18687
18688 # Old archive suffix (normally "a").
18689 libext="$libext"
18690
18691 # Shared library suffix (normally ".so").
18692 shrext_cmds='$shrext_cmds'
18693
18694 # Executable file suffix (normally "").
18695 exeext="$exeext"
18696
18697 # Additional compiler flags for building library objects.
18698 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18699 pic_mode=$pic_mode
18700
18701 # What is the maximum length of a command?
18702 max_cmd_len=$lt_cv_sys_max_cmd_len
18703
18704 # Does compiler simultaneously support -c and -o options?
18705 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18706
18707 # Must we lock files when doing compilation?
18708 need_locks=$lt_need_locks
18709
18710 # Do we need the lib prefix for modules?
18711 need_lib_prefix=$need_lib_prefix
18712
18713 # Do we need a version for libraries?
18714 need_version=$need_version
18715
18716 # Whether dlopen is supported.
18717 dlopen_support=$enable_dlopen
18718
18719 # Whether dlopen of programs is supported.
18720 dlopen_self=$enable_dlopen_self
18721
18722 # Whether dlopen of statically linked programs is supported.
18723 dlopen_self_static=$enable_dlopen_self_static
18724
18725 # Compiler flag to prevent dynamic linking.
18726 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18727
18728 # Compiler flag to turn off builtin functions.
18729 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18730
18731 # Compiler flag to allow reflexive dlopens.
18732 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18733
18734 # Compiler flag to generate shared objects directly from archives.
18735 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18736
18737 # Compiler flag to generate thread-safe objects.
18738 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18739
18740 # Library versioning type.
18741 version_type=$version_type
18742
18743 # Format of library name prefix.
18744 libname_spec=$lt_libname_spec
18745
18746 # List of archive names.  First name is the real one, the rest are links.
18747 # The last name is the one that the linker finds with -lNAME.
18748 library_names_spec=$lt_library_names_spec
18749
18750 # The coded name of the library, if different from the real name.
18751 soname_spec=$lt_soname_spec
18752
18753 # Commands used to build and install an old-style archive.
18754 RANLIB=$lt_RANLIB
18755 old_archive_cmds=$lt_old_archive_cmds_GCJ
18756 old_postinstall_cmds=$lt_old_postinstall_cmds
18757 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18758
18759 # Create an old-style archive from a shared archive.
18760 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18761
18762 # Create a temporary old-style archive to link instead of a shared archive.
18763 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18764
18765 # Commands used to build and install a shared archive.
18766 archive_cmds=$lt_archive_cmds_GCJ
18767 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18768 postinstall_cmds=$lt_postinstall_cmds
18769 postuninstall_cmds=$lt_postuninstall_cmds
18770
18771 # Commands used to build a loadable module (assumed same as above if empty)
18772 module_cmds=$lt_module_cmds_GCJ
18773 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18774
18775 # Commands to strip libraries.
18776 old_striplib=$lt_old_striplib
18777 striplib=$lt_striplib
18778
18779 # Dependencies to place before the objects being linked to create a
18780 # shared library.
18781 predep_objects=$lt_predep_objects_GCJ
18782
18783 # Dependencies to place after the objects being linked to create a
18784 # shared library.
18785 postdep_objects=$lt_postdep_objects_GCJ
18786
18787 # Dependencies to place before the objects being linked to create a
18788 # shared library.
18789 predeps=$lt_predeps_GCJ
18790
18791 # Dependencies to place after the objects being linked to create a
18792 # shared library.
18793 postdeps=$lt_postdeps_GCJ
18794
18795 # The library search path used internally by the compiler when linking
18796 # a shared library.
18797 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18798
18799 # Method to check whether dependent libraries are shared objects.
18800 deplibs_check_method=$lt_deplibs_check_method
18801
18802 # Command to use when deplibs_check_method == file_magic.
18803 file_magic_cmd=$lt_file_magic_cmd
18804
18805 # Flag that allows shared libraries with undefined symbols to be built.
18806 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18807
18808 # Flag that forces no undefined symbols.
18809 no_undefined_flag=$lt_no_undefined_flag_GCJ
18810
18811 # Commands used to finish a libtool library installation in a directory.
18812 finish_cmds=$lt_finish_cmds
18813
18814 # Same as above, but a single script fragment to be evaled but not shown.
18815 finish_eval=$lt_finish_eval
18816
18817 # Take the output of nm and produce a listing of raw symbols and C names.
18818 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18819
18820 # Transform the output of nm in a proper C declaration
18821 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18822
18823 # Transform the output of nm in a C name address pair
18824 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18825
18826 # This is the shared library runtime path variable.
18827 runpath_var=$runpath_var
18828
18829 # This is the shared library path variable.
18830 shlibpath_var=$shlibpath_var
18831
18832 # Is shlibpath searched before the hard-coded library search path?
18833 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18834
18835 # How to hardcode a shared library path into an executable.
18836 hardcode_action=$hardcode_action_GCJ
18837
18838 # Whether we should hardcode library paths into libraries.
18839 hardcode_into_libs=$hardcode_into_libs
18840
18841 # Flag to hardcode \$libdir into a binary during linking.
18842 # This must work even if \$libdir does not exist.
18843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18844
18845 # If ld is used when linking, flag to hardcode \$libdir into
18846 # a binary during linking. This must work even if \$libdir does
18847 # not exist.
18848 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18849
18850 # Whether we need a single -rpath flag with a separated argument.
18851 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18852
18853 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18854 # resulting binary.
18855 hardcode_direct=$hardcode_direct_GCJ
18856
18857 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18858 # resulting binary.
18859 hardcode_minus_L=$hardcode_minus_L_GCJ
18860
18861 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18862 # the resulting binary.
18863 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18864
18865 # Set to yes if building a shared library automatically hardcodes DIR into the library
18866 # and all subsequent libraries and executables linked against it.
18867 hardcode_automatic=$hardcode_automatic_GCJ
18868
18869 # Variables whose values should be saved in libtool wrapper scripts and
18870 # restored at relink time.
18871 variables_saved_for_relink="$variables_saved_for_relink"
18872
18873 # Whether libtool must link a program against all its dependency libraries.
18874 link_all_deplibs=$link_all_deplibs_GCJ
18875
18876 # Compile-time system search path for libraries
18877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18878
18879 # Run-time system search path for libraries
18880 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18881
18882 # Fix the shell variable \$srcfile for the compiler.
18883 fix_srcfile_path="$fix_srcfile_path_GCJ"
18884
18885 # Set to yes if exported symbols are required.
18886 always_export_symbols=$always_export_symbols_GCJ
18887
18888 # The commands to list exported symbols.
18889 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18890
18891 # The commands to extract the exported symbol list from a shared archive.
18892 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18893
18894 # Symbols that should not be listed in the preloaded symbols.
18895 exclude_expsyms=$lt_exclude_expsyms_GCJ
18896
18897 # Symbols that must always be exported.
18898 include_expsyms=$lt_include_expsyms_GCJ
18899
18900 # ### END LIBTOOL TAG CONFIG: $tagname
18901
18902 __EOF__
18903
18904
18905 else
18906   # If there is no Makefile yet, we rely on a make rule to execute
18907   # `config.status --recheck' to rerun these tests and create the
18908   # libtool script then.
18909   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18910   if test -f "$ltmain_in"; then
18911     test -f Makefile && make "$ltmain"
18912   fi
18913 fi
18914
18915
18916 ac_ext=c
18917 ac_cpp='$CPP $CPPFLAGS'
18918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18921
18922 CC="$lt_save_CC"
18923
18924         else
18925           tagname=""
18926         fi
18927         ;;
18928
18929       RC)
18930
18931
18932 # Source file extension for RC test sources.
18933 ac_ext=rc
18934
18935 # Object file extension for compiled RC test sources.
18936 objext=o
18937 objext_RC=$objext
18938
18939 # Code to be used in simple compile tests
18940 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18941
18942 # Code to be used in simple link tests
18943 lt_simple_link_test_code="$lt_simple_compile_test_code"
18944
18945 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18946
18947 # If no C compiler was specified, use CC.
18948 LTCC=${LTCC-"$CC"}
18949
18950 # If no C compiler flags were specified, use CFLAGS.
18951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18952
18953 # Allow CC to be a program name with arguments.
18954 compiler=$CC
18955
18956
18957 # save warnings/boilerplate of simple test code
18958 ac_outfile=conftest.$ac_objext
18959 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18960 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18961 _lt_compiler_boilerplate=`cat conftest.err`
18962 $rm conftest*
18963
18964 ac_outfile=conftest.$ac_objext
18965 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18966 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18967 _lt_linker_boilerplate=`cat conftest.err`
18968 $rm conftest*
18969
18970
18971 # Allow CC to be a program name with arguments.
18972 lt_save_CC="$CC"
18973 CC=${RC-"windres"}
18974 compiler=$CC
18975 compiler_RC=$CC
18976 for cc_temp in $compiler""; do
18977   case $cc_temp in
18978     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18979     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18980     \-*) ;;
18981     *) break;;
18982   esac
18983 done
18984 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18985
18986 lt_cv_prog_compiler_c_o_RC=yes
18987
18988 # The else clause should only fire when bootstrapping the
18989 # libtool distribution, otherwise you forgot to ship ltmain.sh
18990 # with your package, and you will get complaints that there are
18991 # no rules to generate ltmain.sh.
18992 if test -f "$ltmain"; then
18993   # See if we are running on zsh, and set the options which allow our commands through
18994   # without removal of \ escapes.
18995   if test -n "${ZSH_VERSION+set}" ; then
18996     setopt NO_GLOB_SUBST
18997   fi
18998   # Now quote all the things that may contain metacharacters while being
18999   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19000   # variables and quote the copies for generation of the libtool script.
19001   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19002     SED SHELL STRIP \
19003     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19004     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19005     deplibs_check_method reload_flag reload_cmds need_locks \
19006     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19007     lt_cv_sys_global_symbol_to_c_name_address \
19008     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19009     old_postinstall_cmds old_postuninstall_cmds \
19010     compiler_RC \
19011     CC_RC \
19012     LD_RC \
19013     lt_prog_compiler_wl_RC \
19014     lt_prog_compiler_pic_RC \
19015     lt_prog_compiler_static_RC \
19016     lt_prog_compiler_no_builtin_flag_RC \
19017     export_dynamic_flag_spec_RC \
19018     thread_safe_flag_spec_RC \
19019     whole_archive_flag_spec_RC \
19020     enable_shared_with_static_runtimes_RC \
19021     old_archive_cmds_RC \
19022     old_archive_from_new_cmds_RC \
19023     predep_objects_RC \
19024     postdep_objects_RC \
19025     predeps_RC \
19026     postdeps_RC \
19027     compiler_lib_search_path_RC \
19028     archive_cmds_RC \
19029     archive_expsym_cmds_RC \
19030     postinstall_cmds_RC \
19031     postuninstall_cmds_RC \
19032     old_archive_from_expsyms_cmds_RC \
19033     allow_undefined_flag_RC \
19034     no_undefined_flag_RC \
19035     export_symbols_cmds_RC \
19036     hardcode_libdir_flag_spec_RC \
19037     hardcode_libdir_flag_spec_ld_RC \
19038     hardcode_libdir_separator_RC \
19039     hardcode_automatic_RC \
19040     module_cmds_RC \
19041     module_expsym_cmds_RC \
19042     lt_cv_prog_compiler_c_o_RC \
19043     exclude_expsyms_RC \
19044     include_expsyms_RC; do
19045
19046     case $var in
19047     old_archive_cmds_RC | \
19048     old_archive_from_new_cmds_RC | \
19049     archive_cmds_RC | \
19050     archive_expsym_cmds_RC | \
19051     module_cmds_RC | \
19052     module_expsym_cmds_RC | \
19053     old_archive_from_expsyms_cmds_RC | \
19054     export_symbols_cmds_RC | \
19055     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19056     postinstall_cmds | postuninstall_cmds | \
19057     old_postinstall_cmds | old_postuninstall_cmds | \
19058     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19059       # Double-quote double-evaled strings.
19060       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19061       ;;
19062     *)
19063       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19064       ;;
19065     esac
19066   done
19067
19068   case $lt_echo in
19069   *'\$0 --fallback-echo"')
19070     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19071     ;;
19072   esac
19073
19074 cfgfile="$ofile"
19075
19076   cat <<__EOF__ >> "$cfgfile"
19077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19078
19079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19080
19081 # Shell to use when invoking shell scripts.
19082 SHELL=$lt_SHELL
19083
19084 # Whether or not to build shared libraries.
19085 build_libtool_libs=$enable_shared
19086
19087 # Whether or not to build static libraries.
19088 build_old_libs=$enable_static
19089
19090 # Whether or not to add -lc for building shared libraries.
19091 build_libtool_need_lc=$archive_cmds_need_lc_RC
19092
19093 # Whether or not to disallow shared libs when runtime libs are static
19094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19095
19096 # Whether or not to optimize for fast installation.
19097 fast_install=$enable_fast_install
19098
19099 # The host system.
19100 host_alias=$host_alias
19101 host=$host
19102 host_os=$host_os
19103
19104 # The build system.
19105 build_alias=$build_alias
19106 build=$build
19107 build_os=$build_os
19108
19109 # An echo program that does not interpret backslashes.
19110 echo=$lt_echo
19111
19112 # The archiver.
19113 AR=$lt_AR
19114 AR_FLAGS=$lt_AR_FLAGS
19115
19116 # A C compiler.
19117 LTCC=$lt_LTCC
19118
19119 # LTCC compiler flags.
19120 LTCFLAGS=$lt_LTCFLAGS
19121
19122 # A language-specific compiler.
19123 CC=$lt_compiler_RC
19124
19125 # Is the compiler the GNU C compiler?
19126 with_gcc=$GCC_RC
19127
19128 # An ERE matcher.
19129 EGREP=$lt_EGREP
19130
19131 # The linker used to build libraries.
19132 LD=$lt_LD_RC
19133
19134 # Whether we need hard or soft links.
19135 LN_S=$lt_LN_S
19136
19137 # A BSD-compatible nm program.
19138 NM=$lt_NM
19139
19140 # A symbol stripping program
19141 STRIP=$lt_STRIP
19142
19143 # Used to examine libraries when file_magic_cmd begins "file"
19144 MAGIC_CMD=$MAGIC_CMD
19145
19146 # Used on cygwin: DLL creation program.
19147 DLLTOOL="$DLLTOOL"
19148
19149 # Used on cygwin: object dumper.
19150 OBJDUMP="$OBJDUMP"
19151
19152 # Used on cygwin: assembler.
19153 AS="$AS"
19154
19155 # The name of the directory that contains temporary libtool files.
19156 objdir=$objdir
19157
19158 # How to create reloadable object files.
19159 reload_flag=$lt_reload_flag
19160 reload_cmds=$lt_reload_cmds
19161
19162 # How to pass a linker flag through the compiler.
19163 wl=$lt_lt_prog_compiler_wl_RC
19164
19165 # Object file suffix (normally "o").
19166 objext="$ac_objext"
19167
19168 # Old archive suffix (normally "a").
19169 libext="$libext"
19170
19171 # Shared library suffix (normally ".so").
19172 shrext_cmds='$shrext_cmds'
19173
19174 # Executable file suffix (normally "").
19175 exeext="$exeext"
19176
19177 # Additional compiler flags for building library objects.
19178 pic_flag=$lt_lt_prog_compiler_pic_RC
19179 pic_mode=$pic_mode
19180
19181 # What is the maximum length of a command?
19182 max_cmd_len=$lt_cv_sys_max_cmd_len
19183
19184 # Does compiler simultaneously support -c and -o options?
19185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19186
19187 # Must we lock files when doing compilation?
19188 need_locks=$lt_need_locks
19189
19190 # Do we need the lib prefix for modules?
19191 need_lib_prefix=$need_lib_prefix
19192
19193 # Do we need a version for libraries?
19194 need_version=$need_version
19195
19196 # Whether dlopen is supported.
19197 dlopen_support=$enable_dlopen
19198
19199 # Whether dlopen of programs is supported.
19200 dlopen_self=$enable_dlopen_self
19201
19202 # Whether dlopen of statically linked programs is supported.
19203 dlopen_self_static=$enable_dlopen_self_static
19204
19205 # Compiler flag to prevent dynamic linking.
19206 link_static_flag=$lt_lt_prog_compiler_static_RC
19207
19208 # Compiler flag to turn off builtin functions.
19209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19210
19211 # Compiler flag to allow reflexive dlopens.
19212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19213
19214 # Compiler flag to generate shared objects directly from archives.
19215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19216
19217 # Compiler flag to generate thread-safe objects.
19218 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19219
19220 # Library versioning type.
19221 version_type=$version_type
19222
19223 # Format of library name prefix.
19224 libname_spec=$lt_libname_spec
19225
19226 # List of archive names.  First name is the real one, the rest are links.
19227 # The last name is the one that the linker finds with -lNAME.
19228 library_names_spec=$lt_library_names_spec
19229
19230 # The coded name of the library, if different from the real name.
19231 soname_spec=$lt_soname_spec
19232
19233 # Commands used to build and install an old-style archive.
19234 RANLIB=$lt_RANLIB
19235 old_archive_cmds=$lt_old_archive_cmds_RC
19236 old_postinstall_cmds=$lt_old_postinstall_cmds
19237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19238
19239 # Create an old-style archive from a shared archive.
19240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19241
19242 # Create a temporary old-style archive to link instead of a shared archive.
19243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19244
19245 # Commands used to build and install a shared archive.
19246 archive_cmds=$lt_archive_cmds_RC
19247 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19248 postinstall_cmds=$lt_postinstall_cmds
19249 postuninstall_cmds=$lt_postuninstall_cmds
19250
19251 # Commands used to build a loadable module (assumed same as above if empty)
19252 module_cmds=$lt_module_cmds_RC
19253 module_expsym_cmds=$lt_module_expsym_cmds_RC
19254
19255 # Commands to strip libraries.
19256 old_striplib=$lt_old_striplib
19257 striplib=$lt_striplib
19258
19259 # Dependencies to place before the objects being linked to create a
19260 # shared library.
19261 predep_objects=$lt_predep_objects_RC
19262
19263 # Dependencies to place after the objects being linked to create a
19264 # shared library.
19265 postdep_objects=$lt_postdep_objects_RC
19266
19267 # Dependencies to place before the objects being linked to create a
19268 # shared library.
19269 predeps=$lt_predeps_RC
19270
19271 # Dependencies to place after the objects being linked to create a
19272 # shared library.
19273 postdeps=$lt_postdeps_RC
19274
19275 # The library search path used internally by the compiler when linking
19276 # a shared library.
19277 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19278
19279 # Method to check whether dependent libraries are shared objects.
19280 deplibs_check_method=$lt_deplibs_check_method
19281
19282 # Command to use when deplibs_check_method == file_magic.
19283 file_magic_cmd=$lt_file_magic_cmd
19284
19285 # Flag that allows shared libraries with undefined symbols to be built.
19286 allow_undefined_flag=$lt_allow_undefined_flag_RC
19287
19288 # Flag that forces no undefined symbols.
19289 no_undefined_flag=$lt_no_undefined_flag_RC
19290
19291 # Commands used to finish a libtool library installation in a directory.
19292 finish_cmds=$lt_finish_cmds
19293
19294 # Same as above, but a single script fragment to be evaled but not shown.
19295 finish_eval=$lt_finish_eval
19296
19297 # Take the output of nm and produce a listing of raw symbols and C names.
19298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19299
19300 # Transform the output of nm in a proper C declaration
19301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19302
19303 # Transform the output of nm in a C name address pair
19304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19305
19306 # This is the shared library runtime path variable.
19307 runpath_var=$runpath_var
19308
19309 # This is the shared library path variable.
19310 shlibpath_var=$shlibpath_var
19311
19312 # Is shlibpath searched before the hard-coded library search path?
19313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19314
19315 # How to hardcode a shared library path into an executable.
19316 hardcode_action=$hardcode_action_RC
19317
19318 # Whether we should hardcode library paths into libraries.
19319 hardcode_into_libs=$hardcode_into_libs
19320
19321 # Flag to hardcode \$libdir into a binary during linking.
19322 # This must work even if \$libdir does not exist.
19323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19324
19325 # If ld is used when linking, flag to hardcode \$libdir into
19326 # a binary during linking. This must work even if \$libdir does
19327 # not exist.
19328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19329
19330 # Whether we need a single -rpath flag with a separated argument.
19331 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19332
19333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19334 # resulting binary.
19335 hardcode_direct=$hardcode_direct_RC
19336
19337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19338 # resulting binary.
19339 hardcode_minus_L=$hardcode_minus_L_RC
19340
19341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19342 # the resulting binary.
19343 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19344
19345 # Set to yes if building a shared library automatically hardcodes DIR into the library
19346 # and all subsequent libraries and executables linked against it.
19347 hardcode_automatic=$hardcode_automatic_RC
19348
19349 # Variables whose values should be saved in libtool wrapper scripts and
19350 # restored at relink time.
19351 variables_saved_for_relink="$variables_saved_for_relink"
19352
19353 # Whether libtool must link a program against all its dependency libraries.
19354 link_all_deplibs=$link_all_deplibs_RC
19355
19356 # Compile-time system search path for libraries
19357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19358
19359 # Run-time system search path for libraries
19360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19361
19362 # Fix the shell variable \$srcfile for the compiler.
19363 fix_srcfile_path="$fix_srcfile_path_RC"
19364
19365 # Set to yes if exported symbols are required.
19366 always_export_symbols=$always_export_symbols_RC
19367
19368 # The commands to list exported symbols.
19369 export_symbols_cmds=$lt_export_symbols_cmds_RC
19370
19371 # The commands to extract the exported symbol list from a shared archive.
19372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19373
19374 # Symbols that should not be listed in the preloaded symbols.
19375 exclude_expsyms=$lt_exclude_expsyms_RC
19376
19377 # Symbols that must always be exported.
19378 include_expsyms=$lt_include_expsyms_RC
19379
19380 # ### END LIBTOOL TAG CONFIG: $tagname
19381
19382 __EOF__
19383
19384
19385 else
19386   # If there is no Makefile yet, we rely on a make rule to execute
19387   # `config.status --recheck' to rerun these tests and create the
19388   # libtool script then.
19389   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19390   if test -f "$ltmain_in"; then
19391     test -f Makefile && make "$ltmain"
19392   fi
19393 fi
19394
19395
19396 ac_ext=c
19397 ac_cpp='$CPP $CPPFLAGS'
19398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19401
19402 CC="$lt_save_CC"
19403
19404         ;;
19405
19406       *)
19407         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19408 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19409    { (exit 1); exit 1; }; }
19410         ;;
19411       esac
19412
19413       # Append the new tag name to the list of available tags.
19414       if test -n "$tagname" ; then
19415       available_tags="$available_tags $tagname"
19416     fi
19417     fi
19418   done
19419   IFS="$lt_save_ifs"
19420
19421   # Now substitute the updated list of available tags.
19422   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19423     mv "${ofile}T" "$ofile"
19424     chmod +x "$ofile"
19425   else
19426     rm -f "${ofile}T"
19427     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19428 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19429    { (exit 1); exit 1; }; }
19430   fi
19431 fi
19432
19433
19434
19435 # This can be used to rebuild libtool when needed
19436 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19437
19438 # Always use our own libtool.
19439 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19440
19441 # Prevent multiple expansion
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454 # Check whether --with-system-libtool was given.
19455 if test "${with_system_libtool+set}" = set; then
19456   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19457 set dummy libtool; ac_word=$2
19458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19460 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19461   echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463   case $LIBTOOL in
19464   [\\/]* | ?:[\\/]*)
19465   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19466   ;;
19467   *)
19468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469 as_dummy="$PATH:/usr/local/bin"
19470 for as_dir in $as_dummy
19471 do
19472   IFS=$as_save_IFS
19473   test -z "$as_dir" && as_dir=.
19474   for ac_exec_ext in '' $ac_executable_extensions; do
19475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19476     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19478     break 2
19479   fi
19480 done
19481 done
19482 IFS=$as_save_IFS
19483
19484   ;;
19485 esac
19486 fi
19487 LIBTOOL=$ac_cv_path_LIBTOOL
19488 if test -n "$LIBTOOL"; then
19489   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19490 echo "${ECHO_T}$LIBTOOL" >&6; }
19491 else
19492   { echo "$as_me:$LINENO: result: no" >&5
19493 echo "${ECHO_T}no" >&6; }
19494 fi
19495
19496
19497 else
19498
19499   LIBTOOL="`pwd`/libtool"
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514 fi
19515
19516
19517
19518
19519 # Check whether --enable-strict-dependencies was given.
19520 if test "${enable_strict_dependencies+set}" = set; then
19521   enableval=$enable_strict_dependencies;
19522 fi
19523
19524
19525 docdir='${datadir}/doc/freeradius'
19526 { echo "$as_me:$LINENO: checking docdir" >&5
19527 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19528
19529 # Check whether --with-docdir was given.
19530 if test "${with_docdir+set}" = set; then
19531   withval=$with_docdir;  case "$withval" in
19532     no)
19533         docdir=no
19534         ;;
19535     yes)
19536         ;;
19537     [\\/$]* | ?:[\\/]* )
19538         docdir="$withval"
19539         ;;
19540     *)
19541         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19542 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19543    { (exit 1); exit 1; }; }
19544         ;;
19545   esac
19546
19547 fi
19548
19549
19550 { echo "$as_me:$LINENO: result: $docdir" >&5
19551 echo "${ECHO_T}$docdir" >&6; }
19552 if test "x$docdir" = xno; then
19553         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19554 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19555 fi
19556
19557 logdir='${localstatedir}/log/radius'
19558 { echo "$as_me:$LINENO: checking logdir" >&5
19559 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19560
19561 # Check whether --with-logdir was given.
19562 if test "${with_logdir+set}" = set; then
19563   withval=$with_logdir;  case "$withval" in
19564     no)
19565         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19566 echo "$as_me: error: Need logdir" >&2;}
19567    { (exit 1); exit 1; }; }
19568         ;;
19569     yes)
19570         ;;
19571     [\\/$]* | ?:[\\/]* )
19572         logdir="$withval"
19573         ;;
19574     *)
19575         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19576 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19577    { (exit 1); exit 1; }; }
19578         ;;
19579   esac
19580
19581 fi
19582
19583
19584 { echo "$as_me:$LINENO: result: $logdir" >&5
19585 echo "${ECHO_T}$logdir" >&6; }
19586
19587 radacctdir='${logdir}/radacct'
19588 { echo "$as_me:$LINENO: checking radacctdir" >&5
19589 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19590
19591 # Check whether --with-radacctdir was given.
19592 if test "${with_radacctdir+set}" = set; then
19593   withval=$with_radacctdir;  case "$withval" in
19594     no)
19595         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19596 echo "$as_me: error: Need radacctdir" >&2;}
19597    { (exit 1); exit 1; }; }
19598         ;;
19599     yes)
19600         ;;
19601     [\\/$]* | ?:[\\/]* )
19602         radacctdir="$withval"
19603         ;;
19604     *)
19605         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19606 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19607    { (exit 1); exit 1; }; }
19608         ;;
19609   esac
19610
19611 fi
19612
19613
19614 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19615 echo "${ECHO_T}$radacctdir" >&6; }
19616
19617 raddbdir='${sysconfdir}/raddb'
19618 { echo "$as_me:$LINENO: checking raddbdir" >&5
19619 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19620
19621 # Check whether --with-raddbdir was given.
19622 if test "${with_raddbdir+set}" = set; then
19623   withval=$with_raddbdir;  case "$withval" in
19624     no)
19625         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19626 echo "$as_me: error: Need raddbdir" >&2;}
19627    { (exit 1); exit 1; }; }
19628         ;;
19629     yes)
19630         ;;
19631     [\\/$]* | ?:[\\/]* )
19632         raddbdir="$withval"
19633         ;;
19634     *)
19635         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19636 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19637    { (exit 1); exit 1; }; }
19638         ;;
19639   esac
19640
19641 fi
19642
19643
19644 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19645 echo "${ECHO_T}$raddbdir" >&6; }
19646
19647 ASCEND_BINARY=yes
19648
19649 # Check whether --with-ascend-binary was given.
19650 if test "${with_ascend_binary+set}" = set; then
19651   withval=$with_ascend_binary;  case "$withval" in
19652     yes)
19653         ;;
19654     *)
19655         ASCEND_BINARY=""
19656   esac
19657
19658 fi
19659
19660 if test "X$ASCEND_BINARY" = "Xyes"; then
19661
19662 cat >>confdefs.h <<\_ACEOF
19663 #define ASCEND_BINARY
19664 _ACEOF
19665
19666 fi
19667
19668 WITH_THREADS=yes
19669
19670 # Check whether --with-threads was given.
19671 if test "${with_threads+set}" = set; then
19672   withval=$with_threads;  case "$withval" in
19673     yes)
19674         ;;
19675     *)
19676         WITH_THREADS=""
19677   esac
19678
19679 fi
19680
19681
19682 WITH_SNMP=yes
19683
19684 # Check whether --with-snmp was given.
19685 if test "${with_snmp+set}" = set; then
19686   withval=$with_snmp;  case "$withval" in
19687     yes)
19688         ;;
19689     *)
19690         WITH_SNMP=no
19691   esac
19692
19693 fi
19694
19695
19696
19697 # Check whether --with-snmp-include-dir was given.
19698 if test "${with_snmp_include_dir+set}" = set; then
19699   withval=$with_snmp_include_dir;  case "$withval" in
19700     *)
19701         ;;
19702   esac
19703
19704 fi
19705
19706
19707 WITH_VMPS=yes
19708
19709 # Check whether --with-vmps was given.
19710 if test "${with_vmps+set}" = set; then
19711   withval=$with_vmps;  case "$withval" in
19712     yes)
19713         ;;
19714     *)
19715         WITH_VMPS=no
19716   esac
19717
19718 fi
19719
19720 if test "x$WITH_VMPS" = "xyes"; then
19721
19722 cat >>confdefs.h <<\_ACEOF
19723 #define WITH_VMPS
19724 _ACEOF
19725
19726 fi
19727
19728
19729 # Check whether --with-dhcp was given.
19730 if test "${with_dhcp+set}" = set; then
19731   withval=$with_dhcp;  case "$withval" in
19732     yes)
19733
19734 cat >>confdefs.h <<\_ACEOF
19735 #define WITH_DHCP
19736 _ACEOF
19737
19738     *)
19739         ;;
19740   esac
19741
19742 fi
19743
19744
19745
19746 STATIC_MODULES=
19747
19748 # Check whether --with-static_modules was given.
19749 if test "${with_static_modules+set}" = set; then
19750   withval=$with_static_modules;
19751   for i in $withval; do
19752     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19753   done
19754
19755 fi
19756
19757
19758 MODULES=
19759
19760 # Check whether --with-modules was given.
19761 if test "${with_modules+set}" = set; then
19762   withval=$with_modules;
19763  for i in $withval; do
19764    MODULES="$MODULES $i"
19765  done
19766
19767 fi
19768
19769
19770 # Check whether --enable-developer was given.
19771 if test "${enable_developer+set}" = set; then
19772   enableval=$enable_developer;  case "$enableval" in
19773     no)
19774         developer=no
19775         ;;
19776     *)
19777         developer=yes
19778   esac
19779
19780 fi
19781
19782
19783 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19784     developer="yes"
19785 fi
19786
19787 EXPERIMENTAL=
19788
19789 # Check whether --with-experimental-modules was given.
19790 if test "${with_experimental_modules+set}" = set; then
19791   withval=$with_experimental_modules;  case "$withval" in
19792     yes)
19793         EXPERIMENTAL=yes
19794         ;;
19795     *)
19796   esac
19797
19798 fi
19799
19800
19801 WITH_OPENSSL=yes
19802
19803 # Check whether --with-openssl was given.
19804 if test "${with_openssl+set}" = set; then
19805   withval=$with_openssl;  case "$withval" in
19806     no)
19807         WITH_OPENSSL=no
19808         ;;
19809     *)
19810         WITH_OPENSSL=yes
19811         ;;
19812   esac
19813
19814 fi
19815
19816
19817 OPENSSL_INCLUDE_DIR=
19818
19819 # Check whether --with-openssl-includes was given.
19820 if test "${with_openssl_includes+set}" = set; then
19821   withval=$with_openssl_includes;  case "$withval" in
19822     *) OPENSSL_INCLUDE_DIR="$withval"
19823         ;;
19824   esac
19825
19826 fi
19827
19828
19829 OPENSSL_LIB_DIR=
19830
19831 # Check whether --with-openssl-libraries was given.
19832 if test "${with_openssl_libraries+set}" = set; then
19833   withval=$with_openssl_libraries;  case "$withval" in
19834     *) OPENSSL_LIB_DIR="$withval"
19835         ;;
19836   esac
19837
19838 fi
19839
19840
19841
19842
19843 # Check whether --with-rlm-FOO-lib-dir was given.
19844 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19845   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19846     *)
19847         ;;
19848   esac
19849
19850 fi
19851
19852
19853
19854 # Check whether --with-rlm-FOO-include-dir was given.
19855 if test "${with_rlm_FOO_include_dir+set}" = set; then
19856   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19857     *)
19858         ;;
19859   esac
19860
19861 fi
19862
19863
19864
19865 WITH_UDPFROMTO=no
19866
19867 # Check whether --with-udpfromto was given.
19868 if test "${with_udpfromto+set}" = set; then
19869   withval=$with_udpfromto;  case "$withval" in
19870     yes)
19871         WITH_UDPFROMTO=yes
19872         ;;
19873     *)
19874         WITH_UDPFROMTO=no
19875   esac
19876
19877 fi
19878
19879
19880 if test "x$WITH_UDPFROMTO" = "xyes"; then
19881
19882 cat >>confdefs.h <<\_ACEOF
19883 #define WITH_UDPFROMTO
19884 _ACEOF
19885
19886 fi
19887
19888
19889 CHECKRAD=checkrad.pl
19890 # Extract the first word of "perl", so it can be a program name with args.
19891 set dummy perl; ac_word=$2
19892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19894 if test "${ac_cv_path_PERL+set}" = set; then
19895   echo $ECHO_N "(cached) $ECHO_C" >&6
19896 else
19897   case $PERL in
19898   [\\/]* | ?:[\\/]*)
19899   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19900   ;;
19901   *)
19902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19903 for as_dir in $PATH
19904 do
19905   IFS=$as_save_IFS
19906   test -z "$as_dir" && as_dir=.
19907   for ac_exec_ext in '' $ac_executable_extensions; do
19908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19909     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19911     break 2
19912   fi
19913 done
19914 done
19915 IFS=$as_save_IFS
19916
19917   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19918   ;;
19919 esac
19920 fi
19921 PERL=$ac_cv_path_PERL
19922 if test -n "$PERL"; then
19923   { echo "$as_me:$LINENO: result: $PERL" >&5
19924 echo "${ECHO_T}$PERL" >&6; }
19925 else
19926   { echo "$as_me:$LINENO: result: no" >&5
19927 echo "${ECHO_T}no" >&6; }
19928 fi
19929
19930
19931 if test "x$ac_cv_path_PERL" = "x"; then
19932   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19933 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19934 fi
19935 # Extract the first word of "snmpget", so it can be a program name with args.
19936 set dummy snmpget; ac_word=$2
19937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19939 if test "${ac_cv_path_SNMPGET+set}" = set; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   case $SNMPGET in
19943   [\\/]* | ?:[\\/]*)
19944   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19945   ;;
19946   *)
19947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19948 for as_dir in $PATH
19949 do
19950   IFS=$as_save_IFS
19951   test -z "$as_dir" && as_dir=.
19952   for ac_exec_ext in '' $ac_executable_extensions; do
19953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19954     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19956     break 2
19957   fi
19958 done
19959 done
19960 IFS=$as_save_IFS
19961
19962   ;;
19963 esac
19964 fi
19965 SNMPGET=$ac_cv_path_SNMPGET
19966 if test -n "$SNMPGET"; then
19967   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19968 echo "${ECHO_T}$SNMPGET" >&6; }
19969 else
19970   { echo "$as_me:$LINENO: result: no" >&5
19971 echo "${ECHO_T}no" >&6; }
19972 fi
19973
19974
19975 if test "x$ac_cv_path_SNMPGET" = "x"; then
19976   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19977 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19978 fi
19979
19980 # Extract the first word of "snmpwalk", so it can be a program name with args.
19981 set dummy snmpwalk; ac_word=$2
19982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19984 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19987   case $SNMPWALK in
19988   [\\/]* | ?:[\\/]*)
19989   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19990   ;;
19991   *)
19992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19993 for as_dir in $PATH
19994 do
19995   IFS=$as_save_IFS
19996   test -z "$as_dir" && as_dir=.
19997   for ac_exec_ext in '' $ac_executable_extensions; do
19998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19999     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20001     break 2
20002   fi
20003 done
20004 done
20005 IFS=$as_save_IFS
20006
20007   ;;
20008 esac
20009 fi
20010 SNMPWALK=$ac_cv_path_SNMPWALK
20011 if test -n "$SNMPWALK"; then
20012   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20013 echo "${ECHO_T}$SNMPWALK" >&6; }
20014 else
20015   { echo "$as_me:$LINENO: result: no" >&5
20016 echo "${ECHO_T}no" >&6; }
20017 fi
20018
20019
20020 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20021   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20022 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20023 fi
20024
20025 # Extract the first word of "rusers", so it can be a program name with args.
20026 set dummy rusers; ac_word=$2
20027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20029 if test "${ac_cv_path_RUSERS+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   case $RUSERS in
20033   [\\/]* | ?:[\\/]*)
20034   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20035   ;;
20036   *)
20037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20038 for as_dir in $PATH
20039 do
20040   IFS=$as_save_IFS
20041   test -z "$as_dir" && as_dir=.
20042   for ac_exec_ext in '' $ac_executable_extensions; do
20043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20044     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20046     break 2
20047   fi
20048 done
20049 done
20050 IFS=$as_save_IFS
20051
20052   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20053   ;;
20054 esac
20055 fi
20056 RUSERS=$ac_cv_path_RUSERS
20057 if test -n "$RUSERS"; then
20058   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20059 echo "${ECHO_T}$RUSERS" >&6; }
20060 else
20061   { echo "$as_me:$LINENO: result: no" >&5
20062 echo "${ECHO_T}no" >&6; }
20063 fi
20064
20065
20066
20067 missing_dir=`cd $ac_aux_dir && pwd`
20068 # expand $ac_aux_dir to an absolute path
20069 am_aux_dir=`cd $ac_aux_dir && pwd`
20070
20071 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20072 # Use eval to expand $SHELL
20073 if eval "$MISSING --run true"; then
20074   am_missing_run="$MISSING --run "
20075 else
20076   am_missing_run=
20077   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20078 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20079 fi
20080
20081
20082 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20083
20084
20085 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20086
20087
20088 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20089
20090
20091 # Extract the first word of "locate", so it can be a program name with args.
20092 set dummy locate; ac_word=$2
20093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20095 if test "${ac_cv_path_LOCATE+set}" = set; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098   case $LOCATE in
20099   [\\/]* | ?:[\\/]*)
20100   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20101   ;;
20102   *)
20103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20104 for as_dir in $PATH
20105 do
20106   IFS=$as_save_IFS
20107   test -z "$as_dir" && as_dir=.
20108   for ac_exec_ext in '' $ac_executable_extensions; do
20109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20110     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20112     break 2
20113   fi
20114 done
20115 done
20116 IFS=$as_save_IFS
20117
20118   ;;
20119 esac
20120 fi
20121 LOCATE=$ac_cv_path_LOCATE
20122 if test -n "$LOCATE"; then
20123   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20124 echo "${ECHO_T}$LOCATE" >&6; }
20125 else
20126   { echo "$as_me:$LINENO: result: no" >&5
20127 echo "${ECHO_T}no" >&6; }
20128 fi
20129
20130
20131 # Extract the first word of "dirname", so it can be a program name with args.
20132 set dummy dirname; ac_word=$2
20133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20135 if test "${ac_cv_path_DIRNAME+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   case $DIRNAME in
20139   [\\/]* | ?:[\\/]*)
20140   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20141   ;;
20142   *)
20143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20144 for as_dir in $PATH
20145 do
20146   IFS=$as_save_IFS
20147   test -z "$as_dir" && as_dir=.
20148   for ac_exec_ext in '' $ac_executable_extensions; do
20149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20150     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20152     break 2
20153   fi
20154 done
20155 done
20156 IFS=$as_save_IFS
20157
20158   ;;
20159 esac
20160 fi
20161 DIRNAME=$ac_cv_path_DIRNAME
20162 if test -n "$DIRNAME"; then
20163   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20164 echo "${ECHO_T}$DIRNAME" >&6; }
20165 else
20166   { echo "$as_me:$LINENO: result: no" >&5
20167 echo "${ECHO_T}no" >&6; }
20168 fi
20169
20170
20171 # Extract the first word of "grep", so it can be a program name with args.
20172 set dummy grep; ac_word=$2
20173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20175 if test "${ac_cv_path_GREP+set}" = set; then
20176   echo $ECHO_N "(cached) $ECHO_C" >&6
20177 else
20178   case $GREP in
20179   [\\/]* | ?:[\\/]*)
20180   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20181   ;;
20182   *)
20183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20184 for as_dir in $PATH
20185 do
20186   IFS=$as_save_IFS
20187   test -z "$as_dir" && as_dir=.
20188   for ac_exec_ext in '' $ac_executable_extensions; do
20189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20190     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20192     break 2
20193   fi
20194 done
20195 done
20196 IFS=$as_save_IFS
20197
20198   ;;
20199 esac
20200 fi
20201 GREP=$ac_cv_path_GREP
20202 if test -n "$GREP"; then
20203   { echo "$as_me:$LINENO: result: $GREP" >&5
20204 echo "${ECHO_T}$GREP" >&6; }
20205 else
20206   { echo "$as_me:$LINENO: result: no" >&5
20207 echo "${ECHO_T}no" >&6; }
20208 fi
20209
20210
20211
20212
20213 old_CFLAGS=$CFLAGS
20214 if test "x$WITH_THREADS" = "xyes"; then
20215   if test $ac_cv_prog_suncc = "yes"; then
20216     CFLAGS="$CFLAGS -mt"
20217   fi
20218
20219
20220 for ac_header in pthread.h
20221 do
20222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20224   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20227   echo $ECHO_N "(cached) $ECHO_C" >&6
20228 fi
20229 ac_res=`eval echo '${'$as_ac_Header'}'`
20230                { echo "$as_me:$LINENO: result: $ac_res" >&5
20231 echo "${ECHO_T}$ac_res" >&6; }
20232 else
20233   # Is the header compilable?
20234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h.  */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h.  */
20242 $ac_includes_default
20243 #include <$ac_header>
20244 _ACEOF
20245 rm -f conftest.$ac_objext
20246 if { (ac_try="$ac_compile"
20247 case "(($ac_try" in
20248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249   *) ac_try_echo=$ac_try;;
20250 esac
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252   (eval "$ac_compile") 2>conftest.er1
20253   ac_status=$?
20254   grep -v '^ *+' conftest.er1 >conftest.err
20255   rm -f conftest.er1
20256   cat conftest.err >&5
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); } && {
20259          test -z "$ac_c_werror_flag" ||
20260          test ! -s conftest.err
20261        } && test -s conftest.$ac_objext; then
20262   ac_header_compiler=yes
20263 else
20264   echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267         ac_header_compiler=no
20268 fi
20269
20270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20272 echo "${ECHO_T}$ac_header_compiler" >&6; }
20273
20274 # Is the header present?
20275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20277 cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283 #include <$ac_header>
20284 _ACEOF
20285 if { (ac_try="$ac_cpp conftest.$ac_ext"
20286 case "(($ac_try" in
20287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288   *) ac_try_echo=$ac_try;;
20289 esac
20290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20292   ac_status=$?
20293   grep -v '^ *+' conftest.er1 >conftest.err
20294   rm -f conftest.er1
20295   cat conftest.err >&5
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); } >/dev/null && {
20298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20299          test ! -s conftest.err
20300        }; then
20301   ac_header_preproc=yes
20302 else
20303   echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20305
20306   ac_header_preproc=no
20307 fi
20308
20309 rm -f conftest.err conftest.$ac_ext
20310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20311 echo "${ECHO_T}$ac_header_preproc" >&6; }
20312
20313 # So?  What about this header?
20314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20315   yes:no: )
20316     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20320     ac_header_preproc=yes
20321     ;;
20322   no:yes:* )
20323     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20325     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20326 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20327     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20329     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20330 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20333     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20335
20336     ;;
20337 esac
20338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20341   echo $ECHO_N "(cached) $ECHO_C" >&6
20342 else
20343   eval "$as_ac_Header=\$ac_header_preproc"
20344 fi
20345 ac_res=`eval echo '${'$as_ac_Header'}'`
20346                { echo "$as_me:$LINENO: result: $ac_res" >&5
20347 echo "${ECHO_T}$ac_res" >&6; }
20348
20349 fi
20350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20351   cat >>confdefs.h <<_ACEOF
20352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20353 _ACEOF
20354
20355 else
20356    WITH_THREADS="no"
20357 fi
20358
20359 done
20360
20361
20362   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20363 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20364 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20365   echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367   ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-lpthread  $LIBS"
20369 cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375
20376 /* Override any GCC internal prototype to avoid an error.
20377    Use char because int might match the return type of a GCC
20378    builtin and then its argument prototype would still apply.  */
20379 #ifdef __cplusplus
20380 extern "C"
20381 #endif
20382 char pthread_create ();
20383 int
20384 main ()
20385 {
20386 return pthread_create ();
20387   ;
20388   return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (ac_try="$ac_link"
20393 case "(($ac_try" in
20394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395   *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398   (eval "$ac_link") 2>conftest.er1
20399   ac_status=$?
20400   grep -v '^ *+' conftest.er1 >conftest.err
20401   rm -f conftest.er1
20402   cat conftest.err >&5
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); } && {
20405          test -z "$ac_c_werror_flag" ||
20406          test ! -s conftest.err
20407        } && test -s conftest$ac_exeext &&
20408        $as_test_x conftest$ac_exeext; then
20409   ac_cv_lib_pthread_pthread_create=yes
20410 else
20411   echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414         ac_cv_lib_pthread_pthread_create=no
20415 fi
20416
20417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20418       conftest$ac_exeext conftest.$ac_ext
20419 LIBS=$ac_check_lib_save_LIBS
20420 fi
20421 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20422 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20423 if test $ac_cv_lib_pthread_pthread_create = yes; then
20424    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20425                   LIBS="$LIBS -lpthread"
20426 else
20427   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20428 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20429 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20430   echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432   ac_check_lib_save_LIBS=$LIBS
20433 LIBS="-lc_r  $LIBS"
20434 cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h.  */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h.  */
20440
20441 /* Override any GCC internal prototype to avoid an error.
20442    Use char because int might match the return type of a GCC
20443    builtin and then its argument prototype would still apply.  */
20444 #ifdef __cplusplus
20445 extern "C"
20446 #endif
20447 char pthread_create ();
20448 int
20449 main ()
20450 {
20451 return pthread_create ();
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460   *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463   (eval "$ac_link") 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } && {
20470          test -z "$ac_c_werror_flag" ||
20471          test ! -s conftest.err
20472        } && test -s conftest$ac_exeext &&
20473        $as_test_x conftest$ac_exeext; then
20474   ac_cv_lib_c_r_pthread_create=yes
20475 else
20476   echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479         ac_cv_lib_c_r_pthread_create=no
20480 fi
20481
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483       conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20485 fi
20486 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20487 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20488 if test $ac_cv_lib_c_r_pthread_create = yes; then
20489    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20490 else
20491    WITH_THREADS="no"
20492
20493 fi
20494
20495
20496 fi
20497
20498 fi
20499
20500 if test "x$WITH_THREADS" != "xyes"; then
20501   CFLAGS=$old_CFLAGS
20502   ac_cv_header_pthread_h="no"
20503   WITH_THREADS=no
20504 else
20505
20506   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20507 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20508 if test "${ac_cv_search_sem_init+set}" = set; then
20509   echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511   ac_func_search_save_LIBS=$LIBS
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h.  */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h.  */
20518
20519 /* Override any GCC internal prototype to avoid an error.
20520    Use char because int might match the return type of a GCC
20521    builtin and then its argument prototype would still apply.  */
20522 #ifdef __cplusplus
20523 extern "C"
20524 #endif
20525 char sem_init ();
20526 int
20527 main ()
20528 {
20529 return sem_init ();
20530   ;
20531   return 0;
20532 }
20533 _ACEOF
20534 for ac_lib in '' pthread sem posix4 rt semaphore; do
20535   if test -z "$ac_lib"; then
20536     ac_res="none required"
20537   else
20538     ac_res=-l$ac_lib
20539     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20540   fi
20541   rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545   *) ac_try_echo=$ac_try;;
20546 esac
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548   (eval "$ac_link") 2>conftest.er1
20549   ac_status=$?
20550   grep -v '^ *+' conftest.er1 >conftest.err
20551   rm -f conftest.er1
20552   cat conftest.err >&5
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); } && {
20555          test -z "$ac_c_werror_flag" ||
20556          test ! -s conftest.err
20557        } && test -s conftest$ac_exeext &&
20558        $as_test_x conftest$ac_exeext; then
20559   ac_cv_search_sem_init=$ac_res
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564
20565 fi
20566
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20568       conftest$ac_exeext
20569   if test "${ac_cv_search_sem_init+set}" = set; then
20570   break
20571 fi
20572 done
20573 if test "${ac_cv_search_sem_init+set}" = set; then
20574   :
20575 else
20576   ac_cv_search_sem_init=no
20577 fi
20578 rm conftest.$ac_ext
20579 LIBS=$ac_func_search_save_LIBS
20580 fi
20581 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20582 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20583 ac_res=$ac_cv_search_sem_init
20584 if test "$ac_res" != no; then
20585   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20586
20587 else
20588   { { 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
20589 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;}
20590    { (exit 1); exit 1; }; }
20591
20592 fi
20593
20594 fi
20595
20596
20597 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20598 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20599 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20600   echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602   ac_check_lib_save_LIBS=$LIBS
20603 LIBS="-lsocket  $LIBS"
20604 cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h.  */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h.  */
20610
20611 /* Override any GCC internal prototype to avoid an error.
20612    Use char because int might match the return type of a GCC
20613    builtin and then its argument prototype would still apply.  */
20614 #ifdef __cplusplus
20615 extern "C"
20616 #endif
20617 char getsockname ();
20618 int
20619 main ()
20620 {
20621 return getsockname ();
20622   ;
20623   return 0;
20624 }
20625 _ACEOF
20626 rm -f conftest.$ac_objext conftest$ac_exeext
20627 if { (ac_try="$ac_link"
20628 case "(($ac_try" in
20629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630   *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633   (eval "$ac_link") 2>conftest.er1
20634   ac_status=$?
20635   grep -v '^ *+' conftest.er1 >conftest.err
20636   rm -f conftest.er1
20637   cat conftest.err >&5
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); } && {
20640          test -z "$ac_c_werror_flag" ||
20641          test ! -s conftest.err
20642        } && test -s conftest$ac_exeext &&
20643        $as_test_x conftest$ac_exeext; then
20644   ac_cv_lib_socket_getsockname=yes
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649         ac_cv_lib_socket_getsockname=no
20650 fi
20651
20652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20653       conftest$ac_exeext conftest.$ac_ext
20654 LIBS=$ac_check_lib_save_LIBS
20655 fi
20656 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20657 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20658 if test $ac_cv_lib_socket_getsockname = yes; then
20659   cat >>confdefs.h <<_ACEOF
20660 #define HAVE_LIBSOCKET 1
20661 _ACEOF
20662
20663   LIBS="-lsocket $LIBS"
20664
20665 fi
20666
20667
20668
20669 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20670 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20671 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20672   echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674   ac_check_lib_save_LIBS=$LIBS
20675 LIBS="-lresolv  $LIBS"
20676 cat >conftest.$ac_ext <<_ACEOF
20677 /* confdefs.h.  */
20678 _ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h.  */
20682
20683 /* Override any GCC internal prototype to avoid an error.
20684    Use char because int might match the return type of a GCC
20685    builtin and then its argument prototype would still apply.  */
20686 #ifdef __cplusplus
20687 extern "C"
20688 #endif
20689 char inet_aton ();
20690 int
20691 main ()
20692 {
20693 return inet_aton ();
20694   ;
20695   return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest.$ac_objext conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702   *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705   (eval "$ac_link") 2>conftest.er1
20706   ac_status=$?
20707   grep -v '^ *+' conftest.er1 >conftest.err
20708   rm -f conftest.er1
20709   cat conftest.err >&5
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); } && {
20712          test -z "$ac_c_werror_flag" ||
20713          test ! -s conftest.err
20714        } && test -s conftest$ac_exeext &&
20715        $as_test_x conftest$ac_exeext; then
20716   ac_cv_lib_resolv_inet_aton=yes
20717 else
20718   echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20720
20721         ac_cv_lib_resolv_inet_aton=no
20722 fi
20723
20724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20725       conftest$ac_exeext conftest.$ac_ext
20726 LIBS=$ac_check_lib_save_LIBS
20727 fi
20728 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20729 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20730 if test $ac_cv_lib_resolv_inet_aton = yes; then
20731   cat >>confdefs.h <<_ACEOF
20732 #define HAVE_LIBRESOLV 1
20733 _ACEOF
20734
20735   LIBS="-lresolv $LIBS"
20736
20737 fi
20738
20739
20740
20741 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20742 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20743 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20744   echo $ECHO_N "(cached) $ECHO_C" >&6
20745 else
20746   ac_check_lib_save_LIBS=$LIBS
20747 LIBS="-lnsl  $LIBS"
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h.  */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h.  */
20754
20755 /* Override any GCC internal prototype to avoid an error.
20756    Use char because int might match the return type of a GCC
20757    builtin and then its argument prototype would still apply.  */
20758 #ifdef __cplusplus
20759 extern "C"
20760 #endif
20761 char inet_ntoa ();
20762 int
20763 main ()
20764 {
20765 return inet_ntoa ();
20766   ;
20767   return 0;
20768 }
20769 _ACEOF
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774   *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777   (eval "$ac_link") 2>conftest.er1
20778   ac_status=$?
20779   grep -v '^ *+' conftest.er1 >conftest.err
20780   rm -f conftest.er1
20781   cat conftest.err >&5
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); } && {
20784          test -z "$ac_c_werror_flag" ||
20785          test ! -s conftest.err
20786        } && test -s conftest$ac_exeext &&
20787        $as_test_x conftest$ac_exeext; then
20788   ac_cv_lib_nsl_inet_ntoa=yes
20789 else
20790   echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793         ac_cv_lib_nsl_inet_ntoa=no
20794 fi
20795
20796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20797       conftest$ac_exeext conftest.$ac_ext
20798 LIBS=$ac_check_lib_save_LIBS
20799 fi
20800 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20801 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20802 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20803   cat >>confdefs.h <<_ACEOF
20804 #define HAVE_LIBNSL 1
20805 _ACEOF
20806
20807   LIBS="-lnsl $LIBS"
20808
20809 fi
20810
20811
20812 OPENSSL_LIBS=
20813 if test "x$WITH_OPENSSL" = xyes; then
20814   old_LIBS=$LIBS
20815   if test "x$OPENSSL_LIB_DIR" != "x"; then
20816     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20817   fi
20818   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20819 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20820 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20821   echo $ECHO_N "(cached) $ECHO_C" >&6
20822 else
20823   ac_check_lib_save_LIBS=$LIBS
20824 LIBS="-lcrypto  $LIBS"
20825 cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20831
20832 /* Override any GCC internal prototype to avoid an error.
20833    Use char because int might match the return type of a GCC
20834    builtin and then its argument prototype would still apply.  */
20835 #ifdef __cplusplus
20836 extern "C"
20837 #endif
20838 char DH_new ();
20839 int
20840 main ()
20841 {
20842 return DH_new ();
20843   ;
20844   return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851   *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854   (eval "$ac_link") 2>conftest.er1
20855   ac_status=$?
20856   grep -v '^ *+' conftest.er1 >conftest.err
20857   rm -f conftest.er1
20858   cat conftest.err >&5
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); } && {
20861          test -z "$ac_c_werror_flag" ||
20862          test ! -s conftest.err
20863        } && test -s conftest$ac_exeext &&
20864        $as_test_x conftest$ac_exeext; then
20865   ac_cv_lib_crypto_DH_new=yes
20866 else
20867   echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870         ac_cv_lib_crypto_DH_new=no
20871 fi
20872
20873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20874       conftest$ac_exeext conftest.$ac_ext
20875 LIBS=$ac_check_lib_save_LIBS
20876 fi
20877 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20878 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20879 if test $ac_cv_lib_crypto_DH_new = yes; then
20880
20881         LIBS="-lcrypto $LIBS"
20882
20883 cat >>confdefs.h <<\_ACEOF
20884 #define HAVE_LIBCRYPTO 1
20885 _ACEOF
20886
20887         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20888 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20889 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20890   echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892   ac_check_lib_save_LIBS=$LIBS
20893 LIBS="-lssl  $LIBS"
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900
20901 /* Override any GCC internal prototype to avoid an error.
20902    Use char because int might match the return type of a GCC
20903    builtin and then its argument prototype would still apply.  */
20904 #ifdef __cplusplus
20905 extern "C"
20906 #endif
20907 char SSL_new ();
20908 int
20909 main ()
20910 {
20911 return SSL_new ();
20912   ;
20913   return 0;
20914 }
20915 _ACEOF
20916 rm -f conftest.$ac_objext conftest$ac_exeext
20917 if { (ac_try="$ac_link"
20918 case "(($ac_try" in
20919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920   *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923   (eval "$ac_link") 2>conftest.er1
20924   ac_status=$?
20925   grep -v '^ *+' conftest.er1 >conftest.err
20926   rm -f conftest.er1
20927   cat conftest.err >&5
20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929   (exit $ac_status); } && {
20930          test -z "$ac_c_werror_flag" ||
20931          test ! -s conftest.err
20932        } && test -s conftest$ac_exeext &&
20933        $as_test_x conftest$ac_exeext; then
20934   ac_cv_lib_ssl_SSL_new=yes
20935 else
20936   echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939         ac_cv_lib_ssl_SSL_new=no
20940 fi
20941
20942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20943       conftest$ac_exeext conftest.$ac_ext
20944 LIBS=$ac_check_lib_save_LIBS
20945 fi
20946 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20947 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20948 if test $ac_cv_lib_ssl_SSL_new = yes; then
20949
20950
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_LIBSSL 1
20953 _ACEOF
20954
20955                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20956                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20957                 fi
20958                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20959
20960 fi
20961
20962
20963 fi
20964
20965   LIBS=$old_LIBS
20966 fi
20967
20968
20969 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20970 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20971 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20972   echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974   ac_check_lib_save_LIBS=$LIBS
20975 LIBS="-lws2_32  $LIBS"
20976 cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982
20983 /* Override any GCC internal prototype to avoid an error.
20984    Use char because int might match the return type of a GCC
20985    builtin and then its argument prototype would still apply.  */
20986 #ifdef __cplusplus
20987 extern "C"
20988 #endif
20989 char htonl ();
20990 int
20991 main ()
20992 {
20993 return htonl ();
20994   ;
20995   return 0;
20996 }
20997 _ACEOF
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002   *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005   (eval "$ac_link") 2>conftest.er1
21006   ac_status=$?
21007   grep -v '^ *+' conftest.er1 >conftest.err
21008   rm -f conftest.er1
21009   cat conftest.err >&5
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); } && {
21012          test -z "$ac_c_werror_flag" ||
21013          test ! -s conftest.err
21014        } && test -s conftest$ac_exeext &&
21015        $as_test_x conftest$ac_exeext; then
21016   ac_cv_lib_ws2_32_htonl=yes
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021         ac_cv_lib_ws2_32_htonl=no
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21025       conftest$ac_exeext conftest.$ac_ext
21026 LIBS=$ac_check_lib_save_LIBS
21027 fi
21028 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21029 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21030 if test $ac_cv_lib_ws2_32_htonl = yes; then
21031   cat >>confdefs.h <<_ACEOF
21032 #define HAVE_LIBWS2_32 1
21033 _ACEOF
21034
21035   LIBS="-lws2_32 $LIBS"
21036
21037 fi
21038
21039
21040 PCAP_LIBS=
21041 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21042 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21043 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21044   echo $ECHO_N "(cached) $ECHO_C" >&6
21045 else
21046   ac_check_lib_save_LIBS=$LIBS
21047 LIBS="-lpcap  $LIBS"
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h.  */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h.  */
21054
21055 /* Override any GCC internal prototype to avoid an error.
21056    Use char because int might match the return type of a GCC
21057    builtin and then its argument prototype would still apply.  */
21058 #ifdef __cplusplus
21059 extern "C"
21060 #endif
21061 char pcap_open_live ();
21062 int
21063 main ()
21064 {
21065 return pcap_open_live ();
21066   ;
21067   return 0;
21068 }
21069 _ACEOF
21070 rm -f conftest.$ac_objext conftest$ac_exeext
21071 if { (ac_try="$ac_link"
21072 case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_link") 2>conftest.er1
21078   ac_status=$?
21079   grep -v '^ *+' conftest.er1 >conftest.err
21080   rm -f conftest.er1
21081   cat conftest.err >&5
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } && {
21084          test -z "$ac_c_werror_flag" ||
21085          test ! -s conftest.err
21086        } && test -s conftest$ac_exeext &&
21087        $as_test_x conftest$ac_exeext; then
21088   ac_cv_lib_pcap_pcap_open_live=yes
21089 else
21090   echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21092
21093         ac_cv_lib_pcap_pcap_open_live=no
21094 fi
21095
21096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21097       conftest$ac_exeext conftest.$ac_ext
21098 LIBS=$ac_check_lib_save_LIBS
21099 fi
21100 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21101 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21102 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21103    PCAP_LIBS="-lpcap"
21104
21105 cat >>confdefs.h <<\_ACEOF
21106 #define HAVE_LIBPCAP 1
21107 _ACEOF
21108
21109
21110 else
21111    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21112 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21113 fi
21114
21115
21116
21117 case "$host" in
21118 *-interix*)
21119         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21120         ;;
21121 *-darwin*)
21122         CFLAGS="$CFLAGS -DDARWIN"
21123         LIBS="-framework DirectoryService $LIBS"
21124         ;;
21125 esac
21126
21127
21128
21129
21130
21131
21132 ac_header_dirent=no
21133 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21134   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21135 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21136 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21138   echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21140   cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146 #include <sys/types.h>
21147 #include <$ac_hdr>
21148
21149 int
21150 main ()
21151 {
21152 if ((DIR *) 0)
21153 return 0;
21154   ;
21155   return 0;
21156 }
21157 _ACEOF
21158 rm -f conftest.$ac_objext
21159 if { (ac_try="$ac_compile"
21160 case "(($ac_try" in
21161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162   *) ac_try_echo=$ac_try;;
21163 esac
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165   (eval "$ac_compile") 2>conftest.er1
21166   ac_status=$?
21167   grep -v '^ *+' conftest.er1 >conftest.err
21168   rm -f conftest.er1
21169   cat conftest.err >&5
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); } && {
21172          test -z "$ac_c_werror_flag" ||
21173          test ! -s conftest.err
21174        } && test -s conftest.$ac_objext; then
21175   eval "$as_ac_Header=yes"
21176 else
21177   echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21179
21180         eval "$as_ac_Header=no"
21181 fi
21182
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21184 fi
21185 ac_res=`eval echo '${'$as_ac_Header'}'`
21186                { echo "$as_me:$LINENO: result: $ac_res" >&5
21187 echo "${ECHO_T}$ac_res" >&6; }
21188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21189   cat >>confdefs.h <<_ACEOF
21190 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21191 _ACEOF
21192
21193 ac_header_dirent=$ac_hdr; break
21194 fi
21195
21196 done
21197 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21198 if test $ac_header_dirent = dirent.h; then
21199   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21200 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21201 if test "${ac_cv_search_opendir+set}" = set; then
21202   echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204   ac_func_search_save_LIBS=$LIBS
21205 cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211
21212 /* Override any GCC internal prototype to avoid an error.
21213    Use char because int might match the return type of a GCC
21214    builtin and then its argument prototype would still apply.  */
21215 #ifdef __cplusplus
21216 extern "C"
21217 #endif
21218 char opendir ();
21219 int
21220 main ()
21221 {
21222 return opendir ();
21223   ;
21224   return 0;
21225 }
21226 _ACEOF
21227 for ac_lib in '' dir; do
21228   if test -z "$ac_lib"; then
21229     ac_res="none required"
21230   else
21231     ac_res=-l$ac_lib
21232     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21233   fi
21234   rm -f conftest.$ac_objext conftest$ac_exeext
21235 if { (ac_try="$ac_link"
21236 case "(($ac_try" in
21237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238   *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241   (eval "$ac_link") 2>conftest.er1
21242   ac_status=$?
21243   grep -v '^ *+' conftest.er1 >conftest.err
21244   rm -f conftest.er1
21245   cat conftest.err >&5
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); } && {
21248          test -z "$ac_c_werror_flag" ||
21249          test ! -s conftest.err
21250        } && test -s conftest$ac_exeext &&
21251        $as_test_x conftest$ac_exeext; then
21252   ac_cv_search_opendir=$ac_res
21253 else
21254   echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21256
21257
21258 fi
21259
21260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21261       conftest$ac_exeext
21262   if test "${ac_cv_search_opendir+set}" = set; then
21263   break
21264 fi
21265 done
21266 if test "${ac_cv_search_opendir+set}" = set; then
21267   :
21268 else
21269   ac_cv_search_opendir=no
21270 fi
21271 rm conftest.$ac_ext
21272 LIBS=$ac_func_search_save_LIBS
21273 fi
21274 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21275 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21276 ac_res=$ac_cv_search_opendir
21277 if test "$ac_res" != no; then
21278   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21279
21280 fi
21281
21282 else
21283   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21284 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21285 if test "${ac_cv_search_opendir+set}" = set; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 else
21288   ac_func_search_save_LIBS=$LIBS
21289 cat >conftest.$ac_ext <<_ACEOF
21290 /* confdefs.h.  */
21291 _ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h.  */
21295
21296 /* Override any GCC internal prototype to avoid an error.
21297    Use char because int might match the return type of a GCC
21298    builtin and then its argument prototype would still apply.  */
21299 #ifdef __cplusplus
21300 extern "C"
21301 #endif
21302 char opendir ();
21303 int
21304 main ()
21305 {
21306 return opendir ();
21307   ;
21308   return 0;
21309 }
21310 _ACEOF
21311 for ac_lib in '' x; do
21312   if test -z "$ac_lib"; then
21313     ac_res="none required"
21314   else
21315     ac_res=-l$ac_lib
21316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21317   fi
21318   rm -f conftest.$ac_objext conftest$ac_exeext
21319 if { (ac_try="$ac_link"
21320 case "(($ac_try" in
21321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322   *) ac_try_echo=$ac_try;;
21323 esac
21324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325   (eval "$ac_link") 2>conftest.er1
21326   ac_status=$?
21327   grep -v '^ *+' conftest.er1 >conftest.err
21328   rm -f conftest.er1
21329   cat conftest.err >&5
21330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331   (exit $ac_status); } && {
21332          test -z "$ac_c_werror_flag" ||
21333          test ! -s conftest.err
21334        } && test -s conftest$ac_exeext &&
21335        $as_test_x conftest$ac_exeext; then
21336   ac_cv_search_opendir=$ac_res
21337 else
21338   echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21340
21341
21342 fi
21343
21344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21345       conftest$ac_exeext
21346   if test "${ac_cv_search_opendir+set}" = set; then
21347   break
21348 fi
21349 done
21350 if test "${ac_cv_search_opendir+set}" = set; then
21351   :
21352 else
21353   ac_cv_search_opendir=no
21354 fi
21355 rm conftest.$ac_ext
21356 LIBS=$ac_func_search_save_LIBS
21357 fi
21358 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21359 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21360 ac_res=$ac_cv_search_opendir
21361 if test "$ac_res" != no; then
21362   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21363
21364 fi
21365
21366 fi
21367
21368 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21369 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21370 if test "${ac_cv_header_stdc+set}" = set; then
21371   echo $ECHO_N "(cached) $ECHO_C" >&6
21372 else
21373   cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h.  */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h.  */
21379 #include <stdlib.h>
21380 #include <stdarg.h>
21381 #include <string.h>
21382 #include <float.h>
21383
21384 int
21385 main ()
21386 {
21387
21388   ;
21389   return 0;
21390 }
21391 _ACEOF
21392 rm -f conftest.$ac_objext
21393 if { (ac_try="$ac_compile"
21394 case "(($ac_try" in
21395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396   *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399   (eval "$ac_compile") 2>conftest.er1
21400   ac_status=$?
21401   grep -v '^ *+' conftest.er1 >conftest.err
21402   rm -f conftest.er1
21403   cat conftest.err >&5
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } && {
21406          test -z "$ac_c_werror_flag" ||
21407          test ! -s conftest.err
21408        } && test -s conftest.$ac_objext; then
21409   ac_cv_header_stdc=yes
21410 else
21411   echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414         ac_cv_header_stdc=no
21415 fi
21416
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418
21419 if test $ac_cv_header_stdc = yes; then
21420   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21421   cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 #include <string.h>
21428
21429 _ACEOF
21430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21431   $EGREP "memchr" >/dev/null 2>&1; then
21432   :
21433 else
21434   ac_cv_header_stdc=no
21435 fi
21436 rm -f conftest*
21437
21438 fi
21439
21440 if test $ac_cv_header_stdc = yes; then
21441   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21442   cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h.  */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h.  */
21448 #include <stdlib.h>
21449
21450 _ACEOF
21451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21452   $EGREP "free" >/dev/null 2>&1; then
21453   :
21454 else
21455   ac_cv_header_stdc=no
21456 fi
21457 rm -f conftest*
21458
21459 fi
21460
21461 if test $ac_cv_header_stdc = yes; then
21462   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21463   if test "$cross_compiling" = yes; then
21464   :
21465 else
21466   cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h.  */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h.  */
21472 #include <ctype.h>
21473 #include <stdlib.h>
21474 #if ((' ' & 0x0FF) == 0x020)
21475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21477 #else
21478 # define ISLOWER(c) \
21479                    (('a' <= (c) && (c) <= 'i') \
21480                      || ('j' <= (c) && (c) <= 'r') \
21481                      || ('s' <= (c) && (c) <= 'z'))
21482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21483 #endif
21484
21485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21486 int
21487 main ()
21488 {
21489   int i;
21490   for (i = 0; i < 256; i++)
21491     if (XOR (islower (i), ISLOWER (i))
21492         || toupper (i) != TOUPPER (i))
21493       return 2;
21494   return 0;
21495 }
21496 _ACEOF
21497 rm -f conftest$ac_exeext
21498 if { (ac_try="$ac_link"
21499 case "(($ac_try" in
21500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501   *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504   (eval "$ac_link") 2>&5
21505   ac_status=$?
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21508   { (case "(($ac_try" in
21509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510   *) ac_try_echo=$ac_try;;
21511 esac
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513   (eval "$ac_try") 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; }; then
21517   :
21518 else
21519   echo "$as_me: program exited with status $ac_status" >&5
21520 echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21522
21523 ( exit $ac_status )
21524 ac_cv_header_stdc=no
21525 fi
21526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21527 fi
21528
21529
21530 fi
21531 fi
21532 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21533 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21534 if test $ac_cv_header_stdc = yes; then
21535
21536 cat >>confdefs.h <<\_ACEOF
21537 #define STDC_HEADERS 1
21538 _ACEOF
21539
21540 fi
21541
21542 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21543 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21544 if test "${ac_cv_header_time+set}" = set; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 #include <sys/types.h>
21554 #include <sys/time.h>
21555 #include <time.h>
21556
21557 int
21558 main ()
21559 {
21560 if ((struct tm *) 0)
21561 return 0;
21562   ;
21563   return 0;
21564 }
21565 _ACEOF
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570   *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573   (eval "$ac_compile") 2>conftest.er1
21574   ac_status=$?
21575   grep -v '^ *+' conftest.er1 >conftest.err
21576   rm -f conftest.er1
21577   cat conftest.err >&5
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); } && {
21580          test -z "$ac_c_werror_flag" ||
21581          test ! -s conftest.err
21582        } && test -s conftest.$ac_objext; then
21583   ac_cv_header_time=yes
21584 else
21585   echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21587
21588         ac_cv_header_time=no
21589 fi
21590
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592 fi
21593 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21594 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21595 if test $ac_cv_header_time = yes; then
21596
21597 cat >>confdefs.h <<\_ACEOF
21598 #define TIME_WITH_SYS_TIME 1
21599 _ACEOF
21600
21601 fi
21602
21603 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21604 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21605 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21606   echo $ECHO_N "(cached) $ECHO_C" >&6
21607 else
21608   cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614 #include <sys/types.h>
21615 #include <sys/wait.h>
21616 #ifndef WEXITSTATUS
21617 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21618 #endif
21619 #ifndef WIFEXITED
21620 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21621 #endif
21622
21623 int
21624 main ()
21625 {
21626   int s;
21627   wait (&s);
21628   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21629   ;
21630   return 0;
21631 }
21632 _ACEOF
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637   *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640   (eval "$ac_compile") 2>conftest.er1
21641   ac_status=$?
21642   grep -v '^ *+' conftest.er1 >conftest.err
21643   rm -f conftest.er1
21644   cat conftest.err >&5
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); } && {
21647          test -z "$ac_c_werror_flag" ||
21648          test ! -s conftest.err
21649        } && test -s conftest.$ac_objext; then
21650   ac_cv_header_sys_wait_h=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655         ac_cv_header_sys_wait_h=no
21656 fi
21657
21658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659 fi
21660 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21661 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21662 if test $ac_cv_header_sys_wait_h = yes; then
21663
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_SYS_WAIT_H 1
21666 _ACEOF
21667
21668 fi
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704 for ac_header in \
21705         unistd.h \
21706         crypt.h \
21707         errno.h \
21708         resource.h \
21709         sys/resource.h \
21710         getopt.h \
21711         malloc.h \
21712         utmp.h \
21713         utmpx.h \
21714         signal.h \
21715         sys/select.h \
21716         syslog.h \
21717         inttypes.h \
21718         stdint.h \
21719         stdio.h \
21720         netdb.h \
21721         semaphore.h \
21722         arpa/inet.h \
21723         netinet/in.h \
21724         sys/types.h \
21725         sys/socket.h \
21726         winsock.h \
21727         sys/time.h \
21728         sys/wait.h \
21729         sys/security.h \
21730         fcntl.h \
21731         sys/fcntl.h \
21732         sys/prctl.h \
21733         prot.h \
21734         pwd.h \
21735         grp.h \
21736         sia.h \
21737         siad.h
21738
21739 do
21740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21742   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21745   echo $ECHO_N "(cached) $ECHO_C" >&6
21746 fi
21747 ac_res=`eval echo '${'$as_ac_Header'}'`
21748                { echo "$as_me:$LINENO: result: $ac_res" >&5
21749 echo "${ECHO_T}$ac_res" >&6; }
21750 else
21751   # Is the header compilable?
21752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21754 cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760 $ac_includes_default
21761 #include <$ac_header>
21762 _ACEOF
21763 rm -f conftest.$ac_objext
21764 if { (ac_try="$ac_compile"
21765 case "(($ac_try" in
21766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767   *) ac_try_echo=$ac_try;;
21768 esac
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770   (eval "$ac_compile") 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } && {
21777          test -z "$ac_c_werror_flag" ||
21778          test ! -s conftest.err
21779        } && test -s conftest.$ac_objext; then
21780   ac_header_compiler=yes
21781 else
21782   echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785         ac_header_compiler=no
21786 fi
21787
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21790 echo "${ECHO_T}$ac_header_compiler" >&6; }
21791
21792 # Is the header present?
21793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21795 cat >conftest.$ac_ext <<_ACEOF
21796 /* confdefs.h.  */
21797 _ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h.  */
21801 #include <$ac_header>
21802 _ACEOF
21803 if { (ac_try="$ac_cpp conftest.$ac_ext"
21804 case "(($ac_try" in
21805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806   *) ac_try_echo=$ac_try;;
21807 esac
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21810   ac_status=$?
21811   grep -v '^ *+' conftest.er1 >conftest.err
21812   rm -f conftest.er1
21813   cat conftest.err >&5
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } >/dev/null && {
21816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21817          test ! -s conftest.err
21818        }; then
21819   ac_header_preproc=yes
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824   ac_header_preproc=no
21825 fi
21826
21827 rm -f conftest.err conftest.$ac_ext
21828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21829 echo "${ECHO_T}$ac_header_preproc" >&6; }
21830
21831 # So?  What about this header?
21832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21833   yes:no: )
21834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21838     ac_header_preproc=yes
21839     ;;
21840   no:yes:* )
21841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21853
21854     ;;
21855 esac
21856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21859   echo $ECHO_N "(cached) $ECHO_C" >&6
21860 else
21861   eval "$as_ac_Header=\$ac_header_preproc"
21862 fi
21863 ac_res=`eval echo '${'$as_ac_Header'}'`
21864                { echo "$as_me:$LINENO: result: $ac_res" >&5
21865 echo "${ECHO_T}$ac_res" >&6; }
21866
21867 fi
21868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21869   cat >>confdefs.h <<_ACEOF
21870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21871 _ACEOF
21872
21873 fi
21874
21875 done
21876
21877
21878
21879 for ac_header in net/if.h
21880 do
21881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885   echo $ECHO_N "(cached) $ECHO_C" >&6
21886 else
21887   cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h.  */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h.  */
21893 #ifdef HAVE_SYS_SOCKET_H
21894 # include <sys/socket.h>
21895 # endif
21896
21897
21898 #include <$ac_header>
21899 _ACEOF
21900 rm -f conftest.$ac_objext
21901 if { (ac_try="$ac_compile"
21902 case "(($ac_try" in
21903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904   *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907   (eval "$ac_compile") 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } && {
21914          test -z "$ac_c_werror_flag" ||
21915          test ! -s conftest.err
21916        } && test -s conftest.$ac_objext; then
21917   eval "$as_ac_Header=yes"
21918 else
21919   echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922         eval "$as_ac_Header=no"
21923 fi
21924
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926 fi
21927 ac_res=`eval echo '${'$as_ac_Header'}'`
21928                { echo "$as_me:$LINENO: result: $ac_res" >&5
21929 echo "${ECHO_T}$ac_res" >&6; }
21930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21931   cat >>confdefs.h <<_ACEOF
21932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21933 _ACEOF
21934
21935 fi
21936
21937 done
21938
21939
21940 REGEX=no
21941 if test "${ac_cv_header_regex_h+set}" = set; then
21942   { echo "$as_me:$LINENO: checking for regex.h" >&5
21943 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21944 if test "${ac_cv_header_regex_h+set}" = set; then
21945   echo $ECHO_N "(cached) $ECHO_C" >&6
21946 fi
21947 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21948 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21949 else
21950   # Is the header compilable?
21951 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21952 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21953 cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 $ac_includes_default
21960 #include <regex.h>
21961 _ACEOF
21962 rm -f conftest.$ac_objext
21963 if { (ac_try="$ac_compile"
21964 case "(($ac_try" in
21965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966   *) ac_try_echo=$ac_try;;
21967 esac
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969   (eval "$ac_compile") 2>conftest.er1
21970   ac_status=$?
21971   grep -v '^ *+' conftest.er1 >conftest.err
21972   rm -f conftest.er1
21973   cat conftest.err >&5
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); } && {
21976          test -z "$ac_c_werror_flag" ||
21977          test ! -s conftest.err
21978        } && test -s conftest.$ac_objext; then
21979   ac_header_compiler=yes
21980 else
21981   echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21983
21984         ac_header_compiler=no
21985 fi
21986
21987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21989 echo "${ECHO_T}$ac_header_compiler" >&6; }
21990
21991 # Is the header present?
21992 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21993 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21994 cat >conftest.$ac_ext <<_ACEOF
21995 /* confdefs.h.  */
21996 _ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h.  */
22000 #include <regex.h>
22001 _ACEOF
22002 if { (ac_try="$ac_cpp conftest.$ac_ext"
22003 case "(($ac_try" in
22004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005   *) ac_try_echo=$ac_try;;
22006 esac
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22009   ac_status=$?
22010   grep -v '^ *+' conftest.er1 >conftest.err
22011   rm -f conftest.er1
22012   cat conftest.err >&5
22013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014   (exit $ac_status); } >/dev/null && {
22015          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22016          test ! -s conftest.err
22017        }; then
22018   ac_header_preproc=yes
22019 else
22020   echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023   ac_header_preproc=no
22024 fi
22025
22026 rm -f conftest.err conftest.$ac_ext
22027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22028 echo "${ECHO_T}$ac_header_preproc" >&6; }
22029
22030 # So?  What about this header?
22031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22032   yes:no: )
22033     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22034 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22035     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22036 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22037     ac_header_preproc=yes
22038     ;;
22039   no:yes:* )
22040     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22041 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22042     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22043 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22044     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22045 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22046     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22047 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22048     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22049 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22050     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22051 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22052
22053     ;;
22054 esac
22055 { echo "$as_me:$LINENO: checking for regex.h" >&5
22056 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22057 if test "${ac_cv_header_regex_h+set}" = set; then
22058   echo $ECHO_N "(cached) $ECHO_C" >&6
22059 else
22060   ac_cv_header_regex_h=$ac_header_preproc
22061 fi
22062 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22063 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22064
22065 fi
22066 if test $ac_cv_header_regex_h = yes; then
22067
22068 cat >>confdefs.h <<\_ACEOF
22069 #define HAVE_REGEX_H
22070 _ACEOF
22071
22072 fi
22073
22074
22075 if test "x$ac_cv_header_regex_h" = "xyes"; then
22076   REGEX_EXTENDED=no
22077   REGEX=yes
22078   cat >conftest.$ac_ext <<_ACEOF
22079 /* confdefs.h.  */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h.  */
22084 #include <regex.h>
22085      #ifdef REG_EXTENDED
22086        yes
22087      #endif
22088
22089 _ACEOF
22090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22091   $EGREP "yes" >/dev/null 2>&1; then
22092
22093 cat >>confdefs.h <<\_ACEOF
22094 #define HAVE_REG_EXTENDED
22095 _ACEOF
22096  REGEX_EXTENDED=yes
22097 fi
22098 rm -f conftest*
22099
22100 fi
22101
22102
22103
22104 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22105 then
22106
22107 cat >>confdefs.h <<\_ACEOF
22108 #define OSFC2
22109 _ACEOF
22110
22111 fi
22112
22113 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22114 then
22115
22116 cat >>confdefs.h <<\_ACEOF
22117 #define OSFSIA
22118 _ACEOF
22119
22120 fi
22121
22122 OPENSSL_INCLUDE="-DNO_OPENSSL"
22123 if test "x$WITH_OPENSSL" = xyes; then
22124   if test "x$OPENSSL_LIBS" = "x"; then
22125     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22126 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22127   else
22128     old_CPPFLAGS=$CPPFLAGS
22129     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22130         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22131     fi
22132         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22133
22134
22135
22136
22137
22138 for ac_header in \
22139         openssl/ssl.h \
22140         openssl/crypto.h \
22141         openssl/err.h \
22142         openssl/evp.h \
22143         openssl/engine.h
22144 do
22145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22147   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22150   echo $ECHO_N "(cached) $ECHO_C" >&6
22151 fi
22152 ac_res=`eval echo '${'$as_ac_Header'}'`
22153                { echo "$as_me:$LINENO: result: $ac_res" >&5
22154 echo "${ECHO_T}$ac_res" >&6; }
22155 else
22156   # Is the header compilable?
22157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22159 cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h.  */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h.  */
22165 $ac_includes_default
22166 #include <$ac_header>
22167 _ACEOF
22168 rm -f conftest.$ac_objext
22169 if { (ac_try="$ac_compile"
22170 case "(($ac_try" in
22171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172   *) ac_try_echo=$ac_try;;
22173 esac
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175   (eval "$ac_compile") 2>conftest.er1
22176   ac_status=$?
22177   grep -v '^ *+' conftest.er1 >conftest.err
22178   rm -f conftest.er1
22179   cat conftest.err >&5
22180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181   (exit $ac_status); } && {
22182          test -z "$ac_c_werror_flag" ||
22183          test ! -s conftest.err
22184        } && test -s conftest.$ac_objext; then
22185   ac_header_compiler=yes
22186 else
22187   echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189
22190         ac_header_compiler=no
22191 fi
22192
22193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22195 echo "${ECHO_T}$ac_header_compiler" >&6; }
22196
22197 # Is the header present?
22198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22200 cat >conftest.$ac_ext <<_ACEOF
22201 /* confdefs.h.  */
22202 _ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h.  */
22206 #include <$ac_header>
22207 _ACEOF
22208 if { (ac_try="$ac_cpp conftest.$ac_ext"
22209 case "(($ac_try" in
22210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211   *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22215   ac_status=$?
22216   grep -v '^ *+' conftest.er1 >conftest.err
22217   rm -f conftest.er1
22218   cat conftest.err >&5
22219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220   (exit $ac_status); } >/dev/null && {
22221          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22222          test ! -s conftest.err
22223        }; then
22224   ac_header_preproc=yes
22225 else
22226   echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229   ac_header_preproc=no
22230 fi
22231
22232 rm -f conftest.err conftest.$ac_ext
22233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22234 echo "${ECHO_T}$ac_header_preproc" >&6; }
22235
22236 # So?  What about this header?
22237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22238   yes:no: )
22239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22243     ac_header_preproc=yes
22244     ;;
22245   no:yes:* )
22246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22258
22259     ;;
22260 esac
22261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22264   echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266   eval "$as_ac_Header=\$ac_header_preproc"
22267 fi
22268 ac_res=`eval echo '${'$as_ac_Header'}'`
22269                { echo "$as_me:$LINENO: result: $ac_res" >&5
22270 echo "${ECHO_T}$ac_res" >&6; }
22271
22272 fi
22273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22274   cat >>confdefs.h <<_ACEOF
22275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22276 _ACEOF
22277
22278 else
22279   OPENSSL_LIBS=
22280
22281 fi
22282
22283 done
22284
22285     if test "x$OPENSSL_LIBS" != "x"; then
22286         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22287 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22288         cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h.  */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h.  */
22294 #include <openssl/crypto.h>
22295              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22296              yes
22297              #endif
22298
22299 _ACEOF
22300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22301   $EGREP "yes" >/dev/null 2>&1; then
22302   goodssl="yes"
22303 fi
22304 rm -f conftest*
22305
22306         if test "x$goodssl" != "xyes"; then
22307             { echo "$as_me:$LINENO: result: no" >&5
22308 echo "${ECHO_T}no" >&6; }
22309             OPENSSL_LIBS=
22310         else
22311             { echo "$as_me:$LINENO: result: yes" >&5
22312 echo "${ECHO_T}yes" >&6; }
22313             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22314                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22315             else
22316                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22317             fi
22318         fi
22319     fi
22320     CPPFLAGS=$old_CPPFLAGS
22321   fi
22322 fi
22323
22324
22325 export OPENSSL_LIBS
22326
22327 if test "x$PCAP_LIBS" = x; then
22328     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22329 echo "$as_me: skipping test for pcap.h." >&6;}
22330 else
22331     if test "${ac_cv_header_pcap_h+set}" = set; then
22332   { echo "$as_me:$LINENO: checking for pcap.h" >&5
22333 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22334 if test "${ac_cv_header_pcap_h+set}" = set; then
22335   echo $ECHO_N "(cached) $ECHO_C" >&6
22336 fi
22337 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22338 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22339 else
22340   # Is the header compilable?
22341 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22342 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22343 cat >conftest.$ac_ext <<_ACEOF
22344 /* confdefs.h.  */
22345 _ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h.  */
22349 $ac_includes_default
22350 #include <pcap.h>
22351 _ACEOF
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356   *) ac_try_echo=$ac_try;;
22357 esac
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359   (eval "$ac_compile") 2>conftest.er1
22360   ac_status=$?
22361   grep -v '^ *+' conftest.er1 >conftest.err
22362   rm -f conftest.er1
22363   cat conftest.err >&5
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); } && {
22366          test -z "$ac_c_werror_flag" ||
22367          test ! -s conftest.err
22368        } && test -s conftest.$ac_objext; then
22369   ac_header_compiler=yes
22370 else
22371   echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22373
22374         ac_header_compiler=no
22375 fi
22376
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22379 echo "${ECHO_T}$ac_header_compiler" >&6; }
22380
22381 # Is the header present?
22382 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22383 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h.  */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h.  */
22390 #include <pcap.h>
22391 _ACEOF
22392 if { (ac_try="$ac_cpp conftest.$ac_ext"
22393 case "(($ac_try" in
22394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395   *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22399   ac_status=$?
22400   grep -v '^ *+' conftest.er1 >conftest.err
22401   rm -f conftest.er1
22402   cat conftest.err >&5
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); } >/dev/null && {
22405          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22406          test ! -s conftest.err
22407        }; then
22408   ac_header_preproc=yes
22409 else
22410   echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413   ac_header_preproc=no
22414 fi
22415
22416 rm -f conftest.err conftest.$ac_ext
22417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22418 echo "${ECHO_T}$ac_header_preproc" >&6; }
22419
22420 # So?  What about this header?
22421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22422   yes:no: )
22423     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22424 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22425     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22426 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22427     ac_header_preproc=yes
22428     ;;
22429   no:yes:* )
22430     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22431 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22432     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
22433 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
22434     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22435 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22436     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
22437 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22438     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22439 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22440     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22441 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22442
22443     ;;
22444 esac
22445 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22446 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22447 if test "${ac_cv_header_pcap_h+set}" = set; then
22448   echo $ECHO_N "(cached) $ECHO_C" >&6
22449 else
22450   ac_cv_header_pcap_h=$ac_header_preproc
22451 fi
22452 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22453 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22454
22455 fi
22456 if test $ac_cv_header_pcap_h = yes; then
22457
22458 cat >>confdefs.h <<\_ACEOF
22459 #define HAVE_PCAP_H 1
22460 _ACEOF
22461
22462 else
22463    PCAP_LIBS=
22464         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22465 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22466
22467 fi
22468
22469
22470 fi
22471
22472
22473
22474 { echo "$as_me:$LINENO: checking for off_t" >&5
22475 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22476 if test "${ac_cv_type_off_t+set}" = set; then
22477   echo $ECHO_N "(cached) $ECHO_C" >&6
22478 else
22479   cat >conftest.$ac_ext <<_ACEOF
22480 /* confdefs.h.  */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h.  */
22485 $ac_includes_default
22486 typedef off_t ac__type_new_;
22487 int
22488 main ()
22489 {
22490 if ((ac__type_new_ *) 0)
22491   return 0;
22492 if (sizeof (ac__type_new_))
22493   return 0;
22494   ;
22495   return 0;
22496 }
22497 _ACEOF
22498 rm -f conftest.$ac_objext
22499 if { (ac_try="$ac_compile"
22500 case "(($ac_try" in
22501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502   *) ac_try_echo=$ac_try;;
22503 esac
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505   (eval "$ac_compile") 2>conftest.er1
22506   ac_status=$?
22507   grep -v '^ *+' conftest.er1 >conftest.err
22508   rm -f conftest.er1
22509   cat conftest.err >&5
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); } && {
22512          test -z "$ac_c_werror_flag" ||
22513          test ! -s conftest.err
22514        } && test -s conftest.$ac_objext; then
22515   ac_cv_type_off_t=yes
22516 else
22517   echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22519
22520         ac_cv_type_off_t=no
22521 fi
22522
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 fi
22525 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22526 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22527 if test $ac_cv_type_off_t = yes; then
22528   :
22529 else
22530
22531 cat >>confdefs.h <<_ACEOF
22532 #define off_t long int
22533 _ACEOF
22534
22535 fi
22536
22537 { echo "$as_me:$LINENO: checking for pid_t" >&5
22538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22539 if test "${ac_cv_type_pid_t+set}" = set; then
22540   echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542   cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 $ac_includes_default
22549 typedef pid_t ac__type_new_;
22550 int
22551 main ()
22552 {
22553 if ((ac__type_new_ *) 0)
22554   return 0;
22555 if (sizeof (ac__type_new_))
22556   return 0;
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_compile") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } && {
22575          test -z "$ac_c_werror_flag" ||
22576          test ! -s conftest.err
22577        } && test -s conftest.$ac_objext; then
22578   ac_cv_type_pid_t=yes
22579 else
22580   echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583         ac_cv_type_pid_t=no
22584 fi
22585
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 fi
22588 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22589 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22590 if test $ac_cv_type_pid_t = yes; then
22591   :
22592 else
22593
22594 cat >>confdefs.h <<_ACEOF
22595 #define pid_t int
22596 _ACEOF
22597
22598 fi
22599
22600 { echo "$as_me:$LINENO: checking for size_t" >&5
22601 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22602 if test "${ac_cv_type_size_t+set}" = set; then
22603   echo $ECHO_N "(cached) $ECHO_C" >&6
22604 else
22605   cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h.  */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h.  */
22611 $ac_includes_default
22612 typedef size_t ac__type_new_;
22613 int
22614 main ()
22615 {
22616 if ((ac__type_new_ *) 0)
22617   return 0;
22618 if (sizeof (ac__type_new_))
22619   return 0;
22620   ;
22621   return 0;
22622 }
22623 _ACEOF
22624 rm -f conftest.$ac_objext
22625 if { (ac_try="$ac_compile"
22626 case "(($ac_try" in
22627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628   *) ac_try_echo=$ac_try;;
22629 esac
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631   (eval "$ac_compile") 2>conftest.er1
22632   ac_status=$?
22633   grep -v '^ *+' conftest.er1 >conftest.err
22634   rm -f conftest.er1
22635   cat conftest.err >&5
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); } && {
22638          test -z "$ac_c_werror_flag" ||
22639          test ! -s conftest.err
22640        } && test -s conftest.$ac_objext; then
22641   ac_cv_type_size_t=yes
22642 else
22643   echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22645
22646         ac_cv_type_size_t=no
22647 fi
22648
22649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 fi
22651 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22652 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22653 if test $ac_cv_type_size_t = yes; then
22654   :
22655 else
22656
22657 cat >>confdefs.h <<_ACEOF
22658 #define size_t unsigned int
22659 _ACEOF
22660
22661 fi
22662
22663 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22664 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22665 if test "${ac_cv_type_uid_t+set}" = set; then
22666   echo $ECHO_N "(cached) $ECHO_C" >&6
22667 else
22668   cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h.  */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h.  */
22674 #include <sys/types.h>
22675
22676 _ACEOF
22677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22678   $EGREP "uid_t" >/dev/null 2>&1; then
22679   ac_cv_type_uid_t=yes
22680 else
22681   ac_cv_type_uid_t=no
22682 fi
22683 rm -f conftest*
22684
22685 fi
22686 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22687 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22688 if test $ac_cv_type_uid_t = no; then
22689
22690 cat >>confdefs.h <<\_ACEOF
22691 #define uid_t int
22692 _ACEOF
22693
22694
22695 cat >>confdefs.h <<\_ACEOF
22696 #define gid_t int
22697 _ACEOF
22698
22699 fi
22700
22701
22702
22703   { echo "$as_me:$LINENO: checking for socklen_t" >&5
22704 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22705 if test "${ac_cv_type_socklen_t+set}" = set; then
22706   echo $ECHO_N "(cached) $ECHO_C" >&6
22707 else
22708    ac_cv_type_socklen_t=no
22709       cat >conftest.$ac_ext <<_ACEOF
22710 /* confdefs.h.  */
22711 _ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h.  */
22715 #ifdef HAVE_SYS_TYPES_H
22716 #include <sys/types.h>
22717 #endif
22718 #ifdef HAVE_SYS_SOCKET_H
22719 #include <sys/socket.h>
22720 #endif
22721
22722 int
22723 main ()
22724 {
22725 socklen_t foo
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 rm -f conftest.$ac_objext
22731 if { (ac_try="$ac_compile"
22732 case "(($ac_try" in
22733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734   *) ac_try_echo=$ac_try;;
22735 esac
22736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22737   (eval "$ac_compile") 2>conftest.er1
22738   ac_status=$?
22739   grep -v '^ *+' conftest.er1 >conftest.err
22740   rm -f conftest.er1
22741   cat conftest.err >&5
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); } && {
22744          test -z "$ac_c_werror_flag" ||
22745          test ! -s conftest.err
22746        } && test -s conftest.$ac_objext; then
22747   ac_cv_type_socklen_t=yes
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752
22753 fi
22754
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756
22757
22758 fi
22759 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22760 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22761
22762   if test "$ac_cv_type_socklen_t" != "yes"; then
22763
22764 cat >>confdefs.h <<\_ACEOF
22765 #define socklen_t int
22766 _ACEOF
22767
22768   fi
22769
22770
22771
22772   { echo "$as_me:$LINENO: checking for uint8_t" >&5
22773 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22774 if test "${ac_cv_type_uint8_t+set}" = set; then
22775   echo $ECHO_N "(cached) $ECHO_C" >&6
22776 else
22777    ac_cv_type_uint8_t=no
22778       cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784 #ifdef HAVE_INTTYPES_H
22785 #include <inttypes.h>
22786 #endif
22787 #ifdef HAVE_STDINT_H
22788 #include <stdint.h>
22789 #endif
22790
22791 int
22792 main ()
22793 {
22794 uint8_t foo
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806   (eval "$ac_compile") 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } && {
22813          test -z "$ac_c_werror_flag" ||
22814          test ! -s conftest.err
22815        } && test -s conftest.$ac_objext; then
22816   ac_cv_type_uint8_t=yes
22817 else
22818   echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22820
22821
22822 fi
22823
22824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22825
22826
22827 fi
22828 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22829 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22830
22831   if test "$ac_cv_type_uint8_t" != "yes"; then
22832
22833 cat >>confdefs.h <<\_ACEOF
22834 #define uint8_t unsigned char
22835 _ACEOF
22836
22837   fi
22838
22839
22840
22841   { echo "$as_me:$LINENO: checking for uint16_t" >&5
22842 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22843 if test "${ac_cv_type_uint16_t+set}" = set; then
22844   echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846    ac_cv_type_uint16_t=no
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 #ifdef HAVE_INTTYPES_H
22854 #include <inttypes.h>
22855 #endif
22856 #ifdef HAVE_STDINT_H
22857 #include <stdint.h>
22858 #endif
22859
22860 int
22861 main ()
22862 {
22863 uint16_t foo
22864   ;
22865   return 0;
22866 }
22867 _ACEOF
22868 rm -f conftest.$ac_objext
22869 if { (ac_try="$ac_compile"
22870 case "(($ac_try" in
22871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872   *) ac_try_echo=$ac_try;;
22873 esac
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875   (eval "$ac_compile") 2>conftest.er1
22876   ac_status=$?
22877   grep -v '^ *+' conftest.er1 >conftest.err
22878   rm -f conftest.er1
22879   cat conftest.err >&5
22880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881   (exit $ac_status); } && {
22882          test -z "$ac_c_werror_flag" ||
22883          test ! -s conftest.err
22884        } && test -s conftest.$ac_objext; then
22885   ac_cv_type_uint16_t=yes
22886 else
22887   echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22889
22890
22891 fi
22892
22893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22894
22895
22896 fi
22897 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22898 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22899
22900   if test "$ac_cv_type_uint16_t" != "yes"; then
22901
22902 cat >>confdefs.h <<\_ACEOF
22903 #define uint16_t unsigned short
22904 _ACEOF
22905
22906   fi
22907
22908
22909
22910   { echo "$as_me:$LINENO: checking for uint32_t" >&5
22911 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22912 if test "${ac_cv_type_uint32_t+set}" = set; then
22913   echo $ECHO_N "(cached) $ECHO_C" >&6
22914 else
22915    ac_cv_type_uint32_t=no
22916       cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h.  */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h.  */
22922 #ifdef HAVE_INTTYPES_H
22923 #include <inttypes.h>
22924 #endif
22925 #ifdef HAVE_STDINT_H
22926 #include <stdint.h>
22927 #endif
22928
22929 int
22930 main ()
22931 {
22932 uint32_t foo
22933   ;
22934   return 0;
22935 }
22936 _ACEOF
22937 rm -f conftest.$ac_objext
22938 if { (ac_try="$ac_compile"
22939 case "(($ac_try" in
22940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941   *) ac_try_echo=$ac_try;;
22942 esac
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944   (eval "$ac_compile") 2>conftest.er1
22945   ac_status=$?
22946   grep -v '^ *+' conftest.er1 >conftest.err
22947   rm -f conftest.er1
22948   cat conftest.err >&5
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); } && {
22951          test -z "$ac_c_werror_flag" ||
22952          test ! -s conftest.err
22953        } && test -s conftest.$ac_objext; then
22954   ac_cv_type_uint32_t=yes
22955 else
22956   echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22958
22959
22960 fi
22961
22962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963
22964
22965 fi
22966 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22967 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22968
22969   if test "$ac_cv_type_uint32_t" != "yes"; then
22970
22971 cat >>confdefs.h <<\_ACEOF
22972 #define uint32_t unsigned int
22973 _ACEOF
22974
22975   fi
22976
22977
22978 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22979 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22980 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22981   echo $ECHO_N "(cached) $ECHO_C" >&6
22982 else
22983   cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h.  */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h.  */
22989
22990 #ifdef HAVE_NETINET_IN_H
22991 #include <netinet/in.h>
22992 #endif
22993
22994
22995 typedef struct in6_addr ac__type_new_;
22996 int
22997 main ()
22998 {
22999 if ((ac__type_new_ *) 0)
23000   return 0;
23001 if (sizeof (ac__type_new_))
23002   return 0;
23003   ;
23004   return 0;
23005 }
23006 _ACEOF
23007 rm -f conftest.$ac_objext
23008 if { (ac_try="$ac_compile"
23009 case "(($ac_try" in
23010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011   *) ac_try_echo=$ac_try;;
23012 esac
23013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014   (eval "$ac_compile") 2>conftest.er1
23015   ac_status=$?
23016   grep -v '^ *+' conftest.er1 >conftest.err
23017   rm -f conftest.er1
23018   cat conftest.err >&5
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); } && {
23021          test -z "$ac_c_werror_flag" ||
23022          test ! -s conftest.err
23023        } && test -s conftest.$ac_objext; then
23024   ac_cv_type_struct_in6_addr=yes
23025 else
23026   echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23028
23029         ac_cv_type_struct_in6_addr=no
23030 fi
23031
23032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23033 fi
23034 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23035 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
23036 if test $ac_cv_type_struct_in6_addr = yes; then
23037
23038 cat >>confdefs.h <<\_ACEOF
23039 #define HAVE_STRUCT_IN6_ADDR 1
23040 _ACEOF
23041
23042 fi
23043
23044
23045 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23046 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23047 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23048   echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050   cat >conftest.$ac_ext <<_ACEOF
23051 /* confdefs.h.  */
23052 _ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h.  */
23056
23057 #ifdef HAVE_NETINET_IN_H
23058 #include <netinet/in.h>
23059 #endif
23060 #ifdef HAVE_SYS_SOCKET_H
23061 #include <sys/socket.h>
23062 #endif
23063
23064
23065 typedef struct sockaddr_storage ac__type_new_;
23066 int
23067 main ()
23068 {
23069 if ((ac__type_new_ *) 0)
23070   return 0;
23071 if (sizeof (ac__type_new_))
23072   return 0;
23073   ;
23074   return 0;
23075 }
23076 _ACEOF
23077 rm -f conftest.$ac_objext
23078 if { (ac_try="$ac_compile"
23079 case "(($ac_try" in
23080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081   *) ac_try_echo=$ac_try;;
23082 esac
23083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23084   (eval "$ac_compile") 2>conftest.er1
23085   ac_status=$?
23086   grep -v '^ *+' conftest.er1 >conftest.err
23087   rm -f conftest.er1
23088   cat conftest.err >&5
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); } && {
23091          test -z "$ac_c_werror_flag" ||
23092          test ! -s conftest.err
23093        } && test -s conftest.$ac_objext; then
23094   ac_cv_type_struct_sockaddr_storage=yes
23095 else
23096   echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23098
23099         ac_cv_type_struct_sockaddr_storage=no
23100 fi
23101
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 fi
23104 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23105 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23106 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23107
23108 cat >>confdefs.h <<\_ACEOF
23109 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23110 _ACEOF
23111
23112 fi
23113
23114
23115 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23116 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23117 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23118   echo $ECHO_N "(cached) $ECHO_C" >&6
23119 else
23120   cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h.  */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h.  */
23126
23127 #ifdef HAVE_NETINET_IN_H
23128 #include <netinet/in.h>
23129 #endif
23130
23131
23132 typedef struct sockaddr_in6 ac__type_new_;
23133 int
23134 main ()
23135 {
23136 if ((ac__type_new_ *) 0)
23137   return 0;
23138 if (sizeof (ac__type_new_))
23139   return 0;
23140   ;
23141   return 0;
23142 }
23143 _ACEOF
23144 rm -f conftest.$ac_objext
23145 if { (ac_try="$ac_compile"
23146 case "(($ac_try" in
23147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148   *) ac_try_echo=$ac_try;;
23149 esac
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151   (eval "$ac_compile") 2>conftest.er1
23152   ac_status=$?
23153   grep -v '^ *+' conftest.er1 >conftest.err
23154   rm -f conftest.er1
23155   cat conftest.err >&5
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); } && {
23158          test -z "$ac_c_werror_flag" ||
23159          test ! -s conftest.err
23160        } && test -s conftest.$ac_objext; then
23161   ac_cv_type_struct_sockaddr_in6=yes
23162 else
23163   echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166         ac_cv_type_struct_sockaddr_in6=no
23167 fi
23168
23169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 fi
23171 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23172 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23173 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23174
23175 cat >>confdefs.h <<\_ACEOF
23176 #define HAVE_STRUCT_SOCKADDR_IN6 1
23177 _ACEOF
23178
23179 fi
23180
23181
23182 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23183 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23184 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23185   echo $ECHO_N "(cached) $ECHO_C" >&6
23186 else
23187   cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h.  */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h.  */
23193
23194 #ifdef HAVE_SYS_TYPES_H
23195 #include <sys/types.h>
23196 #endif
23197 #ifdef HAVE_SYS_SOCKET_H
23198 #include <sys/socket.h>
23199 #endif
23200 #ifdef HAVE_NETDB_H
23201 #include <netdb.h>
23202 #endif
23203
23204
23205 typedef struct addrinfo ac__type_new_;
23206 int
23207 main ()
23208 {
23209 if ((ac__type_new_ *) 0)
23210   return 0;
23211 if (sizeof (ac__type_new_))
23212   return 0;
23213   ;
23214   return 0;
23215 }
23216 _ACEOF
23217 rm -f conftest.$ac_objext
23218 if { (ac_try="$ac_compile"
23219 case "(($ac_try" in
23220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221   *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224   (eval "$ac_compile") 2>conftest.er1
23225   ac_status=$?
23226   grep -v '^ *+' conftest.er1 >conftest.err
23227   rm -f conftest.er1
23228   cat conftest.err >&5
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); } && {
23231          test -z "$ac_c_werror_flag" ||
23232          test ! -s conftest.err
23233        } && test -s conftest.$ac_objext; then
23234   ac_cv_type_struct_addrinfo=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239         ac_cv_type_struct_addrinfo=no
23240 fi
23241
23242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 fi
23244 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23245 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23246 if test $ac_cv_type_struct_addrinfo = yes; then
23247
23248 cat >>confdefs.h <<\_ACEOF
23249 #define HAVE_STRUCT_ADDRINFO 1
23250 _ACEOF
23251
23252 fi
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283 for ac_func in \
23284         getopt_long \
23285         lockf \
23286         strsignal \
23287         sigaction \
23288         sigprocmask \
23289         pthread_sigmask \
23290         snprintf \
23291         vsnprintf \
23292         setsid \
23293         strncasecmp \
23294         strcasecmp \
23295         localtime_r \
23296         ctime_r \
23297         gmtime_r \
23298         strsep \
23299         inet_aton \
23300         inet_pton \
23301         inet_ntop \
23302         setlinebuf \
23303         setvbuf \
23304         getusershell \
23305         initgroups \
23306         getaddrinfo \
23307         getnameinfo \
23308         closefrom \
23309         gettimeofday \
23310         strlcat \
23311         strlcpy
23312
23313 do
23314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23318   echo $ECHO_N "(cached) $ECHO_C" >&6
23319 else
23320   cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h.  */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h.  */
23326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23328 #define $ac_func innocuous_$ac_func
23329
23330 /* System header to define __stub macros and hopefully few prototypes,
23331     which can conflict with char $ac_func (); below.
23332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23333     <limits.h> exists even on freestanding compilers.  */
23334
23335 #ifdef __STDC__
23336 # include <limits.h>
23337 #else
23338 # include <assert.h>
23339 #endif
23340
23341 #undef $ac_func
23342
23343 /* Override any GCC internal prototype to avoid an error.
23344    Use char because int might match the return type of a GCC
23345    builtin and then its argument prototype would still apply.  */
23346 #ifdef __cplusplus
23347 extern "C"
23348 #endif
23349 char $ac_func ();
23350 /* The GNU C library defines this for functions which it implements
23351     to always fail with ENOSYS.  Some functions are actually named
23352     something starting with __ and the normal name is an alias.  */
23353 #if defined __stub_$ac_func || defined __stub___$ac_func
23354 choke me
23355 #endif
23356
23357 int
23358 main ()
23359 {
23360 return $ac_func ();
23361   ;
23362   return 0;
23363 }
23364 _ACEOF
23365 rm -f conftest.$ac_objext conftest$ac_exeext
23366 if { (ac_try="$ac_link"
23367 case "(($ac_try" in
23368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369   *) ac_try_echo=$ac_try;;
23370 esac
23371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372   (eval "$ac_link") 2>conftest.er1
23373   ac_status=$?
23374   grep -v '^ *+' conftest.er1 >conftest.err
23375   rm -f conftest.er1
23376   cat conftest.err >&5
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); } && {
23379          test -z "$ac_c_werror_flag" ||
23380          test ! -s conftest.err
23381        } && test -s conftest$ac_exeext &&
23382        $as_test_x conftest$ac_exeext; then
23383   eval "$as_ac_var=yes"
23384 else
23385   echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23387
23388         eval "$as_ac_var=no"
23389 fi
23390
23391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23392       conftest$ac_exeext conftest.$ac_ext
23393 fi
23394 ac_res=`eval echo '${'$as_ac_var'}'`
23395                { echo "$as_me:$LINENO: result: $ac_res" >&5
23396 echo "${ECHO_T}$ac_res" >&6; }
23397 if test `eval echo '${'$as_ac_var'}'` = yes; then
23398   cat >>confdefs.h <<_ACEOF
23399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23400 _ACEOF
23401
23402 fi
23403 done
23404
23405 for ac_func in \
23406         crypt \
23407         strncasecmp \
23408         strcasecmp \
23409         inet_aton \
23410         setlinebuf \
23411         getusershell \
23412         endusershell
23413
23414 do
23415 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23416 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23417 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23418   echo $ECHO_N "(cached) $ECHO_C" >&6
23419 else
23420   cat >conftest.$ac_ext <<_ACEOF
23421 /* confdefs.h.  */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h.  */
23426
23427 #include <stdio.h>
23428 #include <string.h>
23429 #ifdef HAVE_UNISTD_H
23430 #include <unistd.h>
23431 #endif
23432 #ifdef HAVE_CRYPT_H
23433 #include <crypt.h>
23434 #endif
23435 #ifdef HAVE_ERRNO_H
23436 #include <errno.h>
23437 #endif
23438 #ifdef HAVE_RESOURCE_H
23439 #include <resource.h>
23440 #endif
23441 #ifdef HAVE_GETOPT_H
23442 #include <getopt.h>
23443 #endif
23444 #ifdef HAVE_MALLOC_H
23445 #include <malloc.h>
23446 #endif
23447 #ifdef HAVE_UTMP_H
23448 #include <utmp.h>
23449 #endif
23450 #ifdef HAVE_UTMPX_H
23451 #include <utmpx.h>
23452 #endif
23453 #ifdef HAVE_SYS_SELECT_H
23454 #include <sys/select.h>
23455 #endif
23456 #ifdef HAVE_DLFCN_H
23457 #include <dlfcn.h>
23458 #endif
23459 #ifdef HAVE_REGEX_H
23460 #include <regex.h>
23461 #endif
23462 #ifdef HAVE_SYSLOG_H
23463 #include <syslog.h>
23464 #endif
23465 #ifdef HAVE_INTTYPES_H
23466 #include <inttypes.h>
23467 #endif
23468 #ifdef HAVE_STDINT_H
23469 #include <stdint.h>
23470 #endif
23471 #ifdef HAVE_ARPA_INET_H
23472 #include <arpa/inet.h>
23473 #endif
23474
23475 int
23476 main ()
23477 {
23478 char *(*pfn) = (char *(*)) $ac_func
23479   ;
23480   return 0;
23481 }
23482 _ACEOF
23483 rm -f conftest.$ac_objext
23484 if { (ac_try="$ac_compile"
23485 case "(($ac_try" in
23486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487   *) ac_try_echo=$ac_try;;
23488 esac
23489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23490   (eval "$ac_compile") 2>conftest.er1
23491   ac_status=$?
23492   grep -v '^ *+' conftest.er1 >conftest.err
23493   rm -f conftest.er1
23494   cat conftest.err >&5
23495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496   (exit $ac_status); } && {
23497          test -z "$ac_c_werror_flag" ||
23498          test ! -s conftest.err
23499        } && test -s conftest.$ac_objext; then
23500   eval "radius_cv_decl_needed_$ac_func=no"
23501 else
23502   echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23504
23505         eval "radius_cv_decl_needed_$ac_func=yes"
23506 fi
23507
23508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509 fi
23510
23511 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23512   { echo "$as_me:$LINENO: result: yes" >&5
23513 echo "${ECHO_T}yes" >&6; }
23514   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23515   cat >>confdefs.h <<_ACEOF
23516 #define $radius_tr_decl 1
23517 _ACEOF
23518
23519 else
23520   { echo "$as_me:$LINENO: result: no" >&5
23521 echo "${ECHO_T}no" >&6; }
23522 fi
23523
23524 done
23525
23526
23527 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23528 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23529 if test "${ac_cv_type_signal+set}" = set; then
23530   echo $ECHO_N "(cached) $ECHO_C" >&6
23531 else
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 #include <sys/types.h>
23539 #include <signal.h>
23540
23541 int
23542 main ()
23543 {
23544 return *(signal (0, 0)) (0) == 1;
23545   ;
23546   return 0;
23547 }
23548 _ACEOF
23549 rm -f conftest.$ac_objext
23550 if { (ac_try="$ac_compile"
23551 case "(($ac_try" in
23552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23553   *) ac_try_echo=$ac_try;;
23554 esac
23555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23556   (eval "$ac_compile") 2>conftest.er1
23557   ac_status=$?
23558   grep -v '^ *+' conftest.er1 >conftest.err
23559   rm -f conftest.er1
23560   cat conftest.err >&5
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); } && {
23563          test -z "$ac_c_werror_flag" ||
23564          test ! -s conftest.err
23565        } && test -s conftest.$ac_objext; then
23566   ac_cv_type_signal=int
23567 else
23568   echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23570
23571         ac_cv_type_signal=void
23572 fi
23573
23574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23575 fi
23576 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23577 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23578
23579 cat >>confdefs.h <<_ACEOF
23580 #define RETSIGTYPE $ac_cv_type_signal
23581 _ACEOF
23582
23583
23584
23585 if test "x$ac_cv_header_utmpx_h" = "xyes"
23586 then
23587
23588   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23589 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23590
23591
23592   cat >conftest.$ac_ext <<_ACEOF
23593 /* confdefs.h.  */
23594 _ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h.  */
23598
23599 #include <utmpx.h>
23600 #ifndef offsetof
23601 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23602 #endif
23603
23604 int
23605 main ()
23606 {
23607  int foo = offsetof(struct utmpx, ut_xtime)
23608   ;
23609   return 0;
23610 }
23611 _ACEOF
23612 rm -f conftest.$ac_objext
23613 if { (ac_try="$ac_compile"
23614 case "(($ac_try" in
23615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616   *) ac_try_echo=$ac_try;;
23617 esac
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619   (eval "$ac_compile") 2>conftest.er1
23620   ac_status=$?
23621   grep -v '^ *+' conftest.er1 >conftest.err
23622   rm -f conftest.er1
23623   cat conftest.err >&5
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); } && {
23626          test -z "$ac_c_werror_flag" ||
23627          test ! -s conftest.err
23628        } && test -s conftest.$ac_objext; then
23629   has_element=" "
23630 else
23631   echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23633
23634         has_element=
23635 fi
23636
23637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23638
23639   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23640   if test "x$has_element" != "x"; then
23641     { echo "$as_me:$LINENO: result: yes" >&5
23642 echo "${ECHO_T}yes" >&6; }
23643     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23644   else
23645     { echo "$as_me:$LINENO: result: no" >&5
23646 echo "${ECHO_T}no" >&6; }
23647     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23648  fi
23649
23650  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23651  then
23652
23653 cat >>confdefs.h <<\_ACEOF
23654 #define ut_xtime ut_tv.tv_sec
23655 _ACEOF
23656
23657  fi
23658 fi
23659
23660
23661   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23662 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23663
23664
23665   cat >conftest.$ac_ext <<_ACEOF
23666 /* confdefs.h.  */
23667 _ACEOF
23668 cat confdefs.h >>conftest.$ac_ext
23669 cat >>conftest.$ac_ext <<_ACEOF
23670 /* end confdefs.h.  */
23671
23672 #include <netinet/in.h>
23673 #ifndef offsetof
23674 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23675 #endif
23676
23677 int
23678 main ()
23679 {
23680  int foo = offsetof(struct in_pktinfo, ipi_addr)
23681   ;
23682   return 0;
23683 }
23684 _ACEOF
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689   *) ac_try_echo=$ac_try;;
23690 esac
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692   (eval "$ac_compile") 2>conftest.er1
23693   ac_status=$?
23694   grep -v '^ *+' conftest.er1 >conftest.err
23695   rm -f conftest.er1
23696   cat conftest.err >&5
23697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); } && {
23699          test -z "$ac_c_werror_flag" ||
23700          test ! -s conftest.err
23701        } && test -s conftest.$ac_objext; then
23702   has_element=" "
23703 else
23704   echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23706
23707         has_element=
23708 fi
23709
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711
23712   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23713   if test "x$has_element" != "x"; then
23714     { echo "$as_me:$LINENO: result: yes" >&5
23715 echo "${ECHO_T}yes" >&6; }
23716     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23717   else
23718     { echo "$as_me:$LINENO: result: no" >&5
23719 echo "${ECHO_T}no" >&6; }
23720     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23721  fi
23722
23723 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23724 then
23725
23726 cat >>confdefs.h <<\_ACEOF
23727 #define HAVE_IP_PKTINFO
23728 _ACEOF
23729
23730 fi
23731
23732
23733   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23734 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
23735
23736
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
23744 #include <netinet/in.h>
23745 #ifndef offsetof
23746 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23747 #endif
23748
23749 int
23750 main ()
23751 {
23752  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23753   ;
23754   return 0;
23755 }
23756 _ACEOF
23757 rm -f conftest.$ac_objext
23758 if { (ac_try="$ac_compile"
23759 case "(($ac_try" in
23760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761   *) ac_try_echo=$ac_try;;
23762 esac
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764   (eval "$ac_compile") 2>conftest.er1
23765   ac_status=$?
23766   grep -v '^ *+' conftest.er1 >conftest.err
23767   rm -f conftest.er1
23768   cat conftest.err >&5
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); } && {
23771          test -z "$ac_c_werror_flag" ||
23772          test ! -s conftest.err
23773        } && test -s conftest.$ac_objext; then
23774   has_element=" "
23775 else
23776   echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23778
23779         has_element=
23780 fi
23781
23782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23783
23784   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23785   if test "x$has_element" != "x"; then
23786     { echo "$as_me:$LINENO: result: yes" >&5
23787 echo "${ECHO_T}yes" >&6; }
23788     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23789   else
23790     { echo "$as_me:$LINENO: result: no" >&5
23791 echo "${ECHO_T}no" >&6; }
23792     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23793  fi
23794
23795 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23796 then
23797
23798 cat >>confdefs.h <<\_ACEOF
23799 #define HAVE_IN6_PKTINFO
23800 _ACEOF
23801
23802 fi
23803
23804
23805 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23806 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23807 if test "${ac_cv_c_const+set}" = set; then
23808   echo $ECHO_N "(cached) $ECHO_C" >&6
23809 else
23810   cat >conftest.$ac_ext <<_ACEOF
23811 /* confdefs.h.  */
23812 _ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h.  */
23816
23817 int
23818 main ()
23819 {
23820 /* FIXME: Include the comments suggested by Paul. */
23821 #ifndef __cplusplus
23822   /* Ultrix mips cc rejects this.  */
23823   typedef int charset[2];
23824   const charset cs;
23825   /* SunOS 4.1.1 cc rejects this.  */
23826   char const *const *pcpcc;
23827   char **ppc;
23828   /* NEC SVR4.0.2 mips cc rejects this.  */
23829   struct point {int x, y;};
23830   static struct point const zero = {0,0};
23831   /* AIX XL C 1.02.0.0 rejects this.
23832      It does not let you subtract one const X* pointer from another in
23833      an arm of an if-expression whose if-part is not a constant
23834      expression */
23835   const char *g = "string";
23836   pcpcc = &g + (g ? g-g : 0);
23837   /* HPUX 7.0 cc rejects these. */
23838   ++pcpcc;
23839   ppc = (char**) pcpcc;
23840   pcpcc = (char const *const *) ppc;
23841   { /* SCO 3.2v4 cc rejects this.  */
23842     char *t;
23843     char const *s = 0 ? (char *) 0 : (char const *) 0;
23844
23845     *t++ = 0;
23846     if (s) return 0;
23847   }
23848   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23849     int x[] = {25, 17};
23850     const int *foo = &x[0];
23851     ++foo;
23852   }
23853   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23854     typedef const int *iptr;
23855     iptr p = 0;
23856     ++p;
23857   }
23858   { /* AIX XL C 1.02.0.0 rejects this saying
23859        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23860     struct s { int j; const int *ap[3]; };
23861     struct s *b; b->j = 5;
23862   }
23863   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23864     const int foo = 10;
23865     if (!foo) return 0;
23866   }
23867   return !cs[0] && !zero.x;
23868 #endif
23869
23870   ;
23871   return 0;
23872 }
23873 _ACEOF
23874 rm -f conftest.$ac_objext
23875 if { (ac_try="$ac_compile"
23876 case "(($ac_try" in
23877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878   *) ac_try_echo=$ac_try;;
23879 esac
23880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23881   (eval "$ac_compile") 2>conftest.er1
23882   ac_status=$?
23883   grep -v '^ *+' conftest.er1 >conftest.err
23884   rm -f conftest.er1
23885   cat conftest.err >&5
23886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887   (exit $ac_status); } && {
23888          test -z "$ac_c_werror_flag" ||
23889          test ! -s conftest.err
23890        } && test -s conftest.$ac_objext; then
23891   ac_cv_c_const=yes
23892 else
23893   echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23895
23896         ac_cv_c_const=no
23897 fi
23898
23899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23900 fi
23901 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23902 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23903 if test $ac_cv_c_const = no; then
23904
23905 cat >>confdefs.h <<\_ACEOF
23906 #define const
23907 _ACEOF
23908
23909 fi
23910
23911
23912 { echo "$as_me:$LINENO: checking type of OS" >&5
23913 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23914 OS=`uname -s`
23915 { echo "$as_me:$LINENO: result: $OS" >&5
23916 echo "${ECHO_T}$OS" >&6; }
23917 if test "$OS" = "OS/2"; then
23918         LIBPREFIX=
23919 else
23920         LIBPREFIX=lib
23921 fi
23922
23923
23924 if test "x$GCC" = "xyes"; then
23925     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23926 fi
23927
23928 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23929 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23930 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23931   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23932   CFLAGS="$CFLAGS $devflags"
23933   INSTALLSTRIP=""
23934   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23935 echo "${ECHO_T}yes.  Using $devflags" >&6; }
23936 else
23937   devflags=""
23938   CFLAGS="$CFLAGS -DNDEBUG"
23939   INSTALLSTRIP=""
23940   { echo "$as_me:$LINENO: result: no." >&5
23941 echo "${ECHO_T}no." >&6; }
23942 fi
23943
23944
23945 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23946 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23947 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23948   echo $ECHO_N "(cached) $ECHO_C" >&6
23949 else
23950   ac_check_lib_save_LIBS=$LIBS
23951 LIBS="-lcrypt  $LIBS"
23952 cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958
23959 /* Override any GCC internal prototype to avoid an error.
23960    Use char because int might match the return type of a GCC
23961    builtin and then its argument prototype would still apply.  */
23962 #ifdef __cplusplus
23963 extern "C"
23964 #endif
23965 char crypt ();
23966 int
23967 main ()
23968 {
23969 return crypt ();
23970   ;
23971   return 0;
23972 }
23973 _ACEOF
23974 rm -f conftest.$ac_objext conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978   *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981   (eval "$ac_link") 2>conftest.er1
23982   ac_status=$?
23983   grep -v '^ *+' conftest.er1 >conftest.err
23984   rm -f conftest.er1
23985   cat conftest.err >&5
23986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987   (exit $ac_status); } && {
23988          test -z "$ac_c_werror_flag" ||
23989          test ! -s conftest.err
23990        } && test -s conftest$ac_exeext &&
23991        $as_test_x conftest$ac_exeext; then
23992   ac_cv_lib_crypt_crypt=yes
23993 else
23994   echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23996
23997         ac_cv_lib_crypt_crypt=no
23998 fi
23999
24000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24001       conftest$ac_exeext conftest.$ac_ext
24002 LIBS=$ac_check_lib_save_LIBS
24003 fi
24004 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24005 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24006 if test $ac_cv_lib_crypt_crypt = yes; then
24007   CRYPTLIB="-lcrypt"
24008
24009 fi
24010
24011 if test "$CRYPTLIB" != ""; then
24012
24013 cat >>confdefs.h <<\_ACEOF
24014 #define HAVE_CRYPT
24015 _ACEOF
24016
24017 else
24018   { echo "$as_me:$LINENO: checking for crypt" >&5
24019 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24020 if test "${ac_cv_func_crypt+set}" = set; then
24021   echo $ECHO_N "(cached) $ECHO_C" >&6
24022 else
24023   cat >conftest.$ac_ext <<_ACEOF
24024 /* confdefs.h.  */
24025 _ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h.  */
24029 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24031 #define crypt innocuous_crypt
24032
24033 /* System header to define __stub macros and hopefully few prototypes,
24034     which can conflict with char crypt (); below.
24035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24036     <limits.h> exists even on freestanding compilers.  */
24037
24038 #ifdef __STDC__
24039 # include <limits.h>
24040 #else
24041 # include <assert.h>
24042 #endif
24043
24044 #undef crypt
24045
24046 /* Override any GCC internal prototype to avoid an error.
24047    Use char because int might match the return type of a GCC
24048    builtin and then its argument prototype would still apply.  */
24049 #ifdef __cplusplus
24050 extern "C"
24051 #endif
24052 char crypt ();
24053 /* The GNU C library defines this for functions which it implements
24054     to always fail with ENOSYS.  Some functions are actually named
24055     something starting with __ and the normal name is an alias.  */
24056 #if defined __stub_crypt || defined __stub___crypt
24057 choke me
24058 #endif
24059
24060 int
24061 main ()
24062 {
24063 return crypt ();
24064   ;
24065   return 0;
24066 }
24067 _ACEOF
24068 rm -f conftest.$ac_objext conftest$ac_exeext
24069 if { (ac_try="$ac_link"
24070 case "(($ac_try" in
24071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072   *) ac_try_echo=$ac_try;;
24073 esac
24074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075   (eval "$ac_link") 2>conftest.er1
24076   ac_status=$?
24077   grep -v '^ *+' conftest.er1 >conftest.err
24078   rm -f conftest.er1
24079   cat conftest.err >&5
24080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081   (exit $ac_status); } && {
24082          test -z "$ac_c_werror_flag" ||
24083          test ! -s conftest.err
24084        } && test -s conftest$ac_exeext &&
24085        $as_test_x conftest$ac_exeext; then
24086   ac_cv_func_crypt=yes
24087 else
24088   echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24090
24091         ac_cv_func_crypt=no
24092 fi
24093
24094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24095       conftest$ac_exeext conftest.$ac_ext
24096 fi
24097 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24098 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24099 if test $ac_cv_func_crypt = yes; then
24100
24101 cat >>confdefs.h <<\_ACEOF
24102 #define HAVE_CRYPT
24103 _ACEOF
24104
24105 fi
24106
24107 fi
24108
24109 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24110 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24111 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24112   echo $ECHO_N "(cached) $ECHO_C" >&6
24113 else
24114   ac_check_lib_save_LIBS=$LIBS
24115 LIBS="-lcipher  $LIBS"
24116 cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h.  */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h.  */
24122
24123 /* Override any GCC internal prototype to avoid an error.
24124    Use char because int might match the return type of a GCC
24125    builtin and then its argument prototype would still apply.  */
24126 #ifdef __cplusplus
24127 extern "C"
24128 #endif
24129 char setkey ();
24130 int
24131 main ()
24132 {
24133 return setkey ();
24134   ;
24135   return 0;
24136 }
24137 _ACEOF
24138 rm -f conftest.$ac_objext conftest$ac_exeext
24139 if { (ac_try="$ac_link"
24140 case "(($ac_try" in
24141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142   *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145   (eval "$ac_link") 2>conftest.er1
24146   ac_status=$?
24147   grep -v '^ *+' conftest.er1 >conftest.err
24148   rm -f conftest.er1
24149   cat conftest.err >&5
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); } && {
24152          test -z "$ac_c_werror_flag" ||
24153          test ! -s conftest.err
24154        } && test -s conftest$ac_exeext &&
24155        $as_test_x conftest$ac_exeext; then
24156   ac_cv_lib_cipher_setkey=yes
24157 else
24158   echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.$ac_ext >&5
24160
24161         ac_cv_lib_cipher_setkey=no
24162 fi
24163
24164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24165       conftest$ac_exeext conftest.$ac_ext
24166 LIBS=$ac_check_lib_save_LIBS
24167 fi
24168 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24169 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24170 if test $ac_cv_lib_cipher_setkey = yes; then
24171   CRYPTLIB="${CRYPTLIB} -lcipher"
24172
24173 fi
24174
24175
24176
24177 if test "x$WITH_SNMP" = "xyes"; then
24178
24179
24180
24181
24182 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24183 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24184
24185 cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h.  */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h.  */
24191
24192 #ifdef HAVE_SYS_TYPES_H
24193 #include <sys/types.h>
24194 #endif
24195 #ifdef HAVE_STDINT_H
24196 #include <stdint.h>
24197 #endif
24198 #ifdef HAVE_STDIO_H
24199 #include <stdio.h>
24200 #endif
24201 #ifdef HAVE_NETDB_H
24202 #include <netdb.h>
24203 #endif
24204 #ifdef HAVE_UNISTD_H
24205 #include <unistd.h>
24206 #endif
24207 #include <ucd-snmp/ucd-snmp-config.h>
24208 #include <ucd-snmp/asn1.h>
24209 #include <ucd-snmp/snmp.h>
24210 #include <ucd-snmp/snmp_impl.h>
24211 int
24212 main ()
24213 {
24214  int a = 1;
24215   ;
24216   return 0;
24217 }
24218 _ACEOF
24219 rm -f conftest.$ac_objext
24220 if { (ac_try="$ac_compile"
24221 case "(($ac_try" in
24222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223   *) ac_try_echo=$ac_try;;
24224 esac
24225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24226   (eval "$ac_compile") 2>conftest.er1
24227   ac_status=$?
24228   grep -v '^ *+' conftest.er1 >conftest.err
24229   rm -f conftest.er1
24230   cat conftest.err >&5
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); } && {
24233          test -z "$ac_c_werror_flag" ||
24234          test ! -s conftest.err
24235        } && test -s conftest.$ac_objext; then
24236   SNMP_INCLUDE="";ucdsnmp=yes
24237 else
24238   echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24240
24241         ucdsnmp=
24242 fi
24243
24244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24245
24246 if test "x$ucdsnmp" = "x"; then
24247   old_CFLAGS="$CFLAGS"
24248   for try in /usr/include /usr/local/include $snmp_include_dir; do
24249     CFLAGS="$old_CFLAGS -I$try"
24250     cat >conftest.$ac_ext <<_ACEOF
24251 /* confdefs.h.  */
24252 _ACEOF
24253 cat confdefs.h >>conftest.$ac_ext
24254 cat >>conftest.$ac_ext <<_ACEOF
24255 /* end confdefs.h.  */
24256
24257 #ifdef HAVE_SYS_TYPES_H
24258 #include <sys/types.h>
24259 #endif
24260 #ifdef HAVE_STDINT_H
24261 #include <stdint.h>
24262 #endif
24263 #ifdef HAVE_STDIO_H
24264 #include <stdio.h>
24265 #endif
24266 #ifdef HAVE_NETDB_H
24267 #include <netdb.h>
24268 #endif
24269 #ifdef HAVE_UNISTD_H
24270 #include <unistd.h>
24271 #endif
24272 #include <ucd-snmp/ucd-snmp-config.h>
24273 #include <ucd-snmp/asn1.h>
24274 #include <ucd-snmp/snmp.h>
24275 #include <ucd-snmp/snmp_impl.h>
24276 int
24277 main ()
24278 {
24279  int a = 1;
24280   ;
24281   return 0;
24282 }
24283 _ACEOF
24284 rm -f conftest.$ac_objext
24285 if { (ac_try="$ac_compile"
24286 case "(($ac_try" in
24287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24288   *) ac_try_echo=$ac_try;;
24289 esac
24290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24291   (eval "$ac_compile") 2>conftest.er1
24292   ac_status=$?
24293   grep -v '^ *+' conftest.er1 >conftest.err
24294   rm -f conftest.er1
24295   cat conftest.err >&5
24296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297   (exit $ac_status); } && {
24298          test -z "$ac_c_werror_flag" ||
24299          test ! -s conftest.err
24300        } && test -s conftest.$ac_objext; then
24301   SNMP_INCLUDE="-I$try";ucdsnmp=yes
24302 else
24303   echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24305
24306         ucdsnmp=
24307 fi
24308
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24310     if test "x$ucdsnmp" != "x"; then
24311       break;
24312     fi
24313   done
24314   CFLAGS="$old_CFLAGS"
24315 fi
24316
24317 if test "x$ucdsnmp" = "x"; then
24318   old_CFLAGS="$CFLAGS"
24319   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24320     CFLAGS="$old_CFLAGS -I$try"
24321 cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h.  */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h.  */
24327
24328 #ifdef HAVE_SYS_TYPES_H
24329 #include <sys/types.h>
24330 #endif
24331 #ifdef HAVE_STDINT_H
24332 #include <stdint.h>
24333 #endif
24334 #ifdef HAVE_STDIO_H
24335 #include <stdio.h>
24336 #endif
24337 #ifdef HAVE_NETDB_H
24338 #include <netdb.h>
24339 #endif
24340 #ifdef HAVE_UNISTD_H
24341 #include <unistd.h>
24342 #endif
24343 #include <asn1.h>
24344 #include <snmp.h>
24345 #include <snmp_impl.h>
24346 int
24347 main ()
24348 {
24349  int a = 1;
24350   ;
24351   return 0;
24352 }
24353 _ACEOF
24354 rm -f conftest.$ac_objext
24355 if { (ac_try="$ac_compile"
24356 case "(($ac_try" in
24357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358   *) ac_try_echo=$ac_try;;
24359 esac
24360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24361   (eval "$ac_compile") 2>conftest.er1
24362   ac_status=$?
24363   grep -v '^ *+' conftest.er1 >conftest.err
24364   rm -f conftest.er1
24365   cat conftest.err >&5
24366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367   (exit $ac_status); } && {
24368          test -z "$ac_c_werror_flag" ||
24369          test ! -s conftest.err
24370        } && test -s conftest.$ac_objext; then
24371   SNMP_INCLUDE="";ucdsnmp=no
24372 else
24373   echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24375
24376         ucdsnmp=
24377 fi
24378
24379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24380     if test "x$ucdsnmp" != "x"; then
24381       break;
24382     fi
24383   done
24384   CFLAGS="$old_CFLAGS"
24385 fi
24386
24387 if test "x$ucdsnmp" = "x"; then
24388   old_CFLAGS="$CFLAGS"
24389   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24390     CFLAGS="$old_CFLAGS -I$try"
24391     cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h.  */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h.  */
24397
24398 #ifdef HAVE_SYS_TYPES_H
24399 #include <sys/types.h>
24400 #endif
24401 #ifdef HAVE_STDINT_H
24402 #include <stdint.h>
24403 #endif
24404 #ifdef HAVE_STDIO_H
24405 #include <stdio.h>
24406 #endif
24407 #ifdef HAVE_NETDB_H
24408 #include <netdb.h>
24409 #endif
24410 #ifdef HAVE_UNISTD_H
24411 #include <unistd.h>
24412 #endif
24413 #include <asn1.h>
24414 #include <snmp.h>
24415 #include <snmp_impl.h>
24416 int
24417 main ()
24418 {
24419  int a = 1;
24420   ;
24421   return 0;
24422 }
24423 _ACEOF
24424 rm -f conftest.$ac_objext
24425 if { (ac_try="$ac_compile"
24426 case "(($ac_try" in
24427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428   *) ac_try_echo=$ac_try;;
24429 esac
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431   (eval "$ac_compile") 2>conftest.er1
24432   ac_status=$?
24433   grep -v '^ *+' conftest.er1 >conftest.err
24434   rm -f conftest.er1
24435   cat conftest.err >&5
24436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437   (exit $ac_status); } && {
24438          test -z "$ac_c_werror_flag" ||
24439          test ! -s conftest.err
24440        } && test -s conftest.$ac_objext; then
24441   SNMP_INCLUDE="-I$try";ucdsnmp=no
24442 else
24443   echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24445
24446         ucdsnmp=
24447 fi
24448
24449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24450     if test "x$ucdsnmp" != "x"; then
24451       break;
24452     fi
24453   done
24454   CFLAGS="$old_CFLAGS"
24455 fi
24456
24457 if test "x$ucdsnmp" = "x"; then
24458   { echo "$as_me:$LINENO: result: no" >&5
24459 echo "${ECHO_T}no" >&6; }
24460 else
24461   if test "x$ucdsnmp" = "xyes"; then
24462     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24463 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24464
24465 cat >>confdefs.h <<\_ACEOF
24466 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24467 _ACEOF
24468
24469   else
24470     { echo "$as_me:$LINENO: result: yes" >&5
24471 echo "${ECHO_T}yes" >&6; }
24472
24473 cat >>confdefs.h <<\_ACEOF
24474 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24475 _ACEOF
24476
24477   fi
24478   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24479 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24480
24481   old_LIBS="$LIBS"
24482   LIBS="$old_LIBS -lsnmp"
24483   cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489 extern char snmp_build_var_op();
24490 int
24491 main ()
24492 {
24493  snmp_build_var_op()
24494   ;
24495   return 0;
24496 }
24497 _ACEOF
24498 rm -f conftest.$ac_objext conftest$ac_exeext
24499 if { (ac_try="$ac_link"
24500 case "(($ac_try" in
24501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502   *) ac_try_echo=$ac_try;;
24503 esac
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505   (eval "$ac_link") 2>conftest.er1
24506   ac_status=$?
24507   grep -v '^ *+' conftest.er1 >conftest.err
24508   rm -f conftest.er1
24509   cat conftest.err >&5
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); } && {
24512          test -z "$ac_c_werror_flag" ||
24513          test ! -s conftest.err
24514        } && test -s conftest$ac_exeext &&
24515        $as_test_x conftest$ac_exeext; then
24516   SNMP_LIBS="-lsnmp"
24517 else
24518   echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24520
24521         SNMP_LIBS=
24522 fi
24523
24524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24525       conftest$ac_exeext conftest.$ac_ext
24526
24527   if test "x$SNMP_LIBS" = "x"; then
24528     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24529       LIBS="$old_LIBS -L$try -lsnmp"
24530       cat >conftest.$ac_ext <<_ACEOF
24531 /* confdefs.h.  */
24532 _ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h.  */
24536 extern char snmp_build_var_op();
24537 int
24538 main ()
24539 {
24540  snmp_build_var_op()
24541   ;
24542   return 0;
24543 }
24544 _ACEOF
24545 rm -f conftest.$ac_objext conftest$ac_exeext
24546 if { (ac_try="$ac_link"
24547 case "(($ac_try" in
24548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549   *) ac_try_echo=$ac_try;;
24550 esac
24551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24552   (eval "$ac_link") 2>conftest.er1
24553   ac_status=$?
24554   grep -v '^ *+' conftest.er1 >conftest.err
24555   rm -f conftest.er1
24556   cat conftest.err >&5
24557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558   (exit $ac_status); } && {
24559          test -z "$ac_c_werror_flag" ||
24560          test ! -s conftest.err
24561        } && test -s conftest$ac_exeext &&
24562        $as_test_x conftest$ac_exeext; then
24563   SNMP_LIBS="-L$try -lsnmp"
24564 else
24565   echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24567
24568         SNMP_LIBS=
24569 fi
24570
24571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24572       conftest$ac_exeext conftest.$ac_ext
24573       if test "x$SNMP_LIBS" != "x"; then
24574         break;
24575       fi
24576       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24577       cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h.  */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h.  */
24583 extern char snmp_build_var_op();
24584 int
24585 main ()
24586 {
24587  snmp_build_var_op()
24588   ;
24589   return 0;
24590 }
24591 _ACEOF
24592 rm -f conftest.$ac_objext conftest$ac_exeext
24593 if { (ac_try="$ac_link"
24594 case "(($ac_try" in
24595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596   *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599   (eval "$ac_link") 2>conftest.er1
24600   ac_status=$?
24601   grep -v '^ *+' conftest.er1 >conftest.err
24602   rm -f conftest.er1
24603   cat conftest.err >&5
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); } && {
24606          test -z "$ac_c_werror_flag" ||
24607          test ! -s conftest.err
24608        } && test -s conftest$ac_exeext &&
24609        $as_test_x conftest$ac_exeext; then
24610   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24611 else
24612   echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24614
24615         SNMP_LIBS=
24616 fi
24617
24618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24619       conftest$ac_exeext conftest.$ac_ext
24620       if test "x$SNMP_LIBS" != "x"; then
24621         break;
24622       fi
24623       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24624       cat >conftest.$ac_ext <<_ACEOF
24625 /* confdefs.h.  */
24626 _ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h.  */
24630 extern char snmp_build_var_op();
24631 int
24632 main ()
24633 {
24634  snmp_build_var_op()
24635   ;
24636   return 0;
24637 }
24638 _ACEOF
24639 rm -f conftest.$ac_objext conftest$ac_exeext
24640 if { (ac_try="$ac_link"
24641 case "(($ac_try" in
24642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643   *) ac_try_echo=$ac_try;;
24644 esac
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646   (eval "$ac_link") 2>conftest.er1
24647   ac_status=$?
24648   grep -v '^ *+' conftest.er1 >conftest.err
24649   rm -f conftest.er1
24650   cat conftest.err >&5
24651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652   (exit $ac_status); } && {
24653          test -z "$ac_c_werror_flag" ||
24654          test ! -s conftest.err
24655        } && test -s conftest$ac_exeext &&
24656        $as_test_x conftest$ac_exeext; then
24657   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24658 else
24659   echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24661
24662         SNMP_LIBS=
24663 fi
24664
24665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24666       conftest$ac_exeext conftest.$ac_ext
24667       if test "x$SNMP_LIBS" != "x"; then
24668         break;
24669       fi
24670     done
24671   fi
24672   LIBS="$old_LIBS"
24673
24674           CFLAGS="$old_CFLAGS"
24675   if test "x$SNMP_LIBS" = "x"; then
24676     { echo "$as_me:$LINENO: result: no" >&5
24677 echo "${ECHO_T}no" >&6; }
24678     SNMP_INCLUDE=
24679   else
24680     { echo "$as_me:$LINENO: result: yes" >&5
24681 echo "${ECHO_T}yes" >&6; }
24682
24683 cat >>confdefs.h <<\_ACEOF
24684 #define WITH_SNMP
24685 _ACEOF
24686
24687
24688 cat >>confdefs.h <<\_ACEOF
24689 #define HAVE_LIBSNMP
24690 _ACEOF
24691
24692   fi
24693 fi
24694
24695 fi
24696
24697
24698 cat >>confdefs.h <<\_ACEOF
24699 #define GNUSTYLE 1
24700 _ACEOF
24701
24702
24703 cat >>confdefs.h <<\_ACEOF
24704 #define SYSVSTYLE 2
24705 _ACEOF
24706
24707
24708 cat >>confdefs.h <<\_ACEOF
24709 #define BSDSTYLE 3
24710 _ACEOF
24711
24712 gethostbyaddrrstyle=""
24713 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24714 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24715 case "$host" in
24716 *-freebsd*)
24717         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24718 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24719 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728
24729 #ifdef HAVE_NETDB_H
24730 #include <netdb.h>
24731 #endif
24732
24733
24734 int
24735 main ()
24736 {
24737 #ifndef gethostbyaddr_r
24738   (void) gethostbyaddr_r;
24739 #endif
24740
24741   ;
24742   return 0;
24743 }
24744 _ACEOF
24745 rm -f conftest.$ac_objext
24746 if { (ac_try="$ac_compile"
24747 case "(($ac_try" in
24748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749   *) ac_try_echo=$ac_try;;
24750 esac
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752   (eval "$ac_compile") 2>conftest.er1
24753   ac_status=$?
24754   grep -v '^ *+' conftest.er1 >conftest.err
24755   rm -f conftest.er1
24756   cat conftest.err >&5
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); } && {
24759          test -z "$ac_c_werror_flag" ||
24760          test ! -s conftest.err
24761        } && test -s conftest.$ac_objext; then
24762   ac_cv_have_decl_gethostbyaddr_r=yes
24763 else
24764   echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24766
24767         ac_cv_have_decl_gethostbyaddr_r=no
24768 fi
24769
24770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24771 fi
24772 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24773 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24774 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24775
24776 cat >>confdefs.h <<_ACEOF
24777 #define HAVE_DECL_GETHOSTBYADDR_R 1
24778 _ACEOF
24779
24780
24781 else
24782   cat >>confdefs.h <<_ACEOF
24783 #define HAVE_DECL_GETHOSTBYADDR_R 0
24784 _ACEOF
24785
24786
24787
24788 cat >>confdefs.h <<\_ACEOF
24789 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24790 _ACEOF
24791
24792                 gethostbyaddrrstyle=BSD
24793                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24794 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24795
24796 fi
24797
24798
24799         ;;
24800 esac
24801 if test "x$gethostbyaddrrstyle" = "x"; then
24802         cat >conftest.$ac_ext <<_ACEOF
24803 /* confdefs.h.  */
24804 _ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h.  */
24808
24809 #include <stdio.h>
24810 #include <netdb.h>
24811
24812 int
24813 main ()
24814 {
24815  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24816   ;
24817   return 0;
24818 }
24819 _ACEOF
24820 rm -f conftest.$ac_objext conftest$ac_exeext
24821 if { (ac_try="$ac_link"
24822 case "(($ac_try" in
24823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824   *) ac_try_echo=$ac_try;;
24825 esac
24826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24827   (eval "$ac_link") 2>conftest.er1
24828   ac_status=$?
24829   grep -v '^ *+' conftest.er1 >conftest.err
24830   rm -f conftest.er1
24831   cat conftest.err >&5
24832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833   (exit $ac_status); } && {
24834          test -z "$ac_c_werror_flag" ||
24835          test ! -s conftest.err
24836        } && test -s conftest$ac_exeext &&
24837        $as_test_x conftest$ac_exeext; then
24838
24839
24840 cat >>confdefs.h <<\_ACEOF
24841 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24842 _ACEOF
24843
24844         gethostbyaddrrstyle=GNU
24845
24846 else
24847   echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24849
24850
24851 fi
24852
24853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24854       conftest$ac_exeext conftest.$ac_ext
24855 fi
24856 if test "x$gethostbyaddrrstyle" = "x"; then
24857         cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h.  */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h.  */
24863
24864 #include <stdio.h>
24865 #include <netdb.h>
24866
24867 int
24868 main ()
24869 {
24870  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24871   ;
24872   return 0;
24873 }
24874 _ACEOF
24875 rm -f conftest.$ac_objext conftest$ac_exeext
24876 if { (ac_try="$ac_link"
24877 case "(($ac_try" in
24878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24879   *) ac_try_echo=$ac_try;;
24880 esac
24881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24882   (eval "$ac_link") 2>conftest.er1
24883   ac_status=$?
24884   grep -v '^ *+' conftest.er1 >conftest.err
24885   rm -f conftest.er1
24886   cat conftest.err >&5
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); } && {
24889          test -z "$ac_c_werror_flag" ||
24890          test ! -s conftest.err
24891        } && test -s conftest$ac_exeext &&
24892        $as_test_x conftest$ac_exeext; then
24893
24894
24895 cat >>confdefs.h <<\_ACEOF
24896 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24897 _ACEOF
24898
24899                 gethostbyaddrrstyle=SYSV
24900
24901 else
24902   echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24904
24905
24906 fi
24907
24908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24909       conftest$ac_exeext conftest.$ac_ext
24910 fi
24911 if test "x$gethostbyaddrrstyle" = "x"; then
24912         cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h.  */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h.  */
24918
24919 #include <stdio.h>
24920 #include <netdb.h>
24921
24922 int
24923 main ()
24924 {
24925  gethostbyaddr(NULL, 0, 0)
24926   ;
24927   return 0;
24928 }
24929 _ACEOF
24930 rm -f conftest.$ac_objext conftest$ac_exeext
24931 if { (ac_try="$ac_link"
24932 case "(($ac_try" in
24933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24934   *) ac_try_echo=$ac_try;;
24935 esac
24936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24937   (eval "$ac_link") 2>conftest.er1
24938   ac_status=$?
24939   grep -v '^ *+' conftest.er1 >conftest.err
24940   rm -f conftest.er1
24941   cat conftest.err >&5
24942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943   (exit $ac_status); } && {
24944          test -z "$ac_c_werror_flag" ||
24945          test ! -s conftest.err
24946        } && test -s conftest$ac_exeext &&
24947        $as_test_x conftest$ac_exeext; then
24948
24949
24950 cat >>confdefs.h <<\_ACEOF
24951 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24952 _ACEOF
24953
24954                 gethostbyaddrrstyle=BSD
24955
24956 else
24957   echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24959
24960
24961 fi
24962
24963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24964       conftest$ac_exeext conftest.$ac_ext
24965 fi
24966
24967 if test "x$gethostbyaddrrstyle" = "x"; then
24968         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24969 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24970 else
24971         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24972 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24973 fi
24974
24975 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24976         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24977 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24978 fi
24979
24980 gethostbynamerstyle=""
24981 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24982 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24983 cat >conftest.$ac_ext <<_ACEOF
24984 /* confdefs.h.  */
24985 _ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h.  */
24989
24990 #include <stdio.h>
24991 #include <netdb.h>
24992
24993 int
24994 main ()
24995 {
24996  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24997   ;
24998   return 0;
24999 }
25000 _ACEOF
25001 rm -f conftest.$ac_objext conftest$ac_exeext
25002 if { (ac_try="$ac_link"
25003 case "(($ac_try" in
25004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005   *) ac_try_echo=$ac_try;;
25006 esac
25007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25008   (eval "$ac_link") 2>conftest.er1
25009   ac_status=$?
25010   grep -v '^ *+' conftest.er1 >conftest.err
25011   rm -f conftest.er1
25012   cat conftest.err >&5
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); } && {
25015          test -z "$ac_c_werror_flag" ||
25016          test ! -s conftest.err
25017        } && test -s conftest$ac_exeext &&
25018        $as_test_x conftest$ac_exeext; then
25019
25020
25021 cat >>confdefs.h <<\_ACEOF
25022 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25023 _ACEOF
25024
25025         gethostbynamerstyle=GNU
25026
25027 else
25028   echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25030
25031
25032 fi
25033
25034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25035       conftest$ac_exeext conftest.$ac_ext
25036 if test "x$gethostbynamerstyle" = "x"; then
25037         cat >conftest.$ac_ext <<_ACEOF
25038 /* confdefs.h.  */
25039 _ACEOF
25040 cat confdefs.h >>conftest.$ac_ext
25041 cat >>conftest.$ac_ext <<_ACEOF
25042 /* end confdefs.h.  */
25043
25044 #include <stdio.h>
25045 #include <netdb.h>
25046
25047 int
25048 main ()
25049 {
25050  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25051   ;
25052   return 0;
25053 }
25054 _ACEOF
25055 rm -f conftest.$ac_objext conftest$ac_exeext
25056 if { (ac_try="$ac_link"
25057 case "(($ac_try" in
25058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059   *) ac_try_echo=$ac_try;;
25060 esac
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062   (eval "$ac_link") 2>conftest.er1
25063   ac_status=$?
25064   grep -v '^ *+' conftest.er1 >conftest.err
25065   rm -f conftest.er1
25066   cat conftest.err >&5
25067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068   (exit $ac_status); } && {
25069          test -z "$ac_c_werror_flag" ||
25070          test ! -s conftest.err
25071        } && test -s conftest$ac_exeext &&
25072        $as_test_x conftest$ac_exeext; then
25073
25074
25075 cat >>confdefs.h <<\_ACEOF
25076 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25077 _ACEOF
25078
25079                 gethostbynamerstyle=SYSV
25080
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085
25086 fi
25087
25088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25089       conftest$ac_exeext conftest.$ac_ext
25090 fi
25091 if test "x$gethostbynamerstyle" = "x"; then
25092         cat >conftest.$ac_ext <<_ACEOF
25093 /* confdefs.h.  */
25094 _ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h.  */
25098
25099 #include <stdio.h>
25100 #include <netdb.h>
25101
25102 int
25103 main ()
25104 {
25105  gethostbyname(NULL)
25106   ;
25107   return 0;
25108 }
25109 _ACEOF
25110 rm -f conftest.$ac_objext conftest$ac_exeext
25111 if { (ac_try="$ac_link"
25112 case "(($ac_try" in
25113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25114   *) ac_try_echo=$ac_try;;
25115 esac
25116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25117   (eval "$ac_link") 2>conftest.er1
25118   ac_status=$?
25119   grep -v '^ *+' conftest.er1 >conftest.err
25120   rm -f conftest.er1
25121   cat conftest.err >&5
25122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123   (exit $ac_status); } && {
25124          test -z "$ac_c_werror_flag" ||
25125          test ! -s conftest.err
25126        } && test -s conftest$ac_exeext &&
25127        $as_test_x conftest$ac_exeext; then
25128
25129
25130 cat >>confdefs.h <<\_ACEOF
25131 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25132 _ACEOF
25133
25134                 gethostbynamerstyle=BSD
25135
25136 else
25137   echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25139
25140
25141 fi
25142
25143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25144       conftest$ac_exeext conftest.$ac_ext
25145 fi
25146
25147 if test "x$gethostbynamerstyle" = "x"; then
25148         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25149 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25150 else
25151         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25152 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25153 fi
25154
25155 if test "x$gethostbynamerstyle" = "xBSD"; then
25156         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25157 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25158 fi
25159
25160
25161 cat >>confdefs.h <<\_ACEOF
25162 #define POSIXSTYLE 1
25163 _ACEOF
25164
25165
25166 cat >>confdefs.h <<\_ACEOF
25167 #define SOLARISSTYLE 2
25168 _ACEOF
25169
25170 ctimerstyle=""
25171 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25172 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25173 cat >conftest.$ac_ext <<_ACEOF
25174 /* confdefs.h.  */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h.  */
25179
25180 #include <time.h>
25181
25182 int
25183 main ()
25184 {
25185  ctime_r(NULL, NULL, 0)
25186   ;
25187   return 0;
25188 }
25189 _ACEOF
25190 rm -f conftest.$ac_objext conftest$ac_exeext
25191 if { (ac_try="$ac_link"
25192 case "(($ac_try" in
25193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194   *) ac_try_echo=$ac_try;;
25195 esac
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197   (eval "$ac_link") 2>conftest.er1
25198   ac_status=$?
25199   grep -v '^ *+' conftest.er1 >conftest.err
25200   rm -f conftest.er1
25201   cat conftest.err >&5
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); } && {
25204          test -z "$ac_c_werror_flag" ||
25205          test ! -s conftest.err
25206        } && test -s conftest$ac_exeext &&
25207        $as_test_x conftest$ac_exeext; then
25208
25209
25210 cat >>confdefs.h <<\_ACEOF
25211 #define CTIMERSTYLE SOLARISSTYLE
25212 _ACEOF
25213
25214         ctimerstyle="SOLARIS"
25215
25216 else
25217   echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25219
25220
25221 fi
25222
25223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25224       conftest$ac_exeext conftest.$ac_ext
25225 if test "x$ctimerstyle" = "x"; then
25226         cat >conftest.$ac_ext <<_ACEOF
25227 /* confdefs.h.  */
25228 _ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h.  */
25232
25233 #include <time.h>
25234
25235 int
25236 main ()
25237 {
25238  ctime_r(NULL, NULL)
25239   ;
25240   return 0;
25241 }
25242 _ACEOF
25243 rm -f conftest.$ac_objext conftest$ac_exeext
25244 if { (ac_try="$ac_link"
25245 case "(($ac_try" in
25246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25247   *) ac_try_echo=$ac_try;;
25248 esac
25249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25250   (eval "$ac_link") 2>conftest.er1
25251   ac_status=$?
25252   grep -v '^ *+' conftest.er1 >conftest.err
25253   rm -f conftest.er1
25254   cat conftest.err >&5
25255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256   (exit $ac_status); } && {
25257          test -z "$ac_c_werror_flag" ||
25258          test ! -s conftest.err
25259        } && test -s conftest$ac_exeext &&
25260        $as_test_x conftest$ac_exeext; then
25261
25262
25263 cat >>confdefs.h <<\_ACEOF
25264 #define CTIMERSTYLE POSIXSTYLE
25265 _ACEOF
25266
25267                 ctimerstyle="POSIX"
25268
25269 else
25270   echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25272
25273
25274 fi
25275
25276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25277       conftest$ac_exeext conftest.$ac_ext
25278 fi
25279
25280 if test "x$ctimerstyle" = "x"; then
25281         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25282 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25283 else
25284         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25285 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25286 fi
25287
25288 HOSTINFO=$host
25289
25290
25291
25292 top_builddir=`pwd`
25293 export top_builddir
25294 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25295 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25296
25297
25298
25299
25300
25301 mysubdirs="$LIBLTDLPATH"
25302 if test "x$EXPERIMENTAL" = "xyes"; then
25303   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25304     mysubdirs=`echo $mysubdirs $bar`
25305 else
25306         for bar in `cat "${srcdir}"/src/modules/stable`; do
25307     if test -f "${srcdir}"/src/modules/$bar/configure; then
25308       mysubdirs="$mysubdirs src/modules/$bar"
25309     fi
25310   done
25311 fi
25312
25313 if test "x$EXPERIMENTAL" = "xyes"; then
25314   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25315     MODULES="$MODULES $foo"
25316   done
25317 else
25318             for foo in `cat "${srcdir}"/src/modules/stable`; do
25319     MODULES="$MODULES $foo"
25320    done
25321 fi
25322
25323 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25324
25325
25326
25327
25328 ac_config_commands="$ac_config_commands stamp-h"
25329
25330 ac_config_commands="$ac_config_commands build-radpaths-h"
25331
25332 ac_config_commands="$ac_config_commands main-chmod"
25333
25334 ac_config_commands="$ac_config_commands scripts-chmod"
25335
25336
25337
25338
25339
25340 USE_SHARED_LIBS=$enable_shared
25341
25342 USE_STATIC_LIBS=$enable_static
25343
25344
25345
25346
25347
25348
25349
25350   unset ac_cv_env_LIBS_set
25351   unset ac_cv_env_LIBS_value
25352
25353   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/radiusd.conf"
25354
25355 cat >confcache <<\_ACEOF
25356 # This file is a shell script that caches the results of configure
25357 # tests run on this system so they can be shared between configure
25358 # scripts and configure runs, see configure's option --config-cache.
25359 # It is not useful on other systems.  If it contains results you don't
25360 # want to keep, you may remove or edit it.
25361 #
25362 # config.status only pays attention to the cache file if you give it
25363 # the --recheck option to rerun configure.
25364 #
25365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25367 # following values.
25368
25369 _ACEOF
25370
25371 # The following way of writing the cache mishandles newlines in values,
25372 # but we know of no workaround that is simple, portable, and efficient.
25373 # So, we kill variables containing newlines.
25374 # Ultrix sh set writes to stderr and can't be redirected directly,
25375 # and sets the high bit in the cache file unless we assign to the vars.
25376 (
25377   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25378     eval ac_val=\$$ac_var
25379     case $ac_val in #(
25380     *${as_nl}*)
25381       case $ac_var in #(
25382       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25383 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25384       esac
25385       case $ac_var in #(
25386       _ | IFS | as_nl) ;; #(
25387       *) $as_unset $ac_var ;;
25388       esac ;;
25389     esac
25390   done
25391
25392   (set) 2>&1 |
25393     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25394     *${as_nl}ac_space=\ *)
25395       # `set' does not quote correctly, so add quotes (double-quote
25396       # substitution turns \\\\ into \\, and sed turns \\ into \).
25397       sed -n \
25398         "s/'/'\\\\''/g;
25399           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25400       ;; #(
25401     *)
25402       # `set' quotes correctly as required by POSIX, so do not add quotes.
25403       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25404       ;;
25405     esac |
25406     sort
25407 ) |
25408   sed '
25409      /^ac_cv_env_/b end
25410      t clear
25411      :clear
25412      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25413      t end
25414      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25415      :end' >>confcache
25416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25417   if test -w "$cache_file"; then
25418     test "x$cache_file" != "x/dev/null" &&
25419       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25420 echo "$as_me: updating cache $cache_file" >&6;}
25421     cat confcache >$cache_file
25422   else
25423     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25424 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25425   fi
25426 fi
25427 rm -f confcache
25428
25429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25430 # Let make expand exec_prefix.
25431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25432
25433 DEFS=-DHAVE_CONFIG_H
25434
25435 ac_libobjs=
25436 ac_ltlibobjs=
25437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25438   # 1. Remove the extension, and $U if already installed.
25439   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25440   ac_i=`echo "$ac_i" | sed "$ac_script"`
25441   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25442   #    will be set to the directory where LIBOBJS objects are built.
25443   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25444   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25445 done
25446 LIBOBJS=$ac_libobjs
25447
25448 LTLIBOBJS=$ac_ltlibobjs
25449
25450
25451
25452 : ${CONFIG_STATUS=./config.status}
25453 ac_clean_files_save=$ac_clean_files
25454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25455 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25456 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25457 cat >$CONFIG_STATUS <<_ACEOF
25458 #! $SHELL
25459 # Generated by $as_me.
25460 # Run this file to recreate the current configuration.
25461 # Compiler output produced by configure, useful for debugging
25462 # configure, is in config.log if it exists.
25463
25464 debug=false
25465 ac_cs_recheck=false
25466 ac_cs_silent=false
25467 SHELL=\${CONFIG_SHELL-$SHELL}
25468 _ACEOF
25469
25470 cat >>$CONFIG_STATUS <<\_ACEOF
25471 ## --------------------- ##
25472 ## M4sh Initialization.  ##
25473 ## --------------------- ##
25474
25475 # Be more Bourne compatible
25476 DUALCASE=1; export DUALCASE # for MKS sh
25477 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25478   emulate sh
25479   NULLCMD=:
25480   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25481   # is contrary to our usage.  Disable this feature.
25482   alias -g '${1+"$@"}'='"$@"'
25483   setopt NO_GLOB_SUBST
25484 else
25485   case `(set -o) 2>/dev/null` in
25486   *posix*) set -o posix ;;
25487 esac
25488
25489 fi
25490
25491
25492
25493
25494 # PATH needs CR
25495 # Avoid depending upon Character Ranges.
25496 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25497 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25498 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25499 as_cr_digits='0123456789'
25500 as_cr_alnum=$as_cr_Letters$as_cr_digits
25501
25502 # The user is always right.
25503 if test "${PATH_SEPARATOR+set}" != set; then
25504   echo "#! /bin/sh" >conf$$.sh
25505   echo  "exit 0"   >>conf$$.sh
25506   chmod +x conf$$.sh
25507   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25508     PATH_SEPARATOR=';'
25509   else
25510     PATH_SEPARATOR=:
25511   fi
25512   rm -f conf$$.sh
25513 fi
25514
25515 # Support unset when possible.
25516 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25517   as_unset=unset
25518 else
25519   as_unset=false
25520 fi
25521
25522
25523 # IFS
25524 # We need space, tab and new line, in precisely that order.  Quoting is
25525 # there to prevent editors from complaining about space-tab.
25526 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25527 # splitting by setting IFS to empty value.)
25528 as_nl='
25529 '
25530 IFS=" ""        $as_nl"
25531
25532 # Find who we are.  Look in the path if we contain no directory separator.
25533 case $0 in
25534   *[\\/]* ) as_myself=$0 ;;
25535   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25536 for as_dir in $PATH
25537 do
25538   IFS=$as_save_IFS
25539   test -z "$as_dir" && as_dir=.
25540   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25541 done
25542 IFS=$as_save_IFS
25543
25544      ;;
25545 esac
25546 # We did not find ourselves, most probably we were run as `sh COMMAND'
25547 # in which case we are not to be found in the path.
25548 if test "x$as_myself" = x; then
25549   as_myself=$0
25550 fi
25551 if test ! -f "$as_myself"; then
25552   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25553   { (exit 1); exit 1; }
25554 fi
25555
25556 # Work around bugs in pre-3.0 UWIN ksh.
25557 for as_var in ENV MAIL MAILPATH
25558 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25559 done
25560 PS1='$ '
25561 PS2='> '
25562 PS4='+ '
25563
25564 # NLS nuisances.
25565 for as_var in \
25566   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25567   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25568   LC_TELEPHONE LC_TIME
25569 do
25570   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25571     eval $as_var=C; export $as_var
25572   else
25573     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25574   fi
25575 done
25576
25577 # Required to use basename.
25578 if expr a : '\(a\)' >/dev/null 2>&1 &&
25579    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25580   as_expr=expr
25581 else
25582   as_expr=false
25583 fi
25584
25585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25586   as_basename=basename
25587 else
25588   as_basename=false
25589 fi
25590
25591
25592 # Name of the executable.
25593 as_me=`$as_basename -- "$0" ||
25594 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25595          X"$0" : 'X\(//\)$' \| \
25596          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25597 echo X/"$0" |
25598     sed '/^.*\/\([^/][^/]*\)\/*$/{
25599             s//\1/
25600             q
25601           }
25602           /^X\/\(\/\/\)$/{
25603             s//\1/
25604             q
25605           }
25606           /^X\/\(\/\).*/{
25607             s//\1/
25608             q
25609           }
25610           s/.*/./; q'`
25611
25612 # CDPATH.
25613 $as_unset CDPATH
25614
25615
25616
25617   as_lineno_1=$LINENO
25618   as_lineno_2=$LINENO
25619   test "x$as_lineno_1" != "x$as_lineno_2" &&
25620   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25621
25622   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25623   # uniformly replaced by the line number.  The first 'sed' inserts a
25624   # line-number line after each line using $LINENO; the second 'sed'
25625   # does the real work.  The second script uses 'N' to pair each
25626   # line-number line with the line containing $LINENO, and appends
25627   # trailing '-' during substitution so that $LINENO is not a special
25628   # case at line end.
25629   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25630   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25631   # E. McMahon (1931-1989) for sed's syntax.  :-)
25632   sed -n '
25633     p
25634     /[$]LINENO/=
25635   ' <$as_myself |
25636     sed '
25637       s/[$]LINENO.*/&-/
25638       t lineno
25639       b
25640       :lineno
25641       N
25642       :loop
25643       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25644       t loop
25645       s/-\n.*//
25646     ' >$as_me.lineno &&
25647   chmod +x "$as_me.lineno" ||
25648     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25649    { (exit 1); exit 1; }; }
25650
25651   # Don't try to exec as it changes $[0], causing all sort of problems
25652   # (the dirname of $[0] is not the place where we might find the
25653   # original and so on.  Autoconf is especially sensitive to this).
25654   . "./$as_me.lineno"
25655   # Exit status is that of the last command.
25656   exit
25657 }
25658
25659
25660 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25661   as_dirname=dirname
25662 else
25663   as_dirname=false
25664 fi
25665
25666 ECHO_C= ECHO_N= ECHO_T=
25667 case `echo -n x` in
25668 -n*)
25669   case `echo 'x\c'` in
25670   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25671   *)   ECHO_C='\c';;
25672   esac;;
25673 *)
25674   ECHO_N='-n';;
25675 esac
25676
25677 if expr a : '\(a\)' >/dev/null 2>&1 &&
25678    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25679   as_expr=expr
25680 else
25681   as_expr=false
25682 fi
25683
25684 rm -f conf$$ conf$$.exe conf$$.file
25685 if test -d conf$$.dir; then
25686   rm -f conf$$.dir/conf$$.file
25687 else
25688   rm -f conf$$.dir
25689   mkdir conf$$.dir
25690 fi
25691 echo >conf$$.file
25692 if ln -s conf$$.file conf$$ 2>/dev/null; then
25693   as_ln_s='ln -s'
25694   # ... but there are two gotchas:
25695   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25696   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25697   # In both cases, we have to default to `cp -p'.
25698   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25699     as_ln_s='cp -p'
25700 elif ln conf$$.file conf$$ 2>/dev/null; then
25701   as_ln_s=ln
25702 else
25703   as_ln_s='cp -p'
25704 fi
25705 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25706 rmdir conf$$.dir 2>/dev/null
25707
25708 if mkdir -p . 2>/dev/null; then
25709   as_mkdir_p=:
25710 else
25711   test -d ./-p && rmdir ./-p
25712   as_mkdir_p=false
25713 fi
25714
25715 if test -x / >/dev/null 2>&1; then
25716   as_test_x='test -x'
25717 else
25718   if ls -dL / >/dev/null 2>&1; then
25719     as_ls_L_option=L
25720   else
25721     as_ls_L_option=
25722   fi
25723   as_test_x='
25724     eval sh -c '\''
25725       if test -d "$1"; then
25726         test -d "$1/.";
25727       else
25728         case $1 in
25729         -*)set "./$1";;
25730         esac;
25731         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25732         ???[sx]*):;;*)false;;esac;fi
25733     '\'' sh
25734   '
25735 fi
25736 as_executable_p=$as_test_x
25737
25738 # Sed expression to map a string onto a valid CPP name.
25739 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25740
25741 # Sed expression to map a string onto a valid variable name.
25742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25743
25744
25745 exec 6>&1
25746
25747 # Save the log message, to keep $[0] and so on meaningful, and to
25748 # report actual input values of CONFIG_FILES etc. instead of their
25749 # values after options handling.
25750 ac_log="
25751 This file was extended by $as_me, which was
25752 generated by GNU Autoconf 2.61.  Invocation command line was
25753
25754   CONFIG_FILES    = $CONFIG_FILES
25755   CONFIG_HEADERS  = $CONFIG_HEADERS
25756   CONFIG_LINKS    = $CONFIG_LINKS
25757   CONFIG_COMMANDS = $CONFIG_COMMANDS
25758   $ $0 $@
25759
25760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25761 "
25762
25763 _ACEOF
25764
25765 cat >>$CONFIG_STATUS <<_ACEOF
25766 # Files that config.status was made for.
25767 config_files="$ac_config_files"
25768 config_headers="$ac_config_headers"
25769 config_commands="$ac_config_commands"
25770
25771 _ACEOF
25772
25773 cat >>$CONFIG_STATUS <<\_ACEOF
25774 ac_cs_usage="\
25775 \`$as_me' instantiates files from templates according to the
25776 current configuration.
25777
25778 Usage: $0 [OPTIONS] [FILE]...
25779
25780   -h, --help       print this help, then exit
25781   -V, --version    print version number and configuration settings, then exit
25782   -q, --quiet      do not print progress messages
25783   -d, --debug      don't remove temporary files
25784       --recheck    update $as_me by reconfiguring in the same conditions
25785   --file=FILE[:TEMPLATE]
25786                    instantiate the configuration file FILE
25787   --header=FILE[:TEMPLATE]
25788                    instantiate the configuration header FILE
25789
25790 Configuration files:
25791 $config_files
25792
25793 Configuration headers:
25794 $config_headers
25795
25796 Configuration commands:
25797 $config_commands
25798
25799 Report bugs to <bug-autoconf@gnu.org>."
25800
25801 _ACEOF
25802 cat >>$CONFIG_STATUS <<_ACEOF
25803 ac_cs_version="\\
25804 config.status
25805 configured by $0, generated by GNU Autoconf 2.61,
25806   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25807
25808 Copyright (C) 2006 Free Software Foundation, Inc.
25809 This config.status script is free software; the Free Software Foundation
25810 gives unlimited permission to copy, distribute and modify it."
25811
25812 ac_pwd='$ac_pwd'
25813 srcdir='$srcdir'
25814 _ACEOF
25815
25816 cat >>$CONFIG_STATUS <<\_ACEOF
25817 # If no file are specified by the user, then we need to provide default
25818 # value.  By we need to know if files were specified by the user.
25819 ac_need_defaults=:
25820 while test $# != 0
25821 do
25822   case $1 in
25823   --*=*)
25824     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25825     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25826     ac_shift=:
25827     ;;
25828   *)
25829     ac_option=$1
25830     ac_optarg=$2
25831     ac_shift=shift
25832     ;;
25833   esac
25834
25835   case $ac_option in
25836   # Handling of the options.
25837   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25838     ac_cs_recheck=: ;;
25839   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25840     echo "$ac_cs_version"; exit ;;
25841   --debug | --debu | --deb | --de | --d | -d )
25842     debug=: ;;
25843   --file | --fil | --fi | --f )
25844     $ac_shift
25845     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25846     ac_need_defaults=false;;
25847   --header | --heade | --head | --hea )
25848     $ac_shift
25849     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25850     ac_need_defaults=false;;
25851   --he | --h)
25852     # Conflict between --help and --header
25853     { echo "$as_me: error: ambiguous option: $1
25854 Try \`$0 --help' for more information." >&2
25855    { (exit 1); exit 1; }; };;
25856   --help | --hel | -h )
25857     echo "$ac_cs_usage"; exit ;;
25858   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25859   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25860     ac_cs_silent=: ;;
25861
25862   # This is an error.
25863   -*) { echo "$as_me: error: unrecognized option: $1
25864 Try \`$0 --help' for more information." >&2
25865    { (exit 1); exit 1; }; } ;;
25866
25867   *) ac_config_targets="$ac_config_targets $1"
25868      ac_need_defaults=false ;;
25869
25870   esac
25871   shift
25872 done
25873
25874 ac_configure_extra_args=
25875
25876 if $ac_cs_silent; then
25877   exec 6>/dev/null
25878   ac_configure_extra_args="$ac_configure_extra_args --silent"
25879 fi
25880
25881 _ACEOF
25882 cat >>$CONFIG_STATUS <<_ACEOF
25883 if \$ac_cs_recheck; then
25884   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25885   CONFIG_SHELL=$SHELL
25886   export CONFIG_SHELL
25887   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25888 fi
25889
25890 _ACEOF
25891 cat >>$CONFIG_STATUS <<\_ACEOF
25892 exec 5>>config.log
25893 {
25894   echo
25895   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25896 ## Running $as_me. ##
25897 _ASBOX
25898   echo "$ac_log"
25899 } >&5
25900
25901 _ACEOF
25902 cat >>$CONFIG_STATUS <<_ACEOF
25903 _ACEOF
25904
25905 cat >>$CONFIG_STATUS <<\_ACEOF
25906
25907 # Handling of arguments.
25908 for ac_config_target in $ac_config_targets
25909 do
25910   case $ac_config_target in
25911     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25912     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25913     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25914     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25915     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25916     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25917     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25918     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25919     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25920     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25921     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25922     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25923     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25924     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25925     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25926     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25927     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25928     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25929
25930   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25931 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25932    { (exit 1); exit 1; }; };;
25933   esac
25934 done
25935
25936
25937 # If the user did not use the arguments to specify the items to instantiate,
25938 # then the envvar interface is used.  Set only those that are not.
25939 # We use the long form for the default assignment because of an extremely
25940 # bizarre bug on SunOS 4.1.3.
25941 if $ac_need_defaults; then
25942   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25943   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25944   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25945 fi
25946
25947 # Have a temporary directory for convenience.  Make it in the build tree
25948 # simply because there is no reason against having it here, and in addition,
25949 # creating and moving files from /tmp can sometimes cause problems.
25950 # Hook for its removal unless debugging.
25951 # Note that there is a small window in which the directory will not be cleaned:
25952 # after its creation but before its name has been assigned to `$tmp'.
25953 $debug ||
25954 {
25955   tmp=
25956   trap 'exit_status=$?
25957   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25958 ' 0
25959   trap '{ (exit 1); exit 1; }' 1 2 13 15
25960 }
25961 # Create a (secure) tmp directory for tmp files.
25962
25963 {
25964   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25965   test -n "$tmp" && test -d "$tmp"
25966 }  ||
25967 {
25968   tmp=./conf$$-$RANDOM
25969   (umask 077 && mkdir "$tmp")
25970 } ||
25971 {
25972    echo "$me: cannot create a temporary directory in ." >&2
25973    { (exit 1); exit 1; }
25974 }
25975
25976 #
25977 # Set up the sed scripts for CONFIG_FILES section.
25978 #
25979
25980 # No need to generate the scripts if there are no CONFIG_FILES.
25981 # This happens for instance when ./config.status config.h
25982 if test -n "$CONFIG_FILES"; then
25983
25984 _ACEOF
25985
25986
25987
25988 ac_delim='%!_!# '
25989 for ac_last_try in false false false false false :; do
25990   cat >conf$$subs.sed <<_ACEOF
25991 SHELL!$SHELL$ac_delim
25992 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25993 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25994 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25995 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25996 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25997 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25998 exec_prefix!$exec_prefix$ac_delim
25999 prefix!$prefix$ac_delim
26000 program_transform_name!$program_transform_name$ac_delim
26001 bindir!$bindir$ac_delim
26002 sbindir!$sbindir$ac_delim
26003 libexecdir!$libexecdir$ac_delim
26004 datarootdir!$datarootdir$ac_delim
26005 datadir!$datadir$ac_delim
26006 sysconfdir!$sysconfdir$ac_delim
26007 sharedstatedir!$sharedstatedir$ac_delim
26008 localstatedir!$localstatedir$ac_delim
26009 includedir!$includedir$ac_delim
26010 oldincludedir!$oldincludedir$ac_delim
26011 docdir!$docdir$ac_delim
26012 infodir!$infodir$ac_delim
26013 htmldir!$htmldir$ac_delim
26014 dvidir!$dvidir$ac_delim
26015 pdfdir!$pdfdir$ac_delim
26016 psdir!$psdir$ac_delim
26017 libdir!$libdir$ac_delim
26018 localedir!$localedir$ac_delim
26019 mandir!$mandir$ac_delim
26020 DEFS!$DEFS$ac_delim
26021 ECHO_C!$ECHO_C$ac_delim
26022 ECHO_N!$ECHO_N$ac_delim
26023 ECHO_T!$ECHO_T$ac_delim
26024 LIBS!$LIBS$ac_delim
26025 build_alias!$build_alias$ac_delim
26026 host_alias!$host_alias$ac_delim
26027 target_alias!$target_alias$ac_delim
26028 CC!$CC$ac_delim
26029 CFLAGS!$CFLAGS$ac_delim
26030 LDFLAGS!$LDFLAGS$ac_delim
26031 CPPFLAGS!$CPPFLAGS$ac_delim
26032 ac_ct_CC!$ac_ct_CC$ac_delim
26033 EXEEXT!$EXEEXT$ac_delim
26034 OBJEXT!$OBJEXT$ac_delim
26035 CXX!$CXX$ac_delim
26036 CXXFLAGS!$CXXFLAGS$ac_delim
26037 ac_ct_CXX!$ac_ct_CXX$ac_delim
26038 CPP!$CPP$ac_delim
26039 GREP!$GREP$ac_delim
26040 EGREP!$EGREP$ac_delim
26041 RANLIB!$RANLIB$ac_delim
26042 GMAKE!$GMAKE$ac_delim
26043 MAKE!$MAKE$ac_delim
26044 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26045 LIBTOOL!$LIBTOOL$ac_delim
26046 build!$build$ac_delim
26047 build_cpu!$build_cpu$ac_delim
26048 build_vendor!$build_vendor$ac_delim
26049 build_os!$build_os$ac_delim
26050 host!$host$ac_delim
26051 host_cpu!$host_cpu$ac_delim
26052 host_vendor!$host_vendor$ac_delim
26053 host_os!$host_os$ac_delim
26054 LN_S!$LN_S$ac_delim
26055 ECHO!$ECHO$ac_delim
26056 AR!$AR$ac_delim
26057 STRIP!$STRIP$ac_delim
26058 CXXCPP!$CXXCPP$ac_delim
26059 F77!$F77$ac_delim
26060 FFLAGS!$FFLAGS$ac_delim
26061 ac_ct_F77!$ac_ct_F77$ac_delim
26062 logdir!$logdir$ac_delim
26063 radacctdir!$radacctdir$ac_delim
26064 raddbdir!$raddbdir$ac_delim
26065 PERL!$PERL$ac_delim
26066 SNMPGET!$SNMPGET$ac_delim
26067 SNMPWALK!$SNMPWALK$ac_delim
26068 RUSERS!$RUSERS$ac_delim
26069 ACLOCAL!$ACLOCAL$ac_delim
26070 AUTOCONF!$AUTOCONF$ac_delim
26071 AUTOHEADER!$AUTOHEADER$ac_delim
26072 LOCATE!$LOCATE$ac_delim
26073 DIRNAME!$DIRNAME$ac_delim
26074 REGEX!$REGEX$ac_delim
26075 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26076 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26077 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26078 PCAP_LIBS!$PCAP_LIBS$ac_delim
26079 LIBPREFIX!$LIBPREFIX$ac_delim
26080 CRYPTLIB!$CRYPTLIB$ac_delim
26081 SNMP_LIBS!$SNMP_LIBS$ac_delim
26082 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26083 HOSTINFO!$HOSTINFO$ac_delim
26084 LIBLTDL!$LIBLTDL$ac_delim
26085 INCLTDL!$INCLTDL$ac_delim
26086 subdirs!$subdirs$ac_delim
26087 MODULES!$MODULES$ac_delim
26088 _ACEOF
26089
26090   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26091     break
26092   elif $ac_last_try; then
26093     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26094 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26095    { (exit 1); exit 1; }; }
26096   else
26097     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26098   fi
26099 done
26100
26101 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26102 if test -n "$ac_eof"; then
26103   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26104   ac_eof=`expr $ac_eof + 1`
26105 fi
26106
26107 cat >>$CONFIG_STATUS <<_ACEOF
26108 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26110 _ACEOF
26111 sed '
26112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26113 s/^/s,@/; s/!/@,|#_!!_#|/
26114 :n
26115 t n
26116 s/'"$ac_delim"'$/,g/; t
26117 s/$/\\/; p
26118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26119 ' >>$CONFIG_STATUS <conf$$subs.sed
26120 rm -f conf$$subs.sed
26121 cat >>$CONFIG_STATUS <<_ACEOF
26122 CEOF$ac_eof
26123 _ACEOF
26124
26125
26126 ac_delim='%!_!# '
26127 for ac_last_try in false false false false false :; do
26128   cat >conf$$subs.sed <<_ACEOF
26129 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26130 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26131 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26132 STATIC_MODULES!$STATIC_MODULES$ac_delim
26133 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26134 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26135 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26136 LIBOBJS!$LIBOBJS$ac_delim
26137 LTLIBOBJS!$LTLIBOBJS$ac_delim
26138 _ACEOF
26139
26140   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
26141     break
26142   elif $ac_last_try; then
26143     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26144 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26145    { (exit 1); exit 1; }; }
26146   else
26147     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26148   fi
26149 done
26150
26151 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26152 if test -n "$ac_eof"; then
26153   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26154   ac_eof=`expr $ac_eof + 1`
26155 fi
26156
26157 cat >>$CONFIG_STATUS <<_ACEOF
26158 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26160 _ACEOF
26161 sed '
26162 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26163 s/^/s,@/; s/!/@,|#_!!_#|/
26164 :n
26165 t n
26166 s/'"$ac_delim"'$/,g/; t
26167 s/$/\\/; p
26168 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26169 ' >>$CONFIG_STATUS <conf$$subs.sed
26170 rm -f conf$$subs.sed
26171 cat >>$CONFIG_STATUS <<_ACEOF
26172 :end
26173 s/|#_!!_#|//g
26174 CEOF$ac_eof
26175 _ACEOF
26176
26177
26178 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26179 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26180 # trailing colons and then remove the whole line if VPATH becomes empty
26181 # (actually we leave an empty line to preserve line numbers).
26182 if test "x$srcdir" = x.; then
26183   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26184 s/:*\$(srcdir):*/:/
26185 s/:*\${srcdir}:*/:/
26186 s/:*@srcdir@:*/:/
26187 s/^\([^=]*=[     ]*\):*/\1/
26188 s/:*$//
26189 s/^[^=]*=[       ]*$//
26190 }'
26191 fi
26192
26193 cat >>$CONFIG_STATUS <<\_ACEOF
26194 fi # test -n "$CONFIG_FILES"
26195
26196
26197 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26198 do
26199   case $ac_tag in
26200   :[FHLC]) ac_mode=$ac_tag; continue;;
26201   esac
26202   case $ac_mode$ac_tag in
26203   :[FHL]*:*);;
26204   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26205 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26206    { (exit 1); exit 1; }; };;
26207   :[FH]-) ac_tag=-:-;;
26208   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26209   esac
26210   ac_save_IFS=$IFS
26211   IFS=:
26212   set x $ac_tag
26213   IFS=$ac_save_IFS
26214   shift
26215   ac_file=$1
26216   shift
26217
26218   case $ac_mode in
26219   :L) ac_source=$1;;
26220   :[FH])
26221     ac_file_inputs=
26222     for ac_f
26223     do
26224       case $ac_f in
26225       -) ac_f="$tmp/stdin";;
26226       *) # Look for the file first in the build tree, then in the source tree
26227          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26228          # because $ac_f cannot contain `:'.
26229          test -f "$ac_f" ||
26230            case $ac_f in
26231            [\\/$]*) false;;
26232            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26233            esac ||
26234            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26235 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26236    { (exit 1); exit 1; }; };;
26237       esac
26238       ac_file_inputs="$ac_file_inputs $ac_f"
26239     done
26240
26241     # Let's still pretend it is `configure' which instantiates (i.e., don't
26242     # use $as_me), people would be surprised to read:
26243     #    /* config.h.  Generated by config.status.  */
26244     configure_input="Generated from "`IFS=:
26245           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26246     if test x"$ac_file" != x-; then
26247       configure_input="$ac_file.  $configure_input"
26248       { echo "$as_me:$LINENO: creating $ac_file" >&5
26249 echo "$as_me: creating $ac_file" >&6;}
26250     fi
26251
26252     case $ac_tag in
26253     *:-:* | *:-) cat >"$tmp/stdin";;
26254     esac
26255     ;;
26256   esac
26257
26258   ac_dir=`$as_dirname -- "$ac_file" ||
26259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26260          X"$ac_file" : 'X\(//\)[^/]' \| \
26261          X"$ac_file" : 'X\(//\)$' \| \
26262          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26263 echo X"$ac_file" |
26264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26265             s//\1/
26266             q
26267           }
26268           /^X\(\/\/\)[^/].*/{
26269             s//\1/
26270             q
26271           }
26272           /^X\(\/\/\)$/{
26273             s//\1/
26274             q
26275           }
26276           /^X\(\/\).*/{
26277             s//\1/
26278             q
26279           }
26280           s/.*/./; q'`
26281   { as_dir="$ac_dir"
26282   case $as_dir in #(
26283   -*) as_dir=./$as_dir;;
26284   esac
26285   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26286     as_dirs=
26287     while :; do
26288       case $as_dir in #(
26289       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26290       *) as_qdir=$as_dir;;
26291       esac
26292       as_dirs="'$as_qdir' $as_dirs"
26293       as_dir=`$as_dirname -- "$as_dir" ||
26294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26295          X"$as_dir" : 'X\(//\)[^/]' \| \
26296          X"$as_dir" : 'X\(//\)$' \| \
26297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26298 echo X"$as_dir" |
26299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26300             s//\1/
26301             q
26302           }
26303           /^X\(\/\/\)[^/].*/{
26304             s//\1/
26305             q
26306           }
26307           /^X\(\/\/\)$/{
26308             s//\1/
26309             q
26310           }
26311           /^X\(\/\).*/{
26312             s//\1/
26313             q
26314           }
26315           s/.*/./; q'`
26316       test -d "$as_dir" && break
26317     done
26318     test -z "$as_dirs" || eval "mkdir $as_dirs"
26319   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26320 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26321    { (exit 1); exit 1; }; }; }
26322   ac_builddir=.
26323
26324 case "$ac_dir" in
26325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26326 *)
26327   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26328   # A ".." for each directory in $ac_dir_suffix.
26329   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26330   case $ac_top_builddir_sub in
26331   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26332   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26333   esac ;;
26334 esac
26335 ac_abs_top_builddir=$ac_pwd
26336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26337 # for backward compatibility:
26338 ac_top_builddir=$ac_top_build_prefix
26339
26340 case $srcdir in
26341   .)  # We are building in place.
26342     ac_srcdir=.
26343     ac_top_srcdir=$ac_top_builddir_sub
26344     ac_abs_top_srcdir=$ac_pwd ;;
26345   [\\/]* | ?:[\\/]* )  # Absolute name.
26346     ac_srcdir=$srcdir$ac_dir_suffix;
26347     ac_top_srcdir=$srcdir
26348     ac_abs_top_srcdir=$srcdir ;;
26349   *) # Relative name.
26350     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26351     ac_top_srcdir=$ac_top_build_prefix$srcdir
26352     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26353 esac
26354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26355
26356
26357   case $ac_mode in
26358   :F)
26359   #
26360   # CONFIG_FILE
26361   #
26362
26363 _ACEOF
26364
26365 cat >>$CONFIG_STATUS <<\_ACEOF
26366 # If the template does not know about datarootdir, expand it.
26367 # FIXME: This hack should be removed a few years after 2.60.
26368 ac_datarootdir_hack=; ac_datarootdir_seen=
26369
26370 case `sed -n '/datarootdir/ {
26371   p
26372   q
26373 }
26374 /@datadir@/p
26375 /@docdir@/p
26376 /@infodir@/p
26377 /@localedir@/p
26378 /@mandir@/p
26379 ' $ac_file_inputs` in
26380 *datarootdir*) ac_datarootdir_seen=yes;;
26381 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26382   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26383 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26384 _ACEOF
26385 cat >>$CONFIG_STATUS <<_ACEOF
26386   ac_datarootdir_hack='
26387   s&@datadir@&$datadir&g
26388   s&@docdir@&$docdir&g
26389   s&@infodir@&$infodir&g
26390   s&@localedir@&$localedir&g
26391   s&@mandir@&$mandir&g
26392     s&\\\${datarootdir}&$datarootdir&g' ;;
26393 esac
26394 _ACEOF
26395
26396 # Neutralize VPATH when `$srcdir' = `.'.
26397 # Shell code in configure.ac might set extrasub.
26398 # FIXME: do we really want to maintain this feature?
26399 cat >>$CONFIG_STATUS <<_ACEOF
26400   sed "$ac_vpsub
26401 $extrasub
26402 _ACEOF
26403 cat >>$CONFIG_STATUS <<\_ACEOF
26404 :t
26405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26406 s&@configure_input@&$configure_input&;t t
26407 s&@top_builddir@&$ac_top_builddir_sub&;t t
26408 s&@srcdir@&$ac_srcdir&;t t
26409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26410 s&@top_srcdir@&$ac_top_srcdir&;t t
26411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26412 s&@builddir@&$ac_builddir&;t t
26413 s&@abs_builddir@&$ac_abs_builddir&;t t
26414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26415 $ac_datarootdir_hack
26416 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26417
26418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26419   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26420   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26421   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26422 which seems to be undefined.  Please make sure it is defined." >&5
26423 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26424 which seems to be undefined.  Please make sure it is defined." >&2;}
26425
26426   rm -f "$tmp/stdin"
26427   case $ac_file in
26428   -) cat "$tmp/out"; rm -f "$tmp/out";;
26429   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26430   esac
26431  ;;
26432   :H)
26433   #
26434   # CONFIG_HEADER
26435   #
26436 _ACEOF
26437
26438 # Transform confdefs.h into a sed script `conftest.defines', that
26439 # substitutes the proper values into config.h.in to produce config.h.
26440 rm -f conftest.defines conftest.tail
26441 # First, append a space to every undef/define line, to ease matching.
26442 echo 's/$/ /' >conftest.defines
26443 # Then, protect against being on the right side of a sed subst, or in
26444 # an unquoted here document, in config.status.  If some macros were
26445 # called several times there might be several #defines for the same
26446 # symbol, which is useless.  But do not sort them, since the last
26447 # AC_DEFINE must be honored.
26448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26449 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26450 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26451 # PARAMS is the parameter list in the macro definition--in most cases, it's
26452 # just an empty string.
26453 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26454 ac_dB='\\)[      (].*,\\1define\\2'
26455 ac_dC=' '
26456 ac_dD=' ,'
26457
26458 uniq confdefs.h |
26459   sed -n '
26460         t rset
26461         :rset
26462         s/^[     ]*#[    ]*define[       ][      ]*//
26463         t ok
26464         d
26465         :ok
26466         s/[\\&,]/\\&/g
26467         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26468         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26469   ' >>conftest.defines
26470
26471 # Remove the space that was appended to ease matching.
26472 # Then replace #undef with comments.  This is necessary, for
26473 # example, in the case of _POSIX_SOURCE, which is predefined and required
26474 # on some systems where configure will not decide to define it.
26475 # (The regexp can be short, since the line contains either #define or #undef.)
26476 echo 's/ $//
26477 s,^[     #]*u.*,/* & */,' >>conftest.defines
26478
26479 # Break up conftest.defines:
26480 ac_max_sed_lines=50
26481
26482 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26483 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26484 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26485 # et cetera.
26486 ac_in='$ac_file_inputs'
26487 ac_out='"$tmp/out1"'
26488 ac_nxt='"$tmp/out2"'
26489
26490 while :
26491 do
26492   # Write a here document:
26493     cat >>$CONFIG_STATUS <<_ACEOF
26494     # First, check the format of the line:
26495     cat >"\$tmp/defines.sed" <<\\CEOF
26496 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26497 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26498 b
26499 :def
26500 _ACEOF
26501   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26502   echo 'CEOF
26503     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26504   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26505   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26506   grep . conftest.tail >/dev/null || break
26507   rm -f conftest.defines
26508   mv conftest.tail conftest.defines
26509 done
26510 rm -f conftest.defines conftest.tail
26511
26512 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26513 cat >>$CONFIG_STATUS <<\_ACEOF
26514   if test x"$ac_file" != x-; then
26515     echo "/* $configure_input  */" >"$tmp/config.h"
26516     cat "$ac_result" >>"$tmp/config.h"
26517     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26518       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26519 echo "$as_me: $ac_file is unchanged" >&6;}
26520     else
26521       rm -f $ac_file
26522       mv "$tmp/config.h" $ac_file
26523     fi
26524   else
26525     echo "/* $configure_input  */"
26526     cat "$ac_result"
26527   fi
26528   rm -f "$tmp/out12"
26529  ;;
26530
26531   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26532 echo "$as_me: executing $ac_file commands" >&6;}
26533  ;;
26534   esac
26535
26536
26537   case $ac_file$ac_mode in
26538     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26539     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26540     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26541     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26542
26543   esac
26544 done # for ac_tag
26545
26546
26547 { (exit 0); exit 0; }
26548 _ACEOF
26549 chmod +x $CONFIG_STATUS
26550 ac_clean_files=$ac_clean_files_save
26551
26552
26553 # configure is writing to config.log, and then calls config.status.
26554 # config.status does its own redirection, appending to config.log.
26555 # Unfortunately, on DOS this fails, as config.log is still kept open
26556 # by configure, so config.status won't be able to write to it; its
26557 # output is simply discarded.  So we exec the FD to /dev/null,
26558 # effectively closing config.log, so it can be properly (re)opened and
26559 # appended to by config.status.  When coming back to configure, we
26560 # need to make the FD available again.
26561 if test "$no_create" != yes; then
26562   ac_cs_success=:
26563   ac_config_status_args=
26564   test "$silent" = yes &&
26565     ac_config_status_args="$ac_config_status_args --quiet"
26566   exec 5>/dev/null
26567   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26568   exec 5>>config.log
26569   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26570   # would make configure fail if this is the last instruction.
26571   $ac_cs_success || { (exit 1); exit 1; }
26572 fi
26573
26574 #
26575 # CONFIG_SUBDIRS section.
26576 #
26577 if test "$no_recursion" != yes; then
26578
26579   # Remove --cache-file and --srcdir arguments so they do not pile up.
26580   ac_sub_configure_args=
26581   ac_prev=
26582   eval "set x $ac_configure_args"
26583   shift
26584   for ac_arg
26585   do
26586     if test -n "$ac_prev"; then
26587       ac_prev=
26588       continue
26589     fi
26590     case $ac_arg in
26591     -cache-file | --cache-file | --cache-fil | --cache-fi \
26592     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26593       ac_prev=cache_file ;;
26594     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26595     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26596     | --c=*)
26597       ;;
26598     --config-cache | -C)
26599       ;;
26600     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26601       ac_prev=srcdir ;;
26602     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26603       ;;
26604     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26605       ac_prev=prefix ;;
26606     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26607       ;;
26608     *)
26609       case $ac_arg in
26610       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26611       esac
26612       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26613     esac
26614   done
26615
26616   # Always prepend --prefix to ensure using the same prefix
26617   # in subdir configurations.
26618   ac_arg="--prefix=$prefix"
26619   case $ac_arg in
26620   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26621   esac
26622   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26623
26624   # Pass --silent
26625   if test "$silent" = yes; then
26626     ac_sub_configure_args="--silent $ac_sub_configure_args"
26627   fi
26628
26629   ac_popdir=`pwd`
26630   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26631
26632     # Do not complain, so a configure script can configure whichever
26633     # parts of a large source tree are present.
26634     test -d "$srcdir/$ac_dir" || continue
26635
26636     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26637     echo "$as_me:$LINENO: $ac_msg" >&5
26638     echo "$ac_msg" >&6
26639     { as_dir="$ac_dir"
26640   case $as_dir in #(
26641   -*) as_dir=./$as_dir;;
26642   esac
26643   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26644     as_dirs=
26645     while :; do
26646       case $as_dir in #(
26647       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26648       *) as_qdir=$as_dir;;
26649       esac
26650       as_dirs="'$as_qdir' $as_dirs"
26651       as_dir=`$as_dirname -- "$as_dir" ||
26652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26653          X"$as_dir" : 'X\(//\)[^/]' \| \
26654          X"$as_dir" : 'X\(//\)$' \| \
26655          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26656 echo X"$as_dir" |
26657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26658             s//\1/
26659             q
26660           }
26661           /^X\(\/\/\)[^/].*/{
26662             s//\1/
26663             q
26664           }
26665           /^X\(\/\/\)$/{
26666             s//\1/
26667             q
26668           }
26669           /^X\(\/\).*/{
26670             s//\1/
26671             q
26672           }
26673           s/.*/./; q'`
26674       test -d "$as_dir" && break
26675     done
26676     test -z "$as_dirs" || eval "mkdir $as_dirs"
26677   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26678 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26679    { (exit 1); exit 1; }; }; }
26680     ac_builddir=.
26681
26682 case "$ac_dir" in
26683 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26684 *)
26685   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26686   # A ".." for each directory in $ac_dir_suffix.
26687   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26688   case $ac_top_builddir_sub in
26689   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26690   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26691   esac ;;
26692 esac
26693 ac_abs_top_builddir=$ac_pwd
26694 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26695 # for backward compatibility:
26696 ac_top_builddir=$ac_top_build_prefix
26697
26698 case $srcdir in
26699   .)  # We are building in place.
26700     ac_srcdir=.
26701     ac_top_srcdir=$ac_top_builddir_sub
26702     ac_abs_top_srcdir=$ac_pwd ;;
26703   [\\/]* | ?:[\\/]* )  # Absolute name.
26704     ac_srcdir=$srcdir$ac_dir_suffix;
26705     ac_top_srcdir=$srcdir
26706     ac_abs_top_srcdir=$srcdir ;;
26707   *) # Relative name.
26708     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26709     ac_top_srcdir=$ac_top_build_prefix$srcdir
26710     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26711 esac
26712 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26713
26714
26715     cd "$ac_dir"
26716
26717     # Check for guested configure; otherwise get Cygnus style configure.
26718     if test -f "$ac_srcdir/configure.gnu"; then
26719       ac_sub_configure=$ac_srcdir/configure.gnu
26720     elif test -f "$ac_srcdir/configure"; then
26721       ac_sub_configure=$ac_srcdir/configure
26722     elif test -f "$ac_srcdir/configure.in"; then
26723       # This should be Cygnus configure.
26724       ac_sub_configure=$ac_aux_dir/configure
26725     else
26726       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26727 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26728       ac_sub_configure=
26729     fi
26730
26731     # The recursion is here.
26732     if test -n "$ac_sub_configure"; then
26733       # Make the cache file name correct relative to the subdirectory.
26734       case $cache_file in
26735       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26736       *) # Relative name.
26737         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26738       esac
26739
26740       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26741 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26742       # The eval makes quoting arguments work.
26743       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26744            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26745         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26746 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26747    { (exit 1); exit 1; }; }
26748     fi
26749
26750     cd "$ac_popdir"
26751   done
26752 fi
26753
26754