Added --with-snmp-include-dir
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.244 .
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-static-modules=QUOTED-MODULE-LIST
1492  --with-modules=QUOTED-MODULE-LIST
1493   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1494   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1495   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1496   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1497   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1498   --with-udpfromto        Compile in UDPFROMTO support. (default=yes)
1499
1500 Some influential environment variables:
1501   CC          C compiler command
1502   CFLAGS      C compiler flags
1503   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1504               nonstandard directory <lib dir>
1505   LIBS        libraries to pass to the linker, e.g. -l<library>
1506   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507               you have headers in a nonstandard directory <include dir>
1508   CXX         C++ compiler command
1509   CXXFLAGS    C++ compiler flags
1510   CPP         C preprocessor
1511   CXXCPP      C++ preprocessor
1512   F77         Fortran 77 compiler command
1513   FFLAGS      Fortran 77 compiler flags
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523   # If there are subdirs, report their specific --help.
1524   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525     test -d "$ac_dir" || continue
1526     ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532   # A ".." for each directory in $ac_dir_suffix.
1533   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534   case $ac_top_builddir_sub in
1535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537   esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545   .)  # We are building in place.
1546     ac_srcdir=.
1547     ac_top_srcdir=$ac_top_builddir_sub
1548     ac_abs_top_srcdir=$ac_pwd ;;
1549   [\\/]* | ?:[\\/]* )  # Absolute name.
1550     ac_srcdir=$srcdir$ac_dir_suffix;
1551     ac_top_srcdir=$srcdir
1552     ac_abs_top_srcdir=$srcdir ;;
1553   *) # Relative name.
1554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555     ac_top_srcdir=$ac_top_build_prefix$srcdir
1556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560     cd "$ac_dir" || { ac_status=$?; continue; }
1561     # Check for guested configure.
1562     if test -f "$ac_srcdir/configure.gnu"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565     elif test -f "$ac_srcdir/configure"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure" --help=recursive
1568     else
1569       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570     fi || ac_status=$?
1571     cd "$ac_pwd" || { ac_status=$?; break; }
1572   done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577   cat <<\_ACEOF
1578 configure
1579 generated by GNU Autoconf 2.61
1580
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586   exit
1587 fi
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1591
1592 It was created by $as_me, which was
1593 generated by GNU Autoconf 2.61.  Invocation command line was
1594
1595   $ $0 $@
1596
1597 _ACEOF
1598 exec 5>>config.log
1599 {
1600 cat <<_ASUNAME
1601 ## --------- ##
1602 ## Platform. ##
1603 ## --------- ##
1604
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1610
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1613
1614 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1615 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1618 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1619 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1620 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1621
1622 _ASUNAME
1623
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   echo "PATH: $as_dir"
1630 done
1631 IFS=$as_save_IFS
1632
1633 } >&5
1634
1635 cat >&5 <<_ACEOF
1636
1637
1638 ## ----------- ##
1639 ## Core tests. ##
1640 ## ----------- ##
1641
1642 _ACEOF
1643
1644
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_configure_args=
1651 ac_configure_args0=
1652 ac_configure_args1=
1653 ac_must_keep_next=false
1654 for ac_pass in 1 2
1655 do
1656   for ac_arg
1657   do
1658     case $ac_arg in
1659     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661     | -silent | --silent | --silen | --sile | --sil)
1662       continue ;;
1663     *\'*)
1664       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665     esac
1666     case $ac_pass in
1667     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668     2)
1669       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670       if test $ac_must_keep_next = true; then
1671         ac_must_keep_next=false # Got value, back to normal.
1672       else
1673         case $ac_arg in
1674           *=* | --config-cache | -C | -disable-* | --disable-* \
1675           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677           | -with-* | --with-* | -without-* | --without-* | --x)
1678             case "$ac_configure_args0 " in
1679               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680             esac
1681             ;;
1682           -* ) ac_must_keep_next=true ;;
1683         esac
1684       fi
1685       ac_configure_args="$ac_configure_args '$ac_arg'"
1686       ;;
1687     esac
1688   done
1689 done
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1692
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log.  We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699   # Save into config.log some information that might help in debugging.
1700   {
1701     echo
1702
1703     cat <<\_ASBOX
1704 ## ---------------- ##
1705 ## Cache variables. ##
1706 ## ---------------- ##
1707 _ASBOX
1708     echo
1709     # The following way of writing the cache mishandles newlines in values,
1710 (
1711   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712     eval ac_val=\$$ac_var
1713     case $ac_val in #(
1714     *${as_nl}*)
1715       case $ac_var in #(
1716       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718       esac
1719       case $ac_var in #(
1720       _ | IFS | as_nl) ;; #(
1721       *) $as_unset $ac_var ;;
1722       esac ;;
1723     esac
1724   done
1725   (set) 2>&1 |
1726     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727     *${as_nl}ac_space=\ *)
1728       sed -n \
1729         "s/'\''/'\''\\\\'\'''\''/g;
1730           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731       ;; #(
1732     *)
1733       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734       ;;
1735     esac |
1736     sort
1737 )
1738     echo
1739
1740     cat <<\_ASBOX
1741 ## ----------------- ##
1742 ## Output variables. ##
1743 ## ----------------- ##
1744 _ASBOX
1745     echo
1746     for ac_var in $ac_subst_vars
1747     do
1748       eval ac_val=\$$ac_var
1749       case $ac_val in
1750       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751       esac
1752       echo "$ac_var='\''$ac_val'\''"
1753     done | sort
1754     echo
1755
1756     if test -n "$ac_subst_files"; then
1757       cat <<\_ASBOX
1758 ## ------------------- ##
1759 ## File substitutions. ##
1760 ## ------------------- ##
1761 _ASBOX
1762       echo
1763       for ac_var in $ac_subst_files
1764       do
1765         eval ac_val=\$$ac_var
1766         case $ac_val in
1767         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768         esac
1769         echo "$ac_var='\''$ac_val'\''"
1770       done | sort
1771       echo
1772     fi
1773
1774     if test -s confdefs.h; then
1775       cat <<\_ASBOX
1776 ## ----------- ##
1777 ## confdefs.h. ##
1778 ## ----------- ##
1779 _ASBOX
1780       echo
1781       cat confdefs.h
1782       echo
1783     fi
1784     test "$ac_signal" != 0 &&
1785       echo "$as_me: caught signal $ac_signal"
1786     echo "$as_me: exit $exit_status"
1787   } >&5
1788   rm -f core *.core core.conftest.* &&
1789     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790     exit $exit_status
1791 ' 0
1792 for ac_signal in 1 2 13 15; do
1793   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794 done
1795 ac_signal=0
1796
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1799
1800 # Predefined preprocessor variables.
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_NAME "$PACKAGE_NAME"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_STRING "$PACKAGE_STRING"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 _ACEOF
1825
1826
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830   set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1833 else
1834   set x "$ac_default_prefix/share/config.site" \
1835         "$ac_default_prefix/etc/config.site"
1836 fi
1837 shift
1838 for ac_site_file
1839 do
1840   if test -r "$ac_site_file"; then
1841     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843     sed 's/^/| /' "$ac_site_file" >&5
1844     . "$ac_site_file"
1845   fi
1846 done
1847
1848 if test -r "$cache_file"; then
1849   # Some versions of bash will fail to source /dev/null (special
1850   # files actually), so we avoid doing that.
1851   if test -f "$cache_file"; then
1852     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1854     case $cache_file in
1855       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856       *)                      . "./$cache_file";;
1857     esac
1858   fi
1859 else
1860   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1862   >$cache_file
1863 fi
1864
1865 # Check that the precious variables saved in the cache have kept the same
1866 # value.
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870   eval ac_new_set=\$ac_env_${ac_var}_set
1871   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872   eval ac_new_val=\$ac_env_${ac_var}_value
1873   case $ac_old_set,$ac_new_set in
1874     set,)
1875       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877       ac_cache_corrupted=: ;;
1878     ,set)
1879       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881       ac_cache_corrupted=: ;;
1882     ,);;
1883     *)
1884       if test "x$ac_old_val" != "x$ac_new_val"; then
1885         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1888 echo "$as_me:   former value:  $ac_old_val" >&2;}
1889         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1890 echo "$as_me:   current value: $ac_new_val" >&2;}
1891         ac_cache_corrupted=:
1892       fi;;
1893   esac
1894   # Pass precious variables to config.status.
1895   if test "$ac_new_set" = set; then
1896     case $ac_new_val in
1897     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898     *) ac_arg=$ac_var=$ac_new_val ;;
1899     esac
1900     case " $ac_configure_args " in
1901       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1902       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903     esac
1904   fi
1905 done
1906 if $ac_cache_corrupted; then
1907   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911    { (exit 1); exit 1; }; }
1912 fi
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1938
1939
1940 RADIUSD_MAJOR_VERSION=2
1941 RADIUSD_MINOR_VERSION=0.0-pre2
1942 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1943 PACKAGE=freeradius
1944
1945
1946 ac_ext=c
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951 if test -n "$ac_tool_prefix"; then
1952   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   if test -n "$CC"; then
1960   ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965   IFS=$as_save_IFS
1966   test -z "$as_dir" && as_dir=.
1967   for ac_exec_ext in '' $ac_executable_extensions; do
1968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1969     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971     break 2
1972   fi
1973 done
1974 done
1975 IFS=$as_save_IFS
1976
1977 fi
1978 fi
1979 CC=$ac_cv_prog_CC
1980 if test -n "$CC"; then
1981   { echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6; }
1983 else
1984   { echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6; }
1986 fi
1987
1988
1989 fi
1990 if test -z "$ac_cv_prog_CC"; then
1991   ac_ct_CC=$CC
1992   # Extract the first word of "gcc", so it can be a program name with args.
1993 set dummy gcc; ac_word=$2
1994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   if test -n "$ac_ct_CC"; then
2000   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2009     ac_cv_prog_ac_ct_CC="gcc"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015 IFS=$as_save_IFS
2016
2017 fi
2018 fi
2019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2020 if test -n "$ac_ct_CC"; then
2021   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2022 echo "${ECHO_T}$ac_ct_CC" >&6; }
2023 else
2024   { echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6; }
2026 fi
2027
2028   if test "x$ac_ct_CC" = x; then
2029     CC=""
2030   else
2031     case $cross_compiling:$ac_tool_warned in
2032 yes:)
2033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2034 whose name does not start with the host triplet.  If you think this
2035 configuration is useful to you, please write to autoconf@gnu.org." >&5
2036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet.  If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2039 ac_tool_warned=yes ;;
2040 esac
2041     CC=$ac_ct_CC
2042   fi
2043 else
2044   CC="$ac_cv_prog_CC"
2045 fi
2046
2047 if test -z "$CC"; then
2048           if test -n "$ac_tool_prefix"; then
2049     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2050 set dummy ${ac_tool_prefix}cc; ac_word=$2
2051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   if test -n "$CC"; then
2057   ac_cv_prog_CC="$CC" # Let the user override the test.
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   for ac_exec_ext in '' $ac_executable_extensions; do
2065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2066     ac_cv_prog_CC="${ac_tool_prefix}cc"
2067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068     break 2
2069   fi
2070 done
2071 done
2072 IFS=$as_save_IFS
2073
2074 fi
2075 fi
2076 CC=$ac_cv_prog_CC
2077 if test -n "$CC"; then
2078   { echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6; }
2080 else
2081   { echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6; }
2083 fi
2084
2085
2086   fi
2087 fi
2088 if test -z "$CC"; then
2089   # Extract the first word of "cc", so it can be a program name with args.
2090 set dummy cc; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$CC"; then
2097   ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099   ac_prog_rejected=no
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103   IFS=$as_save_IFS
2104   test -z "$as_dir" && as_dir=.
2105   for ac_exec_ext in '' $ac_executable_extensions; do
2106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2108        ac_prog_rejected=yes
2109        continue
2110      fi
2111     ac_cv_prog_CC="cc"
2112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113     break 2
2114   fi
2115 done
2116 done
2117 IFS=$as_save_IFS
2118
2119 if test $ac_prog_rejected = yes; then
2120   # We found a bogon in the path, so make sure we never use it.
2121   set dummy $ac_cv_prog_CC
2122   shift
2123   if test $# != 0; then
2124     # We chose a different compiler from the bogus one.
2125     # However, it has the same basename, so the bogon will be chosen
2126     # first if we set CC to just the basename; use the full file name.
2127     shift
2128     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2129   fi
2130 fi
2131 fi
2132 fi
2133 CC=$ac_cv_prog_CC
2134 if test -n "$CC"; then
2135   { echo "$as_me:$LINENO: result: $CC" >&5
2136 echo "${ECHO_T}$CC" >&6; }
2137 else
2138   { echo "$as_me:$LINENO: result: no" >&5
2139 echo "${ECHO_T}no" >&6; }
2140 fi
2141
2142
2143 fi
2144 if test -z "$CC"; then
2145   if test -n "$ac_tool_prefix"; then
2146   for ac_prog in cl.exe
2147   do
2148     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$CC"; then
2156   ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163   for ac_exec_ext in '' $ac_executable_extensions; do
2164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167     break 2
2168   fi
2169 done
2170 done
2171 IFS=$as_save_IFS
2172
2173 fi
2174 fi
2175 CC=$ac_cv_prog_CC
2176 if test -n "$CC"; then
2177   { echo "$as_me:$LINENO: result: $CC" >&5
2178 echo "${ECHO_T}$CC" >&6; }
2179 else
2180   { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2182 fi
2183
2184
2185     test -n "$CC" && break
2186   done
2187 fi
2188 if test -z "$CC"; then
2189   ac_ct_CC=$CC
2190   for ac_prog in cl.exe
2191 do
2192   # Extract the first word of "$ac_prog", so it can be a program name with args.
2193 set dummy $ac_prog; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$ac_ct_CC"; then
2200   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207   for ac_exec_ext in '' $ac_executable_extensions; do
2208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209     ac_cv_prog_ac_ct_CC="$ac_prog"
2210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211     break 2
2212   fi
2213 done
2214 done
2215 IFS=$as_save_IFS
2216
2217 fi
2218 fi
2219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2220 if test -n "$ac_ct_CC"; then
2221   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2222 echo "${ECHO_T}$ac_ct_CC" >&6; }
2223 else
2224   { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2226 fi
2227
2228
2229   test -n "$ac_ct_CC" && break
2230 done
2231
2232   if test "x$ac_ct_CC" = x; then
2233     CC=""
2234   else
2235     case $cross_compiling:$ac_tool_warned in
2236 yes:)
2237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2238 whose name does not start with the host triplet.  If you think this
2239 configuration is useful to you, please write to autoconf@gnu.org." >&5
2240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet.  If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2243 ac_tool_warned=yes ;;
2244 esac
2245     CC=$ac_ct_CC
2246   fi
2247 fi
2248
2249 fi
2250
2251
2252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&2;}
2256    { (exit 1); exit 1; }; }
2257
2258 # Provide some information about the compiler.
2259 echo "$as_me:$LINENO: checking for C compiler version" >&5
2260 ac_compiler=`set X $ac_compile; echo $2`
2261 { (ac_try="$ac_compiler --version >&5"
2262 case "(($ac_try" in
2263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264   *) ac_try_echo=$ac_try;;
2265 esac
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267   (eval "$ac_compiler --version >&5") 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }
2271 { (ac_try="$ac_compiler -v >&5"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277   (eval "$ac_compiler -v >&5") 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }
2281 { (ac_try="$ac_compiler -V >&5"
2282 case "(($ac_try" in
2283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284   *) ac_try_echo=$ac_try;;
2285 esac
2286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287   (eval "$ac_compiler -V >&5") 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }
2291
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298
2299 int
2300 main ()
2301 {
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 ac_clean_files_save=$ac_clean_files
2308 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2309 # Try to create an executable without -o first, disregard a.out.
2310 # It will help us diagnose broken compilers, and finding out an intuition
2311 # of exeext.
2312 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2313 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2314 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2315 #
2316 # List of possible output files, starting from the most likely.
2317 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2318 # only as a last resort.  b.out is created by i960 compilers.
2319 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2320 #
2321 # The IRIX 6 linker writes into existing files which may not be
2322 # executable, retaining their permissions.  Remove them first so a
2323 # subsequent execution test works.
2324 ac_rmfiles=
2325 for ac_file in $ac_files
2326 do
2327   case $ac_file in
2328     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2329     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2330   esac
2331 done
2332 rm -f $ac_rmfiles
2333
2334 if { (ac_try="$ac_link_default"
2335 case "(($ac_try" in
2336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337   *) ac_try_echo=$ac_try;;
2338 esac
2339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2340   (eval "$ac_link_default") 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; then
2344   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2345 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2346 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2347 # so that the user can short-circuit this test for compilers unknown to
2348 # Autoconf.
2349 for ac_file in $ac_files ''
2350 do
2351   test -f "$ac_file" || continue
2352   case $ac_file in
2353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2354         ;;
2355     [ab].out )
2356         # We found the default executable, but exeext='' is most
2357         # certainly right.
2358         break;;
2359     *.* )
2360         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2361         then :; else
2362            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363         fi
2364         # We set ac_cv_exeext here because the later test for it is not
2365         # safe: cross compilers may not add the suffix if given an `-o'
2366         # argument, so we may need to know it at that point already.
2367         # Even if this section looks crufty: it has the advantage of
2368         # actually working.
2369         break;;
2370     * )
2371         break;;
2372   esac
2373 done
2374 test "$ac_cv_exeext" = no && ac_cv_exeext=
2375
2376 else
2377   ac_file=''
2378 fi
2379
2380 { echo "$as_me:$LINENO: result: $ac_file" >&5
2381 echo "${ECHO_T}$ac_file" >&6; }
2382 if test -z "$ac_file"; then
2383   echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: C compiler cannot create executables
2389 See \`config.log' for more details." >&2;}
2390    { (exit 77); exit 77; }; }
2391 fi
2392
2393 ac_exeext=$ac_cv_exeext
2394
2395 # Check that the compiler produces executables we can run.  If not, either
2396 # the compiler is broken, or we cross compile.
2397 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2398 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2399 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2400 # If not cross compiling, check that we can run a simple program.
2401 if test "$cross_compiling" != yes; then
2402   if { ac_try='./$ac_file'
2403   { (case "(($ac_try" in
2404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405   *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408   (eval "$ac_try") 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; }; then
2412     cross_compiling=no
2413   else
2414     if test "$cross_compiling" = maybe; then
2415         cross_compiling=yes
2416     else
2417         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2418 If you meant to cross compile, use \`--host'.
2419 See \`config.log' for more details." >&5
2420 echo "$as_me: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&2;}
2423    { (exit 1); exit 1; }; }
2424     fi
2425   fi
2426 fi
2427 { echo "$as_me:$LINENO: result: yes" >&5
2428 echo "${ECHO_T}yes" >&6; }
2429
2430 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2431 ac_clean_files=$ac_clean_files_save
2432 # Check that the compiler produces executables we can run.  If not, either
2433 # the compiler is broken, or we cross compile.
2434 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2435 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2436 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2437 echo "${ECHO_T}$cross_compiling" >&6; }
2438
2439 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2440 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2441 if { (ac_try="$ac_link"
2442 case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447   (eval "$ac_link") 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; then
2451   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2452 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2453 # work properly (i.e., refer to `conftest.exe'), while it won't with
2454 # `rm'.
2455 for ac_file in conftest.exe conftest conftest.*; do
2456   test -f "$ac_file" || continue
2457   case $ac_file in
2458     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2459     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460           break;;
2461     * ) break;;
2462   esac
2463 done
2464 else
2465   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2468 See \`config.log' for more details." >&2;}
2469    { (exit 1); exit 1; }; }
2470 fi
2471
2472 rm -f conftest$ac_cv_exeext
2473 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2474 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2475
2476 rm -f conftest.$ac_ext
2477 EXEEXT=$ac_cv_exeext
2478 ac_exeext=$EXEEXT
2479 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2480 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2481 if test "${ac_cv_objext+set}" = set; then
2482   echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484   cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h.  */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h.  */
2490
2491 int
2492 main ()
2493 {
2494
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 rm -f conftest.o conftest.obj
2500 if { (ac_try="$ac_compile"
2501 case "(($ac_try" in
2502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503   *) ac_try_echo=$ac_try;;
2504 esac
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506   (eval "$ac_compile") 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; then
2510   for ac_file in conftest.o conftest.obj conftest.*; do
2511   test -f "$ac_file" || continue;
2512   case $ac_file in
2513     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2514     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2515        break;;
2516   esac
2517 done
2518 else
2519   echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2525 See \`config.log' for more details." >&2;}
2526    { (exit 1); exit 1; }; }
2527 fi
2528
2529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2530 fi
2531 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2532 echo "${ECHO_T}$ac_cv_objext" >&6; }
2533 OBJEXT=$ac_cv_objext
2534 ac_objext=$OBJEXT
2535 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2536 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2537 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h.  */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h.  */
2546
2547 int
2548 main ()
2549 {
2550 #ifndef __GNUC__
2551        choke me
2552 #endif
2553
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (ac_try="$ac_compile"
2560 case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_compile") 2>conftest.er1
2566   ac_status=$?
2567   grep -v '^ *+' conftest.er1 >conftest.err
2568   rm -f conftest.er1
2569   cat conftest.err >&5
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); } && {
2572          test -z "$ac_c_werror_flag" ||
2573          test ! -s conftest.err
2574        } && test -s conftest.$ac_objext; then
2575   ac_compiler_gnu=yes
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580         ac_compiler_gnu=no
2581 fi
2582
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2585
2586 fi
2587 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2592 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2593 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_cc_g+set}" = set; then
2595   echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597   ac_save_c_werror_flag=$ac_c_werror_flag
2598    ac_c_werror_flag=yes
2599    ac_cv_prog_cc_g=no
2600    CFLAGS="-g"
2601    cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607
2608 int
2609 main ()
2610 {
2611
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2618 case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623   (eval "$ac_compile") 2>conftest.er1
2624   ac_status=$?
2625   grep -v '^ *+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } && {
2630          test -z "$ac_c_werror_flag" ||
2631          test ! -s conftest.err
2632        } && test -s conftest.$ac_objext; then
2633   ac_cv_prog_cc_g=yes
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638         CFLAGS=""
2639       cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 int
2647 main ()
2648 {
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658   *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661   (eval "$ac_compile") 2>conftest.er1
2662   ac_status=$?
2663   grep -v '^ *+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } && {
2668          test -z "$ac_c_werror_flag" ||
2669          test ! -s conftest.err
2670        } && test -s conftest.$ac_objext; then
2671   :
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676         ac_c_werror_flag=$ac_save_c_werror_flag
2677          CFLAGS="-g"
2678          cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684
2685 int
2686 main ()
2687 {
2688
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compile") 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } && {
2707          test -z "$ac_c_werror_flag" ||
2708          test ! -s conftest.err
2709        } && test -s conftest.$ac_objext; then
2710   ac_cv_prog_cc_g=yes
2711 else
2712   echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715
2716 fi
2717
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719 fi
2720
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 fi
2723
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725    ac_c_werror_flag=$ac_save_c_werror_flag
2726 fi
2727 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2728 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2729 if test "$ac_test_CFLAGS" = set; then
2730   CFLAGS=$ac_save_CFLAGS
2731 elif test $ac_cv_prog_cc_g = yes; then
2732   if test "$GCC" = yes; then
2733     CFLAGS="-g -O2"
2734   else
2735     CFLAGS="-g"
2736   fi
2737 else
2738   if test "$GCC" = yes; then
2739     CFLAGS="-O2"
2740   else
2741     CFLAGS=
2742   fi
2743 fi
2744 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2745 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2746 if test "${ac_cv_prog_cc_c89+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   ac_cv_prog_cc_c89=no
2750 ac_save_CC=$CC
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 #include <stdarg.h>
2758 #include <stdio.h>
2759 #include <sys/types.h>
2760 #include <sys/stat.h>
2761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2762 struct buf { int x; };
2763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2764 static char *e (p, i)
2765      char **p;
2766      int i;
2767 {
2768   return p[i];
2769 }
2770 static char *f (char * (*g) (char **, int), char **p, ...)
2771 {
2772   char *s;
2773   va_list v;
2774   va_start (v,p);
2775   s = g (p, va_arg (v,int));
2776   va_end (v);
2777   return s;
2778 }
2779
2780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2781    function prototypes and stuff, but not '\xHH' hex character constants.
2782    These don't provoke an error unfortunately, instead are silently treated
2783    as 'x'.  The following induces an error, until -std is added to get
2784    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2785    array size at least.  It's necessary to write '\x00'==0 to get something
2786    that's true only with -std.  */
2787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2788
2789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2790    inside strings and character constants.  */
2791 #define FOO(x) 'x'
2792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2793
2794 int test (int i, double x);
2795 struct s1 {int (*f) (int a);};
2796 struct s2 {int (*f) (double a);};
2797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2798 int argc;
2799 char **argv;
2800 int
2801 main ()
2802 {
2803 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2804   ;
2805   return 0;
2806 }
2807 _ACEOF
2808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2809         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2810 do
2811   CC="$ac_save_CC $ac_arg"
2812   rm -f conftest.$ac_objext
2813 if { (ac_try="$ac_compile"
2814 case "(($ac_try" in
2815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816   *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819   (eval "$ac_compile") 2>conftest.er1
2820   ac_status=$?
2821   grep -v '^ *+' conftest.er1 >conftest.err
2822   rm -f conftest.er1
2823   cat conftest.err >&5
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); } && {
2826          test -z "$ac_c_werror_flag" ||
2827          test ! -s conftest.err
2828        } && test -s conftest.$ac_objext; then
2829   ac_cv_prog_cc_c89=$ac_arg
2830 else
2831   echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2833
2834
2835 fi
2836
2837 rm -f core conftest.err conftest.$ac_objext
2838   test "x$ac_cv_prog_cc_c89" != "xno" && break
2839 done
2840 rm -f conftest.$ac_ext
2841 CC=$ac_save_CC
2842
2843 fi
2844 # AC_CACHE_VAL
2845 case "x$ac_cv_prog_cc_c89" in
2846   x)
2847     { echo "$as_me:$LINENO: result: none needed" >&5
2848 echo "${ECHO_T}none needed" >&6; } ;;
2849   xno)
2850     { echo "$as_me:$LINENO: result: unsupported" >&5
2851 echo "${ECHO_T}unsupported" >&6; } ;;
2852   *)
2853     CC="$CC $ac_cv_prog_cc_c89"
2854     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2855 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2856 esac
2857
2858
2859 ac_ext=c
2860 ac_cpp='$CPP $CPPFLAGS'
2861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864
2865 ac_ext=cpp
2866 ac_cpp='$CXXCPP $CPPFLAGS'
2867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2870 if test -z "$CXX"; then
2871   if test -n "$CCC"; then
2872     CXX=$CCC
2873   else
2874     if test -n "$ac_tool_prefix"; then
2875   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2876   do
2877     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_CXX+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   if test -n "$CXX"; then
2885   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892   for ac_exec_ext in '' $ac_executable_extensions; do
2893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 CXX=$ac_cv_prog_CXX
2905 if test -n "$CXX"; then
2906   { echo "$as_me:$LINENO: result: $CXX" >&5
2907 echo "${ECHO_T}$CXX" >&6; }
2908 else
2909   { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2911 fi
2912
2913
2914     test -n "$CXX" && break
2915   done
2916 fi
2917 if test -z "$CXX"; then
2918   ac_ct_CXX=$CXX
2919   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2920 do
2921   # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2925 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   if test -n "$ac_ct_CXX"; then
2929   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936   for ac_exec_ext in '' $ac_executable_extensions; do
2937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938     ac_cv_prog_ac_ct_CXX="$ac_prog"
2939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940     break 2
2941   fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2949 if test -n "$ac_ct_CXX"; then
2950   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2951 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2952 else
2953   { echo "$as_me:$LINENO: result: no" >&5
2954 echo "${ECHO_T}no" >&6; }
2955 fi
2956
2957
2958   test -n "$ac_ct_CXX" && break
2959 done
2960
2961   if test "x$ac_ct_CXX" = x; then
2962     CXX="g++"
2963   else
2964     case $cross_compiling:$ac_tool_warned in
2965 yes:)
2966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2967 whose name does not start with the host triplet.  If you think this
2968 configuration is useful to you, please write to autoconf@gnu.org." >&5
2969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2970 whose name does not start with the host triplet.  If you think this
2971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2972 ac_tool_warned=yes ;;
2973 esac
2974     CXX=$ac_ct_CXX
2975   fi
2976 fi
2977
2978   fi
2979 fi
2980 # Provide some information about the compiler.
2981 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2982 ac_compiler=`set X $ac_compile; echo $2`
2983 { (ac_try="$ac_compiler --version >&5"
2984 case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_compiler --version >&5") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }
2993 { (ac_try="$ac_compiler -v >&5"
2994 case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_compiler -v >&5") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }
3003 { (ac_try="$ac_compiler -V >&5"
3004 case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_compiler -V >&5") 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }
3013
3014 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3015 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3016 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019   cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025
3026 int
3027 main ()
3028 {
3029 #ifndef __GNUC__
3030        choke me
3031 #endif
3032
3033   ;
3034   return 0;
3035 }
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_compile") 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } && {
3051          test -z "$ac_cxx_werror_flag" ||
3052          test ! -s conftest.err
3053        } && test -s conftest.$ac_objext; then
3054   ac_compiler_gnu=yes
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059         ac_compiler_gnu=no
3060 fi
3061
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3064
3065 fi
3066 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3067 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3068 GXX=`test $ac_compiler_gnu = yes && echo yes`
3069 ac_test_CXXFLAGS=${CXXFLAGS+set}
3070 ac_save_CXXFLAGS=$CXXFLAGS
3071 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3072 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_cxx_g+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3077    ac_cxx_werror_flag=yes
3078    ac_cv_prog_cxx_g=no
3079    CXXFLAGS="-g"
3080    cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_compile") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } && {
3109          test -z "$ac_cxx_werror_flag" ||
3110          test ! -s conftest.err
3111        } && test -s conftest.$ac_objext; then
3112   ac_cv_prog_cxx_g=yes
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117         CXXFLAGS=""
3118       cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124
3125 int
3126 main ()
3127 {
3128
3129   ;
3130   return 0;
3131 }
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3135 case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_compile") 2>conftest.er1
3141   ac_status=$?
3142   grep -v '^ *+' conftest.er1 >conftest.err
3143   rm -f conftest.er1
3144   cat conftest.err >&5
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } && {
3147          test -z "$ac_cxx_werror_flag" ||
3148          test ! -s conftest.err
3149        } && test -s conftest.$ac_objext; then
3150   :
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3156          CXXFLAGS="-g"
3157          cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_compile") 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } && {
3186          test -z "$ac_cxx_werror_flag" ||
3187          test ! -s conftest.err
3188        } && test -s conftest.$ac_objext; then
3189   ac_cv_prog_cxx_g=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209   CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211   if test "$GXX" = yes; then
3212     CXXFLAGS="-g -O2"
3213   else
3214     CXXFLAGS="-g"
3215   fi
3216 else
3217   if test "$GXX" = yes; then
3218     CXXFLAGS="-O2"
3219   else
3220     CXXFLAGS=
3221   fi
3222 fi
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229
3230
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3240   CPP=
3241 fi
3242 if test -z "$CPP"; then
3243   if test "${ac_cv_prog_CPP+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246       # Double quotes because CPP needs to be expanded
3247     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248     do
3249       ac_preproc_ok=false
3250 for ac_c_preproc_warn_flag in '' yes
3251 do
3252   # Use a header file that comes with gcc, so configuring glibc
3253   # with a fresh cross-compiler works.
3254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255   # <limits.h> exists even on freestanding compilers.
3256   # On the NeXT, cc -E runs the code through the compiler's parser,
3257   # not just through cpp. "Syntax error" is here to catch this case.
3258   cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 #ifdef __STDC__
3265 # include <limits.h>
3266 #else
3267 # include <assert.h>
3268 #endif
3269                      Syntax error
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null && {
3284          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3285          test ! -s conftest.err
3286        }; then
3287   :
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292   # Broken: fails on valid input.
3293 continue
3294 fi
3295
3296 rm -f conftest.err conftest.$ac_ext
3297
3298   # OK, works on sane cases.  Now check whether nonexistent headers
3299   # can be detected and how.
3300   cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h.  */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h.  */
3306 #include <ac_nonexistent.h>
3307 _ACEOF
3308 if { (ac_try="$ac_cpp conftest.$ac_ext"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } >/dev/null && {
3321          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3322          test ! -s conftest.err
3323        }; then
3324   # Broken: success on invalid input.
3325 continue
3326 else
3327   echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330   # Passes both tests.
3331 ac_preproc_ok=:
3332 break
3333 fi
3334
3335 rm -f conftest.err conftest.$ac_ext
3336
3337 done
3338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339 rm -f conftest.err conftest.$ac_ext
3340 if $ac_preproc_ok; then
3341   break
3342 fi
3343
3344     done
3345     ac_cv_prog_CPP=$CPP
3346
3347 fi
3348   CPP=$ac_cv_prog_CPP
3349 else
3350   ac_cv_prog_CPP=$CPP
3351 fi
3352 { echo "$as_me:$LINENO: result: $CPP" >&5
3353 echo "${ECHO_T}$CPP" >&6; }
3354 ac_preproc_ok=false
3355 for ac_c_preproc_warn_flag in '' yes
3356 do
3357   # Use a header file that comes with gcc, so configuring glibc
3358   # with a fresh cross-compiler works.
3359   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360   # <limits.h> exists even on freestanding compilers.
3361   # On the NeXT, cc -E runs the code through the compiler's parser,
3362   # not just through cpp. "Syntax error" is here to catch this case.
3363   cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 #ifdef __STDC__
3370 # include <limits.h>
3371 #else
3372 # include <assert.h>
3373 #endif
3374                      Syntax error
3375 _ACEOF
3376 if { (ac_try="$ac_cpp conftest.$ac_ext"
3377 case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383   ac_status=$?
3384   grep -v '^ *+' conftest.er1 >conftest.err
3385   rm -f conftest.er1
3386   cat conftest.err >&5
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); } >/dev/null && {
3389          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390          test ! -s conftest.err
3391        }; then
3392   :
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397   # Broken: fails on valid input.
3398 continue
3399 fi
3400
3401 rm -f conftest.err conftest.$ac_ext
3402
3403   # OK, works on sane cases.  Now check whether nonexistent headers
3404   # can be detected and how.
3405   cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h.  */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h.  */
3411 #include <ac_nonexistent.h>
3412 _ACEOF
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3414 case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420   ac_status=$?
3421   grep -v '^ *+' conftest.er1 >conftest.err
3422   rm -f conftest.er1
3423   cat conftest.err >&5
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); } >/dev/null && {
3426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3427          test ! -s conftest.err
3428        }; then
3429   # Broken: success on invalid input.
3430 continue
3431 else
3432   echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435   # Passes both tests.
3436 ac_preproc_ok=:
3437 break
3438 fi
3439
3440 rm -f conftest.err conftest.$ac_ext
3441
3442 done
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.$ac_ext
3445 if $ac_preproc_ok; then
3446   :
3447 else
3448   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&2;}
3452    { (exit 1); exit 1; }; }
3453 fi
3454
3455 ac_ext=c
3456 ac_cpp='$CPP $CPPFLAGS'
3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460
3461
3462 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3463 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3464 if test "${ac_cv_path_GREP+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   # Extract the first word of "grep ggrep" to use in msg output
3468 if test -z "$GREP"; then
3469 set dummy grep ggrep; ac_prog_name=$2
3470 if test "${ac_cv_path_GREP+set}" = set; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473   ac_path_GREP_found=false
3474 # Loop through the user's path and test for each of PROGNAME-LIST
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480   for ac_prog in grep ggrep; do
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3483     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3484     # Check for GNU ac_path_GREP and select it if it is found.
3485   # Check for GNU $ac_path_GREP
3486 case `"$ac_path_GREP" --version 2>&1` in
3487 *GNU*)
3488   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3489 *)
3490   ac_count=0
3491   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3492   while :
3493   do
3494     cat "conftest.in" "conftest.in" >"conftest.tmp"
3495     mv "conftest.tmp" "conftest.in"
3496     cp "conftest.in" "conftest.nl"
3497     echo 'GREP' >> "conftest.nl"
3498     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3499     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3500     ac_count=`expr $ac_count + 1`
3501     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3502       # Best one so far, save it but keep looking for a better one
3503       ac_cv_path_GREP="$ac_path_GREP"
3504       ac_path_GREP_max=$ac_count
3505     fi
3506     # 10*(2^10) chars as input seems more than enough
3507     test $ac_count -gt 10 && break
3508   done
3509   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3510 esac
3511
3512
3513     $ac_path_GREP_found && break 3
3514   done
3515 done
3516
3517 done
3518 IFS=$as_save_IFS
3519
3520
3521 fi
3522
3523 GREP="$ac_cv_path_GREP"
3524 if test -z "$GREP"; then
3525   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3526 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3527    { (exit 1); exit 1; }; }
3528 fi
3529
3530 else
3531   ac_cv_path_GREP=$GREP
3532 fi
3533
3534
3535 fi
3536 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3537 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3538  GREP="$ac_cv_path_GREP"
3539
3540
3541 { echo "$as_me:$LINENO: checking for egrep" >&5
3542 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3543 if test "${ac_cv_path_EGREP+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3547    then ac_cv_path_EGREP="$GREP -E"
3548    else
3549      # Extract the first word of "egrep" to use in msg output
3550 if test -z "$EGREP"; then
3551 set dummy egrep; ac_prog_name=$2
3552 if test "${ac_cv_path_EGREP+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   ac_path_EGREP_found=false
3556 # Loop through the user's path and test for each of PROGNAME-LIST
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562   for ac_prog in egrep; do
3563   for ac_exec_ext in '' $ac_executable_extensions; do
3564     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3565     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3566     # Check for GNU ac_path_EGREP and select it if it is found.
3567   # Check for GNU $ac_path_EGREP
3568 case `"$ac_path_EGREP" --version 2>&1` in
3569 *GNU*)
3570   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3571 *)
3572   ac_count=0
3573   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3574   while :
3575   do
3576     cat "conftest.in" "conftest.in" >"conftest.tmp"
3577     mv "conftest.tmp" "conftest.in"
3578     cp "conftest.in" "conftest.nl"
3579     echo 'EGREP' >> "conftest.nl"
3580     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3581     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3582     ac_count=`expr $ac_count + 1`
3583     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3584       # Best one so far, save it but keep looking for a better one
3585       ac_cv_path_EGREP="$ac_path_EGREP"
3586       ac_path_EGREP_max=$ac_count
3587     fi
3588     # 10*(2^10) chars as input seems more than enough
3589     test $ac_count -gt 10 && break
3590   done
3591   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3592 esac
3593
3594
3595     $ac_path_EGREP_found && break 3
3596   done
3597 done
3598
3599 done
3600 IFS=$as_save_IFS
3601
3602
3603 fi
3604
3605 EGREP="$ac_cv_path_EGREP"
3606 if test -z "$EGREP"; then
3607   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3609    { (exit 1); exit 1; }; }
3610 fi
3611
3612 else
3613   ac_cv_path_EGREP=$EGREP
3614 fi
3615
3616
3617    fi
3618 fi
3619 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3620 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3621  EGREP="$ac_cv_path_EGREP"
3622
3623
3624
3625 { echo "$as_me:$LINENO: checking for AIX" >&5
3626 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3627 cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h.  */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h.  */
3633 #ifdef _AIX
3634   yes
3635 #endif
3636
3637 _ACEOF
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639   $EGREP "yes" >/dev/null 2>&1; then
3640   { echo "$as_me:$LINENO: result: yes" >&5
3641 echo "${ECHO_T}yes" >&6; }
3642 cat >>confdefs.h <<\_ACEOF
3643 #define _ALL_SOURCE 1
3644 _ACEOF
3645
3646 else
3647   { echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6; }
3649 fi
3650 rm -f conftest*
3651
3652
3653
3654 if test $ac_cv_c_compiler_gnu = yes; then
3655     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3656 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3657 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660     ac_pattern="Autoconf.*'x'"
3661   cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #include <sgtty.h>
3668 Autoconf TIOCGETP
3669 _ACEOF
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3672   ac_cv_prog_gcc_traditional=yes
3673 else
3674   ac_cv_prog_gcc_traditional=no
3675 fi
3676 rm -f conftest*
3677
3678
3679   if test $ac_cv_prog_gcc_traditional = no; then
3680     cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h.  */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h.  */
3686 #include <termio.h>
3687 Autoconf TCGETA
3688 _ACEOF
3689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3690   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3691   ac_cv_prog_gcc_traditional=yes
3692 fi
3693 rm -f conftest*
3694
3695   fi
3696 fi
3697 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3698 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3699   if test $ac_cv_prog_gcc_traditional = yes; then
3700     CC="$CC -traditional"
3701   fi
3702 fi
3703
3704 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3705 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3706 if test "${ac_cv_prog_suncc+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   cat > conftest.c <<EOF
3710 #ifdef __SUNPRO_C
3711   yes;
3712 #endif
3713 EOF
3714 if { ac_try='${CC-cc} -E conftest.c'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3720   ac_cv_prog_suncc=yes
3721 else
3722   ac_cv_prog_suncc=no
3723 fi
3724 fi
3725 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3726 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3727 if test -n "$ac_tool_prefix"; then
3728   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3732 if test "${ac_cv_prog_RANLIB+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   if test -n "$RANLIB"; then
3736   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741   IFS=$as_save_IFS
3742   test -z "$as_dir" && as_dir=.
3743   for ac_exec_ext in '' $ac_executable_extensions; do
3744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747     break 2
3748   fi
3749 done
3750 done
3751 IFS=$as_save_IFS
3752
3753 fi
3754 fi
3755 RANLIB=$ac_cv_prog_RANLIB
3756 if test -n "$RANLIB"; then
3757   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3758 echo "${ECHO_T}$RANLIB" >&6; }
3759 else
3760   { echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6; }
3762 fi
3763
3764
3765 fi
3766 if test -z "$ac_cv_prog_RANLIB"; then
3767   ac_ct_RANLIB=$RANLIB
3768   # Extract the first word of "ranlib", so it can be a program name with args.
3769 set dummy ranlib; ac_word=$2
3770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3772 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   if test -n "$ac_ct_RANLIB"; then
3776   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783   for ac_exec_ext in '' $ac_executable_extensions; do
3784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785     ac_cv_prog_ac_ct_RANLIB="ranlib"
3786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787     break 2
3788   fi
3789 done
3790 done
3791 IFS=$as_save_IFS
3792
3793 fi
3794 fi
3795 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3796 if test -n "$ac_ct_RANLIB"; then
3797   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3798 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3799 else
3800   { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3802 fi
3803
3804   if test "x$ac_ct_RANLIB" = x; then
3805     RANLIB=":"
3806   else
3807     case $cross_compiling:$ac_tool_warned in
3808 yes:)
3809 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3810 whose name does not start with the host triplet.  If you think this
3811 configuration is useful to you, please write to autoconf@gnu.org." >&5
3812 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3813 whose name does not start with the host triplet.  If you think this
3814 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3815 ac_tool_warned=yes ;;
3816 esac
3817     RANLIB=$ac_ct_RANLIB
3818   fi
3819 else
3820   RANLIB="$ac_cv_prog_RANLIB"
3821 fi
3822
3823
3824 # Check whether --enable-largefile was given.
3825 if test "${enable_largefile+set}" = set; then
3826   enableval=$enable_largefile;
3827 fi
3828
3829 if test "$enable_largefile" != no; then
3830
3831   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3832 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3833 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   ac_cv_sys_largefile_CC=no
3837      if test "$GCC" != yes; then
3838        ac_save_CC=$CC
3839        while :; do
3840          # IRIX 6.2 and later do not support large files by default,
3841          # so use the C compiler's -n32 option if that helps.
3842          cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h.  */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h.  */
3848 #include <sys/types.h>
3849  /* Check that off_t can represent 2**63 - 1 correctly.
3850     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3851     since some C++ compilers masquerading as C compilers
3852     incorrectly reject 9223372036854775807.  */
3853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3854   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3855                        && LARGE_OFF_T % 2147483647 == 1)
3856                       ? 1 : -1];
3857 int
3858 main ()
3859 {
3860
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865          rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872   (eval "$ac_compile") 2>conftest.er1
3873   ac_status=$?
3874   grep -v '^ *+' conftest.er1 >conftest.err
3875   rm -f conftest.er1
3876   cat conftest.err >&5
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); } && {
3879          test -z "$ac_c_werror_flag" ||
3880          test ! -s conftest.err
3881        } && test -s conftest.$ac_objext; then
3882   break
3883 else
3884   echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3886
3887
3888 fi
3889
3890 rm -f core conftest.err conftest.$ac_objext
3891          CC="$CC -n32"
3892          rm -f conftest.$ac_objext
3893 if { (ac_try="$ac_compile"
3894 case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899   (eval "$ac_compile") 2>conftest.er1
3900   ac_status=$?
3901   grep -v '^ *+' conftest.er1 >conftest.err
3902   rm -f conftest.er1
3903   cat conftest.err >&5
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); } && {
3906          test -z "$ac_c_werror_flag" ||
3907          test ! -s conftest.err
3908        } && test -s conftest.$ac_objext; then
3909   ac_cv_sys_largefile_CC=' -n32'; break
3910 else
3911   echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914
3915 fi
3916
3917 rm -f core conftest.err conftest.$ac_objext
3918          break
3919        done
3920        CC=$ac_save_CC
3921        rm -f conftest.$ac_ext
3922     fi
3923 fi
3924 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3925 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3926   if test "$ac_cv_sys_largefile_CC" != no; then
3927     CC=$CC$ac_cv_sys_largefile_CC
3928   fi
3929
3930   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3931 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3932 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   while :; do
3936   cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h.  */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h.  */
3942 #include <sys/types.h>
3943  /* Check that off_t can represent 2**63 - 1 correctly.
3944     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3945     since some C++ compilers masquerading as C compilers
3946     incorrectly reject 9223372036854775807.  */
3947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3948   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3949                        && LARGE_OFF_T % 2147483647 == 1)
3950                       ? 1 : -1];
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest.$ac_objext
3960 if { (ac_try="$ac_compile"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966   (eval "$ac_compile") 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } && {
3973          test -z "$ac_c_werror_flag" ||
3974          test ! -s conftest.err
3975        } && test -s conftest.$ac_objext; then
3976   ac_cv_sys_file_offset_bits=no; break
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981
3982 fi
3983
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985   cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h.  */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h.  */
3991 #define _FILE_OFFSET_BITS 64
3992 #include <sys/types.h>
3993  /* Check that off_t can represent 2**63 - 1 correctly.
3994     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3995     since some C++ compilers masquerading as C compilers
3996     incorrectly reject 9223372036854775807.  */
3997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3998   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3999                        && LARGE_OFF_T % 2147483647 == 1)
4000                       ? 1 : -1];
4001 int
4002 main ()
4003 {
4004
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.$ac_objext
4010 if { (ac_try="$ac_compile"
4011 case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016   (eval "$ac_compile") 2>conftest.er1
4017   ac_status=$?
4018   grep -v '^ *+' conftest.er1 >conftest.err
4019   rm -f conftest.er1
4020   cat conftest.err >&5
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } && {
4023          test -z "$ac_c_werror_flag" ||
4024          test ! -s conftest.err
4025        } && test -s conftest.$ac_objext; then
4026   ac_cv_sys_file_offset_bits=64; break
4027 else
4028   echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031
4032 fi
4033
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035   ac_cv_sys_file_offset_bits=unknown
4036   break
4037 done
4038 fi
4039 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4040 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4041 case $ac_cv_sys_file_offset_bits in #(
4042   no | unknown) ;;
4043   *)
4044 cat >>confdefs.h <<_ACEOF
4045 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4046 _ACEOF
4047 ;;
4048 esac
4049 rm -f conftest*
4050   if test $ac_cv_sys_file_offset_bits = unknown; then
4051     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4052 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4053 if test "${ac_cv_sys_large_files+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   while :; do
4057   cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h.  */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h.  */
4063 #include <sys/types.h>
4064  /* Check that off_t can represent 2**63 - 1 correctly.
4065     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4066     since some C++ compilers masquerading as C compilers
4067     incorrectly reject 9223372036854775807.  */
4068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4069   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4070                        && LARGE_OFF_T % 2147483647 == 1)
4071                       ? 1 : -1];
4072 int
4073 main ()
4074 {
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_compile") 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } && {
4094          test -z "$ac_c_werror_flag" ||
4095          test ! -s conftest.err
4096        } && test -s conftest.$ac_objext; then
4097   ac_cv_sys_large_files=no; break
4098 else
4099   echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102
4103 fi
4104
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106   cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h.  */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h.  */
4112 #define _LARGE_FILES 1
4113 #include <sys/types.h>
4114  /* Check that off_t can represent 2**63 - 1 correctly.
4115     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4116     since some C++ compilers masquerading as C compilers
4117     incorrectly reject 9223372036854775807.  */
4118 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4119   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4120                        && LARGE_OFF_T % 2147483647 == 1)
4121                       ? 1 : -1];
4122 int
4123 main ()
4124 {
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137   (eval "$ac_compile") 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } && {
4144          test -z "$ac_c_werror_flag" ||
4145          test ! -s conftest.err
4146        } && test -s conftest.$ac_objext; then
4147   ac_cv_sys_large_files=1; break
4148 else
4149   echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152
4153 fi
4154
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156   ac_cv_sys_large_files=unknown
4157   break
4158 done
4159 fi
4160 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4161 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4162 case $ac_cv_sys_large_files in #(
4163   no | unknown) ;;
4164   *)
4165 cat >>confdefs.h <<_ACEOF
4166 #define _LARGE_FILES $ac_cv_sys_large_files
4167 _ACEOF
4168 ;;
4169 esac
4170 rm -f conftest*
4171   fi
4172 fi
4173
4174
4175 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4176 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4177 if test "${ac_cv_header_stdc+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #include <stdlib.h>
4187 #include <stdarg.h>
4188 #include <string.h>
4189 #include <float.h>
4190
4191 int
4192 main ()
4193 {
4194
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (ac_try="$ac_compile"
4201 case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206   (eval "$ac_compile") 2>conftest.er1
4207   ac_status=$?
4208   grep -v '^ *+' conftest.er1 >conftest.err
4209   rm -f conftest.er1
4210   cat conftest.err >&5
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); } && {
4213          test -z "$ac_c_werror_flag" ||
4214          test ! -s conftest.err
4215        } && test -s conftest.$ac_objext; then
4216   ac_cv_header_stdc=yes
4217 else
4218   echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221         ac_cv_header_stdc=no
4222 fi
4223
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225
4226 if test $ac_cv_header_stdc = yes; then
4227   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4228   cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234 #include <string.h>
4235
4236 _ACEOF
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238   $EGREP "memchr" >/dev/null 2>&1; then
4239   :
4240 else
4241   ac_cv_header_stdc=no
4242 fi
4243 rm -f conftest*
4244
4245 fi
4246
4247 if test $ac_cv_header_stdc = yes; then
4248   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4249   cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 #include <stdlib.h>
4256
4257 _ACEOF
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259   $EGREP "free" >/dev/null 2>&1; then
4260   :
4261 else
4262   ac_cv_header_stdc=no
4263 fi
4264 rm -f conftest*
4265
4266 fi
4267
4268 if test $ac_cv_header_stdc = yes; then
4269   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4270   if test "$cross_compiling" = yes; then
4271   :
4272 else
4273   cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279 #include <ctype.h>
4280 #include <stdlib.h>
4281 #if ((' ' & 0x0FF) == 0x020)
4282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4284 #else
4285 # define ISLOWER(c) \
4286                    (('a' <= (c) && (c) <= 'i') \
4287                      || ('j' <= (c) && (c) <= 'r') \
4288                      || ('s' <= (c) && (c) <= 'z'))
4289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4290 #endif
4291
4292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4293 int
4294 main ()
4295 {
4296   int i;
4297   for (i = 0; i < 256; i++)
4298     if (XOR (islower (i), ISLOWER (i))
4299         || toupper (i) != TOUPPER (i))
4300       return 2;
4301   return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest$ac_exeext
4305 if { (ac_try="$ac_link"
4306 case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311   (eval "$ac_link") 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4315   { (case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_try") 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   :
4325 else
4326   echo "$as_me: program exited with status $ac_status" >&5
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 ( exit $ac_status )
4331 ac_cv_header_stdc=no
4332 fi
4333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4334 fi
4335
4336
4337 fi
4338 fi
4339 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4340 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4341 if test $ac_cv_header_stdc = yes; then
4342
4343 cat >>confdefs.h <<\_ACEOF
4344 #define STDC_HEADERS 1
4345 _ACEOF
4346
4347 fi
4348
4349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4360                   inttypes.h stdint.h unistd.h
4361 do
4362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 $ac_includes_default
4375
4376 #include <$ac_header>
4377 _ACEOF
4378 rm -f conftest.$ac_objext
4379 if { (ac_try="$ac_compile"
4380 case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385   (eval "$ac_compile") 2>conftest.er1
4386   ac_status=$?
4387   grep -v '^ *+' conftest.er1 >conftest.err
4388   rm -f conftest.er1
4389   cat conftest.err >&5
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } && {
4392          test -z "$ac_c_werror_flag" ||
4393          test ! -s conftest.err
4394        } && test -s conftest.$ac_objext; then
4395   eval "$as_ac_Header=yes"
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400         eval "$as_ac_Header=no"
4401 fi
4402
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 fi
4405 ac_res=`eval echo '${'$as_ac_Header'}'`
4406                { echo "$as_me:$LINENO: result: $ac_res" >&5
4407 echo "${ECHO_T}$ac_res" >&6; }
4408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4409   cat >>confdefs.h <<_ACEOF
4410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4411 _ACEOF
4412
4413 fi
4414
4415 done
4416
4417
4418 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4419 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4420 if test "${ac_cv_c_bigendian+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   # See if sys/param.h defines the BYTE_ORDER macro.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h.  */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h.  */
4430 #include <sys/types.h>
4431 #include <sys/param.h>
4432
4433 int
4434 main ()
4435 {
4436 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4437         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4438  bogus endian macros
4439 #endif
4440
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 rm -f conftest.$ac_objext
4446 if { (ac_try="$ac_compile"
4447 case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452   (eval "$ac_compile") 2>conftest.er1
4453   ac_status=$?
4454   grep -v '^ *+' conftest.er1 >conftest.err
4455   rm -f conftest.er1
4456   cat conftest.err >&5
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } && {
4459          test -z "$ac_c_werror_flag" ||
4460          test ! -s conftest.err
4461        } && test -s conftest.$ac_objext; then
4462   # It does; now see whether it defined to BIG_ENDIAN or not.
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h.  */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h.  */
4469 #include <sys/types.h>
4470 #include <sys/param.h>
4471
4472 int
4473 main ()
4474 {
4475 #if BYTE_ORDER != BIG_ENDIAN
4476  not big endian
4477 #endif
4478
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (ac_try="$ac_compile"
4485 case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490   (eval "$ac_compile") 2>conftest.er1
4491   ac_status=$?
4492   grep -v '^ *+' conftest.er1 >conftest.err
4493   rm -f conftest.er1
4494   cat conftest.err >&5
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } && {
4497          test -z "$ac_c_werror_flag" ||
4498          test ! -s conftest.err
4499        } && test -s conftest.$ac_objext; then
4500   ac_cv_c_bigendian=yes
4501 else
4502   echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4504
4505         ac_cv_c_bigendian=no
4506 fi
4507
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513         # It does not; compile a test program.
4514 if test "$cross_compiling" = yes; then
4515   # try to guess the endianness by grepping values into an object file
4516   ac_cv_c_bigendian=unknown
4517   cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4524 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4525 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4526 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4527 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4528 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4529 int
4530 main ()
4531 {
4532  _ascii (); _ebcdic ();
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (ac_try="$ac_compile"
4539 case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544   (eval "$ac_compile") 2>conftest.er1
4545   ac_status=$?
4546   grep -v '^ *+' conftest.er1 >conftest.err
4547   rm -f conftest.er1
4548   cat conftest.err >&5
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); } && {
4551          test -z "$ac_c_werror_flag" ||
4552          test ! -s conftest.err
4553        } && test -s conftest.$ac_objext; then
4554   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4555   ac_cv_c_bigendian=yes
4556 fi
4557 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4558   if test "$ac_cv_c_bigendian" = unknown; then
4559     ac_cv_c_bigendian=no
4560   else
4561     # finding both strings is unlikely to happen, but who knows?
4562     ac_cv_c_bigendian=unknown
4563   fi
4564 fi
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569
4570 fi
4571
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 else
4574   cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580 $ac_includes_default
4581 int
4582 main ()
4583 {
4584
4585   /* Are we little or big endian?  From Harbison&Steele.  */
4586   union
4587   {
4588     long int l;
4589     char c[sizeof (long int)];
4590   } u;
4591   u.l = 1;
4592   return u.c[sizeof (long int) - 1] == 1;
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4600 case "(($ac_try" in
4601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602   *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605   (eval "$ac_link") 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609   { (case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614   (eval "$ac_try") 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   ac_cv_c_bigendian=no
4619 else
4620   echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 ( exit $ac_status )
4625 ac_cv_c_bigendian=yes
4626 fi
4627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4628 fi
4629
4630
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 fi
4635 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4636 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4637 case $ac_cv_c_bigendian in
4638   yes)
4639
4640 cat >>confdefs.h <<\_ACEOF
4641 #define WORDS_BIGENDIAN 1
4642 _ACEOF
4643  ;;
4644   no)
4645      ;;
4646   *)
4647     { { echo "$as_me:$LINENO: error: unknown endianness
4648 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4649 echo "$as_me: error: unknown endianness
4650 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4651    { (exit 1); exit 1; }; } ;;
4652 esac
4653
4654
4655 # Extract the first word of "gmake", so it can be a program name with args.
4656 set dummy gmake; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_GMAKE+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test -n "$GMAKE"; then
4663   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670   for ac_exec_ext in '' $ac_executable_extensions; do
4671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672     ac_cv_prog_GMAKE="yes"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4681 fi
4682 fi
4683 GMAKE=$ac_cv_prog_GMAKE
4684 if test -n "$GMAKE"; then
4685   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4686 echo "${ECHO_T}$GMAKE" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693 if test $GMAKE = no; then
4694   # Extract the first word of "make", so it can be a program name with args.
4695 set dummy make; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_path_MAKE+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   case $MAKE in
4702   [\\/]* | ?:[\\/]*)
4703   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4704   ;;
4705   *)
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4722   ;;
4723 esac
4724 fi
4725 MAKE=$ac_cv_path_MAKE
4726 if test -n "$MAKE"; then
4727   { echo "$as_me:$LINENO: result: $MAKE" >&5
4728 echo "${ECHO_T}$MAKE" >&6; }
4729 else
4730   { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4732 fi
4733
4734
4735 else
4736   # Extract the first word of "gmake", so it can be a program name with args.
4737 set dummy gmake; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_path_MAKE+set}" = set; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743   case $MAKE in
4744   [\\/]* | ?:[\\/]*)
4745   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4746   ;;
4747   *)
4748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753   for ac_exec_ext in '' $ac_executable_extensions; do
4754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757     break 2
4758   fi
4759 done
4760 done
4761 IFS=$as_save_IFS
4762
4763   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4764   ;;
4765 esac
4766 fi
4767 MAKE=$ac_cv_path_MAKE
4768 if test -n "$MAKE"; then
4769   { echo "$as_me:$LINENO: result: $MAKE" >&5
4770 echo "${ECHO_T}$MAKE" >&6; }
4771 else
4772   { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4774 fi
4775
4776
4777 fi
4778 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4779 if test -z "$makever"; then
4780   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4781                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4782 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4783                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4784    { (exit 1); exit 1; }; }
4785 fi
4786
4787   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4788 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4789 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   ac_check_lib_save_LIBS=$LIBS
4793 LIBS="-lltdl  $LIBS"
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800
4801 /* Override any GCC internal prototype to avoid an error.
4802    Use char because int might match the return type of a GCC
4803    builtin and then its argument prototype would still apply.  */
4804 #ifdef __cplusplus
4805 extern "C"
4806 #endif
4807 char lt_dlinit ();
4808 int
4809 main ()
4810 {
4811 return lt_dlinit ();
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (ac_try="$ac_link"
4818 case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823   (eval "$ac_link") 2>conftest.er1
4824   ac_status=$?
4825   grep -v '^ *+' conftest.er1 >conftest.err
4826   rm -f conftest.er1
4827   cat conftest.err >&5
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); } && {
4830          test -z "$ac_c_werror_flag" ||
4831          test ! -s conftest.err
4832        } && test -s conftest$ac_exeext &&
4833        $as_test_x conftest$ac_exeext; then
4834   ac_cv_lib_ltdl_lt_dlinit=yes
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839         ac_cv_lib_ltdl_lt_dlinit=no
4840 fi
4841
4842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4843       conftest$ac_exeext conftest.$ac_ext
4844 LIBS=$ac_check_lib_save_LIBS
4845 fi
4846 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4847 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4848 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4849   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4850 else
4851   if test x"$enable_ltdl_install" = xno; then
4852      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4853 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4854    else
4855      enable_ltdl_install=yes
4856    fi
4857
4858 fi
4859
4860   if test x"$enable_ltdl_install" = x"yes"; then
4861     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4862     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4863     LTDLINCL='-I${top_srcdir}/''libltdl'
4864   else
4865     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4866     LIBLTDL="-lltdl"
4867     LTDLINCL=
4868   fi
4869   # For backwards non-gettext consistent compatibility...
4870   INCLTDL="$LTDLINCL"
4871
4872
4873 if test x"$enable_ltdl_install" = x"yes"; then
4874   LTDL_SUBDIRS=libltdl
4875 fi
4876
4877
4878 # Check whether --enable-shared was given.
4879 if test "${enable_shared+set}" = set; then
4880   enableval=$enable_shared; p=${PACKAGE-default}
4881     case $enableval in
4882     yes) enable_shared=yes ;;
4883     no) enable_shared=no ;;
4884     *)
4885       enable_shared=no
4886       # Look at the argument we got.  We use all the common list separators.
4887       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4888       for pkg in $enableval; do
4889         IFS="$lt_save_ifs"
4890         if test "X$pkg" = "X$p"; then
4891           enable_shared=yes
4892         fi
4893       done
4894       IFS="$lt_save_ifs"
4895       ;;
4896     esac
4897 else
4898   enable_shared=yes
4899 fi
4900
4901
4902 # Check whether --enable-static was given.
4903 if test "${enable_static+set}" = set; then
4904   enableval=$enable_static; p=${PACKAGE-default}
4905     case $enableval in
4906     yes) enable_static=yes ;;
4907     no) enable_static=no ;;
4908     *)
4909      enable_static=no
4910       # Look at the argument we got.  We use all the common list separators.
4911       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4912       for pkg in $enableval; do
4913         IFS="$lt_save_ifs"
4914         if test "X$pkg" = "X$p"; then
4915           enable_static=yes
4916         fi
4917       done
4918       IFS="$lt_save_ifs"
4919       ;;
4920     esac
4921 else
4922   enable_static=yes
4923 fi
4924
4925
4926 # Check whether --enable-fast-install was given.
4927 if test "${enable_fast_install+set}" = set; then
4928   enableval=$enable_fast_install; p=${PACKAGE-default}
4929     case $enableval in
4930     yes) enable_fast_install=yes ;;
4931     no) enable_fast_install=no ;;
4932     *)
4933       enable_fast_install=no
4934       # Look at the argument we got.  We use all the common list separators.
4935       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4936       for pkg in $enableval; do
4937         IFS="$lt_save_ifs"
4938         if test "X$pkg" = "X$p"; then
4939           enable_fast_install=yes
4940         fi
4941       done
4942       IFS="$lt_save_ifs"
4943       ;;
4944     esac
4945 else
4946   enable_fast_install=yes
4947 fi
4948
4949
4950 ac_aux_dir=
4951 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4952   if test -f "$ac_dir/install-sh"; then
4953     ac_aux_dir=$ac_dir
4954     ac_install_sh="$ac_aux_dir/install-sh -c"
4955     break
4956   elif test -f "$ac_dir/install.sh"; then
4957     ac_aux_dir=$ac_dir
4958     ac_install_sh="$ac_aux_dir/install.sh -c"
4959     break
4960   elif test -f "$ac_dir/shtool"; then
4961     ac_aux_dir=$ac_dir
4962     ac_install_sh="$ac_aux_dir/shtool install -c"
4963     break
4964   fi
4965 done
4966 if test -z "$ac_aux_dir"; then
4967   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4968 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4969    { (exit 1); exit 1; }; }
4970 fi
4971
4972 # These three variables are undocumented and unsupported,
4973 # and are intended to be withdrawn in a future Autoconf release.
4974 # They can cause serious problems if a builder's source tree is in a directory
4975 # whose full name contains unusual characters.
4976 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4977 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4978 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4979
4980
4981 # Make sure we can run config.sub.
4982 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4983   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4984 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4985    { (exit 1); exit 1; }; }
4986
4987 { echo "$as_me:$LINENO: checking build system type" >&5
4988 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4989 if test "${ac_cv_build+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   ac_build_alias=$build_alias
4993 test "x$ac_build_alias" = x &&
4994   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4995 test "x$ac_build_alias" = x &&
4996   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4997 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4998    { (exit 1); exit 1; }; }
4999 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5000   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5001 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5002    { (exit 1); exit 1; }; }
5003
5004 fi
5005 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5006 echo "${ECHO_T}$ac_cv_build" >&6; }
5007 case $ac_cv_build in
5008 *-*-*) ;;
5009 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5010 echo "$as_me: error: invalid value of canonical build" >&2;}
5011    { (exit 1); exit 1; }; };;
5012 esac
5013 build=$ac_cv_build
5014 ac_save_IFS=$IFS; IFS='-'
5015 set x $ac_cv_build
5016 shift
5017 build_cpu=$1
5018 build_vendor=$2
5019 shift; shift
5020 # Remember, the first character of IFS is used to create $*,
5021 # except with old shells:
5022 build_os=$*
5023 IFS=$ac_save_IFS
5024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5025
5026
5027 { echo "$as_me:$LINENO: checking host system type" >&5
5028 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5029 if test "${ac_cv_host+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   if test "x$host_alias" = x; then
5033   ac_cv_host=$ac_cv_build
5034 else
5035   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5036     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5037 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5038    { (exit 1); exit 1; }; }
5039 fi
5040
5041 fi
5042 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5043 echo "${ECHO_T}$ac_cv_host" >&6; }
5044 case $ac_cv_host in
5045 *-*-*) ;;
5046 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5047 echo "$as_me: error: invalid value of canonical host" >&2;}
5048    { (exit 1); exit 1; }; };;
5049 esac
5050 host=$ac_cv_host
5051 ac_save_IFS=$IFS; IFS='-'
5052 set x $ac_cv_host
5053 shift
5054 host_cpu=$1
5055 host_vendor=$2
5056 shift; shift
5057 # Remember, the first character of IFS is used to create $*,
5058 # except with old shells:
5059 host_os=$*
5060 IFS=$ac_save_IFS
5061 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5062
5063
5064 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5065 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5066 if test "${lt_cv_path_SED+set}" = set; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   # Loop through the user's path and test for sed and gsed.
5070 # Then use that list of sed's as ones to test for truncation.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for lt_ac_prog in sed gsed; do
5077     for ac_exec_ext in '' $ac_executable_extensions; do
5078       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5079         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5080       fi
5081     done
5082   done
5083 done
5084 lt_ac_max=0
5085 lt_ac_count=0
5086 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5087 # along with /bin/sed that truncates output.
5088 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5089   test ! -f $lt_ac_sed && continue
5090   cat /dev/null > conftest.in
5091   lt_ac_count=0
5092   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5093   # Check for GNU sed and select it if it is found.
5094   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5095     lt_cv_path_SED=$lt_ac_sed
5096     break
5097   fi
5098   while true; do
5099     cat conftest.in conftest.in >conftest.tmp
5100     mv conftest.tmp conftest.in
5101     cp conftest.in conftest.nl
5102     echo >>conftest.nl
5103     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5104     cmp -s conftest.out conftest.nl || break
5105     # 10000 chars as input seems more than enough
5106     test $lt_ac_count -gt 10 && break
5107     lt_ac_count=`expr $lt_ac_count + 1`
5108     if test $lt_ac_count -gt $lt_ac_max; then
5109       lt_ac_max=$lt_ac_count
5110       lt_cv_path_SED=$lt_ac_sed
5111     fi
5112   done
5113 done
5114
5115 fi
5116
5117 SED=$lt_cv_path_SED
5118 { echo "$as_me:$LINENO: result: $SED" >&5
5119 echo "${ECHO_T}$SED" >&6; }
5120
5121
5122 # Check whether --with-gnu-ld was given.
5123 if test "${with_gnu_ld+set}" = set; then
5124   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5125 else
5126   with_gnu_ld=no
5127 fi
5128
5129 ac_prog=ld
5130 if test "$GCC" = yes; then
5131   # Check if gcc -print-prog-name=ld gives a path.
5132   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5133 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5134   case $host in
5135   *-*-mingw*)
5136     # gcc leaves a trailing carriage return which upsets mingw
5137     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5138   *)
5139     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5140   esac
5141   case $ac_prog in
5142     # Accept absolute paths.
5143     [\\/]* | ?:[\\/]*)
5144       re_direlt='/[^/][^/]*/\.\./'
5145       # Canonicalize the pathname of ld
5146       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5147       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5148         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5149       done
5150       test -z "$LD" && LD="$ac_prog"
5151       ;;
5152   "")
5153     # If it fails, then pretend we aren't using GCC.
5154     ac_prog=ld
5155     ;;
5156   *)
5157     # If it is relative, then search for the first ld in PATH.
5158     with_gnu_ld=unknown
5159     ;;
5160   esac
5161 elif test "$with_gnu_ld" = yes; then
5162   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5163 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5164 else
5165   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5166 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5167 fi
5168 if test "${lt_cv_path_LD+set}" = set; then
5169   echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171   if test -z "$LD"; then
5172   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5173   for ac_dir in $PATH; do
5174     IFS="$lt_save_ifs"
5175     test -z "$ac_dir" && ac_dir=.
5176     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5177       lt_cv_path_LD="$ac_dir/$ac_prog"
5178       # Check to see if the program is GNU ld.  I'd rather use --version,
5179       # but apparently some variants of GNU ld only accept -v.
5180       # Break only if it was the GNU/non-GNU ld that we prefer.
5181       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5182       *GNU* | *'with BFD'*)
5183         test "$with_gnu_ld" != no && break
5184         ;;
5185       *)
5186         test "$with_gnu_ld" != yes && break
5187         ;;
5188       esac
5189     fi
5190   done
5191   IFS="$lt_save_ifs"
5192 else
5193   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5194 fi
5195 fi
5196
5197 LD="$lt_cv_path_LD"
5198 if test -n "$LD"; then
5199   { echo "$as_me:$LINENO: result: $LD" >&5
5200 echo "${ECHO_T}$LD" >&6; }
5201 else
5202   { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5204 fi
5205 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5206 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5207    { (exit 1); exit 1; }; }
5208 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5209 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5210 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5214 case `$LD -v 2>&1 </dev/null` in
5215 *GNU* | *'with BFD'*)
5216   lt_cv_prog_gnu_ld=yes
5217   ;;
5218 *)
5219   lt_cv_prog_gnu_ld=no
5220   ;;
5221 esac
5222 fi
5223 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5224 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5225 with_gnu_ld=$lt_cv_prog_gnu_ld
5226
5227
5228 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5229 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5230 if test "${lt_cv_ld_reload_flag+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   lt_cv_ld_reload_flag='-r'
5234 fi
5235 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5236 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5237 reload_flag=$lt_cv_ld_reload_flag
5238 case $reload_flag in
5239 "" | " "*) ;;
5240 *) reload_flag=" $reload_flag" ;;
5241 esac
5242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5243 case $host_os in
5244   darwin*)
5245     if test "$GCC" = yes; then
5246       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5247     else
5248       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5249     fi
5250     ;;
5251 esac
5252
5253 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5255 if test "${lt_cv_path_NM+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   if test -n "$NM"; then
5259   # Let the user override the test.
5260   lt_cv_path_NM="$NM"
5261 else
5262   lt_nm_to_check="${ac_tool_prefix}nm"
5263   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5264     lt_nm_to_check="$lt_nm_to_check nm"
5265   fi
5266   for lt_tmp_nm in $lt_nm_to_check; do
5267     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5268     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5269       IFS="$lt_save_ifs"
5270       test -z "$ac_dir" && ac_dir=.
5271       tmp_nm="$ac_dir/$lt_tmp_nm"
5272       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5273         # Check to see if the nm accepts a BSD-compat flag.
5274         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5275         #   nm: unknown option "B" ignored
5276         # Tru64's nm complains that /dev/null is an invalid object file
5277         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5278         */dev/null* | *'Invalid file or object type'*)
5279           lt_cv_path_NM="$tmp_nm -B"
5280           break
5281           ;;
5282         *)
5283           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5284           */dev/null*)
5285             lt_cv_path_NM="$tmp_nm -p"
5286             break
5287             ;;
5288           *)
5289             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5290             continue # so that we can try to find one that supports BSD flags
5291             ;;
5292           esac
5293           ;;
5294         esac
5295       fi
5296     done
5297     IFS="$lt_save_ifs"
5298   done
5299   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5300 fi
5301 fi
5302 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5303 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5304 NM="$lt_cv_path_NM"
5305
5306 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5307 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5308 LN_S=$as_ln_s
5309 if test "$LN_S" = "ln -s"; then
5310   { echo "$as_me:$LINENO: result: yes" >&5
5311 echo "${ECHO_T}yes" >&6; }
5312 else
5313   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5314 echo "${ECHO_T}no, using $LN_S" >&6; }
5315 fi
5316
5317 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5318 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5319 if test "${lt_cv_deplibs_check_method+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   lt_cv_file_magic_cmd='$MAGIC_CMD'
5323 lt_cv_file_magic_test_file=
5324 lt_cv_deplibs_check_method='unknown'
5325 # Need to set the preceding variable on all platforms that support
5326 # interlibrary dependencies.
5327 # 'none' -- dependencies not supported.
5328 # `unknown' -- same as none, but documents that we really don't know.
5329 # 'pass_all' -- all dependencies passed with no checks.
5330 # 'test_compile' -- check by making test program.
5331 # 'file_magic [[regex]]' -- check by looking for files in library path
5332 # which responds to the $file_magic_cmd with a given extended regex.
5333 # If you have `file' or equivalent on your system and you're not sure
5334 # whether `pass_all' will *always* work, you probably want this one.
5335
5336 case $host_os in
5337 aix4* | aix5*)
5338   lt_cv_deplibs_check_method=pass_all
5339   ;;
5340
5341 beos*)
5342   lt_cv_deplibs_check_method=pass_all
5343   ;;
5344
5345 bsdi[45]*)
5346   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5347   lt_cv_file_magic_cmd='/usr/bin/file -L'
5348   lt_cv_file_magic_test_file=/shlib/libc.so
5349   ;;
5350
5351 cygwin*)
5352   # func_win32_libid is a shell function defined in ltmain.sh
5353   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5354   lt_cv_file_magic_cmd='func_win32_libid'
5355   ;;
5356
5357 mingw* | pw32*)
5358   # Base MSYS/MinGW do not provide the 'file' command needed by
5359   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5360   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5361   lt_cv_file_magic_cmd='$OBJDUMP -f'
5362   ;;
5363
5364 darwin* | rhapsody*)
5365   lt_cv_deplibs_check_method=pass_all
5366   ;;
5367
5368 freebsd* | kfreebsd*-gnu | dragonfly*)
5369   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5370     case $host_cpu in
5371     i*86 )
5372       # Not sure whether the presence of OpenBSD here was a mistake.
5373       # Let's accept both of them until this is cleared up.
5374       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5375       lt_cv_file_magic_cmd=/usr/bin/file
5376       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5377       ;;
5378     esac
5379   else
5380     lt_cv_deplibs_check_method=pass_all
5381   fi
5382   ;;
5383
5384 gnu*)
5385   lt_cv_deplibs_check_method=pass_all
5386   ;;
5387
5388 hpux10.20* | hpux11*)
5389   lt_cv_file_magic_cmd=/usr/bin/file
5390   case $host_cpu in
5391   ia64*)
5392     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5393     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5394     ;;
5395   hppa*64*)
5396     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]'
5397     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5398     ;;
5399   *)
5400     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5401     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5402     ;;
5403   esac
5404   ;;
5405
5406 interix3*)
5407   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5408   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5409   ;;
5410
5411 irix5* | irix6* | nonstopux*)
5412   case $LD in
5413   *-32|*"-32 ") libmagic=32-bit;;
5414   *-n32|*"-n32 ") libmagic=N32;;
5415   *-64|*"-64 ") libmagic=64-bit;;
5416   *) libmagic=never-match;;
5417   esac
5418   lt_cv_deplibs_check_method=pass_all
5419   ;;
5420
5421 # This must be Linux ELF.
5422 linux*)
5423   lt_cv_deplibs_check_method=pass_all
5424   ;;
5425
5426 netbsd*)
5427   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5428     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5429   else
5430     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5431   fi
5432   ;;
5433
5434 newos6*)
5435   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5436   lt_cv_file_magic_cmd=/usr/bin/file
5437   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5438   ;;
5439
5440 nto-qnx*)
5441   lt_cv_deplibs_check_method=unknown
5442   ;;
5443
5444 openbsd*)
5445   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5446     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5447   else
5448     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5449   fi
5450   ;;
5451
5452 osf3* | osf4* | osf5*)
5453   lt_cv_deplibs_check_method=pass_all
5454   ;;
5455
5456 solaris*)
5457   lt_cv_deplibs_check_method=pass_all
5458   ;;
5459
5460 sysv4 | sysv4.3*)
5461   case $host_vendor in
5462   motorola)
5463     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]'
5464     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5465     ;;
5466   ncr)
5467     lt_cv_deplibs_check_method=pass_all
5468     ;;
5469   sequent)
5470     lt_cv_file_magic_cmd='/bin/file'
5471     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5472     ;;
5473   sni)
5474     lt_cv_file_magic_cmd='/bin/file'
5475     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5476     lt_cv_file_magic_test_file=/lib/libc.so
5477     ;;
5478   siemens)
5479     lt_cv_deplibs_check_method=pass_all
5480     ;;
5481   pc)
5482     lt_cv_deplibs_check_method=pass_all
5483     ;;
5484   esac
5485   ;;
5486
5487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490 esac
5491
5492 fi
5493 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5494 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5495 file_magic_cmd=$lt_cv_file_magic_cmd
5496 deplibs_check_method=$lt_cv_deplibs_check_method
5497 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5498
5499
5500
5501
5502 # If no C compiler was specified, use CC.
5503 LTCC=${LTCC-"$CC"}
5504
5505 # If no C compiler flags were specified, use CFLAGS.
5506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5507
5508 # Allow CC to be a program name with arguments.
5509 compiler=$CC
5510
5511 # Check whether --enable-libtool-lock was given.
5512 if test "${enable_libtool_lock+set}" = set; then
5513   enableval=$enable_libtool_lock;
5514 fi
5515
5516 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5517
5518 # Some flags need to be propagated to the compiler or linker for good
5519 # libtool support.
5520 case $host in
5521 ia64-*-hpux*)
5522   # Find out which ABI we are using.
5523   echo 'int i;' > conftest.$ac_ext
5524   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525   (eval $ac_compile) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; then
5529     case `/usr/bin/file conftest.$ac_objext` in
5530     *ELF-32*)
5531       HPUX_IA64_MODE="32"
5532       ;;
5533     *ELF-64*)
5534       HPUX_IA64_MODE="64"
5535       ;;
5536     esac
5537   fi
5538   rm -rf conftest*
5539   ;;
5540 *-*-irix6*)
5541   # Find out which ABI we are using.
5542   echo '#line 5542 "configure"' > conftest.$ac_ext
5543   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5544   (eval $ac_compile) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; then
5548    if test "$lt_cv_prog_gnu_ld" = yes; then
5549     case `/usr/bin/file conftest.$ac_objext` in
5550     *32-bit*)
5551       LD="${LD-ld} -melf32bsmip"
5552       ;;
5553     *N32*)
5554       LD="${LD-ld} -melf32bmipn32"
5555       ;;
5556     *64-bit*)
5557       LD="${LD-ld} -melf64bmip"
5558       ;;
5559     esac
5560    else
5561     case `/usr/bin/file conftest.$ac_objext` in
5562     *32-bit*)
5563       LD="${LD-ld} -32"
5564       ;;
5565     *N32*)
5566       LD="${LD-ld} -n32"
5567       ;;
5568     *64-bit*)
5569       LD="${LD-ld} -64"
5570       ;;
5571     esac
5572    fi
5573   fi
5574   rm -rf conftest*
5575   ;;
5576
5577 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5578   # Find out which ABI we are using.
5579   echo 'int i;' > conftest.$ac_ext
5580   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581   (eval $ac_compile) 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); }; then
5585     case `/usr/bin/file conftest.o` in
5586     *32-bit*)
5587       case $host in
5588         x86_64-*linux*)
5589           LD="${LD-ld} -m elf_i386"
5590           ;;
5591         ppc64-*linux*|powerpc64-*linux*)
5592           LD="${LD-ld} -m elf32ppclinux"
5593           ;;
5594         s390x-*linux*)
5595           LD="${LD-ld} -m elf_s390"
5596           ;;
5597         sparc64-*linux*)
5598           LD="${LD-ld} -m elf32_sparc"
5599           ;;
5600       esac
5601       ;;
5602     *64-bit*)
5603       case $host in
5604         x86_64-*linux*)
5605           LD="${LD-ld} -m elf_x86_64"
5606           ;;
5607         ppc*-*linux*|powerpc*-*linux*)
5608           LD="${LD-ld} -m elf64ppc"
5609           ;;
5610         s390*-*linux*)
5611           LD="${LD-ld} -m elf64_s390"
5612           ;;
5613         sparc*-*linux*)
5614           LD="${LD-ld} -m elf64_sparc"
5615           ;;
5616       esac
5617       ;;
5618     esac
5619   fi
5620   rm -rf conftest*
5621   ;;
5622
5623 *-*-sco3.2v5*)
5624   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5625   SAVE_CFLAGS="$CFLAGS"
5626   CFLAGS="$CFLAGS -belf"
5627   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5628 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5629 if test "${lt_cv_cc_needs_belf+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   ac_ext=c
5633 ac_cpp='$CPP $CPPFLAGS'
5634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637
5638      cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h.  */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h.  */
5644
5645 int
5646 main ()
5647 {
5648
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (ac_try="$ac_link"
5655 case "(($ac_try" in
5656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657   *) ac_try_echo=$ac_try;;
5658 esac
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660   (eval "$ac_link") 2>conftest.er1
5661   ac_status=$?
5662   grep -v '^ *+' conftest.er1 >conftest.err
5663   rm -f conftest.er1
5664   cat conftest.err >&5
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); } && {
5667          test -z "$ac_c_werror_flag" ||
5668          test ! -s conftest.err
5669        } && test -s conftest$ac_exeext &&
5670        $as_test_x conftest$ac_exeext; then
5671   lt_cv_cc_needs_belf=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676         lt_cv_cc_needs_belf=no
5677 fi
5678
5679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5680       conftest$ac_exeext conftest.$ac_ext
5681      ac_ext=c
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686
5687 fi
5688 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5689 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5690   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5691     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5692     CFLAGS="$SAVE_CFLAGS"
5693   fi
5694   ;;
5695 sparc*-*solaris*)
5696   # Find out which ABI we are using.
5697   echo 'int i;' > conftest.$ac_ext
5698   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699   (eval $ac_compile) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; then
5703     case `/usr/bin/file conftest.o` in
5704     *64-bit*)
5705       case $lt_cv_prog_gnu_ld in
5706       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5707       *)    LD="${LD-ld} -64" ;;
5708       esac
5709       ;;
5710     esac
5711   fi
5712   rm -rf conftest*
5713   ;;
5714
5715
5716 esac
5717
5718 need_locks="$enable_libtool_lock"
5719
5720
5721
5722 for ac_header in dlfcn.h
5723 do
5724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5726   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 fi
5731 ac_res=`eval echo '${'$as_ac_Header'}'`
5732                { echo "$as_me:$LINENO: result: $ac_res" >&5
5733 echo "${ECHO_T}$ac_res" >&6; }
5734 else
5735   # Is the header compilable?
5736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5738 cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h.  */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h.  */
5744 $ac_includes_default
5745 #include <$ac_header>
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5749 case "(($ac_try" in
5750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751   *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754   (eval "$ac_compile") 2>conftest.er1
5755   ac_status=$?
5756   grep -v '^ *+' conftest.er1 >conftest.err
5757   rm -f conftest.er1
5758   cat conftest.err >&5
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } && {
5761          test -z "$ac_c_werror_flag" ||
5762          test ! -s conftest.err
5763        } && test -s conftest.$ac_objext; then
5764   ac_header_compiler=yes
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769         ac_header_compiler=no
5770 fi
5771
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5774 echo "${ECHO_T}$ac_header_compiler" >&6; }
5775
5776 # Is the header present?
5777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5779 cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h.  */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h.  */
5785 #include <$ac_header>
5786 _ACEOF
5787 if { (ac_try="$ac_cpp conftest.$ac_ext"
5788 case "(($ac_try" in
5789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790   *) ac_try_echo=$ac_try;;
5791 esac
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5794   ac_status=$?
5795   grep -v '^ *+' conftest.er1 >conftest.err
5796   rm -f conftest.er1
5797   cat conftest.err >&5
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } >/dev/null && {
5800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5801          test ! -s conftest.err
5802        }; then
5803   ac_header_preproc=yes
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808   ac_header_preproc=no
5809 fi
5810
5811 rm -f conftest.err conftest.$ac_ext
5812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5813 echo "${ECHO_T}$ac_header_preproc" >&6; }
5814
5815 # So?  What about this header?
5816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5817   yes:no: )
5818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5822     ac_header_preproc=yes
5823     ;;
5824   no:yes:* )
5825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5837
5838     ;;
5839 esac
5840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   eval "$as_ac_Header=\$ac_header_preproc"
5846 fi
5847 ac_res=`eval echo '${'$as_ac_Header'}'`
5848                { echo "$as_me:$LINENO: result: $ac_res" >&5
5849 echo "${ECHO_T}$ac_res" >&6; }
5850
5851 fi
5852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5853   cat >>confdefs.h <<_ACEOF
5854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5855 _ACEOF
5856
5857 fi
5858
5859 done
5860
5861
5862
5863 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5864     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5865     (test "X$CXX" != "Xg++"))) ; then
5866   ac_ext=cpp
5867 ac_cpp='$CXXCPP $CPPFLAGS'
5868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5871 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5872 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5873 if test -z "$CXXCPP"; then
5874   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877       # Double quotes because CXXCPP needs to be expanded
5878     for CXXCPP in "$CXX -E" "/lib/cpp"
5879     do
5880       ac_preproc_ok=false
5881 for ac_cxx_preproc_warn_flag in '' yes
5882 do
5883   # Use a header file that comes with gcc, so configuring glibc
5884   # with a fresh cross-compiler works.
5885   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5886   # <limits.h> exists even on freestanding compilers.
5887   # On the NeXT, cc -E runs the code through the compiler's parser,
5888   # not just through cpp. "Syntax error" is here to catch this case.
5889   cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 #ifdef __STDC__
5896 # include <limits.h>
5897 #else
5898 # include <assert.h>
5899 #endif
5900                      Syntax error
5901 _ACEOF
5902 if { (ac_try="$ac_cpp conftest.$ac_ext"
5903 case "(($ac_try" in
5904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905   *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5909   ac_status=$?
5910   grep -v '^ *+' conftest.er1 >conftest.err
5911   rm -f conftest.er1
5912   cat conftest.err >&5
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); } >/dev/null && {
5915          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5916          test ! -s conftest.err
5917        }; then
5918   :
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923   # Broken: fails on valid input.
5924 continue
5925 fi
5926
5927 rm -f conftest.err conftest.$ac_ext
5928
5929   # OK, works on sane cases.  Now check whether nonexistent headers
5930   # can be detected and how.
5931   cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937 #include <ac_nonexistent.h>
5938 _ACEOF
5939 if { (ac_try="$ac_cpp conftest.$ac_ext"
5940 case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5946   ac_status=$?
5947   grep -v '^ *+' conftest.er1 >conftest.err
5948   rm -f conftest.er1
5949   cat conftest.err >&5
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } >/dev/null && {
5952          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5953          test ! -s conftest.err
5954        }; then
5955   # Broken: success on invalid input.
5956 continue
5957 else
5958   echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961   # Passes both tests.
5962 ac_preproc_ok=:
5963 break
5964 fi
5965
5966 rm -f conftest.err conftest.$ac_ext
5967
5968 done
5969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5970 rm -f conftest.err conftest.$ac_ext
5971 if $ac_preproc_ok; then
5972   break
5973 fi
5974
5975     done
5976     ac_cv_prog_CXXCPP=$CXXCPP
5977
5978 fi
5979   CXXCPP=$ac_cv_prog_CXXCPP
5980 else
5981   ac_cv_prog_CXXCPP=$CXXCPP
5982 fi
5983 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5984 echo "${ECHO_T}$CXXCPP" >&6; }
5985 ac_preproc_ok=false
5986 for ac_cxx_preproc_warn_flag in '' yes
5987 do
5988   # Use a header file that comes with gcc, so configuring glibc
5989   # with a fresh cross-compiler works.
5990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5991   # <limits.h> exists even on freestanding compilers.
5992   # On the NeXT, cc -E runs the code through the compiler's parser,
5993   # not just through cpp. "Syntax error" is here to catch this case.
5994   cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 #ifdef __STDC__
6001 # include <limits.h>
6002 #else
6003 # include <assert.h>
6004 #endif
6005                      Syntax error
6006 _ACEOF
6007 if { (ac_try="$ac_cpp conftest.$ac_ext"
6008 case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } >/dev/null && {
6020          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6021          test ! -s conftest.err
6022        }; then
6023   :
6024 else
6025   echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028   # Broken: fails on valid input.
6029 continue
6030 fi
6031
6032 rm -f conftest.err conftest.$ac_ext
6033
6034   # OK, works on sane cases.  Now check whether nonexistent headers
6035   # can be detected and how.
6036   cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 #include <ac_nonexistent.h>
6043 _ACEOF
6044 if { (ac_try="$ac_cpp conftest.$ac_ext"
6045 case "(($ac_try" in
6046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047   *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } >/dev/null && {
6057          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6058          test ! -s conftest.err
6059        }; then
6060   # Broken: success on invalid input.
6061 continue
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066   # Passes both tests.
6067 ac_preproc_ok=:
6068 break
6069 fi
6070
6071 rm -f conftest.err conftest.$ac_ext
6072
6073 done
6074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6075 rm -f conftest.err conftest.$ac_ext
6076 if $ac_preproc_ok; then
6077   :
6078 else
6079   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6080 See \`config.log' for more details." >&5
6081 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6082 See \`config.log' for more details." >&2;}
6083    { (exit 1); exit 1; }; }
6084 fi
6085
6086 ac_ext=cpp
6087 ac_cpp='$CXXCPP $CPPFLAGS'
6088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6091
6092 fi
6093
6094
6095 ac_ext=f
6096 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6097 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6099 if test -n "$ac_tool_prefix"; then
6100   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
6101   do
6102     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_prog_F77+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   if test -n "$F77"; then
6110   ac_cv_prog_F77="$F77" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117   for ac_exec_ext in '' $ac_executable_extensions; do
6118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121     break 2
6122   fi
6123 done
6124 done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 F77=$ac_cv_prog_F77
6130 if test -n "$F77"; then
6131   { echo "$as_me:$LINENO: result: $F77" >&5
6132 echo "${ECHO_T}$F77" >&6; }
6133 else
6134   { echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6; }
6136 fi
6137
6138
6139     test -n "$F77" && break
6140   done
6141 fi
6142 if test -z "$F77"; then
6143   ac_ct_F77=$F77
6144   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6145 do
6146   # Extract the first word of "$ac_prog", so it can be a program name with args.
6147 set dummy $ac_prog; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   if test -n "$ac_ct_F77"; then
6154   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_prog_ac_ct_F77="$ac_prog"
6164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6174 if test -n "$ac_ct_F77"; then
6175   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6176 echo "${ECHO_T}$ac_ct_F77" >&6; }
6177 else
6178   { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6180 fi
6181
6182
6183   test -n "$ac_ct_F77" && break
6184 done
6185
6186   if test "x$ac_ct_F77" = x; then
6187     F77=""
6188   else
6189     case $cross_compiling:$ac_tool_warned in
6190 yes:)
6191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6192 whose name does not start with the host triplet.  If you think this
6193 configuration is useful to you, please write to autoconf@gnu.org." >&5
6194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6195 whose name does not start with the host triplet.  If you think this
6196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199     F77=$ac_ct_F77
6200   fi
6201 fi
6202
6203
6204 # Provide some information about the compiler.
6205 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6206 ac_compiler=`set X $ac_compile; echo $2`
6207 { (ac_try="$ac_compiler --version >&5"
6208 case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213   (eval "$ac_compiler --version >&5") 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }
6217 { (ac_try="$ac_compiler -v >&5"
6218 case "(($ac_try" in
6219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220   *) ac_try_echo=$ac_try;;
6221 esac
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223   (eval "$ac_compiler -v >&5") 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }
6227 { (ac_try="$ac_compiler -V >&5"
6228 case "(($ac_try" in
6229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230   *) ac_try_echo=$ac_try;;
6231 esac
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233   (eval "$ac_compiler -V >&5") 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }
6237 rm -f a.out
6238
6239 # If we don't use `.F' as extension, the preprocessor is not run on the
6240 # input file.  (Note that this only needs to work for GNU compilers.)
6241 ac_save_ext=$ac_ext
6242 ac_ext=F
6243 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6244 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6245 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6246   echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248   cat >conftest.$ac_ext <<_ACEOF
6249       program main
6250 #ifndef __GNUC__
6251        choke me
6252 #endif
6253
6254       end
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6258 case "(($ac_try" in
6259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260   *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263   (eval "$ac_compile") 2>conftest.er1
6264   ac_status=$?
6265   grep -v '^ *+' conftest.er1 >conftest.err
6266   rm -f conftest.er1
6267   cat conftest.err >&5
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); } && {
6270          test -z "$ac_f77_werror_flag" ||
6271          test ! -s conftest.err
6272        } && test -s conftest.$ac_objext; then
6273   ac_compiler_gnu=yes
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278         ac_compiler_gnu=no
6279 fi
6280
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6283
6284 fi
6285 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6286 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6287 ac_ext=$ac_save_ext
6288 ac_test_FFLAGS=${FFLAGS+set}
6289 ac_save_FFLAGS=$FFLAGS
6290 FFLAGS=
6291 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6292 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_f77_g+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   FFLAGS=-g
6297 cat >conftest.$ac_ext <<_ACEOF
6298       program main
6299
6300       end
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6304 case "(($ac_try" in
6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306   *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309   (eval "$ac_compile") 2>conftest.er1
6310   ac_status=$?
6311   grep -v '^ *+' conftest.er1 >conftest.err
6312   rm -f conftest.er1
6313   cat conftest.err >&5
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } && {
6316          test -z "$ac_f77_werror_flag" ||
6317          test ! -s conftest.err
6318        } && test -s conftest.$ac_objext; then
6319   ac_cv_prog_f77_g=yes
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324         ac_cv_prog_f77_g=no
6325 fi
6326
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328
6329 fi
6330 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6331 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6332 if test "$ac_test_FFLAGS" = set; then
6333   FFLAGS=$ac_save_FFLAGS
6334 elif test $ac_cv_prog_f77_g = yes; then
6335   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6336     FFLAGS="-g -O2"
6337   else
6338     FFLAGS="-g"
6339   fi
6340 else
6341   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6342     FFLAGS="-O2"
6343   else
6344     FFLAGS=
6345   fi
6346 fi
6347
6348 G77=`test $ac_compiler_gnu = yes && echo yes`
6349 ac_ext=c
6350 ac_cpp='$CPP $CPPFLAGS'
6351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
6355
6356
6357 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6358
6359 # find the maximum length of command line arguments
6360 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6361 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6362 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365     i=0
6366   teststring="ABCD"
6367
6368   case $build_os in
6369   msdosdjgpp*)
6370     # On DJGPP, this test can blow up pretty badly due to problems in libc
6371     # (any single argument exceeding 2000 bytes causes a buffer overrun
6372     # during glob expansion).  Even if it were fixed, the result of this
6373     # check would be larger than it should be.
6374     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6375     ;;
6376
6377   gnu*)
6378     # Under GNU Hurd, this test is not required because there is
6379     # no limit to the length of command line arguments.
6380     # Libtool will interpret -1 as no limit whatsoever
6381     lt_cv_sys_max_cmd_len=-1;
6382     ;;
6383
6384   cygwin* | mingw*)
6385     # On Win9x/ME, this test blows up -- it succeeds, but takes
6386     # about 5 minutes as the teststring grows exponentially.
6387     # Worse, since 9x/ME are not pre-emptively multitasking,
6388     # you end up with a "frozen" computer, even though with patience
6389     # the test eventually succeeds (with a max line length of 256k).
6390     # Instead, let's just punt: use the minimum linelength reported by
6391     # all of the supported platforms: 8192 (on NT/2K/XP).
6392     lt_cv_sys_max_cmd_len=8192;
6393     ;;
6394
6395   amigaos*)
6396     # On AmigaOS with pdksh, this test takes hours, literally.
6397     # So we just punt and use a minimum line length of 8192.
6398     lt_cv_sys_max_cmd_len=8192;
6399     ;;
6400
6401   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6402     # This has been around since 386BSD, at least.  Likely further.
6403     if test -x /sbin/sysctl; then
6404       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6405     elif test -x /usr/sbin/sysctl; then
6406       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6407     else
6408       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6409     fi
6410     # And add a safety zone
6411     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6412     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6413     ;;
6414
6415   interix*)
6416     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6417     lt_cv_sys_max_cmd_len=196608
6418     ;;
6419
6420   osf*)
6421     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6422     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6423     # nice to cause kernel panics so lets avoid the loop below.
6424     # First set a reasonable default.
6425     lt_cv_sys_max_cmd_len=16384
6426     #
6427     if test -x /sbin/sysconfig; then
6428       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6429         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6430       esac
6431     fi
6432     ;;
6433   sco3.2v5*)
6434     lt_cv_sys_max_cmd_len=102400
6435     ;;
6436   sysv5* | sco5v6* | sysv4.2uw2*)
6437     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6438     if test -n "$kargmax"; then
6439       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6440     else
6441       lt_cv_sys_max_cmd_len=32768
6442     fi
6443     ;;
6444   *)
6445     # If test is not a shell built-in, we'll probably end up computing a
6446     # maximum length that is only half of the actual maximum length, but
6447     # we can't tell.
6448     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6449     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6450                = "XX$teststring") >/dev/null 2>&1 &&
6451             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6452             lt_cv_sys_max_cmd_len=$new_result &&
6453             test $i != 17 # 1/2 MB should be enough
6454     do
6455       i=`expr $i + 1`
6456       teststring=$teststring$teststring
6457     done
6458     teststring=
6459     # Add a significant safety factor because C++ compilers can tack on massive
6460     # amounts of additional arguments before passing them to the linker.
6461     # It appears as though 1/2 is a usable value.
6462     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6463     ;;
6464   esac
6465
6466 fi
6467
6468 if test -n $lt_cv_sys_max_cmd_len ; then
6469   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6470 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6471 else
6472   { echo "$as_me:$LINENO: result: none" >&5
6473 echo "${ECHO_T}none" >&6; }
6474 fi
6475
6476
6477
6478
6479 # Check for command to grab the raw symbol name followed by C symbol from nm.
6480 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6481 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485
6486 # These are sane defaults that work on at least a few old systems.
6487 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6488
6489 # Character class describing NM global symbol codes.
6490 symcode='[BCDEGRST]'
6491
6492 # Regexp to match symbols that can be accessed directly from C.
6493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6494
6495 # Transform an extracted symbol line into a proper C declaration
6496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6497
6498 # Transform an extracted symbol line into symbol name and symbol address
6499 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'"
6500
6501 # Define system-specific variables.
6502 case $host_os in
6503 aix*)
6504   symcode='[BCDT]'
6505   ;;
6506 cygwin* | mingw* | pw32*)
6507   symcode='[ABCDGISTW]'
6508   ;;
6509 hpux*) # Its linker distinguishes data from code symbols
6510   if test "$host_cpu" = ia64; then
6511     symcode='[ABCDEGRST]'
6512   fi
6513   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6514   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'"
6515   ;;
6516 linux*)
6517   if test "$host_cpu" = ia64; then
6518     symcode='[ABCDGIRSTW]'
6519     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6520     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'"
6521   fi
6522   ;;
6523 irix* | nonstopux*)
6524   symcode='[BCDEGRST]'
6525   ;;
6526 osf*)
6527   symcode='[BCDEGQRST]'
6528   ;;
6529 solaris*)
6530   symcode='[BDRT]'
6531   ;;
6532 sco3.2v5*)
6533   symcode='[DT]'
6534   ;;
6535 sysv4.2uw2*)
6536   symcode='[DT]'
6537   ;;
6538 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6539   symcode='[ABDT]'
6540   ;;
6541 sysv4)
6542   symcode='[DFNSTU]'
6543   ;;
6544 esac
6545
6546 # Handle CRLF in mingw tool chain
6547 opt_cr=
6548 case $build_os in
6549 mingw*)
6550   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6551   ;;
6552 esac
6553
6554 # If we're using GNU nm, then use its standard symbol codes.
6555 case `$NM -V 2>&1` in
6556 *GNU* | *'with BFD'*)
6557   symcode='[ABCDGIRSTW]' ;;
6558 esac
6559
6560 # Try without a prefix undercore, then with it.
6561 for ac_symprfx in "" "_"; do
6562
6563   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6564   symxfrm="\\1 $ac_symprfx\\2 \\2"
6565
6566   # Write the raw and C identifiers.
6567   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6568
6569   # Check to see that the pipe works correctly.
6570   pipe_works=no
6571
6572   rm -f conftest*
6573   cat > conftest.$ac_ext <<EOF
6574 #ifdef __cplusplus
6575 extern "C" {
6576 #endif
6577 char nm_test_var;
6578 void nm_test_func(){}
6579 #ifdef __cplusplus
6580 }
6581 #endif
6582 int main(){nm_test_var='a';nm_test_func();return(0);}
6583 EOF
6584
6585   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586   (eval $ac_compile) 2>&5
6587   ac_status=$?
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); }; then
6590     # Now try to grab the symbols.
6591     nlist=conftest.nm
6592     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6593   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } && test -s "$nlist"; then
6597       # Try sorting and uniquifying the output.
6598       if sort "$nlist" | uniq > "$nlist"T; then
6599         mv -f "$nlist"T "$nlist"
6600       else
6601         rm -f "$nlist"T
6602       fi
6603
6604       # Make sure that we snagged all the symbols we need.
6605       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6606         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6607           cat <<EOF > conftest.$ac_ext
6608 #ifdef __cplusplus
6609 extern "C" {
6610 #endif
6611
6612 EOF
6613           # Now generate the symbol file.
6614           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6615
6616           cat <<EOF >> conftest.$ac_ext
6617 #if defined (__STDC__) && __STDC__
6618 # define lt_ptr_t void *
6619 #else
6620 # define lt_ptr_t char *
6621 # define const
6622 #endif
6623
6624 /* The mapping between symbol names and symbols. */
6625 const struct {
6626   const char *name;
6627   lt_ptr_t address;
6628 }
6629 lt_preloaded_symbols[] =
6630 {
6631 EOF
6632           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6633           cat <<\EOF >> conftest.$ac_ext
6634   {0, (lt_ptr_t) 0}
6635 };
6636
6637 #ifdef __cplusplus
6638 }
6639 #endif
6640 EOF
6641           # Now try linking the two files.
6642           mv conftest.$ac_objext conftstm.$ac_objext
6643           lt_save_LIBS="$LIBS"
6644           lt_save_CFLAGS="$CFLAGS"
6645           LIBS="conftstm.$ac_objext"
6646           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6647           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648   (eval $ac_link) 2>&5
6649   ac_status=$?
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6652             pipe_works=yes
6653           fi
6654           LIBS="$lt_save_LIBS"
6655           CFLAGS="$lt_save_CFLAGS"
6656         else
6657           echo "cannot find nm_test_func in $nlist" >&5
6658         fi
6659       else
6660         echo "cannot find nm_test_var in $nlist" >&5
6661       fi
6662     else
6663       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6664     fi
6665   else
6666     echo "$progname: failed program was:" >&5
6667     cat conftest.$ac_ext >&5
6668   fi
6669   rm -f conftest* conftst*
6670
6671   # Do not use the global_symbol_pipe unless it works.
6672   if test "$pipe_works" = yes; then
6673     break
6674   else
6675     lt_cv_sys_global_symbol_pipe=
6676   fi
6677 done
6678
6679 fi
6680
6681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6682   lt_cv_sys_global_symbol_to_cdecl=
6683 fi
6684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6685   { echo "$as_me:$LINENO: result: failed" >&5
6686 echo "${ECHO_T}failed" >&6; }
6687 else
6688   { echo "$as_me:$LINENO: result: ok" >&5
6689 echo "${ECHO_T}ok" >&6; }
6690 fi
6691
6692 { echo "$as_me:$LINENO: checking for objdir" >&5
6693 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6694 if test "${lt_cv_objdir+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   rm -f .libs 2>/dev/null
6698 mkdir .libs 2>/dev/null
6699 if test -d .libs; then
6700   lt_cv_objdir=.libs
6701 else
6702   # MS-DOS does not allow filenames that begin with a dot.
6703   lt_cv_objdir=_libs
6704 fi
6705 rmdir .libs 2>/dev/null
6706 fi
6707 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6708 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6709 objdir=$lt_cv_objdir
6710
6711
6712
6713
6714
6715 case $host_os in
6716 aix3*)
6717   # AIX sometimes has problems with the GCC collect2 program.  For some
6718   # reason, if we set the COLLECT_NAMES environment variable, the problems
6719   # vanish in a puff of smoke.
6720   if test "X${COLLECT_NAMES+set}" != Xset; then
6721     COLLECT_NAMES=
6722     export COLLECT_NAMES
6723   fi
6724   ;;
6725 esac
6726
6727 # Sed substitution that helps us do robust quoting.  It backslashifies
6728 # metacharacters that are still active within double-quoted strings.
6729 Xsed='sed -e 1s/^X//'
6730 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6731
6732 # Same as above, but do not quote variable references.
6733 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6734
6735 # Sed substitution to delay expansion of an escaped shell variable in a
6736 # double_quote_subst'ed string.
6737 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6738
6739 # Sed substitution to avoid accidental globbing in evaled expressions
6740 no_glob_subst='s/\*/\\\*/g'
6741
6742 # Constants:
6743 rm="rm -f"
6744
6745 # Global variables:
6746 default_ofile=libtool
6747 can_build_shared=yes
6748
6749 # All known linkers require a `.a' archive for static linking (except MSVC,
6750 # which needs '.lib').
6751 libext=a
6752 ltmain="$ac_aux_dir/ltmain.sh"
6753 ofile="$default_ofile"
6754 with_gnu_ld="$lt_cv_prog_gnu_ld"
6755
6756 if test -n "$ac_tool_prefix"; then
6757   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}ar; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_prog_AR+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   if test -n "$AR"; then
6765   ac_cv_prog_AR="$AR" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770   IFS=$as_save_IFS
6771   test -z "$as_dir" && as_dir=.
6772   for ac_exec_ext in '' $ac_executable_extensions; do
6773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774     ac_cv_prog_AR="${ac_tool_prefix}ar"
6775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776     break 2
6777   fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 AR=$ac_cv_prog_AR
6785 if test -n "$AR"; then
6786   { echo "$as_me:$LINENO: result: $AR" >&5
6787 echo "${ECHO_T}$AR" >&6; }
6788 else
6789   { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6791 fi
6792
6793
6794 fi
6795 if test -z "$ac_cv_prog_AR"; then
6796   ac_ct_AR=$AR
6797   # Extract the first word of "ar", so it can be a program name with args.
6798 set dummy ar; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6802   echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804   if test -n "$ac_ct_AR"; then
6805   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810   IFS=$as_save_IFS
6811   test -z "$as_dir" && as_dir=.
6812   for ac_exec_ext in '' $ac_executable_extensions; do
6813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814     ac_cv_prog_ac_ct_AR="ar"
6815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816     break 2
6817   fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6825 if test -n "$ac_ct_AR"; then
6826   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6827 echo "${ECHO_T}$ac_ct_AR" >&6; }
6828 else
6829   { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6831 fi
6832
6833   if test "x$ac_ct_AR" = x; then
6834     AR="false"
6835   else
6836     case $cross_compiling:$ac_tool_warned in
6837 yes:)
6838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6839 whose name does not start with the host triplet.  If you think this
6840 configuration is useful to you, please write to autoconf@gnu.org." >&5
6841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6842 whose name does not start with the host triplet.  If you think this
6843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6844 ac_tool_warned=yes ;;
6845 esac
6846     AR=$ac_ct_AR
6847   fi
6848 else
6849   AR="$ac_cv_prog_AR"
6850 fi
6851
6852 if test -n "$ac_tool_prefix"; then
6853   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_prog_RANLIB+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   if test -n "$RANLIB"; then
6861   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866   IFS=$as_save_IFS
6867   test -z "$as_dir" && as_dir=.
6868   for ac_exec_ext in '' $ac_executable_extensions; do
6869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872     break 2
6873   fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi
6879 fi
6880 RANLIB=$ac_cv_prog_RANLIB
6881 if test -n "$RANLIB"; then
6882   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6883 echo "${ECHO_T}$RANLIB" >&6; }
6884 else
6885   { echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6; }
6887 fi
6888
6889
6890 fi
6891 if test -z "$ac_cv_prog_RANLIB"; then
6892   ac_ct_RANLIB=$RANLIB
6893   # Extract the first word of "ranlib", so it can be a program name with args.
6894 set dummy ranlib; ac_word=$2
6895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900   if test -n "$ac_ct_RANLIB"; then
6901   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906   IFS=$as_save_IFS
6907   test -z "$as_dir" && as_dir=.
6908   for ac_exec_ext in '' $ac_executable_extensions; do
6909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910     ac_cv_prog_ac_ct_RANLIB="ranlib"
6911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912     break 2
6913   fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6921 if test -n "$ac_ct_RANLIB"; then
6922   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6923 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6924 else
6925   { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6927 fi
6928
6929   if test "x$ac_ct_RANLIB" = x; then
6930     RANLIB=":"
6931   else
6932     case $cross_compiling:$ac_tool_warned in
6933 yes:)
6934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6935 whose name does not start with the host triplet.  If you think this
6936 configuration is useful to you, please write to autoconf@gnu.org." >&5
6937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6938 whose name does not start with the host triplet.  If you think this
6939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6940 ac_tool_warned=yes ;;
6941 esac
6942     RANLIB=$ac_ct_RANLIB
6943   fi
6944 else
6945   RANLIB="$ac_cv_prog_RANLIB"
6946 fi
6947
6948 if test -n "$ac_tool_prefix"; then
6949   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}strip; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_prog_STRIP+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   if test -n "$STRIP"; then
6957   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   for ac_exec_ext in '' $ac_executable_extensions; do
6965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 STRIP=$ac_cv_prog_STRIP
6977 if test -n "$STRIP"; then
6978   { echo "$as_me:$LINENO: result: $STRIP" >&5
6979 echo "${ECHO_T}$STRIP" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_STRIP"; then
6988   ac_ct_STRIP=$STRIP
6989   # Extract the first word of "strip", so it can be a program name with args.
6990 set dummy strip; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   if test -n "$ac_ct_STRIP"; then
6997   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004   for ac_exec_ext in '' $ac_executable_extensions; do
7005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006     ac_cv_prog_ac_ct_STRIP="strip"
7007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7017 if test -n "$ac_ct_STRIP"; then
7018   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7019 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7020 else
7021   { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7023 fi
7024
7025   if test "x$ac_ct_STRIP" = x; then
7026     STRIP=":"
7027   else
7028     case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7031 whose name does not start with the host triplet.  If you think this
7032 configuration is useful to you, please write to autoconf@gnu.org." >&5
7033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7034 whose name does not start with the host triplet.  If you think this
7035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7036 ac_tool_warned=yes ;;
7037 esac
7038     STRIP=$ac_ct_STRIP
7039   fi
7040 else
7041   STRIP="$ac_cv_prog_STRIP"
7042 fi
7043
7044
7045 old_CC="$CC"
7046 old_CFLAGS="$CFLAGS"
7047
7048 # Set sane defaults for various variables
7049 test -z "$AR" && AR=ar
7050 test -z "$AR_FLAGS" && AR_FLAGS=cru
7051 test -z "$AS" && AS=as
7052 test -z "$CC" && CC=cc
7053 test -z "$LTCC" && LTCC=$CC
7054 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7055 test -z "$DLLTOOL" && DLLTOOL=dlltool
7056 test -z "$LD" && LD=ld
7057 test -z "$LN_S" && LN_S="ln -s"
7058 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7059 test -z "$NM" && NM=nm
7060 test -z "$SED" && SED=sed
7061 test -z "$OBJDUMP" && OBJDUMP=objdump
7062 test -z "$RANLIB" && RANLIB=:
7063 test -z "$STRIP" && STRIP=:
7064 test -z "$ac_objext" && ac_objext=o
7065
7066 # Determine commands to create old-style static archives.
7067 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7068 old_postinstall_cmds='chmod 644 $oldlib'
7069 old_postuninstall_cmds=
7070
7071 if test -n "$RANLIB"; then
7072   case $host_os in
7073   openbsd*)
7074     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7075     ;;
7076   *)
7077     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7078     ;;
7079   esac
7080   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7081 fi
7082
7083 for cc_temp in $compiler""; do
7084   case $cc_temp in
7085     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7086     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7087     \-*) ;;
7088     *) break;;
7089   esac
7090 done
7091 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7092
7093
7094 # Only perform the check for file, if the check method requires it
7095 case $deplibs_check_method in
7096 file_magic*)
7097   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7098     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7099 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7100 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   case $MAGIC_CMD in
7104 [\\/*] |  ?:[\\/]*)
7105   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7106   ;;
7107 *)
7108   lt_save_MAGIC_CMD="$MAGIC_CMD"
7109   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7110   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7111   for ac_dir in $ac_dummy; do
7112     IFS="$lt_save_ifs"
7113     test -z "$ac_dir" && ac_dir=.
7114     if test -f $ac_dir/${ac_tool_prefix}file; then
7115       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7116       if test -n "$file_magic_test_file"; then
7117         case $deplibs_check_method in
7118         "file_magic "*)
7119           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7120           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7121           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7122             $EGREP "$file_magic_regex" > /dev/null; then
7123             :
7124           else
7125             cat <<EOF 1>&2
7126
7127 *** Warning: the command libtool uses to detect shared libraries,
7128 *** $file_magic_cmd, produces output that libtool cannot recognize.
7129 *** The result is that libtool may fail to recognize shared libraries
7130 *** as such.  This will affect the creation of libtool libraries that
7131 *** depend on shared libraries, but programs linked with such libtool
7132 *** libraries will work regardless of this problem.  Nevertheless, you
7133 *** may want to report the problem to your system manager and/or to
7134 *** bug-libtool@gnu.org
7135
7136 EOF
7137           fi ;;
7138         esac
7139       fi
7140       break
7141     fi
7142   done
7143   IFS="$lt_save_ifs"
7144   MAGIC_CMD="$lt_save_MAGIC_CMD"
7145   ;;
7146 esac
7147 fi
7148
7149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7150 if test -n "$MAGIC_CMD"; then
7151   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7152 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7153 else
7154   { echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6; }
7156 fi
7157
7158 if test -z "$lt_cv_path_MAGIC_CMD"; then
7159   if test -n "$ac_tool_prefix"; then
7160     { echo "$as_me:$LINENO: checking for file" >&5
7161 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165   case $MAGIC_CMD in
7166 [\\/*] |  ?:[\\/]*)
7167   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7168   ;;
7169 *)
7170   lt_save_MAGIC_CMD="$MAGIC_CMD"
7171   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7172   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7173   for ac_dir in $ac_dummy; do
7174     IFS="$lt_save_ifs"
7175     test -z "$ac_dir" && ac_dir=.
7176     if test -f $ac_dir/file; then
7177       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7178       if test -n "$file_magic_test_file"; then
7179         case $deplibs_check_method in
7180         "file_magic "*)
7181           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7182           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7184             $EGREP "$file_magic_regex" > /dev/null; then
7185             :
7186           else
7187             cat <<EOF 1>&2
7188
7189 *** Warning: the command libtool uses to detect shared libraries,
7190 *** $file_magic_cmd, produces output that libtool cannot recognize.
7191 *** The result is that libtool may fail to recognize shared libraries
7192 *** as such.  This will affect the creation of libtool libraries that
7193 *** depend on shared libraries, but programs linked with such libtool
7194 *** libraries will work regardless of this problem.  Nevertheless, you
7195 *** may want to report the problem to your system manager and/or to
7196 *** bug-libtool@gnu.org
7197
7198 EOF
7199           fi ;;
7200         esac
7201       fi
7202       break
7203     fi
7204   done
7205   IFS="$lt_save_ifs"
7206   MAGIC_CMD="$lt_save_MAGIC_CMD"
7207   ;;
7208 esac
7209 fi
7210
7211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212 if test -n "$MAGIC_CMD"; then
7213   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7214 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7215 else
7216   { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7218 fi
7219
7220   else
7221     MAGIC_CMD=:
7222   fi
7223 fi
7224
7225   fi
7226   ;;
7227 esac
7228
7229 enable_dlopen=yes
7230 enable_win32_dll=no
7231
7232 # Check whether --enable-libtool-lock was given.
7233 if test "${enable_libtool_lock+set}" = set; then
7234   enableval=$enable_libtool_lock;
7235 fi
7236
7237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7238
7239
7240 # Check whether --with-pic was given.
7241 if test "${with_pic+set}" = set; then
7242   withval=$with_pic; pic_mode="$withval"
7243 else
7244   pic_mode=default
7245 fi
7246
7247 test -z "$pic_mode" && pic_mode=default
7248
7249 # Use C for the default configuration in the libtool script
7250 tagname=
7251 lt_save_CC="$CC"
7252 ac_ext=c
7253 ac_cpp='$CPP $CPPFLAGS'
7254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257
7258
7259 # Source file extension for C test sources.
7260 ac_ext=c
7261
7262 # Object file extension for compiled C test sources.
7263 objext=o
7264 objext=$objext
7265
7266 # Code to be used in simple compile tests
7267 lt_simple_compile_test_code="int some_variable = 0;\n"
7268
7269 # Code to be used in simple link tests
7270 lt_simple_link_test_code='int main(){return(0);}\n'
7271
7272
7273 # If no C compiler was specified, use CC.
7274 LTCC=${LTCC-"$CC"}
7275
7276 # If no C compiler flags were specified, use CFLAGS.
7277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7278
7279 # Allow CC to be a program name with arguments.
7280 compiler=$CC
7281
7282
7283 # save warnings/boilerplate of simple test code
7284 ac_outfile=conftest.$ac_objext
7285 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7286 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7287 _lt_compiler_boilerplate=`cat conftest.err`
7288 $rm conftest*
7289
7290 ac_outfile=conftest.$ac_objext
7291 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7292 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7293 _lt_linker_boilerplate=`cat conftest.err`
7294 $rm conftest*
7295
7296
7297 ## CAVEAT EMPTOR:
7298 ## There is no encapsulation within the following macros, do not change
7299 ## the running order or otherwise move them around unless you know exactly
7300 ## what you are doing...
7301
7302 lt_prog_compiler_no_builtin_flag=
7303
7304 if test "$GCC" = yes; then
7305   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7306
7307
7308 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7309 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7310 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   lt_cv_prog_compiler_rtti_exceptions=no
7314   ac_outfile=conftest.$ac_objext
7315    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7316    lt_compiler_flag="-fno-rtti -fno-exceptions"
7317    # Insert the option either (1) after the last *FLAGS variable, or
7318    # (2) before a word containing "conftest.", or (3) at the end.
7319    # Note that $ac_compile itself does not contain backslashes and begins
7320    # with a dollar sign (not a hyphen), so the echo should work correctly.
7321    # The option is referenced via a variable to avoid confusing sed.
7322    lt_compile=`echo "$ac_compile" | $SED \
7323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7325    -e 's:$: $lt_compiler_flag:'`
7326    (eval echo "\"\$as_me:7326: $lt_compile\"" >&5)
7327    (eval "$lt_compile" 2>conftest.err)
7328    ac_status=$?
7329    cat conftest.err >&5
7330    echo "$as_me:7330: \$? = $ac_status" >&5
7331    if (exit $ac_status) && test -s "$ac_outfile"; then
7332      # The compiler can only warn and ignore the option if not recognized
7333      # So say no if there are warnings other than the usual output.
7334      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7335      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7336      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7337        lt_cv_prog_compiler_rtti_exceptions=yes
7338      fi
7339    fi
7340    $rm conftest*
7341
7342 fi
7343 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7344 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7345
7346 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7347     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7348 else
7349     :
7350 fi
7351
7352 fi
7353
7354 lt_prog_compiler_wl=
7355 lt_prog_compiler_pic=
7356 lt_prog_compiler_static=
7357
7358 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7359 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7360
7361   if test "$GCC" = yes; then
7362     lt_prog_compiler_wl='-Wl,'
7363     lt_prog_compiler_static='-static'
7364
7365     case $host_os in
7366       aix*)
7367       # All AIX code is PIC.
7368       if test "$host_cpu" = ia64; then
7369         # AIX 5 now supports IA64 processor
7370         lt_prog_compiler_static='-Bstatic'
7371       fi
7372       ;;
7373
7374     amigaos*)
7375       # FIXME: we need at least 68020 code to build shared libraries, but
7376       # adding the `-m68020' flag to GCC prevents building anything better,
7377       # like `-m68040'.
7378       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7379       ;;
7380
7381     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7382       # PIC is the default for these OSes.
7383       ;;
7384
7385     mingw* | pw32* | os2*)
7386       # This hack is so that the source file can tell whether it is being
7387       # built for inclusion in a dll (and should export symbols for example).
7388       lt_prog_compiler_pic='-DDLL_EXPORT'
7389       ;;
7390
7391     darwin* | rhapsody*)
7392       # PIC is the default on this platform
7393       # Common symbols not allowed in MH_DYLIB files
7394       lt_prog_compiler_pic='-fno-common'
7395       ;;
7396
7397     interix3*)
7398       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7399       # Instead, we relocate shared libraries at runtime.
7400       ;;
7401
7402     msdosdjgpp*)
7403       # Just because we use GCC doesn't mean we suddenly get shared libraries
7404       # on systems that don't support them.
7405       lt_prog_compiler_can_build_shared=no
7406       enable_shared=no
7407       ;;
7408
7409     sysv4*MP*)
7410       if test -d /usr/nec; then
7411         lt_prog_compiler_pic=-Kconform_pic
7412       fi
7413       ;;
7414
7415     hpux*)
7416       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7417       # not for PA HP-UX.
7418       case $host_cpu in
7419       hppa*64*|ia64*)
7420         # +Z the default
7421         ;;
7422       *)
7423         lt_prog_compiler_pic='-fPIC'
7424         ;;
7425       esac
7426       ;;
7427
7428     *)
7429       lt_prog_compiler_pic='-fPIC'
7430       ;;
7431     esac
7432   else
7433     # PORTME Check for flag to pass linker flags through the system compiler.
7434     case $host_os in
7435     aix*)
7436       lt_prog_compiler_wl='-Wl,'
7437       if test "$host_cpu" = ia64; then
7438         # AIX 5 now supports IA64 processor
7439         lt_prog_compiler_static='-Bstatic'
7440       else
7441         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7442       fi
7443       ;;
7444       darwin*)
7445         # PIC is the default on this platform
7446         # Common symbols not allowed in MH_DYLIB files
7447        case $cc_basename in
7448          xlc*)
7449          lt_prog_compiler_pic='-qnocommon'
7450          lt_prog_compiler_wl='-Wl,'
7451          ;;
7452        esac
7453        ;;
7454
7455     mingw* | pw32* | os2*)
7456       # This hack is so that the source file can tell whether it is being
7457       # built for inclusion in a dll (and should export symbols for example).
7458       lt_prog_compiler_pic='-DDLL_EXPORT'
7459       ;;
7460
7461     hpux9* | hpux10* | hpux11*)
7462       lt_prog_compiler_wl='-Wl,'
7463       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7464       # not for PA HP-UX.
7465       case $host_cpu in
7466       hppa*64*|ia64*)
7467         # +Z the default
7468         ;;
7469       *)
7470         lt_prog_compiler_pic='+Z'
7471         ;;
7472       esac
7473       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7474       lt_prog_compiler_static='${wl}-a ${wl}archive'
7475       ;;
7476
7477     irix5* | irix6* | nonstopux*)
7478       lt_prog_compiler_wl='-Wl,'
7479       # PIC (with -KPIC) is the default.
7480       lt_prog_compiler_static='-non_shared'
7481       ;;
7482
7483     newsos6)
7484       lt_prog_compiler_pic='-KPIC'
7485       lt_prog_compiler_static='-Bstatic'
7486       ;;
7487
7488     linux*)
7489       case $cc_basename in
7490       icc* | ecc*)
7491         lt_prog_compiler_wl='-Wl,'
7492         lt_prog_compiler_pic='-KPIC'
7493         lt_prog_compiler_static='-static'
7494         ;;
7495       pgcc* | pgf77* | pgf90* | pgf95*)
7496         # Portland Group compilers (*not* the Pentium gcc compiler,
7497         # which looks to be a dead project)
7498         lt_prog_compiler_wl='-Wl,'
7499         lt_prog_compiler_pic='-fpic'
7500         lt_prog_compiler_static='-Bstatic'
7501         ;;
7502       ccc*)
7503         lt_prog_compiler_wl='-Wl,'
7504         # All Alpha code is PIC.
7505         lt_prog_compiler_static='-non_shared'
7506         ;;
7507       esac
7508       ;;
7509
7510     osf3* | osf4* | osf5*)
7511       lt_prog_compiler_wl='-Wl,'
7512       # All OSF/1 code is PIC.
7513       lt_prog_compiler_static='-non_shared'
7514       ;;
7515
7516     solaris*)
7517       lt_prog_compiler_pic='-KPIC'
7518       lt_prog_compiler_static='-Bstatic'
7519       case $cc_basename in
7520       f77* | f90* | f95*)
7521         lt_prog_compiler_wl='-Qoption ld ';;
7522       *)
7523         lt_prog_compiler_wl='-Wl,';;
7524       esac
7525       ;;
7526
7527     sunos4*)
7528       lt_prog_compiler_wl='-Qoption ld '
7529       lt_prog_compiler_pic='-PIC'
7530       lt_prog_compiler_static='-Bstatic'
7531       ;;
7532
7533     sysv4 | sysv4.2uw2* | sysv4.3*)
7534       lt_prog_compiler_wl='-Wl,'
7535       lt_prog_compiler_pic='-KPIC'
7536       lt_prog_compiler_static='-Bstatic'
7537       ;;
7538
7539     sysv4*MP*)
7540       if test -d /usr/nec ;then
7541         lt_prog_compiler_pic='-Kconform_pic'
7542         lt_prog_compiler_static='-Bstatic'
7543       fi
7544       ;;
7545
7546     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7547       lt_prog_compiler_wl='-Wl,'
7548       lt_prog_compiler_pic='-KPIC'
7549       lt_prog_compiler_static='-Bstatic'
7550       ;;
7551
7552     unicos*)
7553       lt_prog_compiler_wl='-Wl,'
7554       lt_prog_compiler_can_build_shared=no
7555       ;;
7556
7557     uts4*)
7558       lt_prog_compiler_pic='-pic'
7559       lt_prog_compiler_static='-Bstatic'
7560       ;;
7561
7562     *)
7563       lt_prog_compiler_can_build_shared=no
7564       ;;
7565     esac
7566   fi
7567
7568 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7569 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7570
7571 #
7572 # Check to make sure the PIC flag actually works.
7573 #
7574 if test -n "$lt_prog_compiler_pic"; then
7575
7576 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7577 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7578 if test "${lt_prog_compiler_pic_works+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   lt_prog_compiler_pic_works=no
7582   ac_outfile=conftest.$ac_objext
7583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7584    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7585    # Insert the option either (1) after the last *FLAGS variable, or
7586    # (2) before a word containing "conftest.", or (3) at the end.
7587    # Note that $ac_compile itself does not contain backslashes and begins
7588    # with a dollar sign (not a hyphen), so the echo should work correctly.
7589    # The option is referenced via a variable to avoid confusing sed.
7590    lt_compile=`echo "$ac_compile" | $SED \
7591    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7593    -e 's:$: $lt_compiler_flag:'`
7594    (eval echo "\"\$as_me:7594: $lt_compile\"" >&5)
7595    (eval "$lt_compile" 2>conftest.err)
7596    ac_status=$?
7597    cat conftest.err >&5
7598    echo "$as_me:7598: \$? = $ac_status" >&5
7599    if (exit $ac_status) && test -s "$ac_outfile"; then
7600      # The compiler can only warn and ignore the option if not recognized
7601      # So say no if there are warnings other than the usual output.
7602      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7603      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7604      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7605        lt_prog_compiler_pic_works=yes
7606      fi
7607    fi
7608    $rm conftest*
7609
7610 fi
7611 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7612 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7613
7614 if test x"$lt_prog_compiler_pic_works" = xyes; then
7615     case $lt_prog_compiler_pic in
7616      "" | " "*) ;;
7617      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7618      esac
7619 else
7620     lt_prog_compiler_pic=
7621      lt_prog_compiler_can_build_shared=no
7622 fi
7623
7624 fi
7625 case $host_os in
7626   # For platforms which do not support PIC, -DPIC is meaningless:
7627   *djgpp*)
7628     lt_prog_compiler_pic=
7629     ;;
7630   *)
7631     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7632     ;;
7633 esac
7634
7635 #
7636 # Check to make sure the static flag actually works.
7637 #
7638 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7639 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7640 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7641 if test "${lt_prog_compiler_static_works+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   lt_prog_compiler_static_works=no
7645    save_LDFLAGS="$LDFLAGS"
7646    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7647    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7648    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7649      # The linker can only warn and ignore the option if not recognized
7650      # So say no if there are warnings
7651      if test -s conftest.err; then
7652        # Append any errors to the config.log.
7653        cat conftest.err 1>&5
7654        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7655        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7656        if diff conftest.exp conftest.er2 >/dev/null; then
7657          lt_prog_compiler_static_works=yes
7658        fi
7659      else
7660        lt_prog_compiler_static_works=yes
7661      fi
7662    fi
7663    $rm conftest*
7664    LDFLAGS="$save_LDFLAGS"
7665
7666 fi
7667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7668 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7669
7670 if test x"$lt_prog_compiler_static_works" = xyes; then
7671     :
7672 else
7673     lt_prog_compiler_static=
7674 fi
7675
7676
7677 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7678 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7679 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   lt_cv_prog_compiler_c_o=no
7683    $rm -r conftest 2>/dev/null
7684    mkdir conftest
7685    cd conftest
7686    mkdir out
7687    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7688
7689    lt_compiler_flag="-o out/conftest2.$ac_objext"
7690    # Insert the option either (1) after the last *FLAGS variable, or
7691    # (2) before a word containing "conftest.", or (3) at the end.
7692    # Note that $ac_compile itself does not contain backslashes and begins
7693    # with a dollar sign (not a hyphen), so the echo should work correctly.
7694    lt_compile=`echo "$ac_compile" | $SED \
7695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7697    -e 's:$: $lt_compiler_flag:'`
7698    (eval echo "\"\$as_me:7698: $lt_compile\"" >&5)
7699    (eval "$lt_compile" 2>out/conftest.err)
7700    ac_status=$?
7701    cat out/conftest.err >&5
7702    echo "$as_me:7702: \$? = $ac_status" >&5
7703    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7704    then
7705      # The compiler can only warn and ignore the option if not recognized
7706      # So say no if there are warnings
7707      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7708      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7709      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7710        lt_cv_prog_compiler_c_o=yes
7711      fi
7712    fi
7713    chmod u+w . 2>&5
7714    $rm conftest*
7715    # SGI C++ compiler will create directory out/ii_files/ for
7716    # template instantiation
7717    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7718    $rm out/* && rmdir out
7719    cd ..
7720    rmdir conftest
7721    $rm conftest*
7722
7723 fi
7724 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7725 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7726
7727
7728 hard_links="nottested"
7729 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7730   # do not overwrite the value of need_locks provided by the user
7731   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7732 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7733   hard_links=yes
7734   $rm conftest*
7735   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7736   touch conftest.a
7737   ln conftest.a conftest.b 2>&5 || hard_links=no
7738   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7739   { echo "$as_me:$LINENO: result: $hard_links" >&5
7740 echo "${ECHO_T}$hard_links" >&6; }
7741   if test "$hard_links" = no; then
7742     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7743 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7744     need_locks=warn
7745   fi
7746 else
7747   need_locks=no
7748 fi
7749
7750 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7751 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7752
7753   runpath_var=
7754   allow_undefined_flag=
7755   enable_shared_with_static_runtimes=no
7756   archive_cmds=
7757   archive_expsym_cmds=
7758   old_archive_From_new_cmds=
7759   old_archive_from_expsyms_cmds=
7760   export_dynamic_flag_spec=
7761   whole_archive_flag_spec=
7762   thread_safe_flag_spec=
7763   hardcode_libdir_flag_spec=
7764   hardcode_libdir_flag_spec_ld=
7765   hardcode_libdir_separator=
7766   hardcode_direct=no
7767   hardcode_minus_L=no
7768   hardcode_shlibpath_var=unsupported
7769   link_all_deplibs=unknown
7770   hardcode_automatic=no
7771   module_cmds=
7772   module_expsym_cmds=
7773   always_export_symbols=no
7774   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7775   # include_expsyms should be a list of space-separated symbols to be *always*
7776   # included in the symbol list
7777   include_expsyms=
7778   # exclude_expsyms can be an extended regexp of symbols to exclude
7779   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7780   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7781   # as well as any symbol that contains `d'.
7782   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7783   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7784   # platforms (ab)use it in PIC code, but their linkers get confused if
7785   # the symbol is explicitly referenced.  Since portable code cannot
7786   # rely on this symbol name, it's probably fine to never include it in
7787   # preloaded symbol tables.
7788   extract_expsyms_cmds=
7789   # Just being paranoid about ensuring that cc_basename is set.
7790   for cc_temp in $compiler""; do
7791   case $cc_temp in
7792     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7793     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7794     \-*) ;;
7795     *) break;;
7796   esac
7797 done
7798 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7799
7800   case $host_os in
7801   cygwin* | mingw* | pw32*)
7802     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7803     # When not using gcc, we currently assume that we are using
7804     # Microsoft Visual C++.
7805     if test "$GCC" != yes; then
7806       with_gnu_ld=no
7807     fi
7808     ;;
7809   interix*)
7810     # we just hope/assume this is gcc and not c89 (= MSVC++)
7811     with_gnu_ld=yes
7812     ;;
7813   openbsd*)
7814     with_gnu_ld=no
7815     ;;
7816   esac
7817
7818   ld_shlibs=yes
7819   if test "$with_gnu_ld" = yes; then
7820     # If archive_cmds runs LD, not CC, wlarc should be empty
7821     wlarc='${wl}'
7822
7823     # Set some defaults for GNU ld with shared library support. These
7824     # are reset later if shared libraries are not supported. Putting them
7825     # here allows them to be overridden if necessary.
7826     runpath_var=LD_RUN_PATH
7827     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7828     export_dynamic_flag_spec='${wl}--export-dynamic'
7829     # ancient GNU ld didn't support --whole-archive et. al.
7830     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7831         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7832       else
7833         whole_archive_flag_spec=
7834     fi
7835     supports_anon_versioning=no
7836     case `$LD -v 2>/dev/null` in
7837       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7838       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7839       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7840       *\ 2.11.*) ;; # other 2.11 versions
7841       *) supports_anon_versioning=yes ;;
7842     esac
7843
7844     # See if GNU ld supports shared libraries.
7845     case $host_os in
7846     aix3* | aix4* | aix5*)
7847       # On AIX/PPC, the GNU linker is very broken
7848       if test "$host_cpu" != ia64; then
7849         ld_shlibs=no
7850         cat <<EOF 1>&2
7851
7852 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7853 *** to be unable to reliably create shared libraries on AIX.
7854 *** Therefore, libtool is disabling shared libraries support.  If you
7855 *** really care for shared libraries, you may want to modify your PATH
7856 *** so that a non-GNU linker is found, and then restart.
7857
7858 EOF
7859       fi
7860       ;;
7861
7862     amigaos*)
7863       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)'
7864       hardcode_libdir_flag_spec='-L$libdir'
7865       hardcode_minus_L=yes
7866
7867       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7868       # that the semantics of dynamic libraries on AmigaOS, at least up
7869       # to version 4, is to share data among multiple programs linked
7870       # with the same dynamic library.  Since this doesn't match the
7871       # behavior of shared libraries on other platforms, we can't use
7872       # them.
7873       ld_shlibs=no
7874       ;;
7875
7876     beos*)
7877       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7878         allow_undefined_flag=unsupported
7879         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7880         # support --undefined.  This deserves some investigation.  FIXME
7881         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7882       else
7883         ld_shlibs=no
7884       fi
7885       ;;
7886
7887     cygwin* | mingw* | pw32*)
7888       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7889       # as there is no search path for DLLs.
7890       hardcode_libdir_flag_spec='-L$libdir'
7891       allow_undefined_flag=unsupported
7892       always_export_symbols=no
7893       enable_shared_with_static_runtimes=yes
7894       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7895
7896       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7897         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7898         # If the export-symbols file already is a .def file (1st line
7899         # is EXPORTS), use it as is; otherwise, prepend...
7900         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7901           cp $export_symbols $output_objdir/$soname.def;
7902         else
7903           echo EXPORTS > $output_objdir/$soname.def;
7904           cat $export_symbols >> $output_objdir/$soname.def;
7905         fi~
7906         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7907       else
7908         ld_shlibs=no
7909       fi
7910       ;;
7911
7912     interix3*)
7913       hardcode_direct=no
7914       hardcode_shlibpath_var=no
7915       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7916       export_dynamic_flag_spec='${wl}-E'
7917       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7918       # Instead, shared libraries are loaded at an image base (0x10000000 by
7919       # default) and relocated if they conflict, which is a slow very memory
7920       # consuming and fragmenting process.  To avoid this, we pick a random,
7921       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7922       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7923       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7924       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'
7925       ;;
7926
7927     linux*)
7928       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7929         tmp_addflag=
7930         case $cc_basename,$host_cpu in
7931         pgcc*)                          # Portland Group C compiler
7932           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'
7933           tmp_addflag=' $pic_flag'
7934           ;;
7935         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7936           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'
7937           tmp_addflag=' $pic_flag -Mnomain' ;;
7938         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7939           tmp_addflag=' -i_dynamic' ;;
7940         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7941           tmp_addflag=' -i_dynamic -nofor_main' ;;
7942         ifc* | ifort*)                  # Intel Fortran compiler
7943           tmp_addflag=' -nofor_main' ;;
7944         esac
7945         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7946
7947         if test $supports_anon_versioning = yes; then
7948           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7949   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7950   $echo "local: *; };" >> $output_objdir/$libname.ver~
7951           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7952         fi
7953       else
7954         ld_shlibs=no
7955       fi
7956       ;;
7957
7958     netbsd*)
7959       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7960         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7961         wlarc=
7962       else
7963         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7964         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7965       fi
7966       ;;
7967
7968     solaris*)
7969       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7970         ld_shlibs=no
7971         cat <<EOF 1>&2
7972
7973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7974 *** create shared libraries on Solaris systems.  Therefore, libtool
7975 *** is disabling shared libraries support.  We urge you to upgrade GNU
7976 *** binutils to release 2.9.1 or newer.  Another option is to modify
7977 *** your PATH or compiler configuration so that the native linker is
7978 *** used, and then restart.
7979
7980 EOF
7981       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7982         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7983         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7984       else
7985         ld_shlibs=no
7986       fi
7987       ;;
7988
7989     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7990       case `$LD -v 2>&1` in
7991         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7992         ld_shlibs=no
7993         cat <<_LT_EOF 1>&2
7994
7995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7996 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7997 *** is disabling shared libraries support.  We urge you to upgrade GNU
7998 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7999 *** your PATH or compiler configuration so that the native linker is
8000 *** used, and then restart.
8001
8002 _LT_EOF
8003         ;;
8004         *)
8005           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8006             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8007             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8008             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8009           else
8010             ld_shlibs=no
8011           fi
8012         ;;
8013       esac
8014       ;;
8015
8016     sunos4*)
8017       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8018       wlarc=
8019       hardcode_direct=yes
8020       hardcode_shlibpath_var=no
8021       ;;
8022
8023     *)
8024       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8025         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8026         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8027       else
8028         ld_shlibs=no
8029       fi
8030       ;;
8031     esac
8032
8033     if test "$ld_shlibs" = no; then
8034       runpath_var=
8035       hardcode_libdir_flag_spec=
8036       export_dynamic_flag_spec=
8037       whole_archive_flag_spec=
8038     fi
8039   else
8040     # PORTME fill in a description of your system's linker (not GNU ld)
8041     case $host_os in
8042     aix3*)
8043       allow_undefined_flag=unsupported
8044       always_export_symbols=yes
8045       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'
8046       # Note: this linker hardcodes the directories in LIBPATH if there
8047       # are no directories specified by -L.
8048       hardcode_minus_L=yes
8049       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8050         # Neither direct hardcoding nor static linking is supported with a
8051         # broken collect2.
8052         hardcode_direct=unsupported
8053       fi
8054       ;;
8055
8056     aix4* | aix5*)
8057       if test "$host_cpu" = ia64; then
8058         # On IA64, the linker does run time linking by default, so we don't
8059         # have to do anything special.
8060         aix_use_runtimelinking=no
8061         exp_sym_flag='-Bexport'
8062         no_entry_flag=""
8063       else
8064         # If we're using GNU nm, then we don't want the "-C" option.
8065         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8066         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8067           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'
8068         else
8069           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'
8070         fi
8071         aix_use_runtimelinking=no
8072
8073         # Test if we are trying to use run time linking or normal
8074         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8075         # need to do runtime linking.
8076         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8077           for ld_flag in $LDFLAGS; do
8078           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8079             aix_use_runtimelinking=yes
8080             break
8081           fi
8082           done
8083           ;;
8084         esac
8085
8086         exp_sym_flag='-bexport'
8087         no_entry_flag='-bnoentry'
8088       fi
8089
8090       # When large executables or shared objects are built, AIX ld can
8091       # have problems creating the table of contents.  If linking a library
8092       # or program results in "error TOC overflow" add -mminimal-toc to
8093       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8094       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8095
8096       archive_cmds=''
8097       hardcode_direct=yes
8098       hardcode_libdir_separator=':'
8099       link_all_deplibs=yes
8100
8101       if test "$GCC" = yes; then
8102         case $host_os in aix4.[012]|aix4.[012].*)
8103         # We only want to do this on AIX 4.2 and lower, the check
8104         # below for broken collect2 doesn't work under 4.3+
8105           collect2name=`${CC} -print-prog-name=collect2`
8106           if test -f "$collect2name" && \
8107            strings "$collect2name" | grep resolve_lib_name >/dev/null
8108           then
8109           # We have reworked collect2
8110           hardcode_direct=yes
8111           else
8112           # We have old collect2
8113           hardcode_direct=unsupported
8114           # It fails to find uninstalled libraries when the uninstalled
8115           # path is not listed in the libpath.  Setting hardcode_minus_L
8116           # to unsupported forces relinking
8117           hardcode_minus_L=yes
8118           hardcode_libdir_flag_spec='-L$libdir'
8119           hardcode_libdir_separator=
8120           fi
8121           ;;
8122         esac
8123         shared_flag='-shared'
8124         if test "$aix_use_runtimelinking" = yes; then
8125           shared_flag="$shared_flag "'${wl}-G'
8126         fi
8127       else
8128         # not using gcc
8129         if test "$host_cpu" = ia64; then
8130         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8131         # chokes on -Wl,-G. The following line is correct:
8132           shared_flag='-G'
8133         else
8134           if test "$aix_use_runtimelinking" = yes; then
8135             shared_flag='${wl}-G'
8136           else
8137             shared_flag='${wl}-bM:SRE'
8138           fi
8139         fi
8140       fi
8141
8142       # It seems that -bexpall does not export symbols beginning with
8143       # underscore (_), so it is better to generate a list of symbols to export.
8144       always_export_symbols=yes
8145       if test "$aix_use_runtimelinking" = yes; then
8146         # Warning - without using the other runtime loading flags (-brtl),
8147         # -berok will link without error, but may produce a broken library.
8148         allow_undefined_flag='-berok'
8149        # Determine the default libpath from the value encoded in an empty executable.
8150        cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h.  */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h.  */
8156
8157 int
8158 main ()
8159 {
8160
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (ac_try="$ac_link"
8167 case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172   (eval "$ac_link") 2>conftest.er1
8173   ac_status=$?
8174   grep -v '^ *+' conftest.er1 >conftest.err
8175   rm -f conftest.er1
8176   cat conftest.err >&5
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } && {
8179          test -z "$ac_c_werror_flag" ||
8180          test ! -s conftest.err
8181        } && test -s conftest$ac_exeext &&
8182        $as_test_x conftest$ac_exeext; then
8183
8184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8185 }'`
8186 # Check for a 64-bit object if we didn't find anything.
8187 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; }
8188 }'`; fi
8189 else
8190   echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193
8194 fi
8195
8196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8197       conftest$ac_exeext conftest.$ac_ext
8198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8199
8200        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8201         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"
8202        else
8203         if test "$host_cpu" = ia64; then
8204           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8205           allow_undefined_flag="-z nodefs"
8206           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"
8207         else
8208          # Determine the default libpath from the value encoded in an empty executable.
8209          cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h.  */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h.  */
8215
8216 int
8217 main ()
8218 {
8219
8220   ;
8221   return 0;
8222 }
8223 _ACEOF
8224 rm -f conftest.$ac_objext conftest$ac_exeext
8225 if { (ac_try="$ac_link"
8226 case "(($ac_try" in
8227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228   *) ac_try_echo=$ac_try;;
8229 esac
8230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231   (eval "$ac_link") 2>conftest.er1
8232   ac_status=$?
8233   grep -v '^ *+' conftest.er1 >conftest.err
8234   rm -f conftest.er1
8235   cat conftest.err >&5
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } && {
8238          test -z "$ac_c_werror_flag" ||
8239          test ! -s conftest.err
8240        } && test -s conftest$ac_exeext &&
8241        $as_test_x conftest$ac_exeext; then
8242
8243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8244 }'`
8245 # Check for a 64-bit object if we didn't find anything.
8246 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; }
8247 }'`; fi
8248 else
8249   echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252
8253 fi
8254
8255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8256       conftest$ac_exeext conftest.$ac_ext
8257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8258
8259          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8260           # Warning - without using the other run time loading flags,
8261           # -berok will link without error, but may produce a broken library.
8262           no_undefined_flag=' ${wl}-bernotok'
8263           allow_undefined_flag=' ${wl}-berok'
8264           # Exported symbols can be pulled into shared objects from archives
8265           whole_archive_flag_spec='$convenience'
8266           archive_cmds_need_lc=yes
8267           # This is similar to how AIX traditionally builds its shared libraries.
8268           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'
8269         fi
8270       fi
8271       ;;
8272
8273     amigaos*)
8274       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)'
8275       hardcode_libdir_flag_spec='-L$libdir'
8276       hardcode_minus_L=yes
8277       # see comment about different semantics on the GNU ld section
8278       ld_shlibs=no
8279       ;;
8280
8281     bsdi[45]*)
8282       export_dynamic_flag_spec=-rdynamic
8283       ;;
8284
8285     cygwin* | mingw* | pw32*)
8286       # When not using gcc, we currently assume that we are using
8287       # Microsoft Visual C++.
8288       # hardcode_libdir_flag_spec is actually meaningless, as there is
8289       # no search path for DLLs.
8290       hardcode_libdir_flag_spec=' '
8291       allow_undefined_flag=unsupported
8292       # Tell ltmain to make .lib files, not .a files.
8293       libext=lib
8294       # Tell ltmain to make .dll files, not .so files.
8295       shrext_cmds=".dll"
8296       # FIXME: Setting linknames here is a bad hack.
8297       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8298       # The linker will automatically build a .lib file if we build a DLL.
8299       old_archive_From_new_cmds='true'
8300       # FIXME: Should let the user specify the lib program.
8301       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8302       fix_srcfile_path='`cygpath -w "$srcfile"`'
8303       enable_shared_with_static_runtimes=yes
8304       ;;
8305
8306     darwin* | rhapsody*)
8307       case $host_os in
8308         rhapsody* | darwin1.[012])
8309          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8310          ;;
8311        *) # Darwin 1.3 on
8312          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8313            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8314          else
8315            case ${MACOSX_DEPLOYMENT_TARGET} in
8316              10.[012])
8317                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8318                ;;
8319              10.*)
8320                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8321                ;;
8322            esac
8323          fi
8324          ;;
8325       esac
8326       archive_cmds_need_lc=no
8327       hardcode_direct=no
8328       hardcode_automatic=yes
8329       hardcode_shlibpath_var=unsupported
8330       whole_archive_flag_spec=''
8331       link_all_deplibs=yes
8332     if test "$GCC" = yes ; then
8333         output_verbose_link_cmd='echo'
8334         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8335       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8336       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8337       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}'
8338       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}'
8339     else
8340       case $cc_basename in
8341         xlc*)
8342          output_verbose_link_cmd='echo'
8343          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8344          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8345           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8346          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}'
8347           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}'
8348           ;;
8349        *)
8350          ld_shlibs=no
8351           ;;
8352       esac
8353     fi
8354       ;;
8355
8356     dgux*)
8357       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8358       hardcode_libdir_flag_spec='-L$libdir'
8359       hardcode_shlibpath_var=no
8360       ;;
8361
8362     freebsd1*)
8363       ld_shlibs=no
8364       ;;
8365
8366     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8367     # support.  Future versions do this automatically, but an explicit c++rt0.o
8368     # does not break anything, and helps significantly (at the cost of a little
8369     # extra space).
8370     freebsd2.2*)
8371       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8372       hardcode_libdir_flag_spec='-R$libdir'
8373       hardcode_direct=yes
8374       hardcode_shlibpath_var=no
8375       ;;
8376
8377     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8378     freebsd2*)
8379       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8380       hardcode_direct=yes
8381       hardcode_minus_L=yes
8382       hardcode_shlibpath_var=no
8383       ;;
8384
8385     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8386     freebsd* | kfreebsd*-gnu | dragonfly*)
8387       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8388       hardcode_libdir_flag_spec='-R$libdir'
8389       hardcode_direct=yes
8390       hardcode_shlibpath_var=no
8391       ;;
8392
8393     hpux9*)
8394       if test "$GCC" = yes; then
8395         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'
8396       else
8397         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'
8398       fi
8399       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8400       hardcode_libdir_separator=:
8401       hardcode_direct=yes
8402
8403       # hardcode_minus_L: Not really in the search PATH,
8404       # but as the default location of the library.
8405       hardcode_minus_L=yes
8406       export_dynamic_flag_spec='${wl}-E'
8407       ;;
8408
8409     hpux10*)
8410       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8411         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8412       else
8413         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8414       fi
8415       if test "$with_gnu_ld" = no; then
8416         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8417         hardcode_libdir_separator=:
8418
8419         hardcode_direct=yes
8420         export_dynamic_flag_spec='${wl}-E'
8421
8422         # hardcode_minus_L: Not really in the search PATH,
8423         # but as the default location of the library.
8424         hardcode_minus_L=yes
8425       fi
8426       ;;
8427
8428     hpux11*)
8429       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8430         case $host_cpu in
8431         hppa*64*)
8432           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8433           ;;
8434         ia64*)
8435           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8436           ;;
8437         *)
8438           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8439           ;;
8440         esac
8441       else
8442         case $host_cpu in
8443         hppa*64*)
8444           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8445           ;;
8446         ia64*)
8447           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8448           ;;
8449         *)
8450           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8451           ;;
8452         esac
8453       fi
8454       if test "$with_gnu_ld" = no; then
8455         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8456         hardcode_libdir_separator=:
8457
8458         case $host_cpu in
8459         hppa*64*|ia64*)
8460           hardcode_libdir_flag_spec_ld='+b $libdir'
8461           hardcode_direct=no
8462           hardcode_shlibpath_var=no
8463           ;;
8464         *)
8465           hardcode_direct=yes
8466           export_dynamic_flag_spec='${wl}-E'
8467
8468           # hardcode_minus_L: Not really in the search PATH,
8469           # but as the default location of the library.
8470           hardcode_minus_L=yes
8471           ;;
8472         esac
8473       fi
8474       ;;
8475
8476     irix5* | irix6* | nonstopux*)
8477       if test "$GCC" = yes; then
8478         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'
8479       else
8480         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'
8481         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8482       fi
8483       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8484       hardcode_libdir_separator=:
8485       link_all_deplibs=yes
8486       ;;
8487
8488     netbsd*)
8489       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8490         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8491       else
8492         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8493       fi
8494       hardcode_libdir_flag_spec='-R$libdir'
8495       hardcode_direct=yes
8496       hardcode_shlibpath_var=no
8497       ;;
8498
8499     newsos6)
8500       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501       hardcode_direct=yes
8502       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8503       hardcode_libdir_separator=:
8504       hardcode_shlibpath_var=no
8505       ;;
8506
8507     openbsd*)
8508       hardcode_direct=yes
8509       hardcode_shlibpath_var=no
8510       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8511         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8512         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8513         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8514         export_dynamic_flag_spec='${wl}-E'
8515       else
8516        case $host_os in
8517          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8518            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8519            hardcode_libdir_flag_spec='-R$libdir'
8520            ;;
8521          *)
8522            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8523            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8524            ;;
8525        esac
8526       fi
8527       ;;
8528
8529     os2*)
8530       hardcode_libdir_flag_spec='-L$libdir'
8531       hardcode_minus_L=yes
8532       allow_undefined_flag=unsupported
8533       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'
8534       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8535       ;;
8536
8537     osf3*)
8538       if test "$GCC" = yes; then
8539         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8540         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'
8541       else
8542         allow_undefined_flag=' -expect_unresolved \*'
8543         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'
8544       fi
8545       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8546       hardcode_libdir_separator=:
8547       ;;
8548
8549     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8550       if test "$GCC" = yes; then
8551         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8552         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'
8553         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8554       else
8555         allow_undefined_flag=' -expect_unresolved \*'
8556         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'
8557         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8558         $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'
8559
8560         # Both c and cxx compiler support -rpath directly
8561         hardcode_libdir_flag_spec='-rpath $libdir'
8562       fi
8563       hardcode_libdir_separator=:
8564       ;;
8565
8566     solaris*)
8567       no_undefined_flag=' -z text'
8568       if test "$GCC" = yes; then
8569         wlarc='${wl}'
8570         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8571         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8572           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8573       else
8574         wlarc=''
8575         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8577         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8578       fi
8579       hardcode_libdir_flag_spec='-R$libdir'
8580       hardcode_shlibpath_var=no
8581       case $host_os in
8582       solaris2.[0-5] | solaris2.[0-5].*) ;;
8583       *)
8584         # The compiler driver will combine linker options so we
8585         # cannot just pass the convience library names through
8586         # without $wl, iff we do not link with $LD.
8587         # Luckily, gcc supports the same syntax we need for Sun Studio.
8588         # Supported since Solaris 2.6 (maybe 2.5.1?)
8589         case $wlarc in
8590         '')
8591           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8592         *)
8593           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' ;;
8594         esac ;;
8595       esac
8596       link_all_deplibs=yes
8597       ;;
8598
8599     sunos4*)
8600       if test "x$host_vendor" = xsequent; then
8601         # Use $CC to link under sequent, because it throws in some extra .o
8602         # files that make .init and .fini sections work.
8603         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8604       else
8605         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8606       fi
8607       hardcode_libdir_flag_spec='-L$libdir'
8608       hardcode_direct=yes
8609       hardcode_minus_L=yes
8610       hardcode_shlibpath_var=no
8611       ;;
8612
8613     sysv4)
8614       case $host_vendor in
8615         sni)
8616           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617           hardcode_direct=yes # is this really true???
8618         ;;
8619         siemens)
8620           ## LD is ld it makes a PLAMLIB
8621           ## CC just makes a GrossModule.
8622           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8623           reload_cmds='$CC -r -o $output$reload_objs'
8624           hardcode_direct=no
8625         ;;
8626         motorola)
8627           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8628           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8629         ;;
8630       esac
8631       runpath_var='LD_RUN_PATH'
8632       hardcode_shlibpath_var=no
8633       ;;
8634
8635     sysv4.3*)
8636       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637       hardcode_shlibpath_var=no
8638       export_dynamic_flag_spec='-Bexport'
8639       ;;
8640
8641     sysv4*MP*)
8642       if test -d /usr/nec; then
8643         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644         hardcode_shlibpath_var=no
8645         runpath_var=LD_RUN_PATH
8646         hardcode_runpath_var=yes
8647         ld_shlibs=yes
8648       fi
8649       ;;
8650
8651     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8652       no_undefined_flag='${wl}-z,text'
8653       archive_cmds_need_lc=no
8654       hardcode_shlibpath_var=no
8655       runpath_var='LD_RUN_PATH'
8656
8657       if test "$GCC" = yes; then
8658         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8659         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8660       else
8661         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8662         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8663       fi
8664       ;;
8665
8666     sysv5* | sco3.2v5* | sco5v6*)
8667       # Note: We can NOT use -z defs as we might desire, because we do not
8668       # link with -lc, and that would cause any symbols used from libc to
8669       # always be unresolved, which means just about no library would
8670       # ever link correctly.  If we're not using GNU ld we use -z text
8671       # though, which does catch some bad symbols but isn't as heavy-handed
8672       # as -z defs.
8673       no_undefined_flag='${wl}-z,text'
8674       allow_undefined_flag='${wl}-z,nodefs'
8675       archive_cmds_need_lc=no
8676       hardcode_shlibpath_var=no
8677       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8678       hardcode_libdir_separator=':'
8679       link_all_deplibs=yes
8680       export_dynamic_flag_spec='${wl}-Bexport'
8681       runpath_var='LD_RUN_PATH'
8682
8683       if test "$GCC" = yes; then
8684         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8685         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686       else
8687         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8688         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8689       fi
8690       ;;
8691
8692     uts4*)
8693       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8694       hardcode_libdir_flag_spec='-L$libdir'
8695       hardcode_shlibpath_var=no
8696       ;;
8697
8698     *)
8699       ld_shlibs=no
8700       ;;
8701     esac
8702   fi
8703
8704 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8705 echo "${ECHO_T}$ld_shlibs" >&6; }
8706 test "$ld_shlibs" = no && can_build_shared=no
8707
8708 #
8709 # Do we need to explicitly link libc?
8710 #
8711 case "x$archive_cmds_need_lc" in
8712 x|xyes)
8713   # Assume -lc should be added
8714   archive_cmds_need_lc=yes
8715
8716   if test "$enable_shared" = yes && test "$GCC" = yes; then
8717     case $archive_cmds in
8718     *'~'*)
8719       # FIXME: we may have to deal with multi-command sequences.
8720       ;;
8721     '$CC '*)
8722       # Test whether the compiler implicitly links with -lc since on some
8723       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8724       # to ld, don't add -lc before -lgcc.
8725       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8726 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8727       $rm conftest*
8728       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8729
8730       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731   (eval $ac_compile) 2>&5
8732   ac_status=$?
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); } 2>conftest.err; then
8735         soname=conftest
8736         lib=conftest
8737         libobjs=conftest.$ac_objext
8738         deplibs=
8739         wl=$lt_prog_compiler_wl
8740         pic_flag=$lt_prog_compiler_pic
8741         compiler_flags=-v
8742         linker_flags=-v
8743         verstring=
8744         output_objdir=.
8745         libname=conftest
8746         lt_save_allow_undefined_flag=$allow_undefined_flag
8747         allow_undefined_flag=
8748         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8749   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8750   ac_status=$?
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); }
8753         then
8754           archive_cmds_need_lc=no
8755         else
8756           archive_cmds_need_lc=yes
8757         fi
8758         allow_undefined_flag=$lt_save_allow_undefined_flag
8759       else
8760         cat conftest.err 1>&5
8761       fi
8762       $rm conftest*
8763       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8764 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8765       ;;
8766     esac
8767   fi
8768   ;;
8769 esac
8770
8771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8773 library_names_spec=
8774 libname_spec='lib$name'
8775 soname_spec=
8776 shrext_cmds=".so"
8777 postinstall_cmds=
8778 postuninstall_cmds=
8779 finish_cmds=
8780 finish_eval=
8781 shlibpath_var=
8782 shlibpath_overrides_runpath=unknown
8783 version_type=none
8784 dynamic_linker="$host_os ld.so"
8785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786 if test "$GCC" = yes; then
8787   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789     # if the path contains ";" then we assume it to be the separator
8790     # otherwise default to the standard path separator (i.e. ":") - it is
8791     # assumed that no part of a normal pathname contains ";" but that should
8792     # okay in the real world where ";" in dirpaths is itself problematic.
8793     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794   else
8795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8796   fi
8797 else
8798   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8799 fi
8800 need_lib_prefix=unknown
8801 hardcode_into_libs=no
8802
8803 # when you set need_version to no, make sure it does not cause -set_version
8804 # flags to be left without arguments
8805 need_version=unknown
8806
8807 case $host_os in
8808 aix3*)
8809   version_type=linux
8810   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811   shlibpath_var=LIBPATH
8812
8813   # AIX 3 has no versioning support, so we append a major version to the name.
8814   soname_spec='${libname}${release}${shared_ext}$major'
8815   ;;
8816
8817 aix4* | aix5*)
8818   version_type=linux
8819   need_lib_prefix=no
8820   need_version=no
8821   hardcode_into_libs=yes
8822   if test "$host_cpu" = ia64; then
8823     # AIX 5 supports IA64
8824     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825     shlibpath_var=LD_LIBRARY_PATH
8826   else
8827     # With GCC up to 2.95.x, collect2 would create an import file
8828     # for dependence libraries.  The import file would start with
8829     # the line `#! .'.  This would cause the generated library to
8830     # depend on `.', always an invalid library.  This was fixed in
8831     # development snapshots of GCC prior to 3.0.
8832     case $host_os in
8833       aix4 | aix4.[01] | aix4.[01].*)
8834       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8835            echo ' yes '
8836            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8837         :
8838       else
8839         can_build_shared=no
8840       fi
8841       ;;
8842     esac
8843     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844     # soname into executable. Probably we can add versioning support to
8845     # collect2, so additional links can be useful in future.
8846     if test "$aix_use_runtimelinking" = yes; then
8847       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848       # instead of lib<name>.a to let people know that these are not
8849       # typical AIX shared libraries.
8850       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851     else
8852       # We preserve .a as extension for shared libraries through AIX4.2
8853       # and later when we are not doing run time linking.
8854       library_names_spec='${libname}${release}.a $libname.a'
8855       soname_spec='${libname}${release}${shared_ext}$major'
8856     fi
8857     shlibpath_var=LIBPATH
8858   fi
8859   ;;
8860
8861 amigaos*)
8862   library_names_spec='$libname.ixlibrary $libname.a'
8863   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864   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'
8865   ;;
8866
8867 beos*)
8868   library_names_spec='${libname}${shared_ext}'
8869   dynamic_linker="$host_os ld.so"
8870   shlibpath_var=LIBRARY_PATH
8871   ;;
8872
8873 bsdi[45]*)
8874   version_type=linux
8875   need_version=no
8876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877   soname_spec='${libname}${release}${shared_ext}$major'
8878   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879   shlibpath_var=LD_LIBRARY_PATH
8880   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882   # the default ld.so.conf also contains /usr/contrib/lib and
8883   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884   # libtool to hard-code these into programs
8885   ;;
8886
8887 cygwin* | mingw* | pw32*)
8888   version_type=windows
8889   shrext_cmds=".dll"
8890   need_version=no
8891   need_lib_prefix=no
8892
8893   case $GCC,$host_os in
8894   yes,cygwin* | yes,mingw* | yes,pw32*)
8895     library_names_spec='$libname.dll.a'
8896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897     postinstall_cmds='base_file=`basename \${file}`~
8898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899       dldir=$destdir/`dirname \$dlpath`~
8900       test -d \$dldir || mkdir -p \$dldir~
8901       $install_prog $dir/$dlname \$dldir/$dlname~
8902       chmod a+x \$dldir/$dlname'
8903     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904       dlpath=$dir/\$dldll~
8905        $rm \$dlpath'
8906     shlibpath_overrides_runpath=yes
8907
8908     case $host_os in
8909     cygwin*)
8910       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8913       ;;
8914     mingw*)
8915       # MinGW DLLs use traditional 'lib' prefix
8916       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919         # It is most probably a Windows format PATH printed by
8920         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921         # path with ; separators, and with drive letters. We can handle the
8922         # drive letters (cygwin fileutils understands them), so leave them,
8923         # especially as we might pass files found there to a mingw objdump,
8924         # which wouldn't understand a cygwinified path. Ahh.
8925         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8926       else
8927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8928       fi
8929       ;;
8930     pw32*)
8931       # pw32 DLLs use 'pw' prefix rather than 'lib'
8932       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8933       ;;
8934     esac
8935     ;;
8936
8937   *)
8938     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8939     ;;
8940   esac
8941   dynamic_linker='Win32 ld.exe'
8942   # FIXME: first we should search . and the directory the executable is in
8943   shlibpath_var=PATH
8944   ;;
8945
8946 darwin* | rhapsody*)
8947   dynamic_linker="$host_os dyld"
8948   version_type=darwin
8949   need_lib_prefix=no
8950   need_version=no
8951   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952   soname_spec='${libname}${release}${major}$shared_ext'
8953   shlibpath_overrides_runpath=yes
8954   shlibpath_var=DYLD_LIBRARY_PATH
8955   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8956   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957   if test "$GCC" = yes; then
8958     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"`
8959   else
8960     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8961   fi
8962   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8963   ;;
8964
8965 dgux*)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   ;;
8973
8974 freebsd1*)
8975   dynamic_linker=no
8976   ;;
8977
8978 kfreebsd*-gnu)
8979   version_type=linux
8980   need_lib_prefix=no
8981   need_version=no
8982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983   soname_spec='${libname}${release}${shared_ext}$major'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   shlibpath_overrides_runpath=no
8986   hardcode_into_libs=yes
8987   dynamic_linker='GNU ld.so'
8988   ;;
8989
8990 freebsd* | dragonfly*)
8991   # DragonFly does not have aout.  When/if they implement a new
8992   # versioning mechanism, adjust this.
8993   if test -x /usr/bin/objformat; then
8994     objformat=`/usr/bin/objformat`
8995   else
8996     case $host_os in
8997     freebsd[123]*) objformat=aout ;;
8998     *) objformat=elf ;;
8999     esac
9000   fi
9001   version_type=freebsd-$objformat
9002   case $version_type in
9003     freebsd-elf*)
9004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005       need_version=no
9006       need_lib_prefix=no
9007       ;;
9008     freebsd-*)
9009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010       need_version=yes
9011       ;;
9012   esac
9013   shlibpath_var=LD_LIBRARY_PATH
9014   case $host_os in
9015   freebsd2*)
9016     shlibpath_overrides_runpath=yes
9017     ;;
9018   freebsd3.[01]* | freebsdelf3.[01]*)
9019     shlibpath_overrides_runpath=yes
9020     hardcode_into_libs=yes
9021     ;;
9022   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024     shlibpath_overrides_runpath=no
9025     hardcode_into_libs=yes
9026     ;;
9027   freebsd*) # from 4.6 on
9028     shlibpath_overrides_runpath=yes
9029     hardcode_into_libs=yes
9030     ;;
9031   esac
9032   ;;
9033
9034 gnu*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   hardcode_into_libs=yes
9042   ;;
9043
9044 hpux9* | hpux10* | hpux11*)
9045   # Give a soname corresponding to the major version so that dld.sl refuses to
9046   # link against other versions.
9047   version_type=sunos
9048   need_lib_prefix=no
9049   need_version=no
9050   case $host_cpu in
9051   ia64*)
9052     shrext_cmds='.so'
9053     hardcode_into_libs=yes
9054     dynamic_linker="$host_os dld.so"
9055     shlibpath_var=LD_LIBRARY_PATH
9056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058     soname_spec='${libname}${release}${shared_ext}$major'
9059     if test "X$HPUX_IA64_MODE" = X32; then
9060       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061     else
9062       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063     fi
9064     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065     ;;
9066    hppa*64*)
9067      shrext_cmds='.sl'
9068      hardcode_into_libs=yes
9069      dynamic_linker="$host_os dld.sl"
9070      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073      soname_spec='${libname}${release}${shared_ext}$major'
9074      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076      ;;
9077    *)
9078     shrext_cmds='.sl'
9079     dynamic_linker="$host_os dld.sl"
9080     shlibpath_var=SHLIB_PATH
9081     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083     soname_spec='${libname}${release}${shared_ext}$major'
9084     ;;
9085   esac
9086   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087   postinstall_cmds='chmod 555 $lib'
9088   ;;
9089
9090 interix3*)
9091   version_type=linux
9092   need_lib_prefix=no
9093   need_version=no
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095   soname_spec='${libname}${release}${shared_ext}$major'
9096   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   shlibpath_overrides_runpath=no
9099   hardcode_into_libs=yes
9100   ;;
9101
9102 irix5* | irix6* | nonstopux*)
9103   case $host_os in
9104     nonstopux*) version_type=nonstopux ;;
9105     *)
9106         if test "$lt_cv_prog_gnu_ld" = yes; then
9107                 version_type=linux
9108         else
9109                 version_type=irix
9110         fi ;;
9111   esac
9112   need_lib_prefix=no
9113   need_version=no
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116   case $host_os in
9117   irix5* | nonstopux*)
9118     libsuff= shlibsuff=
9119     ;;
9120   *)
9121     case $LD in # libtool.m4 will add one of these switches to LD
9122     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123       libsuff= shlibsuff= libmagic=32-bit;;
9124     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125       libsuff=32 shlibsuff=N32 libmagic=N32;;
9126     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128     *) libsuff= shlibsuff= libmagic=never-match;;
9129     esac
9130     ;;
9131   esac
9132   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133   shlibpath_overrides_runpath=no
9134   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136   hardcode_into_libs=yes
9137   ;;
9138
9139 # No shared lib support for Linux oldld, aout, or coff.
9140 linux*oldld* | linux*aout* | linux*coff*)
9141   dynamic_linker=no
9142   ;;
9143
9144 # This must be Linux ELF.
9145 linux*)
9146   version_type=linux
9147   need_lib_prefix=no
9148   need_version=no
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=no
9154   # This implies no fast_install, which is unacceptable.
9155   # Some rework will be needed to allow for fast_install
9156   # before this can be enabled.
9157   hardcode_into_libs=yes
9158
9159   # Append ld.so.conf contents to the search path
9160   if test -f /etc/ld.so.conf; then
9161     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' ' '`
9162     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163   fi
9164
9165   # We used to test for /lib/ld.so.1 and disable shared libraries on
9166   # powerpc, because MkLinux only supported shared libraries with the
9167   # GNU dynamic linker.  Since this was broken with cross compilers,
9168   # most powerpc-linux boxes support dynamic linking these days and
9169   # people can always --disable-shared, the test was removed, and we
9170   # assume the GNU/Linux dynamic linker is in use.
9171   dynamic_linker='GNU/Linux ld.so'
9172   ;;
9173
9174 knetbsd*-gnu)
9175   version_type=linux
9176   need_lib_prefix=no
9177   need_version=no
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=no
9182   hardcode_into_libs=yes
9183   dynamic_linker='GNU ld.so'
9184   ;;
9185
9186 netbsd*)
9187   version_type=sunos
9188   need_lib_prefix=no
9189   need_version=no
9190   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193     dynamic_linker='NetBSD (a.out) ld.so'
9194   else
9195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196     soname_spec='${libname}${release}${shared_ext}$major'
9197     dynamic_linker='NetBSD ld.elf_so'
9198   fi
9199   shlibpath_var=LD_LIBRARY_PATH
9200   shlibpath_overrides_runpath=yes
9201   hardcode_into_libs=yes
9202   ;;
9203
9204 newsos6)
9205   version_type=linux
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207   shlibpath_var=LD_LIBRARY_PATH
9208   shlibpath_overrides_runpath=yes
9209   ;;
9210
9211 nto-qnx*)
9212   version_type=linux
9213   need_lib_prefix=no
9214   need_version=no
9215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   shlibpath_overrides_runpath=yes
9219   ;;
9220
9221 openbsd*)
9222   version_type=sunos
9223   sys_lib_dlsearch_path_spec="/usr/lib"
9224   need_lib_prefix=no
9225   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9226   case $host_os in
9227     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228     *)                         need_version=no  ;;
9229   esac
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9234     case $host_os in
9235       openbsd2.[89] | openbsd2.[89].*)
9236         shlibpath_overrides_runpath=no
9237         ;;
9238       *)
9239         shlibpath_overrides_runpath=yes
9240         ;;
9241       esac
9242   else
9243     shlibpath_overrides_runpath=yes
9244   fi
9245   ;;
9246
9247 os2*)
9248   libname_spec='$name'
9249   shrext_cmds=".dll"
9250   need_lib_prefix=no
9251   library_names_spec='$libname${shared_ext} $libname.a'
9252   dynamic_linker='OS/2 ld.exe'
9253   shlibpath_var=LIBPATH
9254   ;;
9255
9256 osf3* | osf4* | osf5*)
9257   version_type=osf
9258   need_lib_prefix=no
9259   need_version=no
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9265   ;;
9266
9267 solaris*)
9268   version_type=linux
9269   need_lib_prefix=no
9270   need_version=no
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272   soname_spec='${libname}${release}${shared_ext}$major'
9273   shlibpath_var=LD_LIBRARY_PATH
9274   shlibpath_overrides_runpath=yes
9275   hardcode_into_libs=yes
9276   # ldd complains unless libraries are executable
9277   postinstall_cmds='chmod +x $lib'
9278   ;;
9279
9280 sunos4*)
9281   version_type=sunos
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   shlibpath_overrides_runpath=yes
9286   if test "$with_gnu_ld" = yes; then
9287     need_lib_prefix=no
9288   fi
9289   need_version=yes
9290   ;;
9291
9292 sysv4 | sysv4.3*)
9293   version_type=linux
9294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295   soname_spec='${libname}${release}${shared_ext}$major'
9296   shlibpath_var=LD_LIBRARY_PATH
9297   case $host_vendor in
9298     sni)
9299       shlibpath_overrides_runpath=no
9300       need_lib_prefix=no
9301       export_dynamic_flag_spec='${wl}-Blargedynsym'
9302       runpath_var=LD_RUN_PATH
9303       ;;
9304     siemens)
9305       need_lib_prefix=no
9306       ;;
9307     motorola)
9308       need_lib_prefix=no
9309       need_version=no
9310       shlibpath_overrides_runpath=no
9311       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9312       ;;
9313   esac
9314   ;;
9315
9316 sysv4*MP*)
9317   if test -d /usr/nec ;then
9318     version_type=linux
9319     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320     soname_spec='$libname${shared_ext}.$major'
9321     shlibpath_var=LD_LIBRARY_PATH
9322   fi
9323   ;;
9324
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326   version_type=freebsd-elf
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   hardcode_into_libs=yes
9333   if test "$with_gnu_ld" = yes; then
9334     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335     shlibpath_overrides_runpath=no
9336   else
9337     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338     shlibpath_overrides_runpath=yes
9339     case $host_os in
9340       sco3.2v5*)
9341         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9342         ;;
9343     esac
9344   fi
9345   sys_lib_dlsearch_path_spec='/usr/lib'
9346   ;;
9347
9348 uts4*)
9349   version_type=linux
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351   soname_spec='${libname}${release}${shared_ext}$major'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   ;;
9354
9355 *)
9356   dynamic_linker=no
9357   ;;
9358 esac
9359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360 echo "${ECHO_T}$dynamic_linker" >&6; }
9361 test "$dynamic_linker" = no && can_build_shared=no
9362
9363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364 if test "$GCC" = yes; then
9365   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9366 fi
9367
9368 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9370 hardcode_action=
9371 if test -n "$hardcode_libdir_flag_spec" || \
9372    test -n "$runpath_var" || \
9373    test "X$hardcode_automatic" = "Xyes" ; then
9374
9375   # We can hardcode non-existant directories.
9376   if test "$hardcode_direct" != no &&
9377      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9378      # have to relink, otherwise we might link with an installed library
9379      # when we should be linking with a yet-to-be-installed one
9380      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9381      test "$hardcode_minus_L" != no; then
9382     # Linking always hardcodes the temporary library directory.
9383     hardcode_action=relink
9384   else
9385     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9386     hardcode_action=immediate
9387   fi
9388 else
9389   # We cannot hardcode anything, or else we can only hardcode existing
9390   # directories.
9391   hardcode_action=unsupported
9392 fi
9393 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9394 echo "${ECHO_T}$hardcode_action" >&6; }
9395
9396 if test "$hardcode_action" = relink; then
9397   # Fast installation is not supported
9398   enable_fast_install=no
9399 elif test "$shlibpath_overrides_runpath" = yes ||
9400      test "$enable_shared" = no; then
9401   # Fast installation is not necessary
9402   enable_fast_install=needless
9403 fi
9404
9405 striplib=
9406 old_striplib=
9407 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9408 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9409 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9410   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9411   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9412   { echo "$as_me:$LINENO: result: yes" >&5
9413 echo "${ECHO_T}yes" >&6; }
9414 else
9415 # FIXME - insert some real tests, host_os isn't really good enough
9416   case $host_os in
9417    darwin*)
9418        if test -n "$STRIP" ; then
9419          striplib="$STRIP -x"
9420          { echo "$as_me:$LINENO: result: yes" >&5
9421 echo "${ECHO_T}yes" >&6; }
9422        else
9423   { echo "$as_me:$LINENO: result: no" >&5
9424 echo "${ECHO_T}no" >&6; }
9425 fi
9426        ;;
9427    *)
9428   { echo "$as_me:$LINENO: result: no" >&5
9429 echo "${ECHO_T}no" >&6; }
9430     ;;
9431   esac
9432 fi
9433
9434 if test "x$enable_dlopen" != xyes; then
9435   enable_dlopen=unknown
9436   enable_dlopen_self=unknown
9437   enable_dlopen_self_static=unknown
9438 else
9439   lt_cv_dlopen=no
9440   lt_cv_dlopen_libs=
9441
9442   case $host_os in
9443   beos*)
9444     lt_cv_dlopen="load_add_on"
9445     lt_cv_dlopen_libs=
9446     lt_cv_dlopen_self=yes
9447     ;;
9448
9449   mingw* | pw32*)
9450     lt_cv_dlopen="LoadLibrary"
9451     lt_cv_dlopen_libs=
9452    ;;
9453
9454   cygwin*)
9455     lt_cv_dlopen="dlopen"
9456     lt_cv_dlopen_libs=
9457    ;;
9458
9459   darwin*)
9460   # if libdl is installed we need to link against it
9461     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9464   echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466   ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-ldl  $LIBS"
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474
9475 /* Override any GCC internal prototype to avoid an error.
9476    Use char because int might match the return type of a GCC
9477    builtin and then its argument prototype would still apply.  */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char dlopen ();
9482 int
9483 main ()
9484 {
9485 return dlopen ();
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9492 case "(($ac_try" in
9493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494   *) ac_try_echo=$ac_try;;
9495 esac
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497   (eval "$ac_link") 2>conftest.er1
9498   ac_status=$?
9499   grep -v '^ *+' conftest.er1 >conftest.err
9500   rm -f conftest.er1
9501   cat conftest.err >&5
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); } && {
9504          test -z "$ac_c_werror_flag" ||
9505          test ! -s conftest.err
9506        } && test -s conftest$ac_exeext &&
9507        $as_test_x conftest$ac_exeext; then
9508   ac_cv_lib_dl_dlopen=yes
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513         ac_cv_lib_dl_dlopen=no
9514 fi
9515
9516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9517       conftest$ac_exeext conftest.$ac_ext
9518 LIBS=$ac_check_lib_save_LIBS
9519 fi
9520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9522 if test $ac_cv_lib_dl_dlopen = yes; then
9523   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9524 else
9525
9526     lt_cv_dlopen="dyld"
9527     lt_cv_dlopen_libs=
9528     lt_cv_dlopen_self=yes
9529
9530 fi
9531
9532    ;;
9533
9534   *)
9535     { echo "$as_me:$LINENO: checking for shl_load" >&5
9536 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9537 if test "${ac_cv_func_shl_load+set}" = set; then
9538   echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540   cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h.  */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h.  */
9546 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9548 #define shl_load innocuous_shl_load
9549
9550 /* System header to define __stub macros and hopefully few prototypes,
9551     which can conflict with char shl_load (); below.
9552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9553     <limits.h> exists even on freestanding compilers.  */
9554
9555 #ifdef __STDC__
9556 # include <limits.h>
9557 #else
9558 # include <assert.h>
9559 #endif
9560
9561 #undef shl_load
9562
9563 /* Override any GCC internal prototype to avoid an error.
9564    Use char because int might match the return type of a GCC
9565    builtin and then its argument prototype would still apply.  */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char shl_load ();
9570 /* The GNU C library defines this for functions which it implements
9571     to always fail with ENOSYS.  Some functions are actually named
9572     something starting with __ and the normal name is an alias.  */
9573 #if defined __stub_shl_load || defined __stub___shl_load
9574 choke me
9575 #endif
9576
9577 int
9578 main ()
9579 {
9580 return shl_load ();
9581   ;
9582   return 0;
9583 }
9584 _ACEOF
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9587 case "(($ac_try" in
9588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589   *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592   (eval "$ac_link") 2>conftest.er1
9593   ac_status=$?
9594   grep -v '^ *+' conftest.er1 >conftest.err
9595   rm -f conftest.er1
9596   cat conftest.err >&5
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); } && {
9599          test -z "$ac_c_werror_flag" ||
9600          test ! -s conftest.err
9601        } && test -s conftest$ac_exeext &&
9602        $as_test_x conftest$ac_exeext; then
9603   ac_cv_func_shl_load=yes
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608         ac_cv_func_shl_load=no
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612       conftest$ac_exeext conftest.$ac_ext
9613 fi
9614 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9615 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9616 if test $ac_cv_func_shl_load = yes; then
9617   lt_cv_dlopen="shl_load"
9618 else
9619   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9620 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9621 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   ac_check_lib_save_LIBS=$LIBS
9625 LIBS="-ldld  $LIBS"
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h.  */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632
9633 /* Override any GCC internal prototype to avoid an error.
9634    Use char because int might match the return type of a GCC
9635    builtin and then its argument prototype would still apply.  */
9636 #ifdef __cplusplus
9637 extern "C"
9638 #endif
9639 char shl_load ();
9640 int
9641 main ()
9642 {
9643 return shl_load ();
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (ac_try="$ac_link"
9650 case "(($ac_try" in
9651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652   *) ac_try_echo=$ac_try;;
9653 esac
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655   (eval "$ac_link") 2>conftest.er1
9656   ac_status=$?
9657   grep -v '^ *+' conftest.er1 >conftest.err
9658   rm -f conftest.er1
9659   cat conftest.err >&5
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } && {
9662          test -z "$ac_c_werror_flag" ||
9663          test ! -s conftest.err
9664        } && test -s conftest$ac_exeext &&
9665        $as_test_x conftest$ac_exeext; then
9666   ac_cv_lib_dld_shl_load=yes
9667 else
9668   echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671         ac_cv_lib_dld_shl_load=no
9672 fi
9673
9674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9675       conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9677 fi
9678 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9679 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9680 if test $ac_cv_lib_dld_shl_load = yes; then
9681   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9682 else
9683   { echo "$as_me:$LINENO: checking for dlopen" >&5
9684 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9685 if test "${ac_cv_func_dlopen+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9696 #define dlopen innocuous_dlopen
9697
9698 /* System header to define __stub macros and hopefully few prototypes,
9699     which can conflict with char dlopen (); below.
9700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701     <limits.h> exists even on freestanding compilers.  */
9702
9703 #ifdef __STDC__
9704 # include <limits.h>
9705 #else
9706 # include <assert.h>
9707 #endif
9708
9709 #undef dlopen
9710
9711 /* Override any GCC internal prototype to avoid an error.
9712    Use char because int might match the return type of a GCC
9713    builtin and then its argument prototype would still apply.  */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 char dlopen ();
9718 /* The GNU C library defines this for functions which it implements
9719     to always fail with ENOSYS.  Some functions are actually named
9720     something starting with __ and the normal name is an alias.  */
9721 #if defined __stub_dlopen || defined __stub___dlopen
9722 choke me
9723 #endif
9724
9725 int
9726 main ()
9727 {
9728 return dlopen ();
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9735 case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740   (eval "$ac_link") 2>conftest.er1
9741   ac_status=$?
9742   grep -v '^ *+' conftest.er1 >conftest.err
9743   rm -f conftest.er1
9744   cat conftest.err >&5
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } && {
9747          test -z "$ac_c_werror_flag" ||
9748          test ! -s conftest.err
9749        } && test -s conftest$ac_exeext &&
9750        $as_test_x conftest$ac_exeext; then
9751   ac_cv_func_dlopen=yes
9752 else
9753   echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756         ac_cv_func_dlopen=no
9757 fi
9758
9759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9760       conftest$ac_exeext conftest.$ac_ext
9761 fi
9762 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9763 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9764 if test $ac_cv_func_dlopen = yes; then
9765   lt_cv_dlopen="dlopen"
9766 else
9767   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9768 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9769 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9770   echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772   ac_check_lib_save_LIBS=$LIBS
9773 LIBS="-ldl  $LIBS"
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h.  */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h.  */
9780
9781 /* Override any GCC internal prototype to avoid an error.
9782    Use char because int might match the return type of a GCC
9783    builtin and then its argument prototype would still apply.  */
9784 #ifdef __cplusplus
9785 extern "C"
9786 #endif
9787 char dlopen ();
9788 int
9789 main ()
9790 {
9791 return dlopen ();
9792   ;
9793   return 0;
9794 }
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (ac_try="$ac_link"
9798 case "(($ac_try" in
9799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800   *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803   (eval "$ac_link") 2>conftest.er1
9804   ac_status=$?
9805   grep -v '^ *+' conftest.er1 >conftest.err
9806   rm -f conftest.er1
9807   cat conftest.err >&5
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } && {
9810          test -z "$ac_c_werror_flag" ||
9811          test ! -s conftest.err
9812        } && test -s conftest$ac_exeext &&
9813        $as_test_x conftest$ac_exeext; then
9814   ac_cv_lib_dl_dlopen=yes
9815 else
9816   echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819         ac_cv_lib_dl_dlopen=no
9820 fi
9821
9822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9823       conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9825 fi
9826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9828 if test $ac_cv_lib_dl_dlopen = yes; then
9829   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9830 else
9831   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   ac_check_lib_save_LIBS=$LIBS
9837 LIBS="-lsvld  $LIBS"
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h.  */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h.  */
9844
9845 /* Override any GCC internal prototype to avoid an error.
9846    Use char because int might match the return type of a GCC
9847    builtin and then its argument prototype would still apply.  */
9848 #ifdef __cplusplus
9849 extern "C"
9850 #endif
9851 char dlopen ();
9852 int
9853 main ()
9854 {
9855 return dlopen ();
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (ac_try="$ac_link"
9862 case "(($ac_try" in
9863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864   *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867   (eval "$ac_link") 2>conftest.er1
9868   ac_status=$?
9869   grep -v '^ *+' conftest.er1 >conftest.err
9870   rm -f conftest.er1
9871   cat conftest.err >&5
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } && {
9874          test -z "$ac_c_werror_flag" ||
9875          test ! -s conftest.err
9876        } && test -s conftest$ac_exeext &&
9877        $as_test_x conftest$ac_exeext; then
9878   ac_cv_lib_svld_dlopen=yes
9879 else
9880   echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883         ac_cv_lib_svld_dlopen=no
9884 fi
9885
9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887       conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9889 fi
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9891 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9892 if test $ac_cv_lib_svld_dlopen = yes; then
9893   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9894 else
9895   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9896 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9897 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9898   echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900   ac_check_lib_save_LIBS=$LIBS
9901 LIBS="-ldld  $LIBS"
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908
9909 /* Override any GCC internal prototype to avoid an error.
9910    Use char because int might match the return type of a GCC
9911    builtin and then its argument prototype would still apply.  */
9912 #ifdef __cplusplus
9913 extern "C"
9914 #endif
9915 char dld_link ();
9916 int
9917 main ()
9918 {
9919 return dld_link ();
9920   ;
9921   return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (ac_try="$ac_link"
9926 case "(($ac_try" in
9927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928   *) ac_try_echo=$ac_try;;
9929 esac
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931   (eval "$ac_link") 2>conftest.er1
9932   ac_status=$?
9933   grep -v '^ *+' conftest.er1 >conftest.err
9934   rm -f conftest.er1
9935   cat conftest.err >&5
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); } && {
9938          test -z "$ac_c_werror_flag" ||
9939          test ! -s conftest.err
9940        } && test -s conftest$ac_exeext &&
9941        $as_test_x conftest$ac_exeext; then
9942   ac_cv_lib_dld_dld_link=yes
9943 else
9944   echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947         ac_cv_lib_dld_dld_link=no
9948 fi
9949
9950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9951       conftest$ac_exeext conftest.$ac_ext
9952 LIBS=$ac_check_lib_save_LIBS
9953 fi
9954 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9955 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9956 if test $ac_cv_lib_dld_dld_link = yes; then
9957   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9958 fi
9959
9960
9961 fi
9962
9963
9964 fi
9965
9966
9967 fi
9968
9969
9970 fi
9971
9972
9973 fi
9974
9975     ;;
9976   esac
9977
9978   if test "x$lt_cv_dlopen" != xno; then
9979     enable_dlopen=yes
9980   else
9981     enable_dlopen=no
9982   fi
9983
9984   case $lt_cv_dlopen in
9985   dlopen)
9986     save_CPPFLAGS="$CPPFLAGS"
9987     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9988
9989     save_LDFLAGS="$LDFLAGS"
9990     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9991
9992     save_LIBS="$LIBS"
9993     LIBS="$lt_cv_dlopen_libs $LIBS"
9994
9995     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9996 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9997 if test "${lt_cv_dlopen_self+set}" = set; then
9998   echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000           if test "$cross_compiling" = yes; then :
10001   lt_cv_dlopen_self=cross
10002 else
10003   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10004   lt_status=$lt_dlunknown
10005   cat > conftest.$ac_ext <<EOF
10006 #line 10006 "configure"
10007 #include "confdefs.h"
10008
10009 #if HAVE_DLFCN_H
10010 #include <dlfcn.h>
10011 #endif
10012
10013 #include <stdio.h>
10014
10015 #ifdef RTLD_GLOBAL
10016 #  define LT_DLGLOBAL           RTLD_GLOBAL
10017 #else
10018 #  ifdef DL_GLOBAL
10019 #    define LT_DLGLOBAL         DL_GLOBAL
10020 #  else
10021 #    define LT_DLGLOBAL         0
10022 #  endif
10023 #endif
10024
10025 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10026    find out it does not work in some platform. */
10027 #ifndef LT_DLLAZY_OR_NOW
10028 #  ifdef RTLD_LAZY
10029 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10030 #  else
10031 #    ifdef DL_LAZY
10032 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10033 #    else
10034 #      ifdef RTLD_NOW
10035 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10036 #      else
10037 #        ifdef DL_NOW
10038 #          define LT_DLLAZY_OR_NOW      DL_NOW
10039 #        else
10040 #          define LT_DLLAZY_OR_NOW      0
10041 #        endif
10042 #      endif
10043 #    endif
10044 #  endif
10045 #endif
10046
10047 #ifdef __cplusplus
10048 extern "C" void exit (int);
10049 #endif
10050
10051 void fnord() { int i=42;}
10052 int main ()
10053 {
10054   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10055   int status = $lt_dlunknown;
10056
10057   if (self)
10058     {
10059       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10060       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10061       /* dlclose (self); */
10062     }
10063   else
10064     puts (dlerror ());
10065
10066     exit (status);
10067 }
10068 EOF
10069   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070   (eval $ac_link) 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10074     (./conftest; exit; ) >&5 2>/dev/null
10075     lt_status=$?
10076     case x$lt_status in
10077       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10078       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10079       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10080     esac
10081   else :
10082     # compilation failed
10083     lt_cv_dlopen_self=no
10084   fi
10085 fi
10086 rm -fr conftest*
10087
10088
10089 fi
10090 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10091 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10092
10093     if test "x$lt_cv_dlopen_self" = xyes; then
10094       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10095       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10096 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10097 if test "${lt_cv_dlopen_self_static+set}" = set; then
10098   echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100           if test "$cross_compiling" = yes; then :
10101   lt_cv_dlopen_self_static=cross
10102 else
10103   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10104   lt_status=$lt_dlunknown
10105   cat > conftest.$ac_ext <<EOF
10106 #line 10106 "configure"
10107 #include "confdefs.h"
10108
10109 #if HAVE_DLFCN_H
10110 #include <dlfcn.h>
10111 #endif
10112
10113 #include <stdio.h>
10114
10115 #ifdef RTLD_GLOBAL
10116 #  define LT_DLGLOBAL           RTLD_GLOBAL
10117 #else
10118 #  ifdef DL_GLOBAL
10119 #    define LT_DLGLOBAL         DL_GLOBAL
10120 #  else
10121 #    define LT_DLGLOBAL         0
10122 #  endif
10123 #endif
10124
10125 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10126    find out it does not work in some platform. */
10127 #ifndef LT_DLLAZY_OR_NOW
10128 #  ifdef RTLD_LAZY
10129 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10130 #  else
10131 #    ifdef DL_LAZY
10132 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10133 #    else
10134 #      ifdef RTLD_NOW
10135 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10136 #      else
10137 #        ifdef DL_NOW
10138 #          define LT_DLLAZY_OR_NOW      DL_NOW
10139 #        else
10140 #          define LT_DLLAZY_OR_NOW      0
10141 #        endif
10142 #      endif
10143 #    endif
10144 #  endif
10145 #endif
10146
10147 #ifdef __cplusplus
10148 extern "C" void exit (int);
10149 #endif
10150
10151 void fnord() { int i=42;}
10152 int main ()
10153 {
10154   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10155   int status = $lt_dlunknown;
10156
10157   if (self)
10158     {
10159       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10160       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10161       /* dlclose (self); */
10162     }
10163   else
10164     puts (dlerror ());
10165
10166     exit (status);
10167 }
10168 EOF
10169   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170   (eval $ac_link) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10174     (./conftest; exit; ) >&5 2>/dev/null
10175     lt_status=$?
10176     case x$lt_status in
10177       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10178       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10179       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10180     esac
10181   else :
10182     # compilation failed
10183     lt_cv_dlopen_self_static=no
10184   fi
10185 fi
10186 rm -fr conftest*
10187
10188
10189 fi
10190 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10191 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10192     fi
10193
10194     CPPFLAGS="$save_CPPFLAGS"
10195     LDFLAGS="$save_LDFLAGS"
10196     LIBS="$save_LIBS"
10197     ;;
10198   esac
10199
10200   case $lt_cv_dlopen_self in
10201   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10202   *) enable_dlopen_self=unknown ;;
10203   esac
10204
10205   case $lt_cv_dlopen_self_static in
10206   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10207   *) enable_dlopen_self_static=unknown ;;
10208   esac
10209 fi
10210
10211
10212 # Report which library types will actually be built
10213 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10214 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10215 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10216 echo "${ECHO_T}$can_build_shared" >&6; }
10217
10218 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10219 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10220 test "$can_build_shared" = "no" && enable_shared=no
10221
10222 # On AIX, shared libraries and static libraries use the same namespace, and
10223 # are all built from PIC.
10224 case $host_os in
10225 aix3*)
10226   test "$enable_shared" = yes && enable_static=no
10227   if test -n "$RANLIB"; then
10228     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10229     postinstall_cmds='$RANLIB $lib'
10230   fi
10231   ;;
10232
10233 aix4* | aix5*)
10234   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10235     test "$enable_shared" = yes && enable_static=no
10236   fi
10237     ;;
10238 esac
10239 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10240 echo "${ECHO_T}$enable_shared" >&6; }
10241
10242 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10243 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10244 # Make sure either enable_shared or enable_static is yes.
10245 test "$enable_shared" = yes || enable_static=yes
10246 { echo "$as_me:$LINENO: result: $enable_static" >&5
10247 echo "${ECHO_T}$enable_static" >&6; }
10248
10249 # The else clause should only fire when bootstrapping the
10250 # libtool distribution, otherwise you forgot to ship ltmain.sh
10251 # with your package, and you will get complaints that there are
10252 # no rules to generate ltmain.sh.
10253 if test -f "$ltmain"; then
10254   # See if we are running on zsh, and set the options which allow our commands through
10255   # without removal of \ escapes.
10256   if test -n "${ZSH_VERSION+set}" ; then
10257     setopt NO_GLOB_SUBST
10258   fi
10259   # Now quote all the things that may contain metacharacters while being
10260   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10261   # variables and quote the copies for generation of the libtool script.
10262   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10263     SED SHELL STRIP \
10264     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10265     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10266     deplibs_check_method reload_flag reload_cmds need_locks \
10267     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10268     lt_cv_sys_global_symbol_to_c_name_address \
10269     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10270     old_postinstall_cmds old_postuninstall_cmds \
10271     compiler \
10272     CC \
10273     LD \
10274     lt_prog_compiler_wl \
10275     lt_prog_compiler_pic \
10276     lt_prog_compiler_static \
10277     lt_prog_compiler_no_builtin_flag \
10278     export_dynamic_flag_spec \
10279     thread_safe_flag_spec \
10280     whole_archive_flag_spec \
10281     enable_shared_with_static_runtimes \
10282     old_archive_cmds \
10283     old_archive_from_new_cmds \
10284     predep_objects \
10285     postdep_objects \
10286     predeps \
10287     postdeps \
10288     compiler_lib_search_path \
10289     archive_cmds \
10290     archive_expsym_cmds \
10291     postinstall_cmds \
10292     postuninstall_cmds \
10293     old_archive_from_expsyms_cmds \
10294     allow_undefined_flag \
10295     no_undefined_flag \
10296     export_symbols_cmds \
10297     hardcode_libdir_flag_spec \
10298     hardcode_libdir_flag_spec_ld \
10299     hardcode_libdir_separator \
10300     hardcode_automatic \
10301     module_cmds \
10302     module_expsym_cmds \
10303     lt_cv_prog_compiler_c_o \
10304     exclude_expsyms \
10305     include_expsyms; do
10306
10307     case $var in
10308     old_archive_cmds | \
10309     old_archive_from_new_cmds | \
10310     archive_cmds | \
10311     archive_expsym_cmds | \
10312     module_cmds | \
10313     module_expsym_cmds | \
10314     old_archive_from_expsyms_cmds | \
10315     export_symbols_cmds | \
10316     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10317     postinstall_cmds | postuninstall_cmds | \
10318     old_postinstall_cmds | old_postuninstall_cmds | \
10319     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10320       # Double-quote double-evaled strings.
10321       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10322       ;;
10323     *)
10324       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10325       ;;
10326     esac
10327   done
10328
10329   case $lt_echo in
10330   *'\$0 --fallback-echo"')
10331     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10332     ;;
10333   esac
10334
10335 cfgfile="${ofile}T"
10336   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10337   $rm -f "$cfgfile"
10338   { echo "$as_me:$LINENO: creating $ofile" >&5
10339 echo "$as_me: creating $ofile" >&6;}
10340
10341   cat <<__EOF__ >> "$cfgfile"
10342 #! $SHELL
10343
10344 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10345 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10346 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10347 #
10348 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10349 # Free Software Foundation, Inc.
10350 #
10351 # This file is part of GNU Libtool:
10352 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10353 #
10354 # This program is free software; you can redistribute it and/or modify
10355 # it under the terms of the GNU General Public License as published by
10356 # the Free Software Foundation; either version 2 of the License, or
10357 # (at your option) any later version.
10358 #
10359 # This program is distributed in the hope that it will be useful, but
10360 # WITHOUT ANY WARRANTY; without even the implied warranty of
10361 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10362 # General Public License for more details.
10363 #
10364 # You should have received a copy of the GNU General Public License
10365 # along with this program; if not, write to the Free Software
10366 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10367 #
10368 # As a special exception to the GNU General Public License, if you
10369 # distribute this file as part of a program that contains a
10370 # configuration script generated by Autoconf, you may include it under
10371 # the same distribution terms that you use for the rest of that program.
10372
10373 # A sed program that does not truncate output.
10374 SED=$lt_SED
10375
10376 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10377 Xsed="$SED -e 1s/^X//"
10378
10379 # The HP-UX ksh and POSIX shell print the target directory to stdout
10380 # if CDPATH is set.
10381 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10382
10383 # The names of the tagged configurations supported by this script.
10384 available_tags=
10385
10386 # ### BEGIN LIBTOOL CONFIG
10387
10388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10389
10390 # Shell to use when invoking shell scripts.
10391 SHELL=$lt_SHELL
10392
10393 # Whether or not to build shared libraries.
10394 build_libtool_libs=$enable_shared
10395
10396 # Whether or not to build static libraries.
10397 build_old_libs=$enable_static
10398
10399 # Whether or not to add -lc for building shared libraries.
10400 build_libtool_need_lc=$archive_cmds_need_lc
10401
10402 # Whether or not to disallow shared libs when runtime libs are static
10403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10404
10405 # Whether or not to optimize for fast installation.
10406 fast_install=$enable_fast_install
10407
10408 # The host system.
10409 host_alias=$host_alias
10410 host=$host
10411 host_os=$host_os
10412
10413 # The build system.
10414 build_alias=$build_alias
10415 build=$build
10416 build_os=$build_os
10417
10418 # An echo program that does not interpret backslashes.
10419 echo=$lt_echo
10420
10421 # The archiver.
10422 AR=$lt_AR
10423 AR_FLAGS=$lt_AR_FLAGS
10424
10425 # A C compiler.
10426 LTCC=$lt_LTCC
10427
10428 # LTCC compiler flags.
10429 LTCFLAGS=$lt_LTCFLAGS
10430
10431 # A language-specific compiler.
10432 CC=$lt_compiler
10433
10434 # Is the compiler the GNU C compiler?
10435 with_gcc=$GCC
10436
10437 # An ERE matcher.
10438 EGREP=$lt_EGREP
10439
10440 # The linker used to build libraries.
10441 LD=$lt_LD
10442
10443 # Whether we need hard or soft links.
10444 LN_S=$lt_LN_S
10445
10446 # A BSD-compatible nm program.
10447 NM=$lt_NM
10448
10449 # A symbol stripping program
10450 STRIP=$lt_STRIP
10451
10452 # Used to examine libraries when file_magic_cmd begins "file"
10453 MAGIC_CMD=$MAGIC_CMD
10454
10455 # Used on cygwin: DLL creation program.
10456 DLLTOOL="$DLLTOOL"
10457
10458 # Used on cygwin: object dumper.
10459 OBJDUMP="$OBJDUMP"
10460
10461 # Used on cygwin: assembler.
10462 AS="$AS"
10463
10464 # The name of the directory that contains temporary libtool files.
10465 objdir=$objdir
10466
10467 # How to create reloadable object files.
10468 reload_flag=$lt_reload_flag
10469 reload_cmds=$lt_reload_cmds
10470
10471 # How to pass a linker flag through the compiler.
10472 wl=$lt_lt_prog_compiler_wl
10473
10474 # Object file suffix (normally "o").
10475 objext="$ac_objext"
10476
10477 # Old archive suffix (normally "a").
10478 libext="$libext"
10479
10480 # Shared library suffix (normally ".so").
10481 shrext_cmds='$shrext_cmds'
10482
10483 # Executable file suffix (normally "").
10484 exeext="$exeext"
10485
10486 # Additional compiler flags for building library objects.
10487 pic_flag=$lt_lt_prog_compiler_pic
10488 pic_mode=$pic_mode
10489
10490 # What is the maximum length of a command?
10491 max_cmd_len=$lt_cv_sys_max_cmd_len
10492
10493 # Does compiler simultaneously support -c and -o options?
10494 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10495
10496 # Must we lock files when doing compilation?
10497 need_locks=$lt_need_locks
10498
10499 # Do we need the lib prefix for modules?
10500 need_lib_prefix=$need_lib_prefix
10501
10502 # Do we need a version for libraries?
10503 need_version=$need_version
10504
10505 # Whether dlopen is supported.
10506 dlopen_support=$enable_dlopen
10507
10508 # Whether dlopen of programs is supported.
10509 dlopen_self=$enable_dlopen_self
10510
10511 # Whether dlopen of statically linked programs is supported.
10512 dlopen_self_static=$enable_dlopen_self_static
10513
10514 # Compiler flag to prevent dynamic linking.
10515 link_static_flag=$lt_lt_prog_compiler_static
10516
10517 # Compiler flag to turn off builtin functions.
10518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10519
10520 # Compiler flag to allow reflexive dlopens.
10521 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10522
10523 # Compiler flag to generate shared objects directly from archives.
10524 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10525
10526 # Compiler flag to generate thread-safe objects.
10527 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10528
10529 # Library versioning type.
10530 version_type=$version_type
10531
10532 # Format of library name prefix.
10533 libname_spec=$lt_libname_spec
10534
10535 # List of archive names.  First name is the real one, the rest are links.
10536 # The last name is the one that the linker finds with -lNAME.
10537 library_names_spec=$lt_library_names_spec
10538
10539 # The coded name of the library, if different from the real name.
10540 soname_spec=$lt_soname_spec
10541
10542 # Commands used to build and install an old-style archive.
10543 RANLIB=$lt_RANLIB
10544 old_archive_cmds=$lt_old_archive_cmds
10545 old_postinstall_cmds=$lt_old_postinstall_cmds
10546 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10547
10548 # Create an old-style archive from a shared archive.
10549 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10550
10551 # Create a temporary old-style archive to link instead of a shared archive.
10552 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10553
10554 # Commands used to build and install a shared archive.
10555 archive_cmds=$lt_archive_cmds
10556 archive_expsym_cmds=$lt_archive_expsym_cmds
10557 postinstall_cmds=$lt_postinstall_cmds
10558 postuninstall_cmds=$lt_postuninstall_cmds
10559
10560 # Commands used to build a loadable module (assumed same as above if empty)
10561 module_cmds=$lt_module_cmds
10562 module_expsym_cmds=$lt_module_expsym_cmds
10563
10564 # Commands to strip libraries.
10565 old_striplib=$lt_old_striplib
10566 striplib=$lt_striplib
10567
10568 # Dependencies to place before the objects being linked to create a
10569 # shared library.
10570 predep_objects=$lt_predep_objects
10571
10572 # Dependencies to place after the objects being linked to create a
10573 # shared library.
10574 postdep_objects=$lt_postdep_objects
10575
10576 # Dependencies to place before the objects being linked to create a
10577 # shared library.
10578 predeps=$lt_predeps
10579
10580 # Dependencies to place after the objects being linked to create a
10581 # shared library.
10582 postdeps=$lt_postdeps
10583
10584 # The library search path used internally by the compiler when linking
10585 # a shared library.
10586 compiler_lib_search_path=$lt_compiler_lib_search_path
10587
10588 # Method to check whether dependent libraries are shared objects.
10589 deplibs_check_method=$lt_deplibs_check_method
10590
10591 # Command to use when deplibs_check_method == file_magic.
10592 file_magic_cmd=$lt_file_magic_cmd
10593
10594 # Flag that allows shared libraries with undefined symbols to be built.
10595 allow_undefined_flag=$lt_allow_undefined_flag
10596
10597 # Flag that forces no undefined symbols.
10598 no_undefined_flag=$lt_no_undefined_flag
10599
10600 # Commands used to finish a libtool library installation in a directory.
10601 finish_cmds=$lt_finish_cmds
10602
10603 # Same as above, but a single script fragment to be evaled but not shown.
10604 finish_eval=$lt_finish_eval
10605
10606 # Take the output of nm and produce a listing of raw symbols and C names.
10607 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10608
10609 # Transform the output of nm in a proper C declaration
10610 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10611
10612 # Transform the output of nm in a C name address pair
10613 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10614
10615 # This is the shared library runtime path variable.
10616 runpath_var=$runpath_var
10617
10618 # This is the shared library path variable.
10619 shlibpath_var=$shlibpath_var
10620
10621 # Is shlibpath searched before the hard-coded library search path?
10622 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10623
10624 # How to hardcode a shared library path into an executable.
10625 hardcode_action=$hardcode_action
10626
10627 # Whether we should hardcode library paths into libraries.
10628 hardcode_into_libs=$hardcode_into_libs
10629
10630 # Flag to hardcode \$libdir into a binary during linking.
10631 # This must work even if \$libdir does not exist.
10632 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10633
10634 # If ld is used when linking, flag to hardcode \$libdir into
10635 # a binary during linking. This must work even if \$libdir does
10636 # not exist.
10637 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10638
10639 # Whether we need a single -rpath flag with a separated argument.
10640 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10641
10642 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10643 # resulting binary.
10644 hardcode_direct=$hardcode_direct
10645
10646 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10647 # resulting binary.
10648 hardcode_minus_L=$hardcode_minus_L
10649
10650 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10651 # the resulting binary.
10652 hardcode_shlibpath_var=$hardcode_shlibpath_var
10653
10654 # Set to yes if building a shared library automatically hardcodes DIR into the library
10655 # and all subsequent libraries and executables linked against it.
10656 hardcode_automatic=$hardcode_automatic
10657
10658 # Variables whose values should be saved in libtool wrapper scripts and
10659 # restored at relink time.
10660 variables_saved_for_relink="$variables_saved_for_relink"
10661
10662 # Whether libtool must link a program against all its dependency libraries.
10663 link_all_deplibs=$link_all_deplibs
10664
10665 # Compile-time system search path for libraries
10666 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10667
10668 # Run-time system search path for libraries
10669 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10670
10671 # Fix the shell variable \$srcfile for the compiler.
10672 fix_srcfile_path="$fix_srcfile_path"
10673
10674 # Set to yes if exported symbols are required.
10675 always_export_symbols=$always_export_symbols
10676
10677 # The commands to list exported symbols.
10678 export_symbols_cmds=$lt_export_symbols_cmds
10679
10680 # The commands to extract the exported symbol list from a shared archive.
10681 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10682
10683 # Symbols that should not be listed in the preloaded symbols.
10684 exclude_expsyms=$lt_exclude_expsyms
10685
10686 # Symbols that must always be exported.
10687 include_expsyms=$lt_include_expsyms
10688
10689 # ### END LIBTOOL CONFIG
10690
10691 __EOF__
10692
10693
10694   case $host_os in
10695   aix3*)
10696     cat <<\EOF >> "$cfgfile"
10697
10698 # AIX sometimes has problems with the GCC collect2 program.  For some
10699 # reason, if we set the COLLECT_NAMES environment variable, the problems
10700 # vanish in a puff of smoke.
10701 if test "X${COLLECT_NAMES+set}" != Xset; then
10702   COLLECT_NAMES=
10703   export COLLECT_NAMES
10704 fi
10705 EOF
10706     ;;
10707   esac
10708
10709   # We use sed instead of cat because bash on DJGPP gets confused if
10710   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10711   # text mode, it properly converts lines to CR/LF.  This bash problem
10712   # is reportedly fixed, but why not run on old versions too?
10713   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10714
10715   mv -f "$cfgfile" "$ofile" || \
10716     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10717   chmod +x "$ofile"
10718
10719 else
10720   # If there is no Makefile yet, we rely on a make rule to execute
10721   # `config.status --recheck' to rerun these tests and create the
10722   # libtool script then.
10723   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10724   if test -f "$ltmain_in"; then
10725     test -f Makefile && make "$ltmain"
10726   fi
10727 fi
10728
10729
10730 ac_ext=c
10731 ac_cpp='$CPP $CPPFLAGS'
10732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10735
10736 CC="$lt_save_CC"
10737
10738
10739 # Check whether --with-tags was given.
10740 if test "${with_tags+set}" = set; then
10741   withval=$with_tags; tagnames="$withval"
10742 fi
10743
10744
10745 if test -f "$ltmain" && test -n "$tagnames"; then
10746   if test ! -f "${ofile}"; then
10747     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10748 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10749   fi
10750
10751   if test -z "$LTCC"; then
10752     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10753     if test -z "$LTCC"; then
10754       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10755 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10756     else
10757       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10758 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10759     fi
10760   fi
10761   if test -z "$LTCFLAGS"; then
10762     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10763   fi
10764
10765   # Extract list of available tagged configurations in $ofile.
10766   # Note that this assumes the entire list is on one line.
10767   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10768
10769   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10770   for tagname in $tagnames; do
10771     IFS="$lt_save_ifs"
10772     # Check whether tagname contains only valid characters
10773     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10774     "") ;;
10775     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10776 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10777    { (exit 1); exit 1; }; }
10778         ;;
10779     esac
10780
10781     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10782     then
10783       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10784 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10785    { (exit 1); exit 1; }; }
10786     fi
10787
10788     # Update the list of available tags.
10789     if test -n "$tagname"; then
10790       echo appending configuration tag \"$tagname\" to $ofile
10791
10792       case $tagname in
10793       CXX)
10794         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10795             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10796             (test "X$CXX" != "Xg++"))) ; then
10797           ac_ext=cpp
10798 ac_cpp='$CXXCPP $CPPFLAGS'
10799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10802
10803
10804
10805
10806 archive_cmds_need_lc_CXX=no
10807 allow_undefined_flag_CXX=
10808 always_export_symbols_CXX=no
10809 archive_expsym_cmds_CXX=
10810 export_dynamic_flag_spec_CXX=
10811 hardcode_direct_CXX=no
10812 hardcode_libdir_flag_spec_CXX=
10813 hardcode_libdir_flag_spec_ld_CXX=
10814 hardcode_libdir_separator_CXX=
10815 hardcode_minus_L_CXX=no
10816 hardcode_shlibpath_var_CXX=unsupported
10817 hardcode_automatic_CXX=no
10818 module_cmds_CXX=
10819 module_expsym_cmds_CXX=
10820 link_all_deplibs_CXX=unknown
10821 old_archive_cmds_CXX=$old_archive_cmds
10822 no_undefined_flag_CXX=
10823 whole_archive_flag_spec_CXX=
10824 enable_shared_with_static_runtimes_CXX=no
10825
10826 # Dependencies to place before and after the object being linked:
10827 predep_objects_CXX=
10828 postdep_objects_CXX=
10829 predeps_CXX=
10830 postdeps_CXX=
10831 compiler_lib_search_path_CXX=
10832
10833 # Source file extension for C++ test sources.
10834 ac_ext=cpp
10835
10836 # Object file extension for compiled C++ test sources.
10837 objext=o
10838 objext_CXX=$objext
10839
10840 # Code to be used in simple compile tests
10841 lt_simple_compile_test_code="int some_variable = 0;\n"
10842
10843 # Code to be used in simple link tests
10844 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10845
10846 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10847
10848 # If no C compiler was specified, use CC.
10849 LTCC=${LTCC-"$CC"}
10850
10851 # If no C compiler flags were specified, use CFLAGS.
10852 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10853
10854 # Allow CC to be a program name with arguments.
10855 compiler=$CC
10856
10857
10858 # save warnings/boilerplate of simple test code
10859 ac_outfile=conftest.$ac_objext
10860 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10861 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10862 _lt_compiler_boilerplate=`cat conftest.err`
10863 $rm conftest*
10864
10865 ac_outfile=conftest.$ac_objext
10866 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10867 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10868 _lt_linker_boilerplate=`cat conftest.err`
10869 $rm conftest*
10870
10871
10872 # Allow CC to be a program name with arguments.
10873 lt_save_CC=$CC
10874 lt_save_LD=$LD
10875 lt_save_GCC=$GCC
10876 GCC=$GXX
10877 lt_save_with_gnu_ld=$with_gnu_ld
10878 lt_save_path_LD=$lt_cv_path_LD
10879 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10880   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10881 else
10882   $as_unset lt_cv_prog_gnu_ld
10883 fi
10884 if test -n "${lt_cv_path_LDCXX+set}"; then
10885   lt_cv_path_LD=$lt_cv_path_LDCXX
10886 else
10887   $as_unset lt_cv_path_LD
10888 fi
10889 test -z "${LDCXX+set}" || LD=$LDCXX
10890 CC=${CXX-"c++"}
10891 compiler=$CC
10892 compiler_CXX=$CC
10893 for cc_temp in $compiler""; do
10894   case $cc_temp in
10895     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10896     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10897     \-*) ;;
10898     *) break;;
10899   esac
10900 done
10901 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10902
10903
10904 # We don't want -fno-exception wen compiling C++ code, so set the
10905 # no_builtin_flag separately
10906 if test "$GXX" = yes; then
10907   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10908 else
10909   lt_prog_compiler_no_builtin_flag_CXX=
10910 fi
10911
10912 if test "$GXX" = yes; then
10913   # Set up default GNU C++ configuration
10914
10915
10916 # Check whether --with-gnu-ld was given.
10917 if test "${with_gnu_ld+set}" = set; then
10918   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10919 else
10920   with_gnu_ld=no
10921 fi
10922
10923 ac_prog=ld
10924 if test "$GCC" = yes; then
10925   # Check if gcc -print-prog-name=ld gives a path.
10926   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10927 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10928   case $host in
10929   *-*-mingw*)
10930     # gcc leaves a trailing carriage return which upsets mingw
10931     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10932   *)
10933     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10934   esac
10935   case $ac_prog in
10936     # Accept absolute paths.
10937     [\\/]* | ?:[\\/]*)
10938       re_direlt='/[^/][^/]*/\.\./'
10939       # Canonicalize the pathname of ld
10940       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10941       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10942         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10943       done
10944       test -z "$LD" && LD="$ac_prog"
10945       ;;
10946   "")
10947     # If it fails, then pretend we aren't using GCC.
10948     ac_prog=ld
10949     ;;
10950   *)
10951     # If it is relative, then search for the first ld in PATH.
10952     with_gnu_ld=unknown
10953     ;;
10954   esac
10955 elif test "$with_gnu_ld" = yes; then
10956   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10957 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10958 else
10959   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10960 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10961 fi
10962 if test "${lt_cv_path_LD+set}" = set; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   if test -z "$LD"; then
10966   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10967   for ac_dir in $PATH; do
10968     IFS="$lt_save_ifs"
10969     test -z "$ac_dir" && ac_dir=.
10970     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10971       lt_cv_path_LD="$ac_dir/$ac_prog"
10972       # Check to see if the program is GNU ld.  I'd rather use --version,
10973       # but apparently some variants of GNU ld only accept -v.
10974       # Break only if it was the GNU/non-GNU ld that we prefer.
10975       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10976       *GNU* | *'with BFD'*)
10977         test "$with_gnu_ld" != no && break
10978         ;;
10979       *)
10980         test "$with_gnu_ld" != yes && break
10981         ;;
10982       esac
10983     fi
10984   done
10985   IFS="$lt_save_ifs"
10986 else
10987   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10988 fi
10989 fi
10990
10991 LD="$lt_cv_path_LD"
10992 if test -n "$LD"; then
10993   { echo "$as_me:$LINENO: result: $LD" >&5
10994 echo "${ECHO_T}$LD" >&6; }
10995 else
10996   { echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6; }
10998 fi
10999 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11000 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11001    { (exit 1); exit 1; }; }
11002 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11003 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11004 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11008 case `$LD -v 2>&1 </dev/null` in
11009 *GNU* | *'with BFD'*)
11010   lt_cv_prog_gnu_ld=yes
11011   ;;
11012 *)
11013   lt_cv_prog_gnu_ld=no
11014   ;;
11015 esac
11016 fi
11017 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11018 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11019 with_gnu_ld=$lt_cv_prog_gnu_ld
11020
11021
11022
11023   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11024   # archiving commands below assume that GNU ld is being used.
11025   if test "$with_gnu_ld" = yes; then
11026     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11027     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'
11028
11029     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11030     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11031
11032     # If archive_cmds runs LD, not CC, wlarc should be empty
11033     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11034     #     investigate it a little bit more. (MM)
11035     wlarc='${wl}'
11036
11037     # ancient GNU ld didn't support --whole-archive et. al.
11038     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11039         grep 'no-whole-archive' > /dev/null; then
11040       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11041     else
11042       whole_archive_flag_spec_CXX=
11043     fi
11044   else
11045     with_gnu_ld=no
11046     wlarc=
11047
11048     # A generic and very simple default shared library creation
11049     # command for GNU C++ for the case where it uses the native
11050     # linker, instead of GNU ld.  If possible, this setting should
11051     # overridden to take advantage of the native linker features on
11052     # the platform it is being used on.
11053     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11054   fi
11055
11056   # Commands to make compiler produce verbose output that lists
11057   # what "hidden" libraries, object files and flags are used when
11058   # linking a shared library.
11059   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11060
11061 else
11062   GXX=no
11063   with_gnu_ld=no
11064   wlarc=
11065 fi
11066
11067 # PORTME: fill in a description of your system's C++ link characteristics
11068 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11069 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11070 ld_shlibs_CXX=yes
11071 case $host_os in
11072   aix3*)
11073     # FIXME: insert proper C++ library support
11074     ld_shlibs_CXX=no
11075     ;;
11076   aix4* | aix5*)
11077     if test "$host_cpu" = ia64; then
11078       # On IA64, the linker does run time linking by default, so we don't
11079       # have to do anything special.
11080       aix_use_runtimelinking=no
11081       exp_sym_flag='-Bexport'
11082       no_entry_flag=""
11083     else
11084       aix_use_runtimelinking=no
11085
11086       # Test if we are trying to use run time linking or normal
11087       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11088       # need to do runtime linking.
11089       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11090         for ld_flag in $LDFLAGS; do
11091           case $ld_flag in
11092           *-brtl*)
11093             aix_use_runtimelinking=yes
11094             break
11095             ;;
11096           esac
11097         done
11098         ;;
11099       esac
11100
11101       exp_sym_flag='-bexport'
11102       no_entry_flag='-bnoentry'
11103     fi
11104
11105     # When large executables or shared objects are built, AIX ld can
11106     # have problems creating the table of contents.  If linking a library
11107     # or program results in "error TOC overflow" add -mminimal-toc to
11108     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11109     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11110
11111     archive_cmds_CXX=''
11112     hardcode_direct_CXX=yes
11113     hardcode_libdir_separator_CXX=':'
11114     link_all_deplibs_CXX=yes
11115
11116     if test "$GXX" = yes; then
11117       case $host_os in aix4.[012]|aix4.[012].*)
11118       # We only want to do this on AIX 4.2 and lower, the check
11119       # below for broken collect2 doesn't work under 4.3+
11120         collect2name=`${CC} -print-prog-name=collect2`
11121         if test -f "$collect2name" && \
11122            strings "$collect2name" | grep resolve_lib_name >/dev/null
11123         then
11124           # We have reworked collect2
11125           hardcode_direct_CXX=yes
11126         else
11127           # We have old collect2
11128           hardcode_direct_CXX=unsupported
11129           # It fails to find uninstalled libraries when the uninstalled
11130           # path is not listed in the libpath.  Setting hardcode_minus_L
11131           # to unsupported forces relinking
11132           hardcode_minus_L_CXX=yes
11133           hardcode_libdir_flag_spec_CXX='-L$libdir'
11134           hardcode_libdir_separator_CXX=
11135         fi
11136         ;;
11137       esac
11138       shared_flag='-shared'
11139       if test "$aix_use_runtimelinking" = yes; then
11140         shared_flag="$shared_flag "'${wl}-G'
11141       fi
11142     else
11143       # not using gcc
11144       if test "$host_cpu" = ia64; then
11145         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11146         # chokes on -Wl,-G. The following line is correct:
11147         shared_flag='-G'
11148       else
11149         if test "$aix_use_runtimelinking" = yes; then
11150           shared_flag='${wl}-G'
11151         else
11152           shared_flag='${wl}-bM:SRE'
11153         fi
11154       fi
11155     fi
11156
11157     # It seems that -bexpall does not export symbols beginning with
11158     # underscore (_), so it is better to generate a list of symbols to export.
11159     always_export_symbols_CXX=yes
11160     if test "$aix_use_runtimelinking" = yes; then
11161       # Warning - without using the other runtime loading flags (-brtl),
11162       # -berok will link without error, but may produce a broken library.
11163       allow_undefined_flag_CXX='-berok'
11164       # Determine the default libpath from the value encoded in an empty executable.
11165       cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171
11172 int
11173 main ()
11174 {
11175
11176   ;
11177   return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (ac_try="$ac_link"
11182 case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187   (eval "$ac_link") 2>conftest.er1
11188   ac_status=$?
11189   grep -v '^ *+' conftest.er1 >conftest.err
11190   rm -f conftest.er1
11191   cat conftest.err >&5
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); } && {
11194          test -z "$ac_cxx_werror_flag" ||
11195          test ! -s conftest.err
11196        } && test -s conftest$ac_exeext &&
11197        $as_test_x conftest$ac_exeext; then
11198
11199 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11200 }'`
11201 # Check for a 64-bit object if we didn't find anything.
11202 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; }
11203 }'`; fi
11204 else
11205   echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11207
11208
11209 fi
11210
11211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11212       conftest$ac_exeext conftest.$ac_ext
11213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11214
11215       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11216
11217       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"
11218      else
11219       if test "$host_cpu" = ia64; then
11220         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11221         allow_undefined_flag_CXX="-z nodefs"
11222         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"
11223       else
11224         # Determine the default libpath from the value encoded in an empty executable.
11225         cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h.  */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h.  */
11231
11232 int
11233 main ()
11234 {
11235
11236   ;
11237   return 0;
11238 }
11239 _ACEOF
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (ac_try="$ac_link"
11242 case "(($ac_try" in
11243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244   *) ac_try_echo=$ac_try;;
11245 esac
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247   (eval "$ac_link") 2>conftest.er1
11248   ac_status=$?
11249   grep -v '^ *+' conftest.er1 >conftest.err
11250   rm -f conftest.er1
11251   cat conftest.err >&5
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); } && {
11254          test -z "$ac_cxx_werror_flag" ||
11255          test ! -s conftest.err
11256        } && test -s conftest$ac_exeext &&
11257        $as_test_x conftest$ac_exeext; then
11258
11259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11260 }'`
11261 # Check for a 64-bit object if we didn't find anything.
11262 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; }
11263 }'`; fi
11264 else
11265   echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11267
11268
11269 fi
11270
11271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11272       conftest$ac_exeext conftest.$ac_ext
11273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11274
11275         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11276         # Warning - without using the other run time loading flags,
11277         # -berok will link without error, but may produce a broken library.
11278         no_undefined_flag_CXX=' ${wl}-bernotok'
11279         allow_undefined_flag_CXX=' ${wl}-berok'
11280         # Exported symbols can be pulled into shared objects from archives
11281         whole_archive_flag_spec_CXX='$convenience'
11282         archive_cmds_need_lc_CXX=yes
11283         # This is similar to how AIX traditionally builds its shared libraries.
11284         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'
11285       fi
11286     fi
11287     ;;
11288
11289   beos*)
11290     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11291       allow_undefined_flag_CXX=unsupported
11292       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11293       # support --undefined.  This deserves some investigation.  FIXME
11294       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11295     else
11296       ld_shlibs_CXX=no
11297     fi
11298     ;;
11299
11300   chorus*)
11301     case $cc_basename in
11302       *)
11303         # FIXME: insert proper C++ library support
11304         ld_shlibs_CXX=no
11305         ;;
11306     esac
11307     ;;
11308
11309   cygwin* | mingw* | pw32*)
11310     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11311     # as there is no search path for DLLs.
11312     hardcode_libdir_flag_spec_CXX='-L$libdir'
11313     allow_undefined_flag_CXX=unsupported
11314     always_export_symbols_CXX=no
11315     enable_shared_with_static_runtimes_CXX=yes
11316
11317     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11318       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'
11319       # If the export-symbols file already is a .def file (1st line
11320       # is EXPORTS), use it as is; otherwise, prepend...
11321       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11322         cp $export_symbols $output_objdir/$soname.def;
11323       else
11324         echo EXPORTS > $output_objdir/$soname.def;
11325         cat $export_symbols >> $output_objdir/$soname.def;
11326       fi~
11327       $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'
11328     else
11329       ld_shlibs_CXX=no
11330     fi
11331   ;;
11332       darwin* | rhapsody*)
11333         case $host_os in
11334         rhapsody* | darwin1.[012])
11335          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11336          ;;
11337        *) # Darwin 1.3 on
11338          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11339            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11340          else
11341            case ${MACOSX_DEPLOYMENT_TARGET} in
11342              10.[012])
11343                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11344                ;;
11345              10.*)
11346                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11347                ;;
11348            esac
11349          fi
11350          ;;
11351         esac
11352       archive_cmds_need_lc_CXX=no
11353       hardcode_direct_CXX=no
11354       hardcode_automatic_CXX=yes
11355       hardcode_shlibpath_var_CXX=unsupported
11356       whole_archive_flag_spec_CXX=''
11357       link_all_deplibs_CXX=yes
11358
11359     if test "$GXX" = yes ; then
11360       lt_int_apple_cc_single_mod=no
11361       output_verbose_link_cmd='echo'
11362       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11363        lt_int_apple_cc_single_mod=yes
11364       fi
11365       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11366        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11367       else
11368           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'
11369         fi
11370         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11371         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11372           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11373             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}'
11374           else
11375             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}'
11376           fi
11377             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}'
11378       else
11379       case $cc_basename in
11380         xlc*)
11381          output_verbose_link_cmd='echo'
11382           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'
11383           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11384           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11385           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}'
11386           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}'
11387           ;;
11388        *)
11389          ld_shlibs_CXX=no
11390           ;;
11391       esac
11392       fi
11393         ;;
11394
11395   dgux*)
11396     case $cc_basename in
11397       ec++*)
11398         # FIXME: insert proper C++ library support
11399         ld_shlibs_CXX=no
11400         ;;
11401       ghcx*)
11402         # Green Hills C++ Compiler
11403         # FIXME: insert proper C++ library support
11404         ld_shlibs_CXX=no
11405         ;;
11406       *)
11407         # FIXME: insert proper C++ library support
11408         ld_shlibs_CXX=no
11409         ;;
11410     esac
11411     ;;
11412   freebsd[12]*)
11413     # C++ shared libraries reported to be fairly broken before switch to ELF
11414     ld_shlibs_CXX=no
11415     ;;
11416   freebsd-elf*)
11417     archive_cmds_need_lc_CXX=no
11418     ;;
11419   freebsd* | kfreebsd*-gnu | dragonfly*)
11420     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11421     # conventions
11422     ld_shlibs_CXX=yes
11423     ;;
11424   gnu*)
11425     ;;
11426   hpux9*)
11427     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11428     hardcode_libdir_separator_CXX=:
11429     export_dynamic_flag_spec_CXX='${wl}-E'
11430     hardcode_direct_CXX=yes
11431     hardcode_minus_L_CXX=yes # Not in the search PATH,
11432                                 # but as the default
11433                                 # location of the library.
11434
11435     case $cc_basename in
11436     CC*)
11437       # FIXME: insert proper C++ library support
11438       ld_shlibs_CXX=no
11439       ;;
11440     aCC*)
11441       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'
11442       # Commands to make compiler produce verbose output that lists
11443       # what "hidden" libraries, object files and flags are used when
11444       # linking a shared library.
11445       #
11446       # There doesn't appear to be a way to prevent this compiler from
11447       # explicitly linking system object files so we need to strip them
11448       # from the output so that they don't get included in the library
11449       # dependencies.
11450       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'
11451       ;;
11452     *)
11453       if test "$GXX" = yes; then
11454         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'
11455       else
11456         # FIXME: insert proper C++ library support
11457         ld_shlibs_CXX=no
11458       fi
11459       ;;
11460     esac
11461     ;;
11462   hpux10*|hpux11*)
11463     if test $with_gnu_ld = no; then
11464       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11465       hardcode_libdir_separator_CXX=:
11466
11467       case $host_cpu in
11468       hppa*64*|ia64*)
11469         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11470         ;;
11471       *)
11472         export_dynamic_flag_spec_CXX='${wl}-E'
11473         ;;
11474       esac
11475     fi
11476     case $host_cpu in
11477     hppa*64*|ia64*)
11478       hardcode_direct_CXX=no
11479       hardcode_shlibpath_var_CXX=no
11480       ;;
11481     *)
11482       hardcode_direct_CXX=yes
11483       hardcode_minus_L_CXX=yes # Not in the search PATH,
11484                                               # but as the default
11485                                               # location of the library.
11486       ;;
11487     esac
11488
11489     case $cc_basename in
11490       CC*)
11491         # FIXME: insert proper C++ library support
11492         ld_shlibs_CXX=no
11493         ;;
11494       aCC*)
11495         case $host_cpu in
11496         hppa*64*)
11497           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11498           ;;
11499         ia64*)
11500           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11501           ;;
11502         *)
11503           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11504           ;;
11505         esac
11506         # Commands to make compiler produce verbose output that lists
11507         # what "hidden" libraries, object files and flags are used when
11508         # linking a shared library.
11509         #
11510         # There doesn't appear to be a way to prevent this compiler from
11511         # explicitly linking system object files so we need to strip them
11512         # from the output so that they don't get included in the library
11513         # dependencies.
11514         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'
11515         ;;
11516       *)
11517         if test "$GXX" = yes; then
11518           if test $with_gnu_ld = no; then
11519             case $host_cpu in
11520             hppa*64*)
11521               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11522               ;;
11523             ia64*)
11524               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11525               ;;
11526             *)
11527               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'
11528               ;;
11529             esac
11530           fi
11531         else
11532           # FIXME: insert proper C++ library support
11533           ld_shlibs_CXX=no
11534         fi
11535         ;;
11536     esac
11537     ;;
11538   interix3*)
11539     hardcode_direct_CXX=no
11540     hardcode_shlibpath_var_CXX=no
11541     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11542     export_dynamic_flag_spec_CXX='${wl}-E'
11543     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11544     # Instead, shared libraries are loaded at an image base (0x10000000 by
11545     # default) and relocated if they conflict, which is a slow very memory
11546     # consuming and fragmenting process.  To avoid this, we pick a random,
11547     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11548     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11549     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'
11550     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'
11551     ;;
11552   irix5* | irix6*)
11553     case $cc_basename in
11554       CC*)
11555         # SGI C++
11556         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'
11557
11558         # Archives containing C++ object files must be created using
11559         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11560         # necessary to make sure instantiated templates are included
11561         # in the archive.
11562         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11563         ;;
11564       *)
11565         if test "$GXX" = yes; then
11566           if test "$with_gnu_ld" = no; then
11567             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'
11568           else
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` -o $lib'
11570           fi
11571         fi
11572         link_all_deplibs_CXX=yes
11573         ;;
11574     esac
11575     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11576     hardcode_libdir_separator_CXX=:
11577     ;;
11578   linux*)
11579     case $cc_basename in
11580       KCC*)
11581         # Kuck and Associates, Inc. (KAI) C++ Compiler
11582
11583         # KCC will only create a shared library if the output file
11584         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11585         # to its proper name (with version) after linking.
11586         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'
11587         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'
11588         # Commands to make compiler produce verbose output that lists
11589         # what "hidden" libraries, object files and flags are used when
11590         # linking a shared library.
11591         #
11592         # There doesn't appear to be a way to prevent this compiler from
11593         # explicitly linking system object files so we need to strip them
11594         # from the output so that they don't get included in the library
11595         # dependencies.
11596         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'
11597
11598         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11599         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11600
11601         # Archives containing C++ object files must be created using
11602         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11603         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11604         ;;
11605       icpc*)
11606         # Intel C++
11607         with_gnu_ld=yes
11608         # version 8.0 and above of icpc choke on multiply defined symbols
11609         # if we add $predep_objects and $postdep_objects, however 7.1 and
11610         # earlier do not add the objects themselves.
11611         case `$CC -V 2>&1` in
11612         *"Version 7."*)
11613           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614           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'
11615           ;;
11616         *)  # Version 8.0 or newer
11617           tmp_idyn=
11618           case $host_cpu in
11619             ia64*) tmp_idyn=' -i_dynamic';;
11620           esac
11621           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11622           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'
11623           ;;
11624         esac
11625         archive_cmds_need_lc_CXX=no
11626         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11627         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11628         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11629         ;;
11630       pgCC*)
11631         # Portland Group C++ compiler
11632         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11633         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'
11634
11635         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11636         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11637         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'
11638         ;;
11639       cxx*)
11640         # Compaq C++
11641         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11642         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'
11643
11644         runpath_var=LD_RUN_PATH
11645         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11646         hardcode_libdir_separator_CXX=:
11647
11648         # Commands to make compiler produce verbose output that lists
11649         # what "hidden" libraries, object files and flags are used when
11650         # linking a shared library.
11651         #
11652         # There doesn't appear to be a way to prevent this compiler from
11653         # explicitly linking system object files so we need to strip them
11654         # from the output so that they don't get included in the library
11655         # dependencies.
11656         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'
11657         ;;
11658     esac
11659     ;;
11660   lynxos*)
11661     # FIXME: insert proper C++ library support
11662     ld_shlibs_CXX=no
11663     ;;
11664   m88k*)
11665     # FIXME: insert proper C++ library support
11666     ld_shlibs_CXX=no
11667     ;;
11668   mvs*)
11669     case $cc_basename in
11670       cxx*)
11671         # FIXME: insert proper C++ library support
11672         ld_shlibs_CXX=no
11673         ;;
11674       *)
11675         # FIXME: insert proper C++ library support
11676         ld_shlibs_CXX=no
11677         ;;
11678     esac
11679     ;;
11680   netbsd*)
11681     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11682       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11683       wlarc=
11684       hardcode_libdir_flag_spec_CXX='-R$libdir'
11685       hardcode_direct_CXX=yes
11686       hardcode_shlibpath_var_CXX=no
11687     fi
11688     # Workaround some broken pre-1.5 toolchains
11689     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11690     ;;
11691   openbsd2*)
11692     # C++ shared libraries are fairly broken
11693     ld_shlibs_CXX=no
11694     ;;
11695   openbsd*)
11696     hardcode_direct_CXX=yes
11697     hardcode_shlibpath_var_CXX=no
11698     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11699     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11700     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11701       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11702       export_dynamic_flag_spec_CXX='${wl}-E'
11703       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11704     fi
11705     output_verbose_link_cmd='echo'
11706     ;;
11707   osf3*)
11708     case $cc_basename in
11709       KCC*)
11710         # Kuck and Associates, Inc. (KAI) C++ Compiler
11711
11712         # KCC will only create a shared library if the output file
11713         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11714         # to its proper name (with version) after linking.
11715         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'
11716
11717         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11718         hardcode_libdir_separator_CXX=:
11719
11720         # Archives containing C++ object files must be created using
11721         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11722         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11723
11724         ;;
11725       RCC*)
11726         # Rational C++ 2.4.1
11727         # FIXME: insert proper C++ library support
11728         ld_shlibs_CXX=no
11729         ;;
11730       cxx*)
11731         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11732         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'
11733
11734         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11735         hardcode_libdir_separator_CXX=:
11736
11737         # Commands to make compiler produce verbose output that lists
11738         # what "hidden" libraries, object files and flags are used when
11739         # linking a shared library.
11740         #
11741         # There doesn't appear to be a way to prevent this compiler from
11742         # explicitly linking system object files so we need to strip them
11743         # from the output so that they don't get included in the library
11744         # dependencies.
11745         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'
11746         ;;
11747       *)
11748         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11749           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11750           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'
11751
11752           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11753           hardcode_libdir_separator_CXX=:
11754
11755           # Commands to make compiler produce verbose output that lists
11756           # what "hidden" libraries, object files and flags are used when
11757           # linking a shared library.
11758           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11759
11760         else
11761           # FIXME: insert proper C++ library support
11762           ld_shlibs_CXX=no
11763         fi
11764         ;;
11765     esac
11766     ;;
11767   osf4* | osf5*)
11768     case $cc_basename in
11769       KCC*)
11770         # Kuck and Associates, Inc. (KAI) C++ Compiler
11771
11772         # KCC will only create a shared library if the output file
11773         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11774         # to its proper name (with version) after linking.
11775         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'
11776
11777         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11778         hardcode_libdir_separator_CXX=:
11779
11780         # Archives containing C++ object files must be created using
11781         # the KAI C++ compiler.
11782         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11783         ;;
11784       RCC*)
11785         # Rational C++ 2.4.1
11786         # FIXME: insert proper C++ library support
11787         ld_shlibs_CXX=no
11788         ;;
11789       cxx*)
11790         allow_undefined_flag_CXX=' -expect_unresolved \*'
11791         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'
11792         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11793           echo "-hidden">> $lib.exp~
11794           $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~
11795           $rm $lib.exp'
11796
11797         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11798         hardcode_libdir_separator_CXX=:
11799
11800         # Commands to make compiler produce verbose output that lists
11801         # what "hidden" libraries, object files and flags are used when
11802         # linking a shared library.
11803         #
11804         # There doesn't appear to be a way to prevent this compiler from
11805         # explicitly linking system object files so we need to strip them
11806         # from the output so that they don't get included in the library
11807         # dependencies.
11808         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'
11809         ;;
11810       *)
11811         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11812           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11813          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'
11814
11815           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11816           hardcode_libdir_separator_CXX=:
11817
11818           # Commands to make compiler produce verbose output that lists
11819           # what "hidden" libraries, object files and flags are used when
11820           # linking a shared library.
11821           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11822
11823         else
11824           # FIXME: insert proper C++ library support
11825           ld_shlibs_CXX=no
11826         fi
11827         ;;
11828     esac
11829     ;;
11830   psos*)
11831     # FIXME: insert proper C++ library support
11832     ld_shlibs_CXX=no
11833     ;;
11834   sunos4*)
11835     case $cc_basename in
11836       CC*)
11837         # Sun C++ 4.x
11838         # FIXME: insert proper C++ library support
11839         ld_shlibs_CXX=no
11840         ;;
11841       lcc*)
11842         # Lucid
11843         # FIXME: insert proper C++ library support
11844         ld_shlibs_CXX=no
11845         ;;
11846       *)
11847         # FIXME: insert proper C++ library support
11848         ld_shlibs_CXX=no
11849         ;;
11850     esac
11851     ;;
11852   solaris*)
11853     case $cc_basename in
11854       CC*)
11855         # Sun C++ 4.2, 5.x and Centerline C++
11856         archive_cmds_need_lc_CXX=yes
11857         no_undefined_flag_CXX=' -zdefs'
11858         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11859         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11860         $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'
11861
11862         hardcode_libdir_flag_spec_CXX='-R$libdir'
11863         hardcode_shlibpath_var_CXX=no
11864         case $host_os in
11865           solaris2.[0-5] | solaris2.[0-5].*) ;;
11866           *)
11867             # The C++ compiler is used as linker so we must use $wl
11868             # flag to pass the commands to the underlying system
11869             # linker. We must also pass each convience library through
11870             # to the system linker between allextract/defaultextract.
11871             # The C++ compiler will combine linker options so we
11872             # cannot just pass the convience library names through
11873             # without $wl.
11874             # Supported since Solaris 2.6 (maybe 2.5.1?)
11875             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'
11876             ;;
11877         esac
11878         link_all_deplibs_CXX=yes
11879
11880         output_verbose_link_cmd='echo'
11881
11882         # Archives containing C++ object files must be created using
11883         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11884         # necessary to make sure instantiated templates are included
11885         # in the archive.
11886         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11887         ;;
11888       gcx*)
11889         # Green Hills C++ Compiler
11890         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11891
11892         # The C++ compiler must be used to create the archive.
11893         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11894         ;;
11895       *)
11896         # GNU C++ compiler with Solaris linker
11897         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11898           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11899           if $CC --version | grep -v '^2\.7' > /dev/null; then
11900             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11901             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11902                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11903
11904             # Commands to make compiler produce verbose output that lists
11905             # what "hidden" libraries, object files and flags are used when
11906             # linking a shared library.
11907             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11908           else
11909             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11910             # platform.
11911             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11912             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11913                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11914
11915             # Commands to make compiler produce verbose output that lists
11916             # what "hidden" libraries, object files and flags are used when
11917             # linking a shared library.
11918             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11919           fi
11920
11921           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11922         fi
11923         ;;
11924     esac
11925     ;;
11926   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11927     no_undefined_flag_CXX='${wl}-z,text'
11928     archive_cmds_need_lc_CXX=no
11929     hardcode_shlibpath_var_CXX=no
11930     runpath_var='LD_RUN_PATH'
11931
11932     case $cc_basename in
11933       CC*)
11934         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11935         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11936         ;;
11937       *)
11938         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940         ;;
11941     esac
11942     ;;
11943   sysv5* | sco3.2v5* | sco5v6*)
11944     # Note: We can NOT use -z defs as we might desire, because we do not
11945     # link with -lc, and that would cause any symbols used from libc to
11946     # always be unresolved, which means just about no library would
11947     # ever link correctly.  If we're not using GNU ld we use -z text
11948     # though, which does catch some bad symbols but isn't as heavy-handed
11949     # as -z defs.
11950     # For security reasons, it is highly recommended that you always
11951     # use absolute paths for naming shared libraries, and exclude the
11952     # DT_RUNPATH tag from executables and libraries.  But doing so
11953     # requires that you compile everything twice, which is a pain.
11954     # So that behaviour is only enabled if SCOABSPATH is set to a
11955     # non-empty value in the environment.  Most likely only useful for
11956     # creating official distributions of packages.
11957     # This is a hack until libtool officially supports absolute path
11958     # names for shared libraries.
11959     no_undefined_flag_CXX='${wl}-z,text'
11960     allow_undefined_flag_CXX='${wl}-z,nodefs'
11961     archive_cmds_need_lc_CXX=no
11962     hardcode_shlibpath_var_CXX=no
11963     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11964     hardcode_libdir_separator_CXX=':'
11965     link_all_deplibs_CXX=yes
11966     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11967     runpath_var='LD_RUN_PATH'
11968
11969     case $cc_basename in
11970       CC*)
11971         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11972         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11973         ;;
11974       *)
11975         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11976         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11977         ;;
11978     esac
11979     ;;
11980   tandem*)
11981     case $cc_basename in
11982       NCC*)
11983         # NonStop-UX NCC 3.20
11984         # FIXME: insert proper C++ library support
11985         ld_shlibs_CXX=no
11986         ;;
11987       *)
11988         # FIXME: insert proper C++ library support
11989         ld_shlibs_CXX=no
11990         ;;
11991     esac
11992     ;;
11993   vxworks*)
11994     # FIXME: insert proper C++ library support
11995     ld_shlibs_CXX=no
11996     ;;
11997   *)
11998     # FIXME: insert proper C++ library support
11999     ld_shlibs_CXX=no
12000     ;;
12001 esac
12002 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12003 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12004 test "$ld_shlibs_CXX" = no && can_build_shared=no
12005
12006 GCC_CXX="$GXX"
12007 LD_CXX="$LD"
12008
12009 ## CAVEAT EMPTOR:
12010 ## There is no encapsulation within the following macros, do not change
12011 ## the running order or otherwise move them around unless you know exactly
12012 ## what you are doing...
12013
12014 cat > conftest.$ac_ext <<EOF
12015 class Foo
12016 {
12017 public:
12018   Foo (void) { a = 0; }
12019 private:
12020   int a;
12021 };
12022 EOF
12023
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025   (eval $ac_compile) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; then
12029   # Parse the compiler output and extract the necessary
12030   # objects, libraries and library flags.
12031
12032   # Sentinel used to keep track of whether or not we are before
12033   # the conftest object file.
12034   pre_test_object_deps_done=no
12035
12036   # The `*' in the case matches for architectures that use `case' in
12037   # $output_verbose_cmd can trigger glob expansion during the loop
12038   # eval without this substitution.
12039   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12040
12041   for p in `eval $output_verbose_link_cmd`; do
12042     case $p in
12043
12044     -L* | -R* | -l*)
12045        # Some compilers place space between "-{L,R}" and the path.
12046        # Remove the space.
12047        if test $p = "-L" \
12048           || test $p = "-R"; then
12049          prev=$p
12050          continue
12051        else
12052          prev=
12053        fi
12054
12055        if test "$pre_test_object_deps_done" = no; then
12056          case $p in
12057          -L* | -R*)
12058            # Internal compiler library paths should come after those
12059            # provided the user.  The postdeps already come after the
12060            # user supplied libs so there is no need to process them.
12061            if test -z "$compiler_lib_search_path_CXX"; then
12062              compiler_lib_search_path_CXX="${prev}${p}"
12063            else
12064              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12065            fi
12066            ;;
12067          # The "-l" case would never come before the object being
12068          # linked, so don't bother handling this case.
12069          esac
12070        else
12071          if test -z "$postdeps_CXX"; then
12072            postdeps_CXX="${prev}${p}"
12073          else
12074            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12075          fi
12076        fi
12077        ;;
12078
12079     *.$objext)
12080        # This assumes that the test object file only shows up
12081        # once in the compiler output.
12082        if test "$p" = "conftest.$objext"; then
12083          pre_test_object_deps_done=yes
12084          continue
12085        fi
12086
12087        if test "$pre_test_object_deps_done" = no; then
12088          if test -z "$predep_objects_CXX"; then
12089            predep_objects_CXX="$p"
12090          else
12091            predep_objects_CXX="$predep_objects_CXX $p"
12092          fi
12093        else
12094          if test -z "$postdep_objects_CXX"; then
12095            postdep_objects_CXX="$p"
12096          else
12097            postdep_objects_CXX="$postdep_objects_CXX $p"
12098          fi
12099        fi
12100        ;;
12101
12102     *) ;; # Ignore the rest.
12103
12104     esac
12105   done
12106
12107   # Clean up.
12108   rm -f a.out a.exe
12109 else
12110   echo "libtool.m4: error: problem compiling CXX test program"
12111 fi
12112
12113 $rm -f confest.$objext
12114
12115 # PORTME: override above test on systems where it is broken
12116 case $host_os in
12117 interix3*)
12118   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12119   # hack all around it, let's just trust "g++" to DTRT.
12120   predep_objects_CXX=
12121   postdep_objects_CXX=
12122   postdeps_CXX=
12123   ;;
12124
12125 solaris*)
12126   case $cc_basename in
12127   CC*)
12128     # Adding this requires a known-good setup of shared libraries for
12129     # Sun compiler versions before 5.6, else PIC objects from an old
12130     # archive will be linked into the output, leading to subtle bugs.
12131     postdeps_CXX='-lCstd -lCrun'
12132     ;;
12133   esac
12134   ;;
12135 esac
12136
12137
12138 case " $postdeps_CXX " in
12139 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12140 esac
12141
12142 lt_prog_compiler_wl_CXX=
12143 lt_prog_compiler_pic_CXX=
12144 lt_prog_compiler_static_CXX=
12145
12146 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12147 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12148
12149   # C++ specific cases for pic, static, wl, etc.
12150   if test "$GXX" = yes; then
12151     lt_prog_compiler_wl_CXX='-Wl,'
12152     lt_prog_compiler_static_CXX='-static'
12153
12154     case $host_os in
12155     aix*)
12156       # All AIX code is PIC.
12157       if test "$host_cpu" = ia64; then
12158         # AIX 5 now supports IA64 processor
12159         lt_prog_compiler_static_CXX='-Bstatic'
12160       fi
12161       ;;
12162     amigaos*)
12163       # FIXME: we need at least 68020 code to build shared libraries, but
12164       # adding the `-m68020' flag to GCC prevents building anything better,
12165       # like `-m68040'.
12166       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12167       ;;
12168     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12169       # PIC is the default for these OSes.
12170       ;;
12171     mingw* | os2* | pw32*)
12172       # This hack is so that the source file can tell whether it is being
12173       # built for inclusion in a dll (and should export symbols for example).
12174       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12175       ;;
12176     darwin* | rhapsody*)
12177       # PIC is the default on this platform
12178       # Common symbols not allowed in MH_DYLIB files
12179       lt_prog_compiler_pic_CXX='-fno-common'
12180       ;;
12181     *djgpp*)
12182       # DJGPP does not support shared libraries at all
12183       lt_prog_compiler_pic_CXX=
12184       ;;
12185     interix3*)
12186       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12187       # Instead, we relocate shared libraries at runtime.
12188       ;;
12189     sysv4*MP*)
12190       if test -d /usr/nec; then
12191         lt_prog_compiler_pic_CXX=-Kconform_pic
12192       fi
12193       ;;
12194     hpux*)
12195       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12196       # not for PA HP-UX.
12197       case $host_cpu in
12198       hppa*64*|ia64*)
12199         ;;
12200       *)
12201         lt_prog_compiler_pic_CXX='-fPIC'
12202         ;;
12203       esac
12204       ;;
12205     *)
12206       lt_prog_compiler_pic_CXX='-fPIC'
12207       ;;
12208     esac
12209   else
12210     case $host_os in
12211       aix4* | aix5*)
12212         # All AIX code is PIC.
12213         if test "$host_cpu" = ia64; then
12214           # AIX 5 now supports IA64 processor
12215           lt_prog_compiler_static_CXX='-Bstatic'
12216         else
12217           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12218         fi
12219         ;;
12220       chorus*)
12221         case $cc_basename in
12222         cxch68*)
12223           # Green Hills C++ Compiler
12224           # _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"
12225           ;;
12226         esac
12227         ;;
12228        darwin*)
12229          # PIC is the default on this platform
12230          # Common symbols not allowed in MH_DYLIB files
12231          case $cc_basename in
12232            xlc*)
12233            lt_prog_compiler_pic_CXX='-qnocommon'
12234            lt_prog_compiler_wl_CXX='-Wl,'
12235            ;;
12236          esac
12237        ;;
12238       dgux*)
12239         case $cc_basename in
12240           ec++*)
12241             lt_prog_compiler_pic_CXX='-KPIC'
12242             ;;
12243           ghcx*)
12244             # Green Hills C++ Compiler
12245             lt_prog_compiler_pic_CXX='-pic'
12246             ;;
12247           *)
12248             ;;
12249         esac
12250         ;;
12251       freebsd* | kfreebsd*-gnu | dragonfly*)
12252         # FreeBSD uses GNU C++
12253         ;;
12254       hpux9* | hpux10* | hpux11*)
12255         case $cc_basename in
12256           CC*)
12257             lt_prog_compiler_wl_CXX='-Wl,'
12258             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12259             if test "$host_cpu" != ia64; then
12260               lt_prog_compiler_pic_CXX='+Z'
12261             fi
12262             ;;
12263           aCC*)
12264             lt_prog_compiler_wl_CXX='-Wl,'
12265             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12266             case $host_cpu in
12267             hppa*64*|ia64*)
12268               # +Z the default
12269               ;;
12270             *)
12271               lt_prog_compiler_pic_CXX='+Z'
12272               ;;
12273             esac
12274             ;;
12275           *)
12276             ;;
12277         esac
12278         ;;
12279       interix*)
12280         # This is c89, which is MS Visual C++ (no shared libs)
12281         # Anyone wants to do a port?
12282         ;;
12283       irix5* | irix6* | nonstopux*)
12284         case $cc_basename in
12285           CC*)
12286             lt_prog_compiler_wl_CXX='-Wl,'
12287             lt_prog_compiler_static_CXX='-non_shared'
12288             # CC pic flag -KPIC is the default.
12289             ;;
12290           *)
12291             ;;
12292         esac
12293         ;;
12294       linux*)
12295         case $cc_basename in
12296           KCC*)
12297             # KAI C++ Compiler
12298             lt_prog_compiler_wl_CXX='--backend -Wl,'
12299             lt_prog_compiler_pic_CXX='-fPIC'
12300             ;;
12301           icpc* | ecpc*)
12302             # Intel C++
12303             lt_prog_compiler_wl_CXX='-Wl,'
12304             lt_prog_compiler_pic_CXX='-KPIC'
12305             lt_prog_compiler_static_CXX='-static'
12306             ;;
12307           pgCC*)
12308             # Portland Group C++ compiler.
12309             lt_prog_compiler_wl_CXX='-Wl,'
12310             lt_prog_compiler_pic_CXX='-fpic'
12311             lt_prog_compiler_static_CXX='-Bstatic'
12312             ;;
12313           cxx*)
12314             # Compaq C++
12315             # Make sure the PIC flag is empty.  It appears that all Alpha
12316             # Linux and Compaq Tru64 Unix objects are PIC.
12317             lt_prog_compiler_pic_CXX=
12318             lt_prog_compiler_static_CXX='-non_shared'
12319             ;;
12320           *)
12321             ;;
12322         esac
12323         ;;
12324       lynxos*)
12325         ;;
12326       m88k*)
12327         ;;
12328       mvs*)
12329         case $cc_basename in
12330           cxx*)
12331             lt_prog_compiler_pic_CXX='-W c,exportall'
12332             ;;
12333           *)
12334             ;;
12335         esac
12336         ;;
12337       netbsd*)
12338         ;;
12339       osf3* | osf4* | osf5*)
12340         case $cc_basename in
12341           KCC*)
12342             lt_prog_compiler_wl_CXX='--backend -Wl,'
12343             ;;
12344           RCC*)
12345             # Rational C++ 2.4.1
12346             lt_prog_compiler_pic_CXX='-pic'
12347             ;;
12348           cxx*)
12349             # Digital/Compaq C++
12350             lt_prog_compiler_wl_CXX='-Wl,'
12351             # Make sure the PIC flag is empty.  It appears that all Alpha
12352             # Linux and Compaq Tru64 Unix objects are PIC.
12353             lt_prog_compiler_pic_CXX=
12354             lt_prog_compiler_static_CXX='-non_shared'
12355             ;;
12356           *)
12357             ;;
12358         esac
12359         ;;
12360       psos*)
12361         ;;
12362       solaris*)
12363         case $cc_basename in
12364           CC*)
12365             # Sun C++ 4.2, 5.x and Centerline C++
12366             lt_prog_compiler_pic_CXX='-KPIC'
12367             lt_prog_compiler_static_CXX='-Bstatic'
12368             lt_prog_compiler_wl_CXX='-Qoption ld '
12369             ;;
12370           gcx*)
12371             # Green Hills C++ Compiler
12372             lt_prog_compiler_pic_CXX='-PIC'
12373             ;;
12374           *)
12375             ;;
12376         esac
12377         ;;
12378       sunos4*)
12379         case $cc_basename in
12380           CC*)
12381             # Sun C++ 4.x
12382             lt_prog_compiler_pic_CXX='-pic'
12383             lt_prog_compiler_static_CXX='-Bstatic'
12384             ;;
12385           lcc*)
12386             # Lucid
12387             lt_prog_compiler_pic_CXX='-pic'
12388             ;;
12389           *)
12390             ;;
12391         esac
12392         ;;
12393       tandem*)
12394         case $cc_basename in
12395           NCC*)
12396             # NonStop-UX NCC 3.20
12397             lt_prog_compiler_pic_CXX='-KPIC'
12398             ;;
12399           *)
12400             ;;
12401         esac
12402         ;;
12403       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12404         case $cc_basename in
12405           CC*)
12406             lt_prog_compiler_wl_CXX='-Wl,'
12407             lt_prog_compiler_pic_CXX='-KPIC'
12408             lt_prog_compiler_static_CXX='-Bstatic'
12409             ;;
12410         esac
12411         ;;
12412       vxworks*)
12413         ;;
12414       *)
12415         lt_prog_compiler_can_build_shared_CXX=no
12416         ;;
12417     esac
12418   fi
12419
12420 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12421 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12422
12423 #
12424 # Check to make sure the PIC flag actually works.
12425 #
12426 if test -n "$lt_prog_compiler_pic_CXX"; then
12427
12428 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12429 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12430 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12431   echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433   lt_prog_compiler_pic_works_CXX=no
12434   ac_outfile=conftest.$ac_objext
12435    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12436    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12437    # Insert the option either (1) after the last *FLAGS variable, or
12438    # (2) before a word containing "conftest.", or (3) at the end.
12439    # Note that $ac_compile itself does not contain backslashes and begins
12440    # with a dollar sign (not a hyphen), so the echo should work correctly.
12441    # The option is referenced via a variable to avoid confusing sed.
12442    lt_compile=`echo "$ac_compile" | $SED \
12443    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12445    -e 's:$: $lt_compiler_flag:'`
12446    (eval echo "\"\$as_me:12446: $lt_compile\"" >&5)
12447    (eval "$lt_compile" 2>conftest.err)
12448    ac_status=$?
12449    cat conftest.err >&5
12450    echo "$as_me:12450: \$? = $ac_status" >&5
12451    if (exit $ac_status) && test -s "$ac_outfile"; then
12452      # The compiler can only warn and ignore the option if not recognized
12453      # So say no if there are warnings other than the usual output.
12454      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12455      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12456      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12457        lt_prog_compiler_pic_works_CXX=yes
12458      fi
12459    fi
12460    $rm conftest*
12461
12462 fi
12463 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12464 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12465
12466 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12467     case $lt_prog_compiler_pic_CXX in
12468      "" | " "*) ;;
12469      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12470      esac
12471 else
12472     lt_prog_compiler_pic_CXX=
12473      lt_prog_compiler_can_build_shared_CXX=no
12474 fi
12475
12476 fi
12477 case $host_os in
12478   # For platforms which do not support PIC, -DPIC is meaningless:
12479   *djgpp*)
12480     lt_prog_compiler_pic_CXX=
12481     ;;
12482   *)
12483     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12484     ;;
12485 esac
12486
12487 #
12488 # Check to make sure the static flag actually works.
12489 #
12490 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12491 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12492 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12493 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12494   echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496   lt_prog_compiler_static_works_CXX=no
12497    save_LDFLAGS="$LDFLAGS"
12498    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12499    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12500    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12501      # The linker can only warn and ignore the option if not recognized
12502      # So say no if there are warnings
12503      if test -s conftest.err; then
12504        # Append any errors to the config.log.
12505        cat conftest.err 1>&5
12506        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12507        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12508        if diff conftest.exp conftest.er2 >/dev/null; then
12509          lt_prog_compiler_static_works_CXX=yes
12510        fi
12511      else
12512        lt_prog_compiler_static_works_CXX=yes
12513      fi
12514    fi
12515    $rm conftest*
12516    LDFLAGS="$save_LDFLAGS"
12517
12518 fi
12519 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12520 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12521
12522 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12523     :
12524 else
12525     lt_prog_compiler_static_CXX=
12526 fi
12527
12528
12529 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12530 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12531 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12532   echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534   lt_cv_prog_compiler_c_o_CXX=no
12535    $rm -r conftest 2>/dev/null
12536    mkdir conftest
12537    cd conftest
12538    mkdir out
12539    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12540
12541    lt_compiler_flag="-o out/conftest2.$ac_objext"
12542    # Insert the option either (1) after the last *FLAGS variable, or
12543    # (2) before a word containing "conftest.", or (3) at the end.
12544    # Note that $ac_compile itself does not contain backslashes and begins
12545    # with a dollar sign (not a hyphen), so the echo should work correctly.
12546    lt_compile=`echo "$ac_compile" | $SED \
12547    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12548    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12549    -e 's:$: $lt_compiler_flag:'`
12550    (eval echo "\"\$as_me:12550: $lt_compile\"" >&5)
12551    (eval "$lt_compile" 2>out/conftest.err)
12552    ac_status=$?
12553    cat out/conftest.err >&5
12554    echo "$as_me:12554: \$? = $ac_status" >&5
12555    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12556    then
12557      # The compiler can only warn and ignore the option if not recognized
12558      # So say no if there are warnings
12559      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12560      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12561      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12562        lt_cv_prog_compiler_c_o_CXX=yes
12563      fi
12564    fi
12565    chmod u+w . 2>&5
12566    $rm conftest*
12567    # SGI C++ compiler will create directory out/ii_files/ for
12568    # template instantiation
12569    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12570    $rm out/* && rmdir out
12571    cd ..
12572    rmdir conftest
12573    $rm conftest*
12574
12575 fi
12576 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12577 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12578
12579
12580 hard_links="nottested"
12581 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12582   # do not overwrite the value of need_locks provided by the user
12583   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12584 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12585   hard_links=yes
12586   $rm conftest*
12587   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12588   touch conftest.a
12589   ln conftest.a conftest.b 2>&5 || hard_links=no
12590   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12591   { echo "$as_me:$LINENO: result: $hard_links" >&5
12592 echo "${ECHO_T}$hard_links" >&6; }
12593   if test "$hard_links" = no; then
12594     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12595 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12596     need_locks=warn
12597   fi
12598 else
12599   need_locks=no
12600 fi
12601
12602 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12603 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12604
12605   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12606   case $host_os in
12607   aix4* | aix5*)
12608     # If we're using GNU nm, then we don't want the "-C" option.
12609     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12610     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12611       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'
12612     else
12613       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'
12614     fi
12615     ;;
12616   pw32*)
12617     export_symbols_cmds_CXX="$ltdll_cmds"
12618   ;;
12619   cygwin* | mingw*)
12620     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'
12621   ;;
12622   *)
12623     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12624   ;;
12625   esac
12626
12627 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12628 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12629 test "$ld_shlibs_CXX" = no && can_build_shared=no
12630
12631 #
12632 # Do we need to explicitly link libc?
12633 #
12634 case "x$archive_cmds_need_lc_CXX" in
12635 x|xyes)
12636   # Assume -lc should be added
12637   archive_cmds_need_lc_CXX=yes
12638
12639   if test "$enable_shared" = yes && test "$GCC" = yes; then
12640     case $archive_cmds_CXX in
12641     *'~'*)
12642       # FIXME: we may have to deal with multi-command sequences.
12643       ;;
12644     '$CC '*)
12645       # Test whether the compiler implicitly links with -lc since on some
12646       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12647       # to ld, don't add -lc before -lgcc.
12648       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12649 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12650       $rm conftest*
12651       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12652
12653       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654   (eval $ac_compile) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } 2>conftest.err; then
12658         soname=conftest
12659         lib=conftest
12660         libobjs=conftest.$ac_objext
12661         deplibs=
12662         wl=$lt_prog_compiler_wl_CXX
12663         pic_flag=$lt_prog_compiler_pic_CXX
12664         compiler_flags=-v
12665         linker_flags=-v
12666         verstring=
12667         output_objdir=.
12668         libname=conftest
12669         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12670         allow_undefined_flag_CXX=
12671         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12672   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }
12676         then
12677           archive_cmds_need_lc_CXX=no
12678         else
12679           archive_cmds_need_lc_CXX=yes
12680         fi
12681         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12682       else
12683         cat conftest.err 1>&5
12684       fi
12685       $rm conftest*
12686       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12687 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12688       ;;
12689     esac
12690   fi
12691   ;;
12692 esac
12693
12694 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12695 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12696 library_names_spec=
12697 libname_spec='lib$name'
12698 soname_spec=
12699 shrext_cmds=".so"
12700 postinstall_cmds=
12701 postuninstall_cmds=
12702 finish_cmds=
12703 finish_eval=
12704 shlibpath_var=
12705 shlibpath_overrides_runpath=unknown
12706 version_type=none
12707 dynamic_linker="$host_os ld.so"
12708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12709 if test "$GCC" = yes; then
12710   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12711   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12712     # if the path contains ";" then we assume it to be the separator
12713     # otherwise default to the standard path separator (i.e. ":") - it is
12714     # assumed that no part of a normal pathname contains ";" but that should
12715     # okay in the real world where ";" in dirpaths is itself problematic.
12716     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12717   else
12718     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12719   fi
12720 else
12721   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12722 fi
12723 need_lib_prefix=unknown
12724 hardcode_into_libs=no
12725
12726 # when you set need_version to no, make sure it does not cause -set_version
12727 # flags to be left without arguments
12728 need_version=unknown
12729
12730 case $host_os in
12731 aix3*)
12732   version_type=linux
12733   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12734   shlibpath_var=LIBPATH
12735
12736   # AIX 3 has no versioning support, so we append a major version to the name.
12737   soname_spec='${libname}${release}${shared_ext}$major'
12738   ;;
12739
12740 aix4* | aix5*)
12741   version_type=linux
12742   need_lib_prefix=no
12743   need_version=no
12744   hardcode_into_libs=yes
12745   if test "$host_cpu" = ia64; then
12746     # AIX 5 supports IA64
12747     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12748     shlibpath_var=LD_LIBRARY_PATH
12749   else
12750     # With GCC up to 2.95.x, collect2 would create an import file
12751     # for dependence libraries.  The import file would start with
12752     # the line `#! .'.  This would cause the generated library to
12753     # depend on `.', always an invalid library.  This was fixed in
12754     # development snapshots of GCC prior to 3.0.
12755     case $host_os in
12756       aix4 | aix4.[01] | aix4.[01].*)
12757       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12758            echo ' yes '
12759            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12760         :
12761       else
12762         can_build_shared=no
12763       fi
12764       ;;
12765     esac
12766     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12767     # soname into executable. Probably we can add versioning support to
12768     # collect2, so additional links can be useful in future.
12769     if test "$aix_use_runtimelinking" = yes; then
12770       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12771       # instead of lib<name>.a to let people know that these are not
12772       # typical AIX shared libraries.
12773       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774     else
12775       # We preserve .a as extension for shared libraries through AIX4.2
12776       # and later when we are not doing run time linking.
12777       library_names_spec='${libname}${release}.a $libname.a'
12778       soname_spec='${libname}${release}${shared_ext}$major'
12779     fi
12780     shlibpath_var=LIBPATH
12781   fi
12782   ;;
12783
12784 amigaos*)
12785   library_names_spec='$libname.ixlibrary $libname.a'
12786   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12787   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'
12788   ;;
12789
12790 beos*)
12791   library_names_spec='${libname}${shared_ext}'
12792   dynamic_linker="$host_os ld.so"
12793   shlibpath_var=LIBRARY_PATH
12794   ;;
12795
12796 bsdi[45]*)
12797   version_type=linux
12798   need_version=no
12799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800   soname_spec='${libname}${release}${shared_ext}$major'
12801   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12802   shlibpath_var=LD_LIBRARY_PATH
12803   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12804   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12805   # the default ld.so.conf also contains /usr/contrib/lib and
12806   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12807   # libtool to hard-code these into programs
12808   ;;
12809
12810 cygwin* | mingw* | pw32*)
12811   version_type=windows
12812   shrext_cmds=".dll"
12813   need_version=no
12814   need_lib_prefix=no
12815
12816   case $GCC,$host_os in
12817   yes,cygwin* | yes,mingw* | yes,pw32*)
12818     library_names_spec='$libname.dll.a'
12819     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12820     postinstall_cmds='base_file=`basename \${file}`~
12821       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12822       dldir=$destdir/`dirname \$dlpath`~
12823       test -d \$dldir || mkdir -p \$dldir~
12824       $install_prog $dir/$dlname \$dldir/$dlname~
12825       chmod a+x \$dldir/$dlname'
12826     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12827       dlpath=$dir/\$dldll~
12828        $rm \$dlpath'
12829     shlibpath_overrides_runpath=yes
12830
12831     case $host_os in
12832     cygwin*)
12833       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12834       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12835       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12836       ;;
12837     mingw*)
12838       # MinGW DLLs use traditional 'lib' prefix
12839       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12840       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12841       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12842         # It is most probably a Windows format PATH printed by
12843         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12844         # path with ; separators, and with drive letters. We can handle the
12845         # drive letters (cygwin fileutils understands them), so leave them,
12846         # especially as we might pass files found there to a mingw objdump,
12847         # which wouldn't understand a cygwinified path. Ahh.
12848         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12849       else
12850         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12851       fi
12852       ;;
12853     pw32*)
12854       # pw32 DLLs use 'pw' prefix rather than 'lib'
12855       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12856       ;;
12857     esac
12858     ;;
12859
12860   *)
12861     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12862     ;;
12863   esac
12864   dynamic_linker='Win32 ld.exe'
12865   # FIXME: first we should search . and the directory the executable is in
12866   shlibpath_var=PATH
12867   ;;
12868
12869 darwin* | rhapsody*)
12870   dynamic_linker="$host_os dyld"
12871   version_type=darwin
12872   need_lib_prefix=no
12873   need_version=no
12874   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12875   soname_spec='${libname}${release}${major}$shared_ext'
12876   shlibpath_overrides_runpath=yes
12877   shlibpath_var=DYLD_LIBRARY_PATH
12878   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12879   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12880   if test "$GCC" = yes; then
12881     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"`
12882   else
12883     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12884   fi
12885   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12886   ;;
12887
12888 dgux*)
12889   version_type=linux
12890   need_lib_prefix=no
12891   need_version=no
12892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12893   soname_spec='${libname}${release}${shared_ext}$major'
12894   shlibpath_var=LD_LIBRARY_PATH
12895   ;;
12896
12897 freebsd1*)
12898   dynamic_linker=no
12899   ;;
12900
12901 kfreebsd*-gnu)
12902   version_type=linux
12903   need_lib_prefix=no
12904   need_version=no
12905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12906   soname_spec='${libname}${release}${shared_ext}$major'
12907   shlibpath_var=LD_LIBRARY_PATH
12908   shlibpath_overrides_runpath=no
12909   hardcode_into_libs=yes
12910   dynamic_linker='GNU ld.so'
12911   ;;
12912
12913 freebsd* | dragonfly*)
12914   # DragonFly does not have aout.  When/if they implement a new
12915   # versioning mechanism, adjust this.
12916   if test -x /usr/bin/objformat; then
12917     objformat=`/usr/bin/objformat`
12918   else
12919     case $host_os in
12920     freebsd[123]*) objformat=aout ;;
12921     *) objformat=elf ;;
12922     esac
12923   fi
12924   version_type=freebsd-$objformat
12925   case $version_type in
12926     freebsd-elf*)
12927       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12928       need_version=no
12929       need_lib_prefix=no
12930       ;;
12931     freebsd-*)
12932       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12933       need_version=yes
12934       ;;
12935   esac
12936   shlibpath_var=LD_LIBRARY_PATH
12937   case $host_os in
12938   freebsd2*)
12939     shlibpath_overrides_runpath=yes
12940     ;;
12941   freebsd3.[01]* | freebsdelf3.[01]*)
12942     shlibpath_overrides_runpath=yes
12943     hardcode_into_libs=yes
12944     ;;
12945   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12946   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12947     shlibpath_overrides_runpath=no
12948     hardcode_into_libs=yes
12949     ;;
12950   freebsd*) # from 4.6 on
12951     shlibpath_overrides_runpath=yes
12952     hardcode_into_libs=yes
12953     ;;
12954   esac
12955   ;;
12956
12957 gnu*)
12958   version_type=linux
12959   need_lib_prefix=no
12960   need_version=no
12961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12962   soname_spec='${libname}${release}${shared_ext}$major'
12963   shlibpath_var=LD_LIBRARY_PATH
12964   hardcode_into_libs=yes
12965   ;;
12966
12967 hpux9* | hpux10* | hpux11*)
12968   # Give a soname corresponding to the major version so that dld.sl refuses to
12969   # link against other versions.
12970   version_type=sunos
12971   need_lib_prefix=no
12972   need_version=no
12973   case $host_cpu in
12974   ia64*)
12975     shrext_cmds='.so'
12976     hardcode_into_libs=yes
12977     dynamic_linker="$host_os dld.so"
12978     shlibpath_var=LD_LIBRARY_PATH
12979     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981     soname_spec='${libname}${release}${shared_ext}$major'
12982     if test "X$HPUX_IA64_MODE" = X32; then
12983       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12984     else
12985       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12986     fi
12987     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12988     ;;
12989    hppa*64*)
12990      shrext_cmds='.sl'
12991      hardcode_into_libs=yes
12992      dynamic_linker="$host_os dld.sl"
12993      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12994      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12995      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996      soname_spec='${libname}${release}${shared_ext}$major'
12997      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12998      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12999      ;;
13000    *)
13001     shrext_cmds='.sl'
13002     dynamic_linker="$host_os dld.sl"
13003     shlibpath_var=SHLIB_PATH
13004     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13006     soname_spec='${libname}${release}${shared_ext}$major'
13007     ;;
13008   esac
13009   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13010   postinstall_cmds='chmod 555 $lib'
13011   ;;
13012
13013 interix3*)
13014   version_type=linux
13015   need_lib_prefix=no
13016   need_version=no
13017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13018   soname_spec='${libname}${release}${shared_ext}$major'
13019   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13020   shlibpath_var=LD_LIBRARY_PATH
13021   shlibpath_overrides_runpath=no
13022   hardcode_into_libs=yes
13023   ;;
13024
13025 irix5* | irix6* | nonstopux*)
13026   case $host_os in
13027     nonstopux*) version_type=nonstopux ;;
13028     *)
13029         if test "$lt_cv_prog_gnu_ld" = yes; then
13030                 version_type=linux
13031         else
13032                 version_type=irix
13033         fi ;;
13034   esac
13035   need_lib_prefix=no
13036   need_version=no
13037   soname_spec='${libname}${release}${shared_ext}$major'
13038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13039   case $host_os in
13040   irix5* | nonstopux*)
13041     libsuff= shlibsuff=
13042     ;;
13043   *)
13044     case $LD in # libtool.m4 will add one of these switches to LD
13045     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13046       libsuff= shlibsuff= libmagic=32-bit;;
13047     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13048       libsuff=32 shlibsuff=N32 libmagic=N32;;
13049     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13050       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13051     *) libsuff= shlibsuff= libmagic=never-match;;
13052     esac
13053     ;;
13054   esac
13055   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13056   shlibpath_overrides_runpath=no
13057   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13058   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13059   hardcode_into_libs=yes
13060   ;;
13061
13062 # No shared lib support for Linux oldld, aout, or coff.
13063 linux*oldld* | linux*aout* | linux*coff*)
13064   dynamic_linker=no
13065   ;;
13066
13067 # This must be Linux ELF.
13068 linux*)
13069   version_type=linux
13070   need_lib_prefix=no
13071   need_version=no
13072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073   soname_spec='${libname}${release}${shared_ext}$major'
13074   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13075   shlibpath_var=LD_LIBRARY_PATH
13076   shlibpath_overrides_runpath=no
13077   # This implies no fast_install, which is unacceptable.
13078   # Some rework will be needed to allow for fast_install
13079   # before this can be enabled.
13080   hardcode_into_libs=yes
13081
13082   # Append ld.so.conf contents to the search path
13083   if test -f /etc/ld.so.conf; then
13084     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' ' '`
13085     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13086   fi
13087
13088   # We used to test for /lib/ld.so.1 and disable shared libraries on
13089   # powerpc, because MkLinux only supported shared libraries with the
13090   # GNU dynamic linker.  Since this was broken with cross compilers,
13091   # most powerpc-linux boxes support dynamic linking these days and
13092   # people can always --disable-shared, the test was removed, and we
13093   # assume the GNU/Linux dynamic linker is in use.
13094   dynamic_linker='GNU/Linux ld.so'
13095   ;;
13096
13097 knetbsd*-gnu)
13098   version_type=linux
13099   need_lib_prefix=no
13100   need_version=no
13101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13102   soname_spec='${libname}${release}${shared_ext}$major'
13103   shlibpath_var=LD_LIBRARY_PATH
13104   shlibpath_overrides_runpath=no
13105   hardcode_into_libs=yes
13106   dynamic_linker='GNU ld.so'
13107   ;;
13108
13109 netbsd*)
13110   version_type=sunos
13111   need_lib_prefix=no
13112   need_version=no
13113   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13115     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13116     dynamic_linker='NetBSD (a.out) ld.so'
13117   else
13118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13119     soname_spec='${libname}${release}${shared_ext}$major'
13120     dynamic_linker='NetBSD ld.elf_so'
13121   fi
13122   shlibpath_var=LD_LIBRARY_PATH
13123   shlibpath_overrides_runpath=yes
13124   hardcode_into_libs=yes
13125   ;;
13126
13127 newsos6)
13128   version_type=linux
13129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13130   shlibpath_var=LD_LIBRARY_PATH
13131   shlibpath_overrides_runpath=yes
13132   ;;
13133
13134 nto-qnx*)
13135   version_type=linux
13136   need_lib_prefix=no
13137   need_version=no
13138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13139   soname_spec='${libname}${release}${shared_ext}$major'
13140   shlibpath_var=LD_LIBRARY_PATH
13141   shlibpath_overrides_runpath=yes
13142   ;;
13143
13144 openbsd*)
13145   version_type=sunos
13146   sys_lib_dlsearch_path_spec="/usr/lib"
13147   need_lib_prefix=no
13148   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13149   case $host_os in
13150     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13151     *)                         need_version=no  ;;
13152   esac
13153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13154   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13155   shlibpath_var=LD_LIBRARY_PATH
13156   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13157     case $host_os in
13158       openbsd2.[89] | openbsd2.[89].*)
13159         shlibpath_overrides_runpath=no
13160         ;;
13161       *)
13162         shlibpath_overrides_runpath=yes
13163         ;;
13164       esac
13165   else
13166     shlibpath_overrides_runpath=yes
13167   fi
13168   ;;
13169
13170 os2*)
13171   libname_spec='$name'
13172   shrext_cmds=".dll"
13173   need_lib_prefix=no
13174   library_names_spec='$libname${shared_ext} $libname.a'
13175   dynamic_linker='OS/2 ld.exe'
13176   shlibpath_var=LIBPATH
13177   ;;
13178
13179 osf3* | osf4* | osf5*)
13180   version_type=osf
13181   need_lib_prefix=no
13182   need_version=no
13183   soname_spec='${libname}${release}${shared_ext}$major'
13184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185   shlibpath_var=LD_LIBRARY_PATH
13186   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13187   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13188   ;;
13189
13190 solaris*)
13191   version_type=linux
13192   need_lib_prefix=no
13193   need_version=no
13194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13195   soname_spec='${libname}${release}${shared_ext}$major'
13196   shlibpath_var=LD_LIBRARY_PATH
13197   shlibpath_overrides_runpath=yes
13198   hardcode_into_libs=yes
13199   # ldd complains unless libraries are executable
13200   postinstall_cmds='chmod +x $lib'
13201   ;;
13202
13203 sunos4*)
13204   version_type=sunos
13205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13206   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13207   shlibpath_var=LD_LIBRARY_PATH
13208   shlibpath_overrides_runpath=yes
13209   if test "$with_gnu_ld" = yes; then
13210     need_lib_prefix=no
13211   fi
13212   need_version=yes
13213   ;;
13214
13215 sysv4 | sysv4.3*)
13216   version_type=linux
13217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13218   soname_spec='${libname}${release}${shared_ext}$major'
13219   shlibpath_var=LD_LIBRARY_PATH
13220   case $host_vendor in
13221     sni)
13222       shlibpath_overrides_runpath=no
13223       need_lib_prefix=no
13224       export_dynamic_flag_spec='${wl}-Blargedynsym'
13225       runpath_var=LD_RUN_PATH
13226       ;;
13227     siemens)
13228       need_lib_prefix=no
13229       ;;
13230     motorola)
13231       need_lib_prefix=no
13232       need_version=no
13233       shlibpath_overrides_runpath=no
13234       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13235       ;;
13236   esac
13237   ;;
13238
13239 sysv4*MP*)
13240   if test -d /usr/nec ;then
13241     version_type=linux
13242     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13243     soname_spec='$libname${shared_ext}.$major'
13244     shlibpath_var=LD_LIBRARY_PATH
13245   fi
13246   ;;
13247
13248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13249   version_type=freebsd-elf
13250   need_lib_prefix=no
13251   need_version=no
13252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13253   soname_spec='${libname}${release}${shared_ext}$major'
13254   shlibpath_var=LD_LIBRARY_PATH
13255   hardcode_into_libs=yes
13256   if test "$with_gnu_ld" = yes; then
13257     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13258     shlibpath_overrides_runpath=no
13259   else
13260     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13261     shlibpath_overrides_runpath=yes
13262     case $host_os in
13263       sco3.2v5*)
13264         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13265         ;;
13266     esac
13267   fi
13268   sys_lib_dlsearch_path_spec='/usr/lib'
13269   ;;
13270
13271 uts4*)
13272   version_type=linux
13273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274   soname_spec='${libname}${release}${shared_ext}$major'
13275   shlibpath_var=LD_LIBRARY_PATH
13276   ;;
13277
13278 *)
13279   dynamic_linker=no
13280   ;;
13281 esac
13282 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13283 echo "${ECHO_T}$dynamic_linker" >&6; }
13284 test "$dynamic_linker" = no && can_build_shared=no
13285
13286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13287 if test "$GCC" = yes; then
13288   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13289 fi
13290
13291 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13292 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13293 hardcode_action_CXX=
13294 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13295    test -n "$runpath_var_CXX" || \
13296    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13297
13298   # We can hardcode non-existant directories.
13299   if test "$hardcode_direct_CXX" != no &&
13300      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13301      # have to relink, otherwise we might link with an installed library
13302      # when we should be linking with a yet-to-be-installed one
13303      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13304      test "$hardcode_minus_L_CXX" != no; then
13305     # Linking always hardcodes the temporary library directory.
13306     hardcode_action_CXX=relink
13307   else
13308     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13309     hardcode_action_CXX=immediate
13310   fi
13311 else
13312   # We cannot hardcode anything, or else we can only hardcode existing
13313   # directories.
13314   hardcode_action_CXX=unsupported
13315 fi
13316 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13317 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13318
13319 if test "$hardcode_action_CXX" = relink; then
13320   # Fast installation is not supported
13321   enable_fast_install=no
13322 elif test "$shlibpath_overrides_runpath" = yes ||
13323      test "$enable_shared" = no; then
13324   # Fast installation is not necessary
13325   enable_fast_install=needless
13326 fi
13327
13328
13329 # The else clause should only fire when bootstrapping the
13330 # libtool distribution, otherwise you forgot to ship ltmain.sh
13331 # with your package, and you will get complaints that there are
13332 # no rules to generate ltmain.sh.
13333 if test -f "$ltmain"; then
13334   # See if we are running on zsh, and set the options which allow our commands through
13335   # without removal of \ escapes.
13336   if test -n "${ZSH_VERSION+set}" ; then
13337     setopt NO_GLOB_SUBST
13338   fi
13339   # Now quote all the things that may contain metacharacters while being
13340   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13341   # variables and quote the copies for generation of the libtool script.
13342   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13343     SED SHELL STRIP \
13344     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13345     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13346     deplibs_check_method reload_flag reload_cmds need_locks \
13347     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13348     lt_cv_sys_global_symbol_to_c_name_address \
13349     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13350     old_postinstall_cmds old_postuninstall_cmds \
13351     compiler_CXX \
13352     CC_CXX \
13353     LD_CXX \
13354     lt_prog_compiler_wl_CXX \
13355     lt_prog_compiler_pic_CXX \
13356     lt_prog_compiler_static_CXX \
13357     lt_prog_compiler_no_builtin_flag_CXX \
13358     export_dynamic_flag_spec_CXX \
13359     thread_safe_flag_spec_CXX \
13360     whole_archive_flag_spec_CXX \
13361     enable_shared_with_static_runtimes_CXX \
13362     old_archive_cmds_CXX \
13363     old_archive_from_new_cmds_CXX \
13364     predep_objects_CXX \
13365     postdep_objects_CXX \
13366     predeps_CXX \
13367     postdeps_CXX \
13368     compiler_lib_search_path_CXX \
13369     archive_cmds_CXX \
13370     archive_expsym_cmds_CXX \
13371     postinstall_cmds_CXX \
13372     postuninstall_cmds_CXX \
13373     old_archive_from_expsyms_cmds_CXX \
13374     allow_undefined_flag_CXX \
13375     no_undefined_flag_CXX \
13376     export_symbols_cmds_CXX \
13377     hardcode_libdir_flag_spec_CXX \
13378     hardcode_libdir_flag_spec_ld_CXX \
13379     hardcode_libdir_separator_CXX \
13380     hardcode_automatic_CXX \
13381     module_cmds_CXX \
13382     module_expsym_cmds_CXX \
13383     lt_cv_prog_compiler_c_o_CXX \
13384     exclude_expsyms_CXX \
13385     include_expsyms_CXX; do
13386
13387     case $var in
13388     old_archive_cmds_CXX | \
13389     old_archive_from_new_cmds_CXX | \
13390     archive_cmds_CXX | \
13391     archive_expsym_cmds_CXX | \
13392     module_cmds_CXX | \
13393     module_expsym_cmds_CXX | \
13394     old_archive_from_expsyms_cmds_CXX | \
13395     export_symbols_cmds_CXX | \
13396     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13397     postinstall_cmds | postuninstall_cmds | \
13398     old_postinstall_cmds | old_postuninstall_cmds | \
13399     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13400       # Double-quote double-evaled strings.
13401       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13402       ;;
13403     *)
13404       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13405       ;;
13406     esac
13407   done
13408
13409   case $lt_echo in
13410   *'\$0 --fallback-echo"')
13411     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13412     ;;
13413   esac
13414
13415 cfgfile="$ofile"
13416
13417   cat <<__EOF__ >> "$cfgfile"
13418 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13419
13420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13421
13422 # Shell to use when invoking shell scripts.
13423 SHELL=$lt_SHELL
13424
13425 # Whether or not to build shared libraries.
13426 build_libtool_libs=$enable_shared
13427
13428 # Whether or not to build static libraries.
13429 build_old_libs=$enable_static
13430
13431 # Whether or not to add -lc for building shared libraries.
13432 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13433
13434 # Whether or not to disallow shared libs when runtime libs are static
13435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13436
13437 # Whether or not to optimize for fast installation.
13438 fast_install=$enable_fast_install
13439
13440 # The host system.
13441 host_alias=$host_alias
13442 host=$host
13443 host_os=$host_os
13444
13445 # The build system.
13446 build_alias=$build_alias
13447 build=$build
13448 build_os=$build_os
13449
13450 # An echo program that does not interpret backslashes.
13451 echo=$lt_echo
13452
13453 # The archiver.
13454 AR=$lt_AR
13455 AR_FLAGS=$lt_AR_FLAGS
13456
13457 # A C compiler.
13458 LTCC=$lt_LTCC
13459
13460 # LTCC compiler flags.
13461 LTCFLAGS=$lt_LTCFLAGS
13462
13463 # A language-specific compiler.
13464 CC=$lt_compiler_CXX
13465
13466 # Is the compiler the GNU C compiler?
13467 with_gcc=$GCC_CXX
13468
13469 # An ERE matcher.
13470 EGREP=$lt_EGREP
13471
13472 # The linker used to build libraries.
13473 LD=$lt_LD_CXX
13474
13475 # Whether we need hard or soft links.
13476 LN_S=$lt_LN_S
13477
13478 # A BSD-compatible nm program.
13479 NM=$lt_NM
13480
13481 # A symbol stripping program
13482 STRIP=$lt_STRIP
13483
13484 # Used to examine libraries when file_magic_cmd begins "file"
13485 MAGIC_CMD=$MAGIC_CMD
13486
13487 # Used on cygwin: DLL creation program.
13488 DLLTOOL="$DLLTOOL"
13489
13490 # Used on cygwin: object dumper.
13491 OBJDUMP="$OBJDUMP"
13492
13493 # Used on cygwin: assembler.
13494 AS="$AS"
13495
13496 # The name of the directory that contains temporary libtool files.
13497 objdir=$objdir
13498
13499 # How to create reloadable object files.
13500 reload_flag=$lt_reload_flag
13501 reload_cmds=$lt_reload_cmds
13502
13503 # How to pass a linker flag through the compiler.
13504 wl=$lt_lt_prog_compiler_wl_CXX
13505
13506 # Object file suffix (normally "o").
13507 objext="$ac_objext"
13508
13509 # Old archive suffix (normally "a").
13510 libext="$libext"
13511
13512 # Shared library suffix (normally ".so").
13513 shrext_cmds='$shrext_cmds'
13514
13515 # Executable file suffix (normally "").
13516 exeext="$exeext"
13517
13518 # Additional compiler flags for building library objects.
13519 pic_flag=$lt_lt_prog_compiler_pic_CXX
13520 pic_mode=$pic_mode
13521
13522 # What is the maximum length of a command?
13523 max_cmd_len=$lt_cv_sys_max_cmd_len
13524
13525 # Does compiler simultaneously support -c and -o options?
13526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13527
13528 # Must we lock files when doing compilation?
13529 need_locks=$lt_need_locks
13530
13531 # Do we need the lib prefix for modules?
13532 need_lib_prefix=$need_lib_prefix
13533
13534 # Do we need a version for libraries?
13535 need_version=$need_version
13536
13537 # Whether dlopen is supported.
13538 dlopen_support=$enable_dlopen
13539
13540 # Whether dlopen of programs is supported.
13541 dlopen_self=$enable_dlopen_self
13542
13543 # Whether dlopen of statically linked programs is supported.
13544 dlopen_self_static=$enable_dlopen_self_static
13545
13546 # Compiler flag to prevent dynamic linking.
13547 link_static_flag=$lt_lt_prog_compiler_static_CXX
13548
13549 # Compiler flag to turn off builtin functions.
13550 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13551
13552 # Compiler flag to allow reflexive dlopens.
13553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13554
13555 # Compiler flag to generate shared objects directly from archives.
13556 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13557
13558 # Compiler flag to generate thread-safe objects.
13559 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13560
13561 # Library versioning type.
13562 version_type=$version_type
13563
13564 # Format of library name prefix.
13565 libname_spec=$lt_libname_spec
13566
13567 # List of archive names.  First name is the real one, the rest are links.
13568 # The last name is the one that the linker finds with -lNAME.
13569 library_names_spec=$lt_library_names_spec
13570
13571 # The coded name of the library, if different from the real name.
13572 soname_spec=$lt_soname_spec
13573
13574 # Commands used to build and install an old-style archive.
13575 RANLIB=$lt_RANLIB
13576 old_archive_cmds=$lt_old_archive_cmds_CXX
13577 old_postinstall_cmds=$lt_old_postinstall_cmds
13578 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13579
13580 # Create an old-style archive from a shared archive.
13581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13582
13583 # Create a temporary old-style archive to link instead of a shared archive.
13584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13585
13586 # Commands used to build and install a shared archive.
13587 archive_cmds=$lt_archive_cmds_CXX
13588 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13589 postinstall_cmds=$lt_postinstall_cmds
13590 postuninstall_cmds=$lt_postuninstall_cmds
13591
13592 # Commands used to build a loadable module (assumed same as above if empty)
13593 module_cmds=$lt_module_cmds_CXX
13594 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13595
13596 # Commands to strip libraries.
13597 old_striplib=$lt_old_striplib
13598 striplib=$lt_striplib
13599
13600 # Dependencies to place before the objects being linked to create a
13601 # shared library.
13602 predep_objects=$lt_predep_objects_CXX
13603
13604 # Dependencies to place after the objects being linked to create a
13605 # shared library.
13606 postdep_objects=$lt_postdep_objects_CXX
13607
13608 # Dependencies to place before the objects being linked to create a
13609 # shared library.
13610 predeps=$lt_predeps_CXX
13611
13612 # Dependencies to place after the objects being linked to create a
13613 # shared library.
13614 postdeps=$lt_postdeps_CXX
13615
13616 # The library search path used internally by the compiler when linking
13617 # a shared library.
13618 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13619
13620 # Method to check whether dependent libraries are shared objects.
13621 deplibs_check_method=$lt_deplibs_check_method
13622
13623 # Command to use when deplibs_check_method == file_magic.
13624 file_magic_cmd=$lt_file_magic_cmd
13625
13626 # Flag that allows shared libraries with undefined symbols to be built.
13627 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13628
13629 # Flag that forces no undefined symbols.
13630 no_undefined_flag=$lt_no_undefined_flag_CXX
13631
13632 # Commands used to finish a libtool library installation in a directory.
13633 finish_cmds=$lt_finish_cmds
13634
13635 # Same as above, but a single script fragment to be evaled but not shown.
13636 finish_eval=$lt_finish_eval
13637
13638 # Take the output of nm and produce a listing of raw symbols and C names.
13639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13640
13641 # Transform the output of nm in a proper C declaration
13642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13643
13644 # Transform the output of nm in a C name address pair
13645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13646
13647 # This is the shared library runtime path variable.
13648 runpath_var=$runpath_var
13649
13650 # This is the shared library path variable.
13651 shlibpath_var=$shlibpath_var
13652
13653 # Is shlibpath searched before the hard-coded library search path?
13654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13655
13656 # How to hardcode a shared library path into an executable.
13657 hardcode_action=$hardcode_action_CXX
13658
13659 # Whether we should hardcode library paths into libraries.
13660 hardcode_into_libs=$hardcode_into_libs
13661
13662 # Flag to hardcode \$libdir into a binary during linking.
13663 # This must work even if \$libdir does not exist.
13664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13665
13666 # If ld is used when linking, flag to hardcode \$libdir into
13667 # a binary during linking. This must work even if \$libdir does
13668 # not exist.
13669 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13670
13671 # Whether we need a single -rpath flag with a separated argument.
13672 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13673
13674 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13675 # resulting binary.
13676 hardcode_direct=$hardcode_direct_CXX
13677
13678 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13679 # resulting binary.
13680 hardcode_minus_L=$hardcode_minus_L_CXX
13681
13682 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13683 # the resulting binary.
13684 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13685
13686 # Set to yes if building a shared library automatically hardcodes DIR into the library
13687 # and all subsequent libraries and executables linked against it.
13688 hardcode_automatic=$hardcode_automatic_CXX
13689
13690 # Variables whose values should be saved in libtool wrapper scripts and
13691 # restored at relink time.
13692 variables_saved_for_relink="$variables_saved_for_relink"
13693
13694 # Whether libtool must link a program against all its dependency libraries.
13695 link_all_deplibs=$link_all_deplibs_CXX
13696
13697 # Compile-time system search path for libraries
13698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13699
13700 # Run-time system search path for libraries
13701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13702
13703 # Fix the shell variable \$srcfile for the compiler.
13704 fix_srcfile_path="$fix_srcfile_path_CXX"
13705
13706 # Set to yes if exported symbols are required.
13707 always_export_symbols=$always_export_symbols_CXX
13708
13709 # The commands to list exported symbols.
13710 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13711
13712 # The commands to extract the exported symbol list from a shared archive.
13713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13714
13715 # Symbols that should not be listed in the preloaded symbols.
13716 exclude_expsyms=$lt_exclude_expsyms_CXX
13717
13718 # Symbols that must always be exported.
13719 include_expsyms=$lt_include_expsyms_CXX
13720
13721 # ### END LIBTOOL TAG CONFIG: $tagname
13722
13723 __EOF__
13724
13725
13726 else
13727   # If there is no Makefile yet, we rely on a make rule to execute
13728   # `config.status --recheck' to rerun these tests and create the
13729   # libtool script then.
13730   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13731   if test -f "$ltmain_in"; then
13732     test -f Makefile && make "$ltmain"
13733   fi
13734 fi
13735
13736
13737 ac_ext=c
13738 ac_cpp='$CPP $CPPFLAGS'
13739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13742
13743 CC=$lt_save_CC
13744 LDCXX=$LD
13745 LD=$lt_save_LD
13746 GCC=$lt_save_GCC
13747 with_gnu_ldcxx=$with_gnu_ld
13748 with_gnu_ld=$lt_save_with_gnu_ld
13749 lt_cv_path_LDCXX=$lt_cv_path_LD
13750 lt_cv_path_LD=$lt_save_path_LD
13751 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13752 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13753
13754         else
13755           tagname=""
13756         fi
13757         ;;
13758
13759       F77)
13760         if test -n "$F77" && test "X$F77" != "Xno"; then
13761
13762 ac_ext=f
13763 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13764 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13766
13767
13768 archive_cmds_need_lc_F77=no
13769 allow_undefined_flag_F77=
13770 always_export_symbols_F77=no
13771 archive_expsym_cmds_F77=
13772 export_dynamic_flag_spec_F77=
13773 hardcode_direct_F77=no
13774 hardcode_libdir_flag_spec_F77=
13775 hardcode_libdir_flag_spec_ld_F77=
13776 hardcode_libdir_separator_F77=
13777 hardcode_minus_L_F77=no
13778 hardcode_automatic_F77=no
13779 module_cmds_F77=
13780 module_expsym_cmds_F77=
13781 link_all_deplibs_F77=unknown
13782 old_archive_cmds_F77=$old_archive_cmds
13783 no_undefined_flag_F77=
13784 whole_archive_flag_spec_F77=
13785 enable_shared_with_static_runtimes_F77=no
13786
13787 # Source file extension for f77 test sources.
13788 ac_ext=f
13789
13790 # Object file extension for compiled f77 test sources.
13791 objext=o
13792 objext_F77=$objext
13793
13794 # Code to be used in simple compile tests
13795 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13796
13797 # Code to be used in simple link tests
13798 lt_simple_link_test_code="      program t\n      end\n"
13799
13800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13801
13802 # If no C compiler was specified, use CC.
13803 LTCC=${LTCC-"$CC"}
13804
13805 # If no C compiler flags were specified, use CFLAGS.
13806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13807
13808 # Allow CC to be a program name with arguments.
13809 compiler=$CC
13810
13811
13812 # save warnings/boilerplate of simple test code
13813 ac_outfile=conftest.$ac_objext
13814 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13816 _lt_compiler_boilerplate=`cat conftest.err`
13817 $rm conftest*
13818
13819 ac_outfile=conftest.$ac_objext
13820 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13822 _lt_linker_boilerplate=`cat conftest.err`
13823 $rm conftest*
13824
13825
13826 # Allow CC to be a program name with arguments.
13827 lt_save_CC="$CC"
13828 CC=${F77-"f77"}
13829 compiler=$CC
13830 compiler_F77=$CC
13831 for cc_temp in $compiler""; do
13832   case $cc_temp in
13833     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13834     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13835     \-*) ;;
13836     *) break;;
13837   esac
13838 done
13839 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13840
13841
13842 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13843 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13844 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13845 echo "${ECHO_T}$can_build_shared" >&6; }
13846
13847 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13848 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13849 test "$can_build_shared" = "no" && enable_shared=no
13850
13851 # On AIX, shared libraries and static libraries use the same namespace, and
13852 # are all built from PIC.
13853 case $host_os in
13854 aix3*)
13855   test "$enable_shared" = yes && enable_static=no
13856   if test -n "$RANLIB"; then
13857     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13858     postinstall_cmds='$RANLIB $lib'
13859   fi
13860   ;;
13861 aix4* | aix5*)
13862   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13863     test "$enable_shared" = yes && enable_static=no
13864   fi
13865   ;;
13866 esac
13867 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13868 echo "${ECHO_T}$enable_shared" >&6; }
13869
13870 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13871 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13872 # Make sure either enable_shared or enable_static is yes.
13873 test "$enable_shared" = yes || enable_static=yes
13874 { echo "$as_me:$LINENO: result: $enable_static" >&5
13875 echo "${ECHO_T}$enable_static" >&6; }
13876
13877 GCC_F77="$G77"
13878 LD_F77="$LD"
13879
13880 lt_prog_compiler_wl_F77=
13881 lt_prog_compiler_pic_F77=
13882 lt_prog_compiler_static_F77=
13883
13884 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13885 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13886
13887   if test "$GCC" = yes; then
13888     lt_prog_compiler_wl_F77='-Wl,'
13889     lt_prog_compiler_static_F77='-static'
13890
13891     case $host_os in
13892       aix*)
13893       # All AIX code is PIC.
13894       if test "$host_cpu" = ia64; then
13895         # AIX 5 now supports IA64 processor
13896         lt_prog_compiler_static_F77='-Bstatic'
13897       fi
13898       ;;
13899
13900     amigaos*)
13901       # FIXME: we need at least 68020 code to build shared libraries, but
13902       # adding the `-m68020' flag to GCC prevents building anything better,
13903       # like `-m68040'.
13904       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13905       ;;
13906
13907     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13908       # PIC is the default for these OSes.
13909       ;;
13910
13911     mingw* | pw32* | os2*)
13912       # This hack is so that the source file can tell whether it is being
13913       # built for inclusion in a dll (and should export symbols for example).
13914       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13915       ;;
13916
13917     darwin* | rhapsody*)
13918       # PIC is the default on this platform
13919       # Common symbols not allowed in MH_DYLIB files
13920       lt_prog_compiler_pic_F77='-fno-common'
13921       ;;
13922
13923     interix3*)
13924       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13925       # Instead, we relocate shared libraries at runtime.
13926       ;;
13927
13928     msdosdjgpp*)
13929       # Just because we use GCC doesn't mean we suddenly get shared libraries
13930       # on systems that don't support them.
13931       lt_prog_compiler_can_build_shared_F77=no
13932       enable_shared=no
13933       ;;
13934
13935     sysv4*MP*)
13936       if test -d /usr/nec; then
13937         lt_prog_compiler_pic_F77=-Kconform_pic
13938       fi
13939       ;;
13940
13941     hpux*)
13942       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13943       # not for PA HP-UX.
13944       case $host_cpu in
13945       hppa*64*|ia64*)
13946         # +Z the default
13947         ;;
13948       *)
13949         lt_prog_compiler_pic_F77='-fPIC'
13950         ;;
13951       esac
13952       ;;
13953
13954     *)
13955       lt_prog_compiler_pic_F77='-fPIC'
13956       ;;
13957     esac
13958   else
13959     # PORTME Check for flag to pass linker flags through the system compiler.
13960     case $host_os in
13961     aix*)
13962       lt_prog_compiler_wl_F77='-Wl,'
13963       if test "$host_cpu" = ia64; then
13964         # AIX 5 now supports IA64 processor
13965         lt_prog_compiler_static_F77='-Bstatic'
13966       else
13967         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13968       fi
13969       ;;
13970       darwin*)
13971         # PIC is the default on this platform
13972         # Common symbols not allowed in MH_DYLIB files
13973        case $cc_basename in
13974          xlc*)
13975          lt_prog_compiler_pic_F77='-qnocommon'
13976          lt_prog_compiler_wl_F77='-Wl,'
13977          ;;
13978        esac
13979        ;;
13980
13981     mingw* | pw32* | os2*)
13982       # This hack is so that the source file can tell whether it is being
13983       # built for inclusion in a dll (and should export symbols for example).
13984       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13985       ;;
13986
13987     hpux9* | hpux10* | hpux11*)
13988       lt_prog_compiler_wl_F77='-Wl,'
13989       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13990       # not for PA HP-UX.
13991       case $host_cpu in
13992       hppa*64*|ia64*)
13993         # +Z the default
13994         ;;
13995       *)
13996         lt_prog_compiler_pic_F77='+Z'
13997         ;;
13998       esac
13999       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14000       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14001       ;;
14002
14003     irix5* | irix6* | nonstopux*)
14004       lt_prog_compiler_wl_F77='-Wl,'
14005       # PIC (with -KPIC) is the default.
14006       lt_prog_compiler_static_F77='-non_shared'
14007       ;;
14008
14009     newsos6)
14010       lt_prog_compiler_pic_F77='-KPIC'
14011       lt_prog_compiler_static_F77='-Bstatic'
14012       ;;
14013
14014     linux*)
14015       case $cc_basename in
14016       icc* | ecc*)
14017         lt_prog_compiler_wl_F77='-Wl,'
14018         lt_prog_compiler_pic_F77='-KPIC'
14019         lt_prog_compiler_static_F77='-static'
14020         ;;
14021       pgcc* | pgf77* | pgf90* | pgf95*)
14022         # Portland Group compilers (*not* the Pentium gcc compiler,
14023         # which looks to be a dead project)
14024         lt_prog_compiler_wl_F77='-Wl,'
14025         lt_prog_compiler_pic_F77='-fpic'
14026         lt_prog_compiler_static_F77='-Bstatic'
14027         ;;
14028       ccc*)
14029         lt_prog_compiler_wl_F77='-Wl,'
14030         # All Alpha code is PIC.
14031         lt_prog_compiler_static_F77='-non_shared'
14032         ;;
14033       esac
14034       ;;
14035
14036     osf3* | osf4* | osf5*)
14037       lt_prog_compiler_wl_F77='-Wl,'
14038       # All OSF/1 code is PIC.
14039       lt_prog_compiler_static_F77='-non_shared'
14040       ;;
14041
14042     solaris*)
14043       lt_prog_compiler_pic_F77='-KPIC'
14044       lt_prog_compiler_static_F77='-Bstatic'
14045       case $cc_basename in
14046       f77* | f90* | f95*)
14047         lt_prog_compiler_wl_F77='-Qoption ld ';;
14048       *)
14049         lt_prog_compiler_wl_F77='-Wl,';;
14050       esac
14051       ;;
14052
14053     sunos4*)
14054       lt_prog_compiler_wl_F77='-Qoption ld '
14055       lt_prog_compiler_pic_F77='-PIC'
14056       lt_prog_compiler_static_F77='-Bstatic'
14057       ;;
14058
14059     sysv4 | sysv4.2uw2* | sysv4.3*)
14060       lt_prog_compiler_wl_F77='-Wl,'
14061       lt_prog_compiler_pic_F77='-KPIC'
14062       lt_prog_compiler_static_F77='-Bstatic'
14063       ;;
14064
14065     sysv4*MP*)
14066       if test -d /usr/nec ;then
14067         lt_prog_compiler_pic_F77='-Kconform_pic'
14068         lt_prog_compiler_static_F77='-Bstatic'
14069       fi
14070       ;;
14071
14072     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14073       lt_prog_compiler_wl_F77='-Wl,'
14074       lt_prog_compiler_pic_F77='-KPIC'
14075       lt_prog_compiler_static_F77='-Bstatic'
14076       ;;
14077
14078     unicos*)
14079       lt_prog_compiler_wl_F77='-Wl,'
14080       lt_prog_compiler_can_build_shared_F77=no
14081       ;;
14082
14083     uts4*)
14084       lt_prog_compiler_pic_F77='-pic'
14085       lt_prog_compiler_static_F77='-Bstatic'
14086       ;;
14087
14088     *)
14089       lt_prog_compiler_can_build_shared_F77=no
14090       ;;
14091     esac
14092   fi
14093
14094 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14095 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14096
14097 #
14098 # Check to make sure the PIC flag actually works.
14099 #
14100 if test -n "$lt_prog_compiler_pic_F77"; then
14101
14102 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14103 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14104 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14105   echo $ECHO_N "(cached) $ECHO_C" >&6
14106 else
14107   lt_prog_compiler_pic_works_F77=no
14108   ac_outfile=conftest.$ac_objext
14109    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14110    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14111    # Insert the option either (1) after the last *FLAGS variable, or
14112    # (2) before a word containing "conftest.", or (3) at the end.
14113    # Note that $ac_compile itself does not contain backslashes and begins
14114    # with a dollar sign (not a hyphen), so the echo should work correctly.
14115    # The option is referenced via a variable to avoid confusing sed.
14116    lt_compile=`echo "$ac_compile" | $SED \
14117    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14118    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14119    -e 's:$: $lt_compiler_flag:'`
14120    (eval echo "\"\$as_me:14120: $lt_compile\"" >&5)
14121    (eval "$lt_compile" 2>conftest.err)
14122    ac_status=$?
14123    cat conftest.err >&5
14124    echo "$as_me:14124: \$? = $ac_status" >&5
14125    if (exit $ac_status) && test -s "$ac_outfile"; then
14126      # The compiler can only warn and ignore the option if not recognized
14127      # So say no if there are warnings other than the usual output.
14128      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14129      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14130      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14131        lt_prog_compiler_pic_works_F77=yes
14132      fi
14133    fi
14134    $rm conftest*
14135
14136 fi
14137 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14138 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14139
14140 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14141     case $lt_prog_compiler_pic_F77 in
14142      "" | " "*) ;;
14143      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14144      esac
14145 else
14146     lt_prog_compiler_pic_F77=
14147      lt_prog_compiler_can_build_shared_F77=no
14148 fi
14149
14150 fi
14151 case $host_os in
14152   # For platforms which do not support PIC, -DPIC is meaningless:
14153   *djgpp*)
14154     lt_prog_compiler_pic_F77=
14155     ;;
14156   *)
14157     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14158     ;;
14159 esac
14160
14161 #
14162 # Check to make sure the static flag actually works.
14163 #
14164 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14165 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14166 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14167 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170   lt_prog_compiler_static_works_F77=no
14171    save_LDFLAGS="$LDFLAGS"
14172    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14173    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14174    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14175      # The linker can only warn and ignore the option if not recognized
14176      # So say no if there are warnings
14177      if test -s conftest.err; then
14178        # Append any errors to the config.log.
14179        cat conftest.err 1>&5
14180        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14181        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14182        if diff conftest.exp conftest.er2 >/dev/null; then
14183          lt_prog_compiler_static_works_F77=yes
14184        fi
14185      else
14186        lt_prog_compiler_static_works_F77=yes
14187      fi
14188    fi
14189    $rm conftest*
14190    LDFLAGS="$save_LDFLAGS"
14191
14192 fi
14193 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14194 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14195
14196 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14197     :
14198 else
14199     lt_prog_compiler_static_F77=
14200 fi
14201
14202
14203 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14204 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14205 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14206   echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208   lt_cv_prog_compiler_c_o_F77=no
14209    $rm -r conftest 2>/dev/null
14210    mkdir conftest
14211    cd conftest
14212    mkdir out
14213    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14214
14215    lt_compiler_flag="-o out/conftest2.$ac_objext"
14216    # Insert the option either (1) after the last *FLAGS variable, or
14217    # (2) before a word containing "conftest.", or (3) at the end.
14218    # Note that $ac_compile itself does not contain backslashes and begins
14219    # with a dollar sign (not a hyphen), so the echo should work correctly.
14220    lt_compile=`echo "$ac_compile" | $SED \
14221    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14222    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14223    -e 's:$: $lt_compiler_flag:'`
14224    (eval echo "\"\$as_me:14224: $lt_compile\"" >&5)
14225    (eval "$lt_compile" 2>out/conftest.err)
14226    ac_status=$?
14227    cat out/conftest.err >&5
14228    echo "$as_me:14228: \$? = $ac_status" >&5
14229    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14230    then
14231      # The compiler can only warn and ignore the option if not recognized
14232      # So say no if there are warnings
14233      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14234      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14235      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14236        lt_cv_prog_compiler_c_o_F77=yes
14237      fi
14238    fi
14239    chmod u+w . 2>&5
14240    $rm conftest*
14241    # SGI C++ compiler will create directory out/ii_files/ for
14242    # template instantiation
14243    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14244    $rm out/* && rmdir out
14245    cd ..
14246    rmdir conftest
14247    $rm conftest*
14248
14249 fi
14250 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14251 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14252
14253
14254 hard_links="nottested"
14255 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14256   # do not overwrite the value of need_locks provided by the user
14257   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14258 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14259   hard_links=yes
14260   $rm conftest*
14261   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14262   touch conftest.a
14263   ln conftest.a conftest.b 2>&5 || hard_links=no
14264   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14265   { echo "$as_me:$LINENO: result: $hard_links" >&5
14266 echo "${ECHO_T}$hard_links" >&6; }
14267   if test "$hard_links" = no; then
14268     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14269 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14270     need_locks=warn
14271   fi
14272 else
14273   need_locks=no
14274 fi
14275
14276 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14278
14279   runpath_var=
14280   allow_undefined_flag_F77=
14281   enable_shared_with_static_runtimes_F77=no
14282   archive_cmds_F77=
14283   archive_expsym_cmds_F77=
14284   old_archive_From_new_cmds_F77=
14285   old_archive_from_expsyms_cmds_F77=
14286   export_dynamic_flag_spec_F77=
14287   whole_archive_flag_spec_F77=
14288   thread_safe_flag_spec_F77=
14289   hardcode_libdir_flag_spec_F77=
14290   hardcode_libdir_flag_spec_ld_F77=
14291   hardcode_libdir_separator_F77=
14292   hardcode_direct_F77=no
14293   hardcode_minus_L_F77=no
14294   hardcode_shlibpath_var_F77=unsupported
14295   link_all_deplibs_F77=unknown
14296   hardcode_automatic_F77=no
14297   module_cmds_F77=
14298   module_expsym_cmds_F77=
14299   always_export_symbols_F77=no
14300   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14301   # include_expsyms should be a list of space-separated symbols to be *always*
14302   # included in the symbol list
14303   include_expsyms_F77=
14304   # exclude_expsyms can be an extended regexp of symbols to exclude
14305   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14306   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14307   # as well as any symbol that contains `d'.
14308   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14309   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14310   # platforms (ab)use it in PIC code, but their linkers get confused if
14311   # the symbol is explicitly referenced.  Since portable code cannot
14312   # rely on this symbol name, it's probably fine to never include it in
14313   # preloaded symbol tables.
14314   extract_expsyms_cmds=
14315   # Just being paranoid about ensuring that cc_basename is set.
14316   for cc_temp in $compiler""; do
14317   case $cc_temp in
14318     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14319     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14320     \-*) ;;
14321     *) break;;
14322   esac
14323 done
14324 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14325
14326   case $host_os in
14327   cygwin* | mingw* | pw32*)
14328     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14329     # When not using gcc, we currently assume that we are using
14330     # Microsoft Visual C++.
14331     if test "$GCC" != yes; then
14332       with_gnu_ld=no
14333     fi
14334     ;;
14335   interix*)
14336     # we just hope/assume this is gcc and not c89 (= MSVC++)
14337     with_gnu_ld=yes
14338     ;;
14339   openbsd*)
14340     with_gnu_ld=no
14341     ;;
14342   esac
14343
14344   ld_shlibs_F77=yes
14345   if test "$with_gnu_ld" = yes; then
14346     # If archive_cmds runs LD, not CC, wlarc should be empty
14347     wlarc='${wl}'
14348
14349     # Set some defaults for GNU ld with shared library support. These
14350     # are reset later if shared libraries are not supported. Putting them
14351     # here allows them to be overridden if necessary.
14352     runpath_var=LD_RUN_PATH
14353     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14354     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14355     # ancient GNU ld didn't support --whole-archive et. al.
14356     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14357         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14358       else
14359         whole_archive_flag_spec_F77=
14360     fi
14361     supports_anon_versioning=no
14362     case `$LD -v 2>/dev/null` in
14363       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14364       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14365       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14366       *\ 2.11.*) ;; # other 2.11 versions
14367       *) supports_anon_versioning=yes ;;
14368     esac
14369
14370     # See if GNU ld supports shared libraries.
14371     case $host_os in
14372     aix3* | aix4* | aix5*)
14373       # On AIX/PPC, the GNU linker is very broken
14374       if test "$host_cpu" != ia64; then
14375         ld_shlibs_F77=no
14376         cat <<EOF 1>&2
14377
14378 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14379 *** to be unable to reliably create shared libraries on AIX.
14380 *** Therefore, libtool is disabling shared libraries support.  If you
14381 *** really care for shared libraries, you may want to modify your PATH
14382 *** so that a non-GNU linker is found, and then restart.
14383
14384 EOF
14385       fi
14386       ;;
14387
14388     amigaos*)
14389       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)'
14390       hardcode_libdir_flag_spec_F77='-L$libdir'
14391       hardcode_minus_L_F77=yes
14392
14393       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14394       # that the semantics of dynamic libraries on AmigaOS, at least up
14395       # to version 4, is to share data among multiple programs linked
14396       # with the same dynamic library.  Since this doesn't match the
14397       # behavior of shared libraries on other platforms, we can't use
14398       # them.
14399       ld_shlibs_F77=no
14400       ;;
14401
14402     beos*)
14403       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14404         allow_undefined_flag_F77=unsupported
14405         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14406         # support --undefined.  This deserves some investigation.  FIXME
14407         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14408       else
14409         ld_shlibs_F77=no
14410       fi
14411       ;;
14412
14413     cygwin* | mingw* | pw32*)
14414       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14415       # as there is no search path for DLLs.
14416       hardcode_libdir_flag_spec_F77='-L$libdir'
14417       allow_undefined_flag_F77=unsupported
14418       always_export_symbols_F77=no
14419       enable_shared_with_static_runtimes_F77=yes
14420       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14421
14422       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14423         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14424         # If the export-symbols file already is a .def file (1st line
14425         # is EXPORTS), use it as is; otherwise, prepend...
14426         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14427           cp $export_symbols $output_objdir/$soname.def;
14428         else
14429           echo EXPORTS > $output_objdir/$soname.def;
14430           cat $export_symbols >> $output_objdir/$soname.def;
14431         fi~
14432         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14433       else
14434         ld_shlibs_F77=no
14435       fi
14436       ;;
14437
14438     interix3*)
14439       hardcode_direct_F77=no
14440       hardcode_shlibpath_var_F77=no
14441       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14442       export_dynamic_flag_spec_F77='${wl}-E'
14443       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14444       # Instead, shared libraries are loaded at an image base (0x10000000 by
14445       # default) and relocated if they conflict, which is a slow very memory
14446       # consuming and fragmenting process.  To avoid this, we pick a random,
14447       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14448       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14449       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'
14450       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'
14451       ;;
14452
14453     linux*)
14454       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14455         tmp_addflag=
14456         case $cc_basename,$host_cpu in
14457         pgcc*)                          # Portland Group C compiler
14458           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'
14459           tmp_addflag=' $pic_flag'
14460           ;;
14461         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14462           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'
14463           tmp_addflag=' $pic_flag -Mnomain' ;;
14464         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14465           tmp_addflag=' -i_dynamic' ;;
14466         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14467           tmp_addflag=' -i_dynamic -nofor_main' ;;
14468         ifc* | ifort*)                  # Intel Fortran compiler
14469           tmp_addflag=' -nofor_main' ;;
14470         esac
14471         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14472
14473         if test $supports_anon_versioning = yes; then
14474           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14475   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14476   $echo "local: *; };" >> $output_objdir/$libname.ver~
14477           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14478         fi
14479       else
14480         ld_shlibs_F77=no
14481       fi
14482       ;;
14483
14484     netbsd*)
14485       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14486         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14487         wlarc=
14488       else
14489         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14490         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14491       fi
14492       ;;
14493
14494     solaris*)
14495       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14496         ld_shlibs_F77=no
14497         cat <<EOF 1>&2
14498
14499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14500 *** create shared libraries on Solaris systems.  Therefore, libtool
14501 *** is disabling shared libraries support.  We urge you to upgrade GNU
14502 *** binutils to release 2.9.1 or newer.  Another option is to modify
14503 *** your PATH or compiler configuration so that the native linker is
14504 *** used, and then restart.
14505
14506 EOF
14507       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14508         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14509         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14510       else
14511         ld_shlibs_F77=no
14512       fi
14513       ;;
14514
14515     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14516       case `$LD -v 2>&1` in
14517         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14518         ld_shlibs_F77=no
14519         cat <<_LT_EOF 1>&2
14520
14521 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14522 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14523 *** is disabling shared libraries support.  We urge you to upgrade GNU
14524 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14525 *** your PATH or compiler configuration so that the native linker is
14526 *** used, and then restart.
14527
14528 _LT_EOF
14529         ;;
14530         *)
14531           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14532             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14533             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14534             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14535           else
14536             ld_shlibs_F77=no
14537           fi
14538         ;;
14539       esac
14540       ;;
14541
14542     sunos4*)
14543       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14544       wlarc=
14545       hardcode_direct_F77=yes
14546       hardcode_shlibpath_var_F77=no
14547       ;;
14548
14549     *)
14550       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14551         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14552         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14553       else
14554         ld_shlibs_F77=no
14555       fi
14556       ;;
14557     esac
14558
14559     if test "$ld_shlibs_F77" = no; then
14560       runpath_var=
14561       hardcode_libdir_flag_spec_F77=
14562       export_dynamic_flag_spec_F77=
14563       whole_archive_flag_spec_F77=
14564     fi
14565   else
14566     # PORTME fill in a description of your system's linker (not GNU ld)
14567     case $host_os in
14568     aix3*)
14569       allow_undefined_flag_F77=unsupported
14570       always_export_symbols_F77=yes
14571       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'
14572       # Note: this linker hardcodes the directories in LIBPATH if there
14573       # are no directories specified by -L.
14574       hardcode_minus_L_F77=yes
14575       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14576         # Neither direct hardcoding nor static linking is supported with a
14577         # broken collect2.
14578         hardcode_direct_F77=unsupported
14579       fi
14580       ;;
14581
14582     aix4* | aix5*)
14583       if test "$host_cpu" = ia64; then
14584         # On IA64, the linker does run time linking by default, so we don't
14585         # have to do anything special.
14586         aix_use_runtimelinking=no
14587         exp_sym_flag='-Bexport'
14588         no_entry_flag=""
14589       else
14590         # If we're using GNU nm, then we don't want the "-C" option.
14591         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14592         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14593           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'
14594         else
14595           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'
14596         fi
14597         aix_use_runtimelinking=no
14598
14599         # Test if we are trying to use run time linking or normal
14600         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14601         # need to do runtime linking.
14602         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14603           for ld_flag in $LDFLAGS; do
14604           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14605             aix_use_runtimelinking=yes
14606             break
14607           fi
14608           done
14609           ;;
14610         esac
14611
14612         exp_sym_flag='-bexport'
14613         no_entry_flag='-bnoentry'
14614       fi
14615
14616       # When large executables or shared objects are built, AIX ld can
14617       # have problems creating the table of contents.  If linking a library
14618       # or program results in "error TOC overflow" add -mminimal-toc to
14619       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14620       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14621
14622       archive_cmds_F77=''
14623       hardcode_direct_F77=yes
14624       hardcode_libdir_separator_F77=':'
14625       link_all_deplibs_F77=yes
14626
14627       if test "$GCC" = yes; then
14628         case $host_os in aix4.[012]|aix4.[012].*)
14629         # We only want to do this on AIX 4.2 and lower, the check
14630         # below for broken collect2 doesn't work under 4.3+
14631           collect2name=`${CC} -print-prog-name=collect2`
14632           if test -f "$collect2name" && \
14633            strings "$collect2name" | grep resolve_lib_name >/dev/null
14634           then
14635           # We have reworked collect2
14636           hardcode_direct_F77=yes
14637           else
14638           # We have old collect2
14639           hardcode_direct_F77=unsupported
14640           # It fails to find uninstalled libraries when the uninstalled
14641           # path is not listed in the libpath.  Setting hardcode_minus_L
14642           # to unsupported forces relinking
14643           hardcode_minus_L_F77=yes
14644           hardcode_libdir_flag_spec_F77='-L$libdir'
14645           hardcode_libdir_separator_F77=
14646           fi
14647           ;;
14648         esac
14649         shared_flag='-shared'
14650         if test "$aix_use_runtimelinking" = yes; then
14651           shared_flag="$shared_flag "'${wl}-G'
14652         fi
14653       else
14654         # not using gcc
14655         if test "$host_cpu" = ia64; then
14656         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14657         # chokes on -Wl,-G. The following line is correct:
14658           shared_flag='-G'
14659         else
14660           if test "$aix_use_runtimelinking" = yes; then
14661             shared_flag='${wl}-G'
14662           else
14663             shared_flag='${wl}-bM:SRE'
14664           fi
14665         fi
14666       fi
14667
14668       # It seems that -bexpall does not export symbols beginning with
14669       # underscore (_), so it is better to generate a list of symbols to export.
14670       always_export_symbols_F77=yes
14671       if test "$aix_use_runtimelinking" = yes; then
14672         # Warning - without using the other runtime loading flags (-brtl),
14673         # -berok will link without error, but may produce a broken library.
14674         allow_undefined_flag_F77='-berok'
14675        # Determine the default libpath from the value encoded in an empty executable.
14676        cat >conftest.$ac_ext <<_ACEOF
14677       program main
14678
14679       end
14680 _ACEOF
14681 rm -f conftest.$ac_objext conftest$ac_exeext
14682 if { (ac_try="$ac_link"
14683 case "(($ac_try" in
14684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685   *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688   (eval "$ac_link") 2>conftest.er1
14689   ac_status=$?
14690   grep -v '^ *+' conftest.er1 >conftest.err
14691   rm -f conftest.er1
14692   cat conftest.err >&5
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); } && {
14695          test -z "$ac_f77_werror_flag" ||
14696          test ! -s conftest.err
14697        } && test -s conftest$ac_exeext &&
14698        $as_test_x conftest$ac_exeext; then
14699
14700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14701 }'`
14702 # Check for a 64-bit object if we didn't find anything.
14703 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; }
14704 }'`; fi
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709
14710 fi
14711
14712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14713       conftest$ac_exeext conftest.$ac_ext
14714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14715
14716        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14717         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"
14718        else
14719         if test "$host_cpu" = ia64; then
14720           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14721           allow_undefined_flag_F77="-z nodefs"
14722           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"
14723         else
14724          # Determine the default libpath from the value encoded in an empty executable.
14725          cat >conftest.$ac_ext <<_ACEOF
14726       program main
14727
14728       end
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (ac_try="$ac_link"
14732 case "(($ac_try" in
14733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734   *) ac_try_echo=$ac_try;;
14735 esac
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737   (eval "$ac_link") 2>conftest.er1
14738   ac_status=$?
14739   grep -v '^ *+' conftest.er1 >conftest.err
14740   rm -f conftest.er1
14741   cat conftest.err >&5
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); } && {
14744          test -z "$ac_f77_werror_flag" ||
14745          test ! -s conftest.err
14746        } && test -s conftest$ac_exeext &&
14747        $as_test_x conftest$ac_exeext; then
14748
14749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14750 }'`
14751 # Check for a 64-bit object if we didn't find anything.
14752 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; }
14753 }'`; fi
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758
14759 fi
14760
14761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14762       conftest$ac_exeext conftest.$ac_ext
14763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14764
14765          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14766           # Warning - without using the other run time loading flags,
14767           # -berok will link without error, but may produce a broken library.
14768           no_undefined_flag_F77=' ${wl}-bernotok'
14769           allow_undefined_flag_F77=' ${wl}-berok'
14770           # Exported symbols can be pulled into shared objects from archives
14771           whole_archive_flag_spec_F77='$convenience'
14772           archive_cmds_need_lc_F77=yes
14773           # This is similar to how AIX traditionally builds its shared libraries.
14774           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'
14775         fi
14776       fi
14777       ;;
14778
14779     amigaos*)
14780       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)'
14781       hardcode_libdir_flag_spec_F77='-L$libdir'
14782       hardcode_minus_L_F77=yes
14783       # see comment about different semantics on the GNU ld section
14784       ld_shlibs_F77=no
14785       ;;
14786
14787     bsdi[45]*)
14788       export_dynamic_flag_spec_F77=-rdynamic
14789       ;;
14790
14791     cygwin* | mingw* | pw32*)
14792       # When not using gcc, we currently assume that we are using
14793       # Microsoft Visual C++.
14794       # hardcode_libdir_flag_spec is actually meaningless, as there is
14795       # no search path for DLLs.
14796       hardcode_libdir_flag_spec_F77=' '
14797       allow_undefined_flag_F77=unsupported
14798       # Tell ltmain to make .lib files, not .a files.
14799       libext=lib
14800       # Tell ltmain to make .dll files, not .so files.
14801       shrext_cmds=".dll"
14802       # FIXME: Setting linknames here is a bad hack.
14803       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14804       # The linker will automatically build a .lib file if we build a DLL.
14805       old_archive_From_new_cmds_F77='true'
14806       # FIXME: Should let the user specify the lib program.
14807       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14808       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14809       enable_shared_with_static_runtimes_F77=yes
14810       ;;
14811
14812     darwin* | rhapsody*)
14813       case $host_os in
14814         rhapsody* | darwin1.[012])
14815          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14816          ;;
14817        *) # Darwin 1.3 on
14818          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14819            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14820          else
14821            case ${MACOSX_DEPLOYMENT_TARGET} in
14822              10.[012])
14823                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14824                ;;
14825              10.*)
14826                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14827                ;;
14828            esac
14829          fi
14830          ;;
14831       esac
14832       archive_cmds_need_lc_F77=no
14833       hardcode_direct_F77=no
14834       hardcode_automatic_F77=yes
14835       hardcode_shlibpath_var_F77=unsupported
14836       whole_archive_flag_spec_F77=''
14837       link_all_deplibs_F77=yes
14838     if test "$GCC" = yes ; then
14839         output_verbose_link_cmd='echo'
14840         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14841       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14842       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14843       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}'
14844       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}'
14845     else
14846       case $cc_basename in
14847         xlc*)
14848          output_verbose_link_cmd='echo'
14849          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14850          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14851           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14852          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}'
14853           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}'
14854           ;;
14855        *)
14856          ld_shlibs_F77=no
14857           ;;
14858       esac
14859     fi
14860       ;;
14861
14862     dgux*)
14863       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14864       hardcode_libdir_flag_spec_F77='-L$libdir'
14865       hardcode_shlibpath_var_F77=no
14866       ;;
14867
14868     freebsd1*)
14869       ld_shlibs_F77=no
14870       ;;
14871
14872     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14873     # support.  Future versions do this automatically, but an explicit c++rt0.o
14874     # does not break anything, and helps significantly (at the cost of a little
14875     # extra space).
14876     freebsd2.2*)
14877       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14878       hardcode_libdir_flag_spec_F77='-R$libdir'
14879       hardcode_direct_F77=yes
14880       hardcode_shlibpath_var_F77=no
14881       ;;
14882
14883     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14884     freebsd2*)
14885       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14886       hardcode_direct_F77=yes
14887       hardcode_minus_L_F77=yes
14888       hardcode_shlibpath_var_F77=no
14889       ;;
14890
14891     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14892     freebsd* | kfreebsd*-gnu | dragonfly*)
14893       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14894       hardcode_libdir_flag_spec_F77='-R$libdir'
14895       hardcode_direct_F77=yes
14896       hardcode_shlibpath_var_F77=no
14897       ;;
14898
14899     hpux9*)
14900       if test "$GCC" = yes; then
14901         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'
14902       else
14903         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'
14904       fi
14905       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14906       hardcode_libdir_separator_F77=:
14907       hardcode_direct_F77=yes
14908
14909       # hardcode_minus_L: Not really in the search PATH,
14910       # but as the default location of the library.
14911       hardcode_minus_L_F77=yes
14912       export_dynamic_flag_spec_F77='${wl}-E'
14913       ;;
14914
14915     hpux10*)
14916       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14917         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14918       else
14919         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14920       fi
14921       if test "$with_gnu_ld" = no; then
14922         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14923         hardcode_libdir_separator_F77=:
14924
14925         hardcode_direct_F77=yes
14926         export_dynamic_flag_spec_F77='${wl}-E'
14927
14928         # hardcode_minus_L: Not really in the search PATH,
14929         # but as the default location of the library.
14930         hardcode_minus_L_F77=yes
14931       fi
14932       ;;
14933
14934     hpux11*)
14935       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14936         case $host_cpu in
14937         hppa*64*)
14938           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14939           ;;
14940         ia64*)
14941           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14942           ;;
14943         *)
14944           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14945           ;;
14946         esac
14947       else
14948         case $host_cpu in
14949         hppa*64*)
14950           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14951           ;;
14952         ia64*)
14953           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14954           ;;
14955         *)
14956           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14957           ;;
14958         esac
14959       fi
14960       if test "$with_gnu_ld" = no; then
14961         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14962         hardcode_libdir_separator_F77=:
14963
14964         case $host_cpu in
14965         hppa*64*|ia64*)
14966           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14967           hardcode_direct_F77=no
14968           hardcode_shlibpath_var_F77=no
14969           ;;
14970         *)
14971           hardcode_direct_F77=yes
14972           export_dynamic_flag_spec_F77='${wl}-E'
14973
14974           # hardcode_minus_L: Not really in the search PATH,
14975           # but as the default location of the library.
14976           hardcode_minus_L_F77=yes
14977           ;;
14978         esac
14979       fi
14980       ;;
14981
14982     irix5* | irix6* | nonstopux*)
14983       if test "$GCC" = yes; then
14984         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'
14985       else
14986         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'
14987         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14988       fi
14989       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14990       hardcode_libdir_separator_F77=:
14991       link_all_deplibs_F77=yes
14992       ;;
14993
14994     netbsd*)
14995       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14996         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14997       else
14998         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14999       fi
15000       hardcode_libdir_flag_spec_F77='-R$libdir'
15001       hardcode_direct_F77=yes
15002       hardcode_shlibpath_var_F77=no
15003       ;;
15004
15005     newsos6)
15006       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15007       hardcode_direct_F77=yes
15008       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15009       hardcode_libdir_separator_F77=:
15010       hardcode_shlibpath_var_F77=no
15011       ;;
15012
15013     openbsd*)
15014       hardcode_direct_F77=yes
15015       hardcode_shlibpath_var_F77=no
15016       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15017         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15018         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15019         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15020         export_dynamic_flag_spec_F77='${wl}-E'
15021       else
15022        case $host_os in
15023          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15024            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15025            hardcode_libdir_flag_spec_F77='-R$libdir'
15026            ;;
15027          *)
15028            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15029            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15030            ;;
15031        esac
15032       fi
15033       ;;
15034
15035     os2*)
15036       hardcode_libdir_flag_spec_F77='-L$libdir'
15037       hardcode_minus_L_F77=yes
15038       allow_undefined_flag_F77=unsupported
15039       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'
15040       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15041       ;;
15042
15043     osf3*)
15044       if test "$GCC" = yes; then
15045         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15046         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'
15047       else
15048         allow_undefined_flag_F77=' -expect_unresolved \*'
15049         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'
15050       fi
15051       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15052       hardcode_libdir_separator_F77=:
15053       ;;
15054
15055     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15056       if test "$GCC" = yes; then
15057         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15058         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'
15059         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15060       else
15061         allow_undefined_flag_F77=' -expect_unresolved \*'
15062         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'
15063         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~
15064         $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'
15065
15066         # Both c and cxx compiler support -rpath directly
15067         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15068       fi
15069       hardcode_libdir_separator_F77=:
15070       ;;
15071
15072     solaris*)
15073       no_undefined_flag_F77=' -z text'
15074       if test "$GCC" = yes; then
15075         wlarc='${wl}'
15076         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15077         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15078           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15079       else
15080         wlarc=''
15081         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15082         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15083         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15084       fi
15085       hardcode_libdir_flag_spec_F77='-R$libdir'
15086       hardcode_shlibpath_var_F77=no
15087       case $host_os in
15088       solaris2.[0-5] | solaris2.[0-5].*) ;;
15089       *)
15090         # The compiler driver will combine linker options so we
15091         # cannot just pass the convience library names through
15092         # without $wl, iff we do not link with $LD.
15093         # Luckily, gcc supports the same syntax we need for Sun Studio.
15094         # Supported since Solaris 2.6 (maybe 2.5.1?)
15095         case $wlarc in
15096         '')
15097           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15098         *)
15099           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' ;;
15100         esac ;;
15101       esac
15102       link_all_deplibs_F77=yes
15103       ;;
15104
15105     sunos4*)
15106       if test "x$host_vendor" = xsequent; then
15107         # Use $CC to link under sequent, because it throws in some extra .o
15108         # files that make .init and .fini sections work.
15109         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15110       else
15111         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15112       fi
15113       hardcode_libdir_flag_spec_F77='-L$libdir'
15114       hardcode_direct_F77=yes
15115       hardcode_minus_L_F77=yes
15116       hardcode_shlibpath_var_F77=no
15117       ;;
15118
15119     sysv4)
15120       case $host_vendor in
15121         sni)
15122           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123           hardcode_direct_F77=yes # is this really true???
15124         ;;
15125         siemens)
15126           ## LD is ld it makes a PLAMLIB
15127           ## CC just makes a GrossModule.
15128           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15129           reload_cmds_F77='$CC -r -o $output$reload_objs'
15130           hardcode_direct_F77=no
15131         ;;
15132         motorola)
15133           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15135         ;;
15136       esac
15137       runpath_var='LD_RUN_PATH'
15138       hardcode_shlibpath_var_F77=no
15139       ;;
15140
15141     sysv4.3*)
15142       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143       hardcode_shlibpath_var_F77=no
15144       export_dynamic_flag_spec_F77='-Bexport'
15145       ;;
15146
15147     sysv4*MP*)
15148       if test -d /usr/nec; then
15149         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15150         hardcode_shlibpath_var_F77=no
15151         runpath_var=LD_RUN_PATH
15152         hardcode_runpath_var=yes
15153         ld_shlibs_F77=yes
15154       fi
15155       ;;
15156
15157     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15158       no_undefined_flag_F77='${wl}-z,text'
15159       archive_cmds_need_lc_F77=no
15160       hardcode_shlibpath_var_F77=no
15161       runpath_var='LD_RUN_PATH'
15162
15163       if test "$GCC" = yes; then
15164         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15165         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166       else
15167         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169       fi
15170       ;;
15171
15172     sysv5* | sco3.2v5* | sco5v6*)
15173       # Note: We can NOT use -z defs as we might desire, because we do not
15174       # link with -lc, and that would cause any symbols used from libc to
15175       # always be unresolved, which means just about no library would
15176       # ever link correctly.  If we're not using GNU ld we use -z text
15177       # though, which does catch some bad symbols but isn't as heavy-handed
15178       # as -z defs.
15179       no_undefined_flag_F77='${wl}-z,text'
15180       allow_undefined_flag_F77='${wl}-z,nodefs'
15181       archive_cmds_need_lc_F77=no
15182       hardcode_shlibpath_var_F77=no
15183       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15184       hardcode_libdir_separator_F77=':'
15185       link_all_deplibs_F77=yes
15186       export_dynamic_flag_spec_F77='${wl}-Bexport'
15187       runpath_var='LD_RUN_PATH'
15188
15189       if test "$GCC" = yes; then
15190         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15191         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192       else
15193         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195       fi
15196       ;;
15197
15198     uts4*)
15199       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15200       hardcode_libdir_flag_spec_F77='-L$libdir'
15201       hardcode_shlibpath_var_F77=no
15202       ;;
15203
15204     *)
15205       ld_shlibs_F77=no
15206       ;;
15207     esac
15208   fi
15209
15210 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15211 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15212 test "$ld_shlibs_F77" = no && can_build_shared=no
15213
15214 #
15215 # Do we need to explicitly link libc?
15216 #
15217 case "x$archive_cmds_need_lc_F77" in
15218 x|xyes)
15219   # Assume -lc should be added
15220   archive_cmds_need_lc_F77=yes
15221
15222   if test "$enable_shared" = yes && test "$GCC" = yes; then
15223     case $archive_cmds_F77 in
15224     *'~'*)
15225       # FIXME: we may have to deal with multi-command sequences.
15226       ;;
15227     '$CC '*)
15228       # Test whether the compiler implicitly links with -lc since on some
15229       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15230       # to ld, don't add -lc before -lgcc.
15231       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15232 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15233       $rm conftest*
15234       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15235
15236       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15237   (eval $ac_compile) 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } 2>conftest.err; then
15241         soname=conftest
15242         lib=conftest
15243         libobjs=conftest.$ac_objext
15244         deplibs=
15245         wl=$lt_prog_compiler_wl_F77
15246         pic_flag=$lt_prog_compiler_pic_F77
15247         compiler_flags=-v
15248         linker_flags=-v
15249         verstring=
15250         output_objdir=.
15251         libname=conftest
15252         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15253         allow_undefined_flag_F77=
15254         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15255   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }
15259         then
15260           archive_cmds_need_lc_F77=no
15261         else
15262           archive_cmds_need_lc_F77=yes
15263         fi
15264         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15265       else
15266         cat conftest.err 1>&5
15267       fi
15268       $rm conftest*
15269       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15270 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15271       ;;
15272     esac
15273   fi
15274   ;;
15275 esac
15276
15277 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15279 library_names_spec=
15280 libname_spec='lib$name'
15281 soname_spec=
15282 shrext_cmds=".so"
15283 postinstall_cmds=
15284 postuninstall_cmds=
15285 finish_cmds=
15286 finish_eval=
15287 shlibpath_var=
15288 shlibpath_overrides_runpath=unknown
15289 version_type=none
15290 dynamic_linker="$host_os ld.so"
15291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15292 if test "$GCC" = yes; then
15293   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15294   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15295     # if the path contains ";" then we assume it to be the separator
15296     # otherwise default to the standard path separator (i.e. ":") - it is
15297     # assumed that no part of a normal pathname contains ";" but that should
15298     # okay in the real world where ";" in dirpaths is itself problematic.
15299     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15300   else
15301     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15302   fi
15303 else
15304   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15305 fi
15306 need_lib_prefix=unknown
15307 hardcode_into_libs=no
15308
15309 # when you set need_version to no, make sure it does not cause -set_version
15310 # flags to be left without arguments
15311 need_version=unknown
15312
15313 case $host_os in
15314 aix3*)
15315   version_type=linux
15316   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15317   shlibpath_var=LIBPATH
15318
15319   # AIX 3 has no versioning support, so we append a major version to the name.
15320   soname_spec='${libname}${release}${shared_ext}$major'
15321   ;;
15322
15323 aix4* | aix5*)
15324   version_type=linux
15325   need_lib_prefix=no
15326   need_version=no
15327   hardcode_into_libs=yes
15328   if test "$host_cpu" = ia64; then
15329     # AIX 5 supports IA64
15330     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15331     shlibpath_var=LD_LIBRARY_PATH
15332   else
15333     # With GCC up to 2.95.x, collect2 would create an import file
15334     # for dependence libraries.  The import file would start with
15335     # the line `#! .'.  This would cause the generated library to
15336     # depend on `.', always an invalid library.  This was fixed in
15337     # development snapshots of GCC prior to 3.0.
15338     case $host_os in
15339       aix4 | aix4.[01] | aix4.[01].*)
15340       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15341            echo ' yes '
15342            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15343         :
15344       else
15345         can_build_shared=no
15346       fi
15347       ;;
15348     esac
15349     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15350     # soname into executable. Probably we can add versioning support to
15351     # collect2, so additional links can be useful in future.
15352     if test "$aix_use_runtimelinking" = yes; then
15353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15354       # instead of lib<name>.a to let people know that these are not
15355       # typical AIX shared libraries.
15356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357     else
15358       # We preserve .a as extension for shared libraries through AIX4.2
15359       # and later when we are not doing run time linking.
15360       library_names_spec='${libname}${release}.a $libname.a'
15361       soname_spec='${libname}${release}${shared_ext}$major'
15362     fi
15363     shlibpath_var=LIBPATH
15364   fi
15365   ;;
15366
15367 amigaos*)
15368   library_names_spec='$libname.ixlibrary $libname.a'
15369   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15370   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'
15371   ;;
15372
15373 beos*)
15374   library_names_spec='${libname}${shared_ext}'
15375   dynamic_linker="$host_os ld.so"
15376   shlibpath_var=LIBRARY_PATH
15377   ;;
15378
15379 bsdi[45]*)
15380   version_type=linux
15381   need_version=no
15382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383   soname_spec='${libname}${release}${shared_ext}$major'
15384   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15385   shlibpath_var=LD_LIBRARY_PATH
15386   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15387   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15388   # the default ld.so.conf also contains /usr/contrib/lib and
15389   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15390   # libtool to hard-code these into programs
15391   ;;
15392
15393 cygwin* | mingw* | pw32*)
15394   version_type=windows
15395   shrext_cmds=".dll"
15396   need_version=no
15397   need_lib_prefix=no
15398
15399   case $GCC,$host_os in
15400   yes,cygwin* | yes,mingw* | yes,pw32*)
15401     library_names_spec='$libname.dll.a'
15402     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15403     postinstall_cmds='base_file=`basename \${file}`~
15404       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15405       dldir=$destdir/`dirname \$dlpath`~
15406       test -d \$dldir || mkdir -p \$dldir~
15407       $install_prog $dir/$dlname \$dldir/$dlname~
15408       chmod a+x \$dldir/$dlname'
15409     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15410       dlpath=$dir/\$dldll~
15411        $rm \$dlpath'
15412     shlibpath_overrides_runpath=yes
15413
15414     case $host_os in
15415     cygwin*)
15416       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15417       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15418       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15419       ;;
15420     mingw*)
15421       # MinGW DLLs use traditional 'lib' prefix
15422       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15423       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15424       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15425         # It is most probably a Windows format PATH printed by
15426         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15427         # path with ; separators, and with drive letters. We can handle the
15428         # drive letters (cygwin fileutils understands them), so leave them,
15429         # especially as we might pass files found there to a mingw objdump,
15430         # which wouldn't understand a cygwinified path. Ahh.
15431         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15432       else
15433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15434       fi
15435       ;;
15436     pw32*)
15437       # pw32 DLLs use 'pw' prefix rather than 'lib'
15438       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15439       ;;
15440     esac
15441     ;;
15442
15443   *)
15444     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15445     ;;
15446   esac
15447   dynamic_linker='Win32 ld.exe'
15448   # FIXME: first we should search . and the directory the executable is in
15449   shlibpath_var=PATH
15450   ;;
15451
15452 darwin* | rhapsody*)
15453   dynamic_linker="$host_os dyld"
15454   version_type=darwin
15455   need_lib_prefix=no
15456   need_version=no
15457   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15458   soname_spec='${libname}${release}${major}$shared_ext'
15459   shlibpath_overrides_runpath=yes
15460   shlibpath_var=DYLD_LIBRARY_PATH
15461   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15462   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15463   if test "$GCC" = yes; then
15464     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"`
15465   else
15466     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15467   fi
15468   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15469   ;;
15470
15471 dgux*)
15472   version_type=linux
15473   need_lib_prefix=no
15474   need_version=no
15475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15476   soname_spec='${libname}${release}${shared_ext}$major'
15477   shlibpath_var=LD_LIBRARY_PATH
15478   ;;
15479
15480 freebsd1*)
15481   dynamic_linker=no
15482   ;;
15483
15484 kfreebsd*-gnu)
15485   version_type=linux
15486   need_lib_prefix=no
15487   need_version=no
15488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15489   soname_spec='${libname}${release}${shared_ext}$major'
15490   shlibpath_var=LD_LIBRARY_PATH
15491   shlibpath_overrides_runpath=no
15492   hardcode_into_libs=yes
15493   dynamic_linker='GNU ld.so'
15494   ;;
15495
15496 freebsd* | dragonfly*)
15497   # DragonFly does not have aout.  When/if they implement a new
15498   # versioning mechanism, adjust this.
15499   if test -x /usr/bin/objformat; then
15500     objformat=`/usr/bin/objformat`
15501   else
15502     case $host_os in
15503     freebsd[123]*) objformat=aout ;;
15504     *) objformat=elf ;;
15505     esac
15506   fi
15507   version_type=freebsd-$objformat
15508   case $version_type in
15509     freebsd-elf*)
15510       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15511       need_version=no
15512       need_lib_prefix=no
15513       ;;
15514     freebsd-*)
15515       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15516       need_version=yes
15517       ;;
15518   esac
15519   shlibpath_var=LD_LIBRARY_PATH
15520   case $host_os in
15521   freebsd2*)
15522     shlibpath_overrides_runpath=yes
15523     ;;
15524   freebsd3.[01]* | freebsdelf3.[01]*)
15525     shlibpath_overrides_runpath=yes
15526     hardcode_into_libs=yes
15527     ;;
15528   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15529   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15530     shlibpath_overrides_runpath=no
15531     hardcode_into_libs=yes
15532     ;;
15533   freebsd*) # from 4.6 on
15534     shlibpath_overrides_runpath=yes
15535     hardcode_into_libs=yes
15536     ;;
15537   esac
15538   ;;
15539
15540 gnu*)
15541   version_type=linux
15542   need_lib_prefix=no
15543   need_version=no
15544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15545   soname_spec='${libname}${release}${shared_ext}$major'
15546   shlibpath_var=LD_LIBRARY_PATH
15547   hardcode_into_libs=yes
15548   ;;
15549
15550 hpux9* | hpux10* | hpux11*)
15551   # Give a soname corresponding to the major version so that dld.sl refuses to
15552   # link against other versions.
15553   version_type=sunos
15554   need_lib_prefix=no
15555   need_version=no
15556   case $host_cpu in
15557   ia64*)
15558     shrext_cmds='.so'
15559     hardcode_into_libs=yes
15560     dynamic_linker="$host_os dld.so"
15561     shlibpath_var=LD_LIBRARY_PATH
15562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564     soname_spec='${libname}${release}${shared_ext}$major'
15565     if test "X$HPUX_IA64_MODE" = X32; then
15566       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15567     else
15568       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15569     fi
15570     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15571     ;;
15572    hppa*64*)
15573      shrext_cmds='.sl'
15574      hardcode_into_libs=yes
15575      dynamic_linker="$host_os dld.sl"
15576      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15577      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15578      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579      soname_spec='${libname}${release}${shared_ext}$major'
15580      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15581      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15582      ;;
15583    *)
15584     shrext_cmds='.sl'
15585     dynamic_linker="$host_os dld.sl"
15586     shlibpath_var=SHLIB_PATH
15587     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589     soname_spec='${libname}${release}${shared_ext}$major'
15590     ;;
15591   esac
15592   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15593   postinstall_cmds='chmod 555 $lib'
15594   ;;
15595
15596 interix3*)
15597   version_type=linux
15598   need_lib_prefix=no
15599   need_version=no
15600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601   soname_spec='${libname}${release}${shared_ext}$major'
15602   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15603   shlibpath_var=LD_LIBRARY_PATH
15604   shlibpath_overrides_runpath=no
15605   hardcode_into_libs=yes
15606   ;;
15607
15608 irix5* | irix6* | nonstopux*)
15609   case $host_os in
15610     nonstopux*) version_type=nonstopux ;;
15611     *)
15612         if test "$lt_cv_prog_gnu_ld" = yes; then
15613                 version_type=linux
15614         else
15615                 version_type=irix
15616         fi ;;
15617   esac
15618   need_lib_prefix=no
15619   need_version=no
15620   soname_spec='${libname}${release}${shared_ext}$major'
15621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15622   case $host_os in
15623   irix5* | nonstopux*)
15624     libsuff= shlibsuff=
15625     ;;
15626   *)
15627     case $LD in # libtool.m4 will add one of these switches to LD
15628     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15629       libsuff= shlibsuff= libmagic=32-bit;;
15630     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15631       libsuff=32 shlibsuff=N32 libmagic=N32;;
15632     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15633       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15634     *) libsuff= shlibsuff= libmagic=never-match;;
15635     esac
15636     ;;
15637   esac
15638   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15639   shlibpath_overrides_runpath=no
15640   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15641   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15642   hardcode_into_libs=yes
15643   ;;
15644
15645 # No shared lib support for Linux oldld, aout, or coff.
15646 linux*oldld* | linux*aout* | linux*coff*)
15647   dynamic_linker=no
15648   ;;
15649
15650 # This must be Linux ELF.
15651 linux*)
15652   version_type=linux
15653   need_lib_prefix=no
15654   need_version=no
15655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656   soname_spec='${libname}${release}${shared_ext}$major'
15657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15658   shlibpath_var=LD_LIBRARY_PATH
15659   shlibpath_overrides_runpath=no
15660   # This implies no fast_install, which is unacceptable.
15661   # Some rework will be needed to allow for fast_install
15662   # before this can be enabled.
15663   hardcode_into_libs=yes
15664
15665   # Append ld.so.conf contents to the search path
15666   if test -f /etc/ld.so.conf; then
15667     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' ' '`
15668     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15669   fi
15670
15671   # We used to test for /lib/ld.so.1 and disable shared libraries on
15672   # powerpc, because MkLinux only supported shared libraries with the
15673   # GNU dynamic linker.  Since this was broken with cross compilers,
15674   # most powerpc-linux boxes support dynamic linking these days and
15675   # people can always --disable-shared, the test was removed, and we
15676   # assume the GNU/Linux dynamic linker is in use.
15677   dynamic_linker='GNU/Linux ld.so'
15678   ;;
15679
15680 knetbsd*-gnu)
15681   version_type=linux
15682   need_lib_prefix=no
15683   need_version=no
15684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15685   soname_spec='${libname}${release}${shared_ext}$major'
15686   shlibpath_var=LD_LIBRARY_PATH
15687   shlibpath_overrides_runpath=no
15688   hardcode_into_libs=yes
15689   dynamic_linker='GNU ld.so'
15690   ;;
15691
15692 netbsd*)
15693   version_type=sunos
15694   need_lib_prefix=no
15695   need_version=no
15696   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15698     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15699     dynamic_linker='NetBSD (a.out) ld.so'
15700   else
15701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15702     soname_spec='${libname}${release}${shared_ext}$major'
15703     dynamic_linker='NetBSD ld.elf_so'
15704   fi
15705   shlibpath_var=LD_LIBRARY_PATH
15706   shlibpath_overrides_runpath=yes
15707   hardcode_into_libs=yes
15708   ;;
15709
15710 newsos6)
15711   version_type=linux
15712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   shlibpath_overrides_runpath=yes
15715   ;;
15716
15717 nto-qnx*)
15718   version_type=linux
15719   need_lib_prefix=no
15720   need_version=no
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   shlibpath_var=LD_LIBRARY_PATH
15724   shlibpath_overrides_runpath=yes
15725   ;;
15726
15727 openbsd*)
15728   version_type=sunos
15729   sys_lib_dlsearch_path_spec="/usr/lib"
15730   need_lib_prefix=no
15731   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15732   case $host_os in
15733     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15734     *)                         need_version=no  ;;
15735   esac
15736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15737   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15738   shlibpath_var=LD_LIBRARY_PATH
15739   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15740     case $host_os in
15741       openbsd2.[89] | openbsd2.[89].*)
15742         shlibpath_overrides_runpath=no
15743         ;;
15744       *)
15745         shlibpath_overrides_runpath=yes
15746         ;;
15747       esac
15748   else
15749     shlibpath_overrides_runpath=yes
15750   fi
15751   ;;
15752
15753 os2*)
15754   libname_spec='$name'
15755   shrext_cmds=".dll"
15756   need_lib_prefix=no
15757   library_names_spec='$libname${shared_ext} $libname.a'
15758   dynamic_linker='OS/2 ld.exe'
15759   shlibpath_var=LIBPATH
15760   ;;
15761
15762 osf3* | osf4* | osf5*)
15763   version_type=osf
15764   need_lib_prefix=no
15765   need_version=no
15766   soname_spec='${libname}${release}${shared_ext}$major'
15767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768   shlibpath_var=LD_LIBRARY_PATH
15769   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15770   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15771   ;;
15772
15773 solaris*)
15774   version_type=linux
15775   need_lib_prefix=no
15776   need_version=no
15777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778   soname_spec='${libname}${release}${shared_ext}$major'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   shlibpath_overrides_runpath=yes
15781   hardcode_into_libs=yes
15782   # ldd complains unless libraries are executable
15783   postinstall_cmds='chmod +x $lib'
15784   ;;
15785
15786 sunos4*)
15787   version_type=sunos
15788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15789   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15790   shlibpath_var=LD_LIBRARY_PATH
15791   shlibpath_overrides_runpath=yes
15792   if test "$with_gnu_ld" = yes; then
15793     need_lib_prefix=no
15794   fi
15795   need_version=yes
15796   ;;
15797
15798 sysv4 | sysv4.3*)
15799   version_type=linux
15800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15801   soname_spec='${libname}${release}${shared_ext}$major'
15802   shlibpath_var=LD_LIBRARY_PATH
15803   case $host_vendor in
15804     sni)
15805       shlibpath_overrides_runpath=no
15806       need_lib_prefix=no
15807       export_dynamic_flag_spec='${wl}-Blargedynsym'
15808       runpath_var=LD_RUN_PATH
15809       ;;
15810     siemens)
15811       need_lib_prefix=no
15812       ;;
15813     motorola)
15814       need_lib_prefix=no
15815       need_version=no
15816       shlibpath_overrides_runpath=no
15817       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15818       ;;
15819   esac
15820   ;;
15821
15822 sysv4*MP*)
15823   if test -d /usr/nec ;then
15824     version_type=linux
15825     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15826     soname_spec='$libname${shared_ext}.$major'
15827     shlibpath_var=LD_LIBRARY_PATH
15828   fi
15829   ;;
15830
15831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15832   version_type=freebsd-elf
15833   need_lib_prefix=no
15834   need_version=no
15835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15836   soname_spec='${libname}${release}${shared_ext}$major'
15837   shlibpath_var=LD_LIBRARY_PATH
15838   hardcode_into_libs=yes
15839   if test "$with_gnu_ld" = yes; then
15840     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15841     shlibpath_overrides_runpath=no
15842   else
15843     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15844     shlibpath_overrides_runpath=yes
15845     case $host_os in
15846       sco3.2v5*)
15847         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15848         ;;
15849     esac
15850   fi
15851   sys_lib_dlsearch_path_spec='/usr/lib'
15852   ;;
15853
15854 uts4*)
15855   version_type=linux
15856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857   soname_spec='${libname}${release}${shared_ext}$major'
15858   shlibpath_var=LD_LIBRARY_PATH
15859   ;;
15860
15861 *)
15862   dynamic_linker=no
15863   ;;
15864 esac
15865 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15866 echo "${ECHO_T}$dynamic_linker" >&6; }
15867 test "$dynamic_linker" = no && can_build_shared=no
15868
15869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15870 if test "$GCC" = yes; then
15871   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15872 fi
15873
15874 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15876 hardcode_action_F77=
15877 if test -n "$hardcode_libdir_flag_spec_F77" || \
15878    test -n "$runpath_var_F77" || \
15879    test "X$hardcode_automatic_F77" = "Xyes" ; then
15880
15881   # We can hardcode non-existant directories.
15882   if test "$hardcode_direct_F77" != no &&
15883      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15884      # have to relink, otherwise we might link with an installed library
15885      # when we should be linking with a yet-to-be-installed one
15886      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15887      test "$hardcode_minus_L_F77" != no; then
15888     # Linking always hardcodes the temporary library directory.
15889     hardcode_action_F77=relink
15890   else
15891     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15892     hardcode_action_F77=immediate
15893   fi
15894 else
15895   # We cannot hardcode anything, or else we can only hardcode existing
15896   # directories.
15897   hardcode_action_F77=unsupported
15898 fi
15899 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15900 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15901
15902 if test "$hardcode_action_F77" = relink; then
15903   # Fast installation is not supported
15904   enable_fast_install=no
15905 elif test "$shlibpath_overrides_runpath" = yes ||
15906      test "$enable_shared" = no; then
15907   # Fast installation is not necessary
15908   enable_fast_install=needless
15909 fi
15910
15911
15912 # The else clause should only fire when bootstrapping the
15913 # libtool distribution, otherwise you forgot to ship ltmain.sh
15914 # with your package, and you will get complaints that there are
15915 # no rules to generate ltmain.sh.
15916 if test -f "$ltmain"; then
15917   # See if we are running on zsh, and set the options which allow our commands through
15918   # without removal of \ escapes.
15919   if test -n "${ZSH_VERSION+set}" ; then
15920     setopt NO_GLOB_SUBST
15921   fi
15922   # Now quote all the things that may contain metacharacters while being
15923   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15924   # variables and quote the copies for generation of the libtool script.
15925   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15926     SED SHELL STRIP \
15927     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15928     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15929     deplibs_check_method reload_flag reload_cmds need_locks \
15930     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15931     lt_cv_sys_global_symbol_to_c_name_address \
15932     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15933     old_postinstall_cmds old_postuninstall_cmds \
15934     compiler_F77 \
15935     CC_F77 \
15936     LD_F77 \
15937     lt_prog_compiler_wl_F77 \
15938     lt_prog_compiler_pic_F77 \
15939     lt_prog_compiler_static_F77 \
15940     lt_prog_compiler_no_builtin_flag_F77 \
15941     export_dynamic_flag_spec_F77 \
15942     thread_safe_flag_spec_F77 \
15943     whole_archive_flag_spec_F77 \
15944     enable_shared_with_static_runtimes_F77 \
15945     old_archive_cmds_F77 \
15946     old_archive_from_new_cmds_F77 \
15947     predep_objects_F77 \
15948     postdep_objects_F77 \
15949     predeps_F77 \
15950     postdeps_F77 \
15951     compiler_lib_search_path_F77 \
15952     archive_cmds_F77 \
15953     archive_expsym_cmds_F77 \
15954     postinstall_cmds_F77 \
15955     postuninstall_cmds_F77 \
15956     old_archive_from_expsyms_cmds_F77 \
15957     allow_undefined_flag_F77 \
15958     no_undefined_flag_F77 \
15959     export_symbols_cmds_F77 \
15960     hardcode_libdir_flag_spec_F77 \
15961     hardcode_libdir_flag_spec_ld_F77 \
15962     hardcode_libdir_separator_F77 \
15963     hardcode_automatic_F77 \
15964     module_cmds_F77 \
15965     module_expsym_cmds_F77 \
15966     lt_cv_prog_compiler_c_o_F77 \
15967     exclude_expsyms_F77 \
15968     include_expsyms_F77; do
15969
15970     case $var in
15971     old_archive_cmds_F77 | \
15972     old_archive_from_new_cmds_F77 | \
15973     archive_cmds_F77 | \
15974     archive_expsym_cmds_F77 | \
15975     module_cmds_F77 | \
15976     module_expsym_cmds_F77 | \
15977     old_archive_from_expsyms_cmds_F77 | \
15978     export_symbols_cmds_F77 | \
15979     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15980     postinstall_cmds | postuninstall_cmds | \
15981     old_postinstall_cmds | old_postuninstall_cmds | \
15982     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15983       # Double-quote double-evaled strings.
15984       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15985       ;;
15986     *)
15987       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15988       ;;
15989     esac
15990   done
15991
15992   case $lt_echo in
15993   *'\$0 --fallback-echo"')
15994     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15995     ;;
15996   esac
15997
15998 cfgfile="$ofile"
15999
16000   cat <<__EOF__ >> "$cfgfile"
16001 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16002
16003 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16004
16005 # Shell to use when invoking shell scripts.
16006 SHELL=$lt_SHELL
16007
16008 # Whether or not to build shared libraries.
16009 build_libtool_libs=$enable_shared
16010
16011 # Whether or not to build static libraries.
16012 build_old_libs=$enable_static
16013
16014 # Whether or not to add -lc for building shared libraries.
16015 build_libtool_need_lc=$archive_cmds_need_lc_F77
16016
16017 # Whether or not to disallow shared libs when runtime libs are static
16018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16019
16020 # Whether or not to optimize for fast installation.
16021 fast_install=$enable_fast_install
16022
16023 # The host system.
16024 host_alias=$host_alias
16025 host=$host
16026 host_os=$host_os
16027
16028 # The build system.
16029 build_alias=$build_alias
16030 build=$build
16031 build_os=$build_os
16032
16033 # An echo program that does not interpret backslashes.
16034 echo=$lt_echo
16035
16036 # The archiver.
16037 AR=$lt_AR
16038 AR_FLAGS=$lt_AR_FLAGS
16039
16040 # A C compiler.
16041 LTCC=$lt_LTCC
16042
16043 # LTCC compiler flags.
16044 LTCFLAGS=$lt_LTCFLAGS
16045
16046 # A language-specific compiler.
16047 CC=$lt_compiler_F77
16048
16049 # Is the compiler the GNU C compiler?
16050 with_gcc=$GCC_F77
16051
16052 # An ERE matcher.
16053 EGREP=$lt_EGREP
16054
16055 # The linker used to build libraries.
16056 LD=$lt_LD_F77
16057
16058 # Whether we need hard or soft links.
16059 LN_S=$lt_LN_S
16060
16061 # A BSD-compatible nm program.
16062 NM=$lt_NM
16063
16064 # A symbol stripping program
16065 STRIP=$lt_STRIP
16066
16067 # Used to examine libraries when file_magic_cmd begins "file"
16068 MAGIC_CMD=$MAGIC_CMD
16069
16070 # Used on cygwin: DLL creation program.
16071 DLLTOOL="$DLLTOOL"
16072
16073 # Used on cygwin: object dumper.
16074 OBJDUMP="$OBJDUMP"
16075
16076 # Used on cygwin: assembler.
16077 AS="$AS"
16078
16079 # The name of the directory that contains temporary libtool files.
16080 objdir=$objdir
16081
16082 # How to create reloadable object files.
16083 reload_flag=$lt_reload_flag
16084 reload_cmds=$lt_reload_cmds
16085
16086 # How to pass a linker flag through the compiler.
16087 wl=$lt_lt_prog_compiler_wl_F77
16088
16089 # Object file suffix (normally "o").
16090 objext="$ac_objext"
16091
16092 # Old archive suffix (normally "a").
16093 libext="$libext"
16094
16095 # Shared library suffix (normally ".so").
16096 shrext_cmds='$shrext_cmds'
16097
16098 # Executable file suffix (normally "").
16099 exeext="$exeext"
16100
16101 # Additional compiler flags for building library objects.
16102 pic_flag=$lt_lt_prog_compiler_pic_F77
16103 pic_mode=$pic_mode
16104
16105 # What is the maximum length of a command?
16106 max_cmd_len=$lt_cv_sys_max_cmd_len
16107
16108 # Does compiler simultaneously support -c and -o options?
16109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16110
16111 # Must we lock files when doing compilation?
16112 need_locks=$lt_need_locks
16113
16114 # Do we need the lib prefix for modules?
16115 need_lib_prefix=$need_lib_prefix
16116
16117 # Do we need a version for libraries?
16118 need_version=$need_version
16119
16120 # Whether dlopen is supported.
16121 dlopen_support=$enable_dlopen
16122
16123 # Whether dlopen of programs is supported.
16124 dlopen_self=$enable_dlopen_self
16125
16126 # Whether dlopen of statically linked programs is supported.
16127 dlopen_self_static=$enable_dlopen_self_static
16128
16129 # Compiler flag to prevent dynamic linking.
16130 link_static_flag=$lt_lt_prog_compiler_static_F77
16131
16132 # Compiler flag to turn off builtin functions.
16133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16134
16135 # Compiler flag to allow reflexive dlopens.
16136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16137
16138 # Compiler flag to generate shared objects directly from archives.
16139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16140
16141 # Compiler flag to generate thread-safe objects.
16142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16143
16144 # Library versioning type.
16145 version_type=$version_type
16146
16147 # Format of library name prefix.
16148 libname_spec=$lt_libname_spec
16149
16150 # List of archive names.  First name is the real one, the rest are links.
16151 # The last name is the one that the linker finds with -lNAME.
16152 library_names_spec=$lt_library_names_spec
16153
16154 # The coded name of the library, if different from the real name.
16155 soname_spec=$lt_soname_spec
16156
16157 # Commands used to build and install an old-style archive.
16158 RANLIB=$lt_RANLIB
16159 old_archive_cmds=$lt_old_archive_cmds_F77
16160 old_postinstall_cmds=$lt_old_postinstall_cmds
16161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16162
16163 # Create an old-style archive from a shared archive.
16164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16165
16166 # Create a temporary old-style archive to link instead of a shared archive.
16167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16168
16169 # Commands used to build and install a shared archive.
16170 archive_cmds=$lt_archive_cmds_F77
16171 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16172 postinstall_cmds=$lt_postinstall_cmds
16173 postuninstall_cmds=$lt_postuninstall_cmds
16174
16175 # Commands used to build a loadable module (assumed same as above if empty)
16176 module_cmds=$lt_module_cmds_F77
16177 module_expsym_cmds=$lt_module_expsym_cmds_F77
16178
16179 # Commands to strip libraries.
16180 old_striplib=$lt_old_striplib
16181 striplib=$lt_striplib
16182
16183 # Dependencies to place before the objects being linked to create a
16184 # shared library.
16185 predep_objects=$lt_predep_objects_F77
16186
16187 # Dependencies to place after the objects being linked to create a
16188 # shared library.
16189 postdep_objects=$lt_postdep_objects_F77
16190
16191 # Dependencies to place before the objects being linked to create a
16192 # shared library.
16193 predeps=$lt_predeps_F77
16194
16195 # Dependencies to place after the objects being linked to create a
16196 # shared library.
16197 postdeps=$lt_postdeps_F77
16198
16199 # The library search path used internally by the compiler when linking
16200 # a shared library.
16201 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16202
16203 # Method to check whether dependent libraries are shared objects.
16204 deplibs_check_method=$lt_deplibs_check_method
16205
16206 # Command to use when deplibs_check_method == file_magic.
16207 file_magic_cmd=$lt_file_magic_cmd
16208
16209 # Flag that allows shared libraries with undefined symbols to be built.
16210 allow_undefined_flag=$lt_allow_undefined_flag_F77
16211
16212 # Flag that forces no undefined symbols.
16213 no_undefined_flag=$lt_no_undefined_flag_F77
16214
16215 # Commands used to finish a libtool library installation in a directory.
16216 finish_cmds=$lt_finish_cmds
16217
16218 # Same as above, but a single script fragment to be evaled but not shown.
16219 finish_eval=$lt_finish_eval
16220
16221 # Take the output of nm and produce a listing of raw symbols and C names.
16222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16223
16224 # Transform the output of nm in a proper C declaration
16225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16226
16227 # Transform the output of nm in a C name address pair
16228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16229
16230 # This is the shared library runtime path variable.
16231 runpath_var=$runpath_var
16232
16233 # This is the shared library path variable.
16234 shlibpath_var=$shlibpath_var
16235
16236 # Is shlibpath searched before the hard-coded library search path?
16237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16238
16239 # How to hardcode a shared library path into an executable.
16240 hardcode_action=$hardcode_action_F77
16241
16242 # Whether we should hardcode library paths into libraries.
16243 hardcode_into_libs=$hardcode_into_libs
16244
16245 # Flag to hardcode \$libdir into a binary during linking.
16246 # This must work even if \$libdir does not exist.
16247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16248
16249 # If ld is used when linking, flag to hardcode \$libdir into
16250 # a binary during linking. This must work even if \$libdir does
16251 # not exist.
16252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16253
16254 # Whether we need a single -rpath flag with a separated argument.
16255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16256
16257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16258 # resulting binary.
16259 hardcode_direct=$hardcode_direct_F77
16260
16261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16262 # resulting binary.
16263 hardcode_minus_L=$hardcode_minus_L_F77
16264
16265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16266 # the resulting binary.
16267 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16268
16269 # Set to yes if building a shared library automatically hardcodes DIR into the library
16270 # and all subsequent libraries and executables linked against it.
16271 hardcode_automatic=$hardcode_automatic_F77
16272
16273 # Variables whose values should be saved in libtool wrapper scripts and
16274 # restored at relink time.
16275 variables_saved_for_relink="$variables_saved_for_relink"
16276
16277 # Whether libtool must link a program against all its dependency libraries.
16278 link_all_deplibs=$link_all_deplibs_F77
16279
16280 # Compile-time system search path for libraries
16281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16282
16283 # Run-time system search path for libraries
16284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16285
16286 # Fix the shell variable \$srcfile for the compiler.
16287 fix_srcfile_path="$fix_srcfile_path_F77"
16288
16289 # Set to yes if exported symbols are required.
16290 always_export_symbols=$always_export_symbols_F77
16291
16292 # The commands to list exported symbols.
16293 export_symbols_cmds=$lt_export_symbols_cmds_F77
16294
16295 # The commands to extract the exported symbol list from a shared archive.
16296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16297
16298 # Symbols that should not be listed in the preloaded symbols.
16299 exclude_expsyms=$lt_exclude_expsyms_F77
16300
16301 # Symbols that must always be exported.
16302 include_expsyms=$lt_include_expsyms_F77
16303
16304 # ### END LIBTOOL TAG CONFIG: $tagname
16305
16306 __EOF__
16307
16308
16309 else
16310   # If there is no Makefile yet, we rely on a make rule to execute
16311   # `config.status --recheck' to rerun these tests and create the
16312   # libtool script then.
16313   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16314   if test -f "$ltmain_in"; then
16315     test -f Makefile && make "$ltmain"
16316   fi
16317 fi
16318
16319
16320 ac_ext=c
16321 ac_cpp='$CPP $CPPFLAGS'
16322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16325
16326 CC="$lt_save_CC"
16327
16328         else
16329           tagname=""
16330         fi
16331         ;;
16332
16333       GCJ)
16334         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16335
16336
16337 # Source file extension for Java test sources.
16338 ac_ext=java
16339
16340 # Object file extension for compiled Java test sources.
16341 objext=o
16342 objext_GCJ=$objext
16343
16344 # Code to be used in simple compile tests
16345 lt_simple_compile_test_code="class foo {}\n"
16346
16347 # Code to be used in simple link tests
16348 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16349
16350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16351
16352 # If no C compiler was specified, use CC.
16353 LTCC=${LTCC-"$CC"}
16354
16355 # If no C compiler flags were specified, use CFLAGS.
16356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16357
16358 # Allow CC to be a program name with arguments.
16359 compiler=$CC
16360
16361
16362 # save warnings/boilerplate of simple test code
16363 ac_outfile=conftest.$ac_objext
16364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16366 _lt_compiler_boilerplate=`cat conftest.err`
16367 $rm conftest*
16368
16369 ac_outfile=conftest.$ac_objext
16370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16372 _lt_linker_boilerplate=`cat conftest.err`
16373 $rm conftest*
16374
16375
16376 # Allow CC to be a program name with arguments.
16377 lt_save_CC="$CC"
16378 CC=${GCJ-"gcj"}
16379 compiler=$CC
16380 compiler_GCJ=$CC
16381 for cc_temp in $compiler""; do
16382   case $cc_temp in
16383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16385     \-*) ;;
16386     *) break;;
16387   esac
16388 done
16389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16390
16391
16392 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16393 archive_cmds_need_lc_GCJ=no
16394
16395 old_archive_cmds_GCJ=$old_archive_cmds
16396
16397 ## CAVEAT EMPTOR:
16398 ## There is no encapsulation within the following macros, do not change
16399 ## the running order or otherwise move them around unless you know exactly
16400 ## what you are doing...
16401
16402 lt_prog_compiler_no_builtin_flag_GCJ=
16403
16404 if test "$GCC" = yes; then
16405   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16406
16407
16408 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16409 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16410 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16411   echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413   lt_cv_prog_compiler_rtti_exceptions=no
16414   ac_outfile=conftest.$ac_objext
16415    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16416    lt_compiler_flag="-fno-rtti -fno-exceptions"
16417    # Insert the option either (1) after the last *FLAGS variable, or
16418    # (2) before a word containing "conftest.", or (3) at the end.
16419    # Note that $ac_compile itself does not contain backslashes and begins
16420    # with a dollar sign (not a hyphen), so the echo should work correctly.
16421    # The option is referenced via a variable to avoid confusing sed.
16422    lt_compile=`echo "$ac_compile" | $SED \
16423    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16425    -e 's:$: $lt_compiler_flag:'`
16426    (eval echo "\"\$as_me:16426: $lt_compile\"" >&5)
16427    (eval "$lt_compile" 2>conftest.err)
16428    ac_status=$?
16429    cat conftest.err >&5
16430    echo "$as_me:16430: \$? = $ac_status" >&5
16431    if (exit $ac_status) && test -s "$ac_outfile"; then
16432      # The compiler can only warn and ignore the option if not recognized
16433      # So say no if there are warnings other than the usual output.
16434      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16435      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16436      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16437        lt_cv_prog_compiler_rtti_exceptions=yes
16438      fi
16439    fi
16440    $rm conftest*
16441
16442 fi
16443 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16444 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16445
16446 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16447     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16448 else
16449     :
16450 fi
16451
16452 fi
16453
16454 lt_prog_compiler_wl_GCJ=
16455 lt_prog_compiler_pic_GCJ=
16456 lt_prog_compiler_static_GCJ=
16457
16458 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16459 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16460
16461   if test "$GCC" = yes; then
16462     lt_prog_compiler_wl_GCJ='-Wl,'
16463     lt_prog_compiler_static_GCJ='-static'
16464
16465     case $host_os in
16466       aix*)
16467       # All AIX code is PIC.
16468       if test "$host_cpu" = ia64; then
16469         # AIX 5 now supports IA64 processor
16470         lt_prog_compiler_static_GCJ='-Bstatic'
16471       fi
16472       ;;
16473
16474     amigaos*)
16475       # FIXME: we need at least 68020 code to build shared libraries, but
16476       # adding the `-m68020' flag to GCC prevents building anything better,
16477       # like `-m68040'.
16478       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16479       ;;
16480
16481     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16482       # PIC is the default for these OSes.
16483       ;;
16484
16485     mingw* | pw32* | os2*)
16486       # This hack is so that the source file can tell whether it is being
16487       # built for inclusion in a dll (and should export symbols for example).
16488       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16489       ;;
16490
16491     darwin* | rhapsody*)
16492       # PIC is the default on this platform
16493       # Common symbols not allowed in MH_DYLIB files
16494       lt_prog_compiler_pic_GCJ='-fno-common'
16495       ;;
16496
16497     interix3*)
16498       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16499       # Instead, we relocate shared libraries at runtime.
16500       ;;
16501
16502     msdosdjgpp*)
16503       # Just because we use GCC doesn't mean we suddenly get shared libraries
16504       # on systems that don't support them.
16505       lt_prog_compiler_can_build_shared_GCJ=no
16506       enable_shared=no
16507       ;;
16508
16509     sysv4*MP*)
16510       if test -d /usr/nec; then
16511         lt_prog_compiler_pic_GCJ=-Kconform_pic
16512       fi
16513       ;;
16514
16515     hpux*)
16516       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16517       # not for PA HP-UX.
16518       case $host_cpu in
16519       hppa*64*|ia64*)
16520         # +Z the default
16521         ;;
16522       *)
16523         lt_prog_compiler_pic_GCJ='-fPIC'
16524         ;;
16525       esac
16526       ;;
16527
16528     *)
16529       lt_prog_compiler_pic_GCJ='-fPIC'
16530       ;;
16531     esac
16532   else
16533     # PORTME Check for flag to pass linker flags through the system compiler.
16534     case $host_os in
16535     aix*)
16536       lt_prog_compiler_wl_GCJ='-Wl,'
16537       if test "$host_cpu" = ia64; then
16538         # AIX 5 now supports IA64 processor
16539         lt_prog_compiler_static_GCJ='-Bstatic'
16540       else
16541         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16542       fi
16543       ;;
16544       darwin*)
16545         # PIC is the default on this platform
16546         # Common symbols not allowed in MH_DYLIB files
16547        case $cc_basename in
16548          xlc*)
16549          lt_prog_compiler_pic_GCJ='-qnocommon'
16550          lt_prog_compiler_wl_GCJ='-Wl,'
16551          ;;
16552        esac
16553        ;;
16554
16555     mingw* | pw32* | os2*)
16556       # This hack is so that the source file can tell whether it is being
16557       # built for inclusion in a dll (and should export symbols for example).
16558       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16559       ;;
16560
16561     hpux9* | hpux10* | hpux11*)
16562       lt_prog_compiler_wl_GCJ='-Wl,'
16563       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16564       # not for PA HP-UX.
16565       case $host_cpu in
16566       hppa*64*|ia64*)
16567         # +Z the default
16568         ;;
16569       *)
16570         lt_prog_compiler_pic_GCJ='+Z'
16571         ;;
16572       esac
16573       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16574       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16575       ;;
16576
16577     irix5* | irix6* | nonstopux*)
16578       lt_prog_compiler_wl_GCJ='-Wl,'
16579       # PIC (with -KPIC) is the default.
16580       lt_prog_compiler_static_GCJ='-non_shared'
16581       ;;
16582
16583     newsos6)
16584       lt_prog_compiler_pic_GCJ='-KPIC'
16585       lt_prog_compiler_static_GCJ='-Bstatic'
16586       ;;
16587
16588     linux*)
16589       case $cc_basename in
16590       icc* | ecc*)
16591         lt_prog_compiler_wl_GCJ='-Wl,'
16592         lt_prog_compiler_pic_GCJ='-KPIC'
16593         lt_prog_compiler_static_GCJ='-static'
16594         ;;
16595       pgcc* | pgf77* | pgf90* | pgf95*)
16596         # Portland Group compilers (*not* the Pentium gcc compiler,
16597         # which looks to be a dead project)
16598         lt_prog_compiler_wl_GCJ='-Wl,'
16599         lt_prog_compiler_pic_GCJ='-fpic'
16600         lt_prog_compiler_static_GCJ='-Bstatic'
16601         ;;
16602       ccc*)
16603         lt_prog_compiler_wl_GCJ='-Wl,'
16604         # All Alpha code is PIC.
16605         lt_prog_compiler_static_GCJ='-non_shared'
16606         ;;
16607       esac
16608       ;;
16609
16610     osf3* | osf4* | osf5*)
16611       lt_prog_compiler_wl_GCJ='-Wl,'
16612       # All OSF/1 code is PIC.
16613       lt_prog_compiler_static_GCJ='-non_shared'
16614       ;;
16615
16616     solaris*)
16617       lt_prog_compiler_pic_GCJ='-KPIC'
16618       lt_prog_compiler_static_GCJ='-Bstatic'
16619       case $cc_basename in
16620       f77* | f90* | f95*)
16621         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16622       *)
16623         lt_prog_compiler_wl_GCJ='-Wl,';;
16624       esac
16625       ;;
16626
16627     sunos4*)
16628       lt_prog_compiler_wl_GCJ='-Qoption ld '
16629       lt_prog_compiler_pic_GCJ='-PIC'
16630       lt_prog_compiler_static_GCJ='-Bstatic'
16631       ;;
16632
16633     sysv4 | sysv4.2uw2* | sysv4.3*)
16634       lt_prog_compiler_wl_GCJ='-Wl,'
16635       lt_prog_compiler_pic_GCJ='-KPIC'
16636       lt_prog_compiler_static_GCJ='-Bstatic'
16637       ;;
16638
16639     sysv4*MP*)
16640       if test -d /usr/nec ;then
16641         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16642         lt_prog_compiler_static_GCJ='-Bstatic'
16643       fi
16644       ;;
16645
16646     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16647       lt_prog_compiler_wl_GCJ='-Wl,'
16648       lt_prog_compiler_pic_GCJ='-KPIC'
16649       lt_prog_compiler_static_GCJ='-Bstatic'
16650       ;;
16651
16652     unicos*)
16653       lt_prog_compiler_wl_GCJ='-Wl,'
16654       lt_prog_compiler_can_build_shared_GCJ=no
16655       ;;
16656
16657     uts4*)
16658       lt_prog_compiler_pic_GCJ='-pic'
16659       lt_prog_compiler_static_GCJ='-Bstatic'
16660       ;;
16661
16662     *)
16663       lt_prog_compiler_can_build_shared_GCJ=no
16664       ;;
16665     esac
16666   fi
16667
16668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16669 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16670
16671 #
16672 # Check to make sure the PIC flag actually works.
16673 #
16674 if test -n "$lt_prog_compiler_pic_GCJ"; then
16675
16676 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16677 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16678 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16679   echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681   lt_prog_compiler_pic_works_GCJ=no
16682   ac_outfile=conftest.$ac_objext
16683    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16684    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16685    # Insert the option either (1) after the last *FLAGS variable, or
16686    # (2) before a word containing "conftest.", or (3) at the end.
16687    # Note that $ac_compile itself does not contain backslashes and begins
16688    # with a dollar sign (not a hyphen), so the echo should work correctly.
16689    # The option is referenced via a variable to avoid confusing sed.
16690    lt_compile=`echo "$ac_compile" | $SED \
16691    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16693    -e 's:$: $lt_compiler_flag:'`
16694    (eval echo "\"\$as_me:16694: $lt_compile\"" >&5)
16695    (eval "$lt_compile" 2>conftest.err)
16696    ac_status=$?
16697    cat conftest.err >&5
16698    echo "$as_me:16698: \$? = $ac_status" >&5
16699    if (exit $ac_status) && test -s "$ac_outfile"; then
16700      # The compiler can only warn and ignore the option if not recognized
16701      # So say no if there are warnings other than the usual output.
16702      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16703      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16704      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16705        lt_prog_compiler_pic_works_GCJ=yes
16706      fi
16707    fi
16708    $rm conftest*
16709
16710 fi
16711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16712 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16713
16714 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16715     case $lt_prog_compiler_pic_GCJ in
16716      "" | " "*) ;;
16717      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16718      esac
16719 else
16720     lt_prog_compiler_pic_GCJ=
16721      lt_prog_compiler_can_build_shared_GCJ=no
16722 fi
16723
16724 fi
16725 case $host_os in
16726   # For platforms which do not support PIC, -DPIC is meaningless:
16727   *djgpp*)
16728     lt_prog_compiler_pic_GCJ=
16729     ;;
16730   *)
16731     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16732     ;;
16733 esac
16734
16735 #
16736 # Check to make sure the static flag actually works.
16737 #
16738 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16739 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16740 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16741 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16742   echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16744   lt_prog_compiler_static_works_GCJ=no
16745    save_LDFLAGS="$LDFLAGS"
16746    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16747    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16748    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16749      # The linker can only warn and ignore the option if not recognized
16750      # So say no if there are warnings
16751      if test -s conftest.err; then
16752        # Append any errors to the config.log.
16753        cat conftest.err 1>&5
16754        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16755        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16756        if diff conftest.exp conftest.er2 >/dev/null; then
16757          lt_prog_compiler_static_works_GCJ=yes
16758        fi
16759      else
16760        lt_prog_compiler_static_works_GCJ=yes
16761      fi
16762    fi
16763    $rm conftest*
16764    LDFLAGS="$save_LDFLAGS"
16765
16766 fi
16767 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16768 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16769
16770 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16771     :
16772 else
16773     lt_prog_compiler_static_GCJ=
16774 fi
16775
16776
16777 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16779 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   lt_cv_prog_compiler_c_o_GCJ=no
16783    $rm -r conftest 2>/dev/null
16784    mkdir conftest
16785    cd conftest
16786    mkdir out
16787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16788
16789    lt_compiler_flag="-o out/conftest2.$ac_objext"
16790    # Insert the option either (1) after the last *FLAGS variable, or
16791    # (2) before a word containing "conftest.", or (3) at the end.
16792    # Note that $ac_compile itself does not contain backslashes and begins
16793    # with a dollar sign (not a hyphen), so the echo should work correctly.
16794    lt_compile=`echo "$ac_compile" | $SED \
16795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16797    -e 's:$: $lt_compiler_flag:'`
16798    (eval echo "\"\$as_me:16798: $lt_compile\"" >&5)
16799    (eval "$lt_compile" 2>out/conftest.err)
16800    ac_status=$?
16801    cat out/conftest.err >&5
16802    echo "$as_me:16802: \$? = $ac_status" >&5
16803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16804    then
16805      # The compiler can only warn and ignore the option if not recognized
16806      # So say no if there are warnings
16807      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16808      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16809      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16810        lt_cv_prog_compiler_c_o_GCJ=yes
16811      fi
16812    fi
16813    chmod u+w . 2>&5
16814    $rm conftest*
16815    # SGI C++ compiler will create directory out/ii_files/ for
16816    # template instantiation
16817    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16818    $rm out/* && rmdir out
16819    cd ..
16820    rmdir conftest
16821    $rm conftest*
16822
16823 fi
16824 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16826
16827
16828 hard_links="nottested"
16829 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16830   # do not overwrite the value of need_locks provided by the user
16831   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16833   hard_links=yes
16834   $rm conftest*
16835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16836   touch conftest.a
16837   ln conftest.a conftest.b 2>&5 || hard_links=no
16838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16839   { echo "$as_me:$LINENO: result: $hard_links" >&5
16840 echo "${ECHO_T}$hard_links" >&6; }
16841   if test "$hard_links" = no; then
16842     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16844     need_locks=warn
16845   fi
16846 else
16847   need_locks=no
16848 fi
16849
16850 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16852
16853   runpath_var=
16854   allow_undefined_flag_GCJ=
16855   enable_shared_with_static_runtimes_GCJ=no
16856   archive_cmds_GCJ=
16857   archive_expsym_cmds_GCJ=
16858   old_archive_From_new_cmds_GCJ=
16859   old_archive_from_expsyms_cmds_GCJ=
16860   export_dynamic_flag_spec_GCJ=
16861   whole_archive_flag_spec_GCJ=
16862   thread_safe_flag_spec_GCJ=
16863   hardcode_libdir_flag_spec_GCJ=
16864   hardcode_libdir_flag_spec_ld_GCJ=
16865   hardcode_libdir_separator_GCJ=
16866   hardcode_direct_GCJ=no
16867   hardcode_minus_L_GCJ=no
16868   hardcode_shlibpath_var_GCJ=unsupported
16869   link_all_deplibs_GCJ=unknown
16870   hardcode_automatic_GCJ=no
16871   module_cmds_GCJ=
16872   module_expsym_cmds_GCJ=
16873   always_export_symbols_GCJ=no
16874   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16875   # include_expsyms should be a list of space-separated symbols to be *always*
16876   # included in the symbol list
16877   include_expsyms_GCJ=
16878   # exclude_expsyms can be an extended regexp of symbols to exclude
16879   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16880   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16881   # as well as any symbol that contains `d'.
16882   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16883   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16884   # platforms (ab)use it in PIC code, but their linkers get confused if
16885   # the symbol is explicitly referenced.  Since portable code cannot
16886   # rely on this symbol name, it's probably fine to never include it in
16887   # preloaded symbol tables.
16888   extract_expsyms_cmds=
16889   # Just being paranoid about ensuring that cc_basename is set.
16890   for cc_temp in $compiler""; do
16891   case $cc_temp in
16892     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16893     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16894     \-*) ;;
16895     *) break;;
16896   esac
16897 done
16898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16899
16900   case $host_os in
16901   cygwin* | mingw* | pw32*)
16902     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16903     # When not using gcc, we currently assume that we are using
16904     # Microsoft Visual C++.
16905     if test "$GCC" != yes; then
16906       with_gnu_ld=no
16907     fi
16908     ;;
16909   interix*)
16910     # we just hope/assume this is gcc and not c89 (= MSVC++)
16911     with_gnu_ld=yes
16912     ;;
16913   openbsd*)
16914     with_gnu_ld=no
16915     ;;
16916   esac
16917
16918   ld_shlibs_GCJ=yes
16919   if test "$with_gnu_ld" = yes; then
16920     # If archive_cmds runs LD, not CC, wlarc should be empty
16921     wlarc='${wl}'
16922
16923     # Set some defaults for GNU ld with shared library support. These
16924     # are reset later if shared libraries are not supported. Putting them
16925     # here allows them to be overridden if necessary.
16926     runpath_var=LD_RUN_PATH
16927     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16928     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16929     # ancient GNU ld didn't support --whole-archive et. al.
16930     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16931         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16932       else
16933         whole_archive_flag_spec_GCJ=
16934     fi
16935     supports_anon_versioning=no
16936     case `$LD -v 2>/dev/null` in
16937       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16938       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16939       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16940       *\ 2.11.*) ;; # other 2.11 versions
16941       *) supports_anon_versioning=yes ;;
16942     esac
16943
16944     # See if GNU ld supports shared libraries.
16945     case $host_os in
16946     aix3* | aix4* | aix5*)
16947       # On AIX/PPC, the GNU linker is very broken
16948       if test "$host_cpu" != ia64; then
16949         ld_shlibs_GCJ=no
16950         cat <<EOF 1>&2
16951
16952 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16953 *** to be unable to reliably create shared libraries on AIX.
16954 *** Therefore, libtool is disabling shared libraries support.  If you
16955 *** really care for shared libraries, you may want to modify your PATH
16956 *** so that a non-GNU linker is found, and then restart.
16957
16958 EOF
16959       fi
16960       ;;
16961
16962     amigaos*)
16963       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)'
16964       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16965       hardcode_minus_L_GCJ=yes
16966
16967       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16968       # that the semantics of dynamic libraries on AmigaOS, at least up
16969       # to version 4, is to share data among multiple programs linked
16970       # with the same dynamic library.  Since this doesn't match the
16971       # behavior of shared libraries on other platforms, we can't use
16972       # them.
16973       ld_shlibs_GCJ=no
16974       ;;
16975
16976     beos*)
16977       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16978         allow_undefined_flag_GCJ=unsupported
16979         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16980         # support --undefined.  This deserves some investigation.  FIXME
16981         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16982       else
16983         ld_shlibs_GCJ=no
16984       fi
16985       ;;
16986
16987     cygwin* | mingw* | pw32*)
16988       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16989       # as there is no search path for DLLs.
16990       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16991       allow_undefined_flag_GCJ=unsupported
16992       always_export_symbols_GCJ=no
16993       enable_shared_with_static_runtimes_GCJ=yes
16994       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16995
16996       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16997         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16998         # If the export-symbols file already is a .def file (1st line
16999         # is EXPORTS), use it as is; otherwise, prepend...
17000         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17001           cp $export_symbols $output_objdir/$soname.def;
17002         else
17003           echo EXPORTS > $output_objdir/$soname.def;
17004           cat $export_symbols >> $output_objdir/$soname.def;
17005         fi~
17006         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17007       else
17008         ld_shlibs_GCJ=no
17009       fi
17010       ;;
17011
17012     interix3*)
17013       hardcode_direct_GCJ=no
17014       hardcode_shlibpath_var_GCJ=no
17015       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17016       export_dynamic_flag_spec_GCJ='${wl}-E'
17017       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17018       # Instead, shared libraries are loaded at an image base (0x10000000 by
17019       # default) and relocated if they conflict, which is a slow very memory
17020       # consuming and fragmenting process.  To avoid this, we pick a random,
17021       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17022       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17023       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'
17024       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'
17025       ;;
17026
17027     linux*)
17028       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17029         tmp_addflag=
17030         case $cc_basename,$host_cpu in
17031         pgcc*)                          # Portland Group C compiler
17032           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'
17033           tmp_addflag=' $pic_flag'
17034           ;;
17035         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17036           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'
17037           tmp_addflag=' $pic_flag -Mnomain' ;;
17038         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17039           tmp_addflag=' -i_dynamic' ;;
17040         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17041           tmp_addflag=' -i_dynamic -nofor_main' ;;
17042         ifc* | ifort*)                  # Intel Fortran compiler
17043           tmp_addflag=' -nofor_main' ;;
17044         esac
17045         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17046
17047         if test $supports_anon_versioning = yes; then
17048           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17049   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17050   $echo "local: *; };" >> $output_objdir/$libname.ver~
17051           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17052         fi
17053       else
17054         ld_shlibs_GCJ=no
17055       fi
17056       ;;
17057
17058     netbsd*)
17059       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17060         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17061         wlarc=
17062       else
17063         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17064         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17065       fi
17066       ;;
17067
17068     solaris*)
17069       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17070         ld_shlibs_GCJ=no
17071         cat <<EOF 1>&2
17072
17073 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17074 *** create shared libraries on Solaris systems.  Therefore, libtool
17075 *** is disabling shared libraries support.  We urge you to upgrade GNU
17076 *** binutils to release 2.9.1 or newer.  Another option is to modify
17077 *** your PATH or compiler configuration so that the native linker is
17078 *** used, and then restart.
17079
17080 EOF
17081       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17082         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17083         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17084       else
17085         ld_shlibs_GCJ=no
17086       fi
17087       ;;
17088
17089     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17090       case `$LD -v 2>&1` in
17091         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17092         ld_shlibs_GCJ=no
17093         cat <<_LT_EOF 1>&2
17094
17095 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17096 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17097 *** is disabling shared libraries support.  We urge you to upgrade GNU
17098 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17099 *** your PATH or compiler configuration so that the native linker is
17100 *** used, and then restart.
17101
17102 _LT_EOF
17103         ;;
17104         *)
17105           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17106             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17107             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17108             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17109           else
17110             ld_shlibs_GCJ=no
17111           fi
17112         ;;
17113       esac
17114       ;;
17115
17116     sunos4*)
17117       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17118       wlarc=
17119       hardcode_direct_GCJ=yes
17120       hardcode_shlibpath_var_GCJ=no
17121       ;;
17122
17123     *)
17124       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17125         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17126         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17127       else
17128         ld_shlibs_GCJ=no
17129       fi
17130       ;;
17131     esac
17132
17133     if test "$ld_shlibs_GCJ" = no; then
17134       runpath_var=
17135       hardcode_libdir_flag_spec_GCJ=
17136       export_dynamic_flag_spec_GCJ=
17137       whole_archive_flag_spec_GCJ=
17138     fi
17139   else
17140     # PORTME fill in a description of your system's linker (not GNU ld)
17141     case $host_os in
17142     aix3*)
17143       allow_undefined_flag_GCJ=unsupported
17144       always_export_symbols_GCJ=yes
17145       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'
17146       # Note: this linker hardcodes the directories in LIBPATH if there
17147       # are no directories specified by -L.
17148       hardcode_minus_L_GCJ=yes
17149       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17150         # Neither direct hardcoding nor static linking is supported with a
17151         # broken collect2.
17152         hardcode_direct_GCJ=unsupported
17153       fi
17154       ;;
17155
17156     aix4* | aix5*)
17157       if test "$host_cpu" = ia64; then
17158         # On IA64, the linker does run time linking by default, so we don't
17159         # have to do anything special.
17160         aix_use_runtimelinking=no
17161         exp_sym_flag='-Bexport'
17162         no_entry_flag=""
17163       else
17164         # If we're using GNU nm, then we don't want the "-C" option.
17165         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17166         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17167           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'
17168         else
17169           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'
17170         fi
17171         aix_use_runtimelinking=no
17172
17173         # Test if we are trying to use run time linking or normal
17174         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17175         # need to do runtime linking.
17176         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17177           for ld_flag in $LDFLAGS; do
17178           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17179             aix_use_runtimelinking=yes
17180             break
17181           fi
17182           done
17183           ;;
17184         esac
17185
17186         exp_sym_flag='-bexport'
17187         no_entry_flag='-bnoentry'
17188       fi
17189
17190       # When large executables or shared objects are built, AIX ld can
17191       # have problems creating the table of contents.  If linking a library
17192       # or program results in "error TOC overflow" add -mminimal-toc to
17193       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17194       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17195
17196       archive_cmds_GCJ=''
17197       hardcode_direct_GCJ=yes
17198       hardcode_libdir_separator_GCJ=':'
17199       link_all_deplibs_GCJ=yes
17200
17201       if test "$GCC" = yes; then
17202         case $host_os in aix4.[012]|aix4.[012].*)
17203         # We only want to do this on AIX 4.2 and lower, the check
17204         # below for broken collect2 doesn't work under 4.3+
17205           collect2name=`${CC} -print-prog-name=collect2`
17206           if test -f "$collect2name" && \
17207            strings "$collect2name" | grep resolve_lib_name >/dev/null
17208           then
17209           # We have reworked collect2
17210           hardcode_direct_GCJ=yes
17211           else
17212           # We have old collect2
17213           hardcode_direct_GCJ=unsupported
17214           # It fails to find uninstalled libraries when the uninstalled
17215           # path is not listed in the libpath.  Setting hardcode_minus_L
17216           # to unsupported forces relinking
17217           hardcode_minus_L_GCJ=yes
17218           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17219           hardcode_libdir_separator_GCJ=
17220           fi
17221           ;;
17222         esac
17223         shared_flag='-shared'
17224         if test "$aix_use_runtimelinking" = yes; then
17225           shared_flag="$shared_flag "'${wl}-G'
17226         fi
17227       else
17228         # not using gcc
17229         if test "$host_cpu" = ia64; then
17230         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17231         # chokes on -Wl,-G. The following line is correct:
17232           shared_flag='-G'
17233         else
17234           if test "$aix_use_runtimelinking" = yes; then
17235             shared_flag='${wl}-G'
17236           else
17237             shared_flag='${wl}-bM:SRE'
17238           fi
17239         fi
17240       fi
17241
17242       # It seems that -bexpall does not export symbols beginning with
17243       # underscore (_), so it is better to generate a list of symbols to export.
17244       always_export_symbols_GCJ=yes
17245       if test "$aix_use_runtimelinking" = yes; then
17246         # Warning - without using the other runtime loading flags (-brtl),
17247         # -berok will link without error, but may produce a broken library.
17248         allow_undefined_flag_GCJ='-berok'
17249        # Determine the default libpath from the value encoded in an empty executable.
17250        cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h.  */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h.  */
17256
17257 int
17258 main ()
17259 {
17260
17261   ;
17262   return 0;
17263 }
17264 _ACEOF
17265 rm -f conftest.$ac_objext conftest$ac_exeext
17266 if { (ac_try="$ac_link"
17267 case "(($ac_try" in
17268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269   *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272   (eval "$ac_link") 2>conftest.er1
17273   ac_status=$?
17274   grep -v '^ *+' conftest.er1 >conftest.err
17275   rm -f conftest.er1
17276   cat conftest.err >&5
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); } && {
17279          test -z "$ac_c_werror_flag" ||
17280          test ! -s conftest.err
17281        } && test -s conftest$ac_exeext &&
17282        $as_test_x conftest$ac_exeext; then
17283
17284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17285 }'`
17286 # Check for a 64-bit object if we didn't find anything.
17287 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; }
17288 }'`; fi
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293
17294 fi
17295
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297       conftest$ac_exeext conftest.$ac_ext
17298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17299
17300        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17301         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"
17302        else
17303         if test "$host_cpu" = ia64; then
17304           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17305           allow_undefined_flag_GCJ="-z nodefs"
17306           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"
17307         else
17308          # Determine the default libpath from the value encoded in an empty executable.
17309          cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315
17316 int
17317 main ()
17318 {
17319
17320   ;
17321   return 0;
17322 }
17323 _ACEOF
17324 rm -f conftest.$ac_objext conftest$ac_exeext
17325 if { (ac_try="$ac_link"
17326 case "(($ac_try" in
17327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328   *) ac_try_echo=$ac_try;;
17329 esac
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331   (eval "$ac_link") 2>conftest.er1
17332   ac_status=$?
17333   grep -v '^ *+' conftest.er1 >conftest.err
17334   rm -f conftest.er1
17335   cat conftest.err >&5
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); } && {
17338          test -z "$ac_c_werror_flag" ||
17339          test ! -s conftest.err
17340        } && test -s conftest$ac_exeext &&
17341        $as_test_x conftest$ac_exeext; then
17342
17343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17344 }'`
17345 # Check for a 64-bit object if we didn't find anything.
17346 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; }
17347 }'`; fi
17348 else
17349   echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352
17353 fi
17354
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356       conftest$ac_exeext conftest.$ac_ext
17357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17358
17359          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17360           # Warning - without using the other run time loading flags,
17361           # -berok will link without error, but may produce a broken library.
17362           no_undefined_flag_GCJ=' ${wl}-bernotok'
17363           allow_undefined_flag_GCJ=' ${wl}-berok'
17364           # Exported symbols can be pulled into shared objects from archives
17365           whole_archive_flag_spec_GCJ='$convenience'
17366           archive_cmds_need_lc_GCJ=yes
17367           # This is similar to how AIX traditionally builds its shared libraries.
17368           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'
17369         fi
17370       fi
17371       ;;
17372
17373     amigaos*)
17374       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)'
17375       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17376       hardcode_minus_L_GCJ=yes
17377       # see comment about different semantics on the GNU ld section
17378       ld_shlibs_GCJ=no
17379       ;;
17380
17381     bsdi[45]*)
17382       export_dynamic_flag_spec_GCJ=-rdynamic
17383       ;;
17384
17385     cygwin* | mingw* | pw32*)
17386       # When not using gcc, we currently assume that we are using
17387       # Microsoft Visual C++.
17388       # hardcode_libdir_flag_spec is actually meaningless, as there is
17389       # no search path for DLLs.
17390       hardcode_libdir_flag_spec_GCJ=' '
17391       allow_undefined_flag_GCJ=unsupported
17392       # Tell ltmain to make .lib files, not .a files.
17393       libext=lib
17394       # Tell ltmain to make .dll files, not .so files.
17395       shrext_cmds=".dll"
17396       # FIXME: Setting linknames here is a bad hack.
17397       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17398       # The linker will automatically build a .lib file if we build a DLL.
17399       old_archive_From_new_cmds_GCJ='true'
17400       # FIXME: Should let the user specify the lib program.
17401       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17402       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17403       enable_shared_with_static_runtimes_GCJ=yes
17404       ;;
17405
17406     darwin* | rhapsody*)
17407       case $host_os in
17408         rhapsody* | darwin1.[012])
17409          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17410          ;;
17411        *) # Darwin 1.3 on
17412          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17413            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17414          else
17415            case ${MACOSX_DEPLOYMENT_TARGET} in
17416              10.[012])
17417                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17418                ;;
17419              10.*)
17420                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17421                ;;
17422            esac
17423          fi
17424          ;;
17425       esac
17426       archive_cmds_need_lc_GCJ=no
17427       hardcode_direct_GCJ=no
17428       hardcode_automatic_GCJ=yes
17429       hardcode_shlibpath_var_GCJ=unsupported
17430       whole_archive_flag_spec_GCJ=''
17431       link_all_deplibs_GCJ=yes
17432     if test "$GCC" = yes ; then
17433         output_verbose_link_cmd='echo'
17434         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17435       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17436       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17437       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}'
17438       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}'
17439     else
17440       case $cc_basename in
17441         xlc*)
17442          output_verbose_link_cmd='echo'
17443          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17444          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17445           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17446          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}'
17447           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}'
17448           ;;
17449        *)
17450          ld_shlibs_GCJ=no
17451           ;;
17452       esac
17453     fi
17454       ;;
17455
17456     dgux*)
17457       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17458       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17459       hardcode_shlibpath_var_GCJ=no
17460       ;;
17461
17462     freebsd1*)
17463       ld_shlibs_GCJ=no
17464       ;;
17465
17466     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17467     # support.  Future versions do this automatically, but an explicit c++rt0.o
17468     # does not break anything, and helps significantly (at the cost of a little
17469     # extra space).
17470     freebsd2.2*)
17471       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17472       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17473       hardcode_direct_GCJ=yes
17474       hardcode_shlibpath_var_GCJ=no
17475       ;;
17476
17477     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17478     freebsd2*)
17479       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17480       hardcode_direct_GCJ=yes
17481       hardcode_minus_L_GCJ=yes
17482       hardcode_shlibpath_var_GCJ=no
17483       ;;
17484
17485     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17486     freebsd* | kfreebsd*-gnu | dragonfly*)
17487       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17488       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17489       hardcode_direct_GCJ=yes
17490       hardcode_shlibpath_var_GCJ=no
17491       ;;
17492
17493     hpux9*)
17494       if test "$GCC" = yes; then
17495         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'
17496       else
17497         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'
17498       fi
17499       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17500       hardcode_libdir_separator_GCJ=:
17501       hardcode_direct_GCJ=yes
17502
17503       # hardcode_minus_L: Not really in the search PATH,
17504       # but as the default location of the library.
17505       hardcode_minus_L_GCJ=yes
17506       export_dynamic_flag_spec_GCJ='${wl}-E'
17507       ;;
17508
17509     hpux10*)
17510       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17511         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17512       else
17513         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17514       fi
17515       if test "$with_gnu_ld" = no; then
17516         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17517         hardcode_libdir_separator_GCJ=:
17518
17519         hardcode_direct_GCJ=yes
17520         export_dynamic_flag_spec_GCJ='${wl}-E'
17521
17522         # hardcode_minus_L: Not really in the search PATH,
17523         # but as the default location of the library.
17524         hardcode_minus_L_GCJ=yes
17525       fi
17526       ;;
17527
17528     hpux11*)
17529       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17530         case $host_cpu in
17531         hppa*64*)
17532           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17533           ;;
17534         ia64*)
17535           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17536           ;;
17537         *)
17538           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17539           ;;
17540         esac
17541       else
17542         case $host_cpu in
17543         hppa*64*)
17544           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17545           ;;
17546         ia64*)
17547           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17548           ;;
17549         *)
17550           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17551           ;;
17552         esac
17553       fi
17554       if test "$with_gnu_ld" = no; then
17555         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17556         hardcode_libdir_separator_GCJ=:
17557
17558         case $host_cpu in
17559         hppa*64*|ia64*)
17560           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17561           hardcode_direct_GCJ=no
17562           hardcode_shlibpath_var_GCJ=no
17563           ;;
17564         *)
17565           hardcode_direct_GCJ=yes
17566           export_dynamic_flag_spec_GCJ='${wl}-E'
17567
17568           # hardcode_minus_L: Not really in the search PATH,
17569           # but as the default location of the library.
17570           hardcode_minus_L_GCJ=yes
17571           ;;
17572         esac
17573       fi
17574       ;;
17575
17576     irix5* | irix6* | nonstopux*)
17577       if test "$GCC" = yes; then
17578         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'
17579       else
17580         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'
17581         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17582       fi
17583       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17584       hardcode_libdir_separator_GCJ=:
17585       link_all_deplibs_GCJ=yes
17586       ;;
17587
17588     netbsd*)
17589       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17590         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17591       else
17592         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17593       fi
17594       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17595       hardcode_direct_GCJ=yes
17596       hardcode_shlibpath_var_GCJ=no
17597       ;;
17598
17599     newsos6)
17600       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17601       hardcode_direct_GCJ=yes
17602       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17603       hardcode_libdir_separator_GCJ=:
17604       hardcode_shlibpath_var_GCJ=no
17605       ;;
17606
17607     openbsd*)
17608       hardcode_direct_GCJ=yes
17609       hardcode_shlibpath_var_GCJ=no
17610       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17611         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17612         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17613         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17614         export_dynamic_flag_spec_GCJ='${wl}-E'
17615       else
17616        case $host_os in
17617          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17618            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17619            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17620            ;;
17621          *)
17622            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17623            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17624            ;;
17625        esac
17626       fi
17627       ;;
17628
17629     os2*)
17630       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17631       hardcode_minus_L_GCJ=yes
17632       allow_undefined_flag_GCJ=unsupported
17633       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'
17634       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17635       ;;
17636
17637     osf3*)
17638       if test "$GCC" = yes; then
17639         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17640         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'
17641       else
17642         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17643         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'
17644       fi
17645       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17646       hardcode_libdir_separator_GCJ=:
17647       ;;
17648
17649     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17650       if test "$GCC" = yes; then
17651         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17652         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'
17653         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17654       else
17655         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17656         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'
17657         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~
17658         $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'
17659
17660         # Both c and cxx compiler support -rpath directly
17661         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17662       fi
17663       hardcode_libdir_separator_GCJ=:
17664       ;;
17665
17666     solaris*)
17667       no_undefined_flag_GCJ=' -z text'
17668       if test "$GCC" = yes; then
17669         wlarc='${wl}'
17670         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17671         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17672           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17673       else
17674         wlarc=''
17675         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17677         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17678       fi
17679       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17680       hardcode_shlibpath_var_GCJ=no
17681       case $host_os in
17682       solaris2.[0-5] | solaris2.[0-5].*) ;;
17683       *)
17684         # The compiler driver will combine linker options so we
17685         # cannot just pass the convience library names through
17686         # without $wl, iff we do not link with $LD.
17687         # Luckily, gcc supports the same syntax we need for Sun Studio.
17688         # Supported since Solaris 2.6 (maybe 2.5.1?)
17689         case $wlarc in
17690         '')
17691           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17692         *)
17693           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' ;;
17694         esac ;;
17695       esac
17696       link_all_deplibs_GCJ=yes
17697       ;;
17698
17699     sunos4*)
17700       if test "x$host_vendor" = xsequent; then
17701         # Use $CC to link under sequent, because it throws in some extra .o
17702         # files that make .init and .fini sections work.
17703         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17704       else
17705         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17706       fi
17707       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17708       hardcode_direct_GCJ=yes
17709       hardcode_minus_L_GCJ=yes
17710       hardcode_shlibpath_var_GCJ=no
17711       ;;
17712
17713     sysv4)
17714       case $host_vendor in
17715         sni)
17716           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17717           hardcode_direct_GCJ=yes # is this really true???
17718         ;;
17719         siemens)
17720           ## LD is ld it makes a PLAMLIB
17721           ## CC just makes a GrossModule.
17722           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17723           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17724           hardcode_direct_GCJ=no
17725         ;;
17726         motorola)
17727           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17729         ;;
17730       esac
17731       runpath_var='LD_RUN_PATH'
17732       hardcode_shlibpath_var_GCJ=no
17733       ;;
17734
17735     sysv4.3*)
17736       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17737       hardcode_shlibpath_var_GCJ=no
17738       export_dynamic_flag_spec_GCJ='-Bexport'
17739       ;;
17740
17741     sysv4*MP*)
17742       if test -d /usr/nec; then
17743         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17744         hardcode_shlibpath_var_GCJ=no
17745         runpath_var=LD_RUN_PATH
17746         hardcode_runpath_var=yes
17747         ld_shlibs_GCJ=yes
17748       fi
17749       ;;
17750
17751     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17752       no_undefined_flag_GCJ='${wl}-z,text'
17753       archive_cmds_need_lc_GCJ=no
17754       hardcode_shlibpath_var_GCJ=no
17755       runpath_var='LD_RUN_PATH'
17756
17757       if test "$GCC" = yes; then
17758         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760       else
17761         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17762         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17763       fi
17764       ;;
17765
17766     sysv5* | sco3.2v5* | sco5v6*)
17767       # Note: We can NOT use -z defs as we might desire, because we do not
17768       # link with -lc, and that would cause any symbols used from libc to
17769       # always be unresolved, which means just about no library would
17770       # ever link correctly.  If we're not using GNU ld we use -z text
17771       # though, which does catch some bad symbols but isn't as heavy-handed
17772       # as -z defs.
17773       no_undefined_flag_GCJ='${wl}-z,text'
17774       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17775       archive_cmds_need_lc_GCJ=no
17776       hardcode_shlibpath_var_GCJ=no
17777       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17778       hardcode_libdir_separator_GCJ=':'
17779       link_all_deplibs_GCJ=yes
17780       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17781       runpath_var='LD_RUN_PATH'
17782
17783       if test "$GCC" = yes; then
17784         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786       else
17787         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17788         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17789       fi
17790       ;;
17791
17792     uts4*)
17793       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17794       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17795       hardcode_shlibpath_var_GCJ=no
17796       ;;
17797
17798     *)
17799       ld_shlibs_GCJ=no
17800       ;;
17801     esac
17802   fi
17803
17804 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17805 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17806 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17807
17808 #
17809 # Do we need to explicitly link libc?
17810 #
17811 case "x$archive_cmds_need_lc_GCJ" in
17812 x|xyes)
17813   # Assume -lc should be added
17814   archive_cmds_need_lc_GCJ=yes
17815
17816   if test "$enable_shared" = yes && test "$GCC" = yes; then
17817     case $archive_cmds_GCJ in
17818     *'~'*)
17819       # FIXME: we may have to deal with multi-command sequences.
17820       ;;
17821     '$CC '*)
17822       # Test whether the compiler implicitly links with -lc since on some
17823       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17824       # to ld, don't add -lc before -lgcc.
17825       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17827       $rm conftest*
17828       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17829
17830       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831   (eval $ac_compile) 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); } 2>conftest.err; then
17835         soname=conftest
17836         lib=conftest
17837         libobjs=conftest.$ac_objext
17838         deplibs=
17839         wl=$lt_prog_compiler_wl_GCJ
17840         pic_flag=$lt_prog_compiler_pic_GCJ
17841         compiler_flags=-v
17842         linker_flags=-v
17843         verstring=
17844         output_objdir=.
17845         libname=conftest
17846         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17847         allow_undefined_flag_GCJ=
17848         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17849   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); }
17853         then
17854           archive_cmds_need_lc_GCJ=no
17855         else
17856           archive_cmds_need_lc_GCJ=yes
17857         fi
17858         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17859       else
17860         cat conftest.err 1>&5
17861       fi
17862       $rm conftest*
17863       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17864 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17865       ;;
17866     esac
17867   fi
17868   ;;
17869 esac
17870
17871 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17872 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17873 library_names_spec=
17874 libname_spec='lib$name'
17875 soname_spec=
17876 shrext_cmds=".so"
17877 postinstall_cmds=
17878 postuninstall_cmds=
17879 finish_cmds=
17880 finish_eval=
17881 shlibpath_var=
17882 shlibpath_overrides_runpath=unknown
17883 version_type=none
17884 dynamic_linker="$host_os ld.so"
17885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17886 if test "$GCC" = yes; then
17887   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17888   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17889     # if the path contains ";" then we assume it to be the separator
17890     # otherwise default to the standard path separator (i.e. ":") - it is
17891     # assumed that no part of a normal pathname contains ";" but that should
17892     # okay in the real world where ";" in dirpaths is itself problematic.
17893     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17894   else
17895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17896   fi
17897 else
17898   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17899 fi
17900 need_lib_prefix=unknown
17901 hardcode_into_libs=no
17902
17903 # when you set need_version to no, make sure it does not cause -set_version
17904 # flags to be left without arguments
17905 need_version=unknown
17906
17907 case $host_os in
17908 aix3*)
17909   version_type=linux
17910   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17911   shlibpath_var=LIBPATH
17912
17913   # AIX 3 has no versioning support, so we append a major version to the name.
17914   soname_spec='${libname}${release}${shared_ext}$major'
17915   ;;
17916
17917 aix4* | aix5*)
17918   version_type=linux
17919   need_lib_prefix=no
17920   need_version=no
17921   hardcode_into_libs=yes
17922   if test "$host_cpu" = ia64; then
17923     # AIX 5 supports IA64
17924     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17925     shlibpath_var=LD_LIBRARY_PATH
17926   else
17927     # With GCC up to 2.95.x, collect2 would create an import file
17928     # for dependence libraries.  The import file would start with
17929     # the line `#! .'.  This would cause the generated library to
17930     # depend on `.', always an invalid library.  This was fixed in
17931     # development snapshots of GCC prior to 3.0.
17932     case $host_os in
17933       aix4 | aix4.[01] | aix4.[01].*)
17934       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17935            echo ' yes '
17936            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17937         :
17938       else
17939         can_build_shared=no
17940       fi
17941       ;;
17942     esac
17943     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17944     # soname into executable. Probably we can add versioning support to
17945     # collect2, so additional links can be useful in future.
17946     if test "$aix_use_runtimelinking" = yes; then
17947       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17948       # instead of lib<name>.a to let people know that these are not
17949       # typical AIX shared libraries.
17950       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951     else
17952       # We preserve .a as extension for shared libraries through AIX4.2
17953       # and later when we are not doing run time linking.
17954       library_names_spec='${libname}${release}.a $libname.a'
17955       soname_spec='${libname}${release}${shared_ext}$major'
17956     fi
17957     shlibpath_var=LIBPATH
17958   fi
17959   ;;
17960
17961 amigaos*)
17962   library_names_spec='$libname.ixlibrary $libname.a'
17963   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17964   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'
17965   ;;
17966
17967 beos*)
17968   library_names_spec='${libname}${shared_ext}'
17969   dynamic_linker="$host_os ld.so"
17970   shlibpath_var=LIBRARY_PATH
17971   ;;
17972
17973 bsdi[45]*)
17974   version_type=linux
17975   need_version=no
17976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977   soname_spec='${libname}${release}${shared_ext}$major'
17978   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17979   shlibpath_var=LD_LIBRARY_PATH
17980   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17981   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17982   # the default ld.so.conf also contains /usr/contrib/lib and
17983   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17984   # libtool to hard-code these into programs
17985   ;;
17986
17987 cygwin* | mingw* | pw32*)
17988   version_type=windows
17989   shrext_cmds=".dll"
17990   need_version=no
17991   need_lib_prefix=no
17992
17993   case $GCC,$host_os in
17994   yes,cygwin* | yes,mingw* | yes,pw32*)
17995     library_names_spec='$libname.dll.a'
17996     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17997     postinstall_cmds='base_file=`basename \${file}`~
17998       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17999       dldir=$destdir/`dirname \$dlpath`~
18000       test -d \$dldir || mkdir -p \$dldir~
18001       $install_prog $dir/$dlname \$dldir/$dlname~
18002       chmod a+x \$dldir/$dlname'
18003     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18004       dlpath=$dir/\$dldll~
18005        $rm \$dlpath'
18006     shlibpath_overrides_runpath=yes
18007
18008     case $host_os in
18009     cygwin*)
18010       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18011       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18012       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18013       ;;
18014     mingw*)
18015       # MinGW DLLs use traditional 'lib' prefix
18016       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18017       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18018       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18019         # It is most probably a Windows format PATH printed by
18020         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18021         # path with ; separators, and with drive letters. We can handle the
18022         # drive letters (cygwin fileutils understands them), so leave them,
18023         # especially as we might pass files found there to a mingw objdump,
18024         # which wouldn't understand a cygwinified path. Ahh.
18025         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18026       else
18027         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18028       fi
18029       ;;
18030     pw32*)
18031       # pw32 DLLs use 'pw' prefix rather than 'lib'
18032       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18033       ;;
18034     esac
18035     ;;
18036
18037   *)
18038     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18039     ;;
18040   esac
18041   dynamic_linker='Win32 ld.exe'
18042   # FIXME: first we should search . and the directory the executable is in
18043   shlibpath_var=PATH
18044   ;;
18045
18046 darwin* | rhapsody*)
18047   dynamic_linker="$host_os dyld"
18048   version_type=darwin
18049   need_lib_prefix=no
18050   need_version=no
18051   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18052   soname_spec='${libname}${release}${major}$shared_ext'
18053   shlibpath_overrides_runpath=yes
18054   shlibpath_var=DYLD_LIBRARY_PATH
18055   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18056   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18057   if test "$GCC" = yes; then
18058     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"`
18059   else
18060     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18061   fi
18062   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18063   ;;
18064
18065 dgux*)
18066   version_type=linux
18067   need_lib_prefix=no
18068   need_version=no
18069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18070   soname_spec='${libname}${release}${shared_ext}$major'
18071   shlibpath_var=LD_LIBRARY_PATH
18072   ;;
18073
18074 freebsd1*)
18075   dynamic_linker=no
18076   ;;
18077
18078 kfreebsd*-gnu)
18079   version_type=linux
18080   need_lib_prefix=no
18081   need_version=no
18082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18083   soname_spec='${libname}${release}${shared_ext}$major'
18084   shlibpath_var=LD_LIBRARY_PATH
18085   shlibpath_overrides_runpath=no
18086   hardcode_into_libs=yes
18087   dynamic_linker='GNU ld.so'
18088   ;;
18089
18090 freebsd* | dragonfly*)
18091   # DragonFly does not have aout.  When/if they implement a new
18092   # versioning mechanism, adjust this.
18093   if test -x /usr/bin/objformat; then
18094     objformat=`/usr/bin/objformat`
18095   else
18096     case $host_os in
18097     freebsd[123]*) objformat=aout ;;
18098     *) objformat=elf ;;
18099     esac
18100   fi
18101   version_type=freebsd-$objformat
18102   case $version_type in
18103     freebsd-elf*)
18104       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18105       need_version=no
18106       need_lib_prefix=no
18107       ;;
18108     freebsd-*)
18109       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18110       need_version=yes
18111       ;;
18112   esac
18113   shlibpath_var=LD_LIBRARY_PATH
18114   case $host_os in
18115   freebsd2*)
18116     shlibpath_overrides_runpath=yes
18117     ;;
18118   freebsd3.[01]* | freebsdelf3.[01]*)
18119     shlibpath_overrides_runpath=yes
18120     hardcode_into_libs=yes
18121     ;;
18122   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18123   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18124     shlibpath_overrides_runpath=no
18125     hardcode_into_libs=yes
18126     ;;
18127   freebsd*) # from 4.6 on
18128     shlibpath_overrides_runpath=yes
18129     hardcode_into_libs=yes
18130     ;;
18131   esac
18132   ;;
18133
18134 gnu*)
18135   version_type=linux
18136   need_lib_prefix=no
18137   need_version=no
18138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18139   soname_spec='${libname}${release}${shared_ext}$major'
18140   shlibpath_var=LD_LIBRARY_PATH
18141   hardcode_into_libs=yes
18142   ;;
18143
18144 hpux9* | hpux10* | hpux11*)
18145   # Give a soname corresponding to the major version so that dld.sl refuses to
18146   # link against other versions.
18147   version_type=sunos
18148   need_lib_prefix=no
18149   need_version=no
18150   case $host_cpu in
18151   ia64*)
18152     shrext_cmds='.so'
18153     hardcode_into_libs=yes
18154     dynamic_linker="$host_os dld.so"
18155     shlibpath_var=LD_LIBRARY_PATH
18156     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18158     soname_spec='${libname}${release}${shared_ext}$major'
18159     if test "X$HPUX_IA64_MODE" = X32; then
18160       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18161     else
18162       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18163     fi
18164     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18165     ;;
18166    hppa*64*)
18167      shrext_cmds='.sl'
18168      hardcode_into_libs=yes
18169      dynamic_linker="$host_os dld.sl"
18170      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18171      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18172      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173      soname_spec='${libname}${release}${shared_ext}$major'
18174      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18175      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18176      ;;
18177    *)
18178     shrext_cmds='.sl'
18179     dynamic_linker="$host_os dld.sl"
18180     shlibpath_var=SHLIB_PATH
18181     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183     soname_spec='${libname}${release}${shared_ext}$major'
18184     ;;
18185   esac
18186   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18187   postinstall_cmds='chmod 555 $lib'
18188   ;;
18189
18190 interix3*)
18191   version_type=linux
18192   need_lib_prefix=no
18193   need_version=no
18194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18195   soname_spec='${libname}${release}${shared_ext}$major'
18196   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18197   shlibpath_var=LD_LIBRARY_PATH
18198   shlibpath_overrides_runpath=no
18199   hardcode_into_libs=yes
18200   ;;
18201
18202 irix5* | irix6* | nonstopux*)
18203   case $host_os in
18204     nonstopux*) version_type=nonstopux ;;
18205     *)
18206         if test "$lt_cv_prog_gnu_ld" = yes; then
18207                 version_type=linux
18208         else
18209                 version_type=irix
18210         fi ;;
18211   esac
18212   need_lib_prefix=no
18213   need_version=no
18214   soname_spec='${libname}${release}${shared_ext}$major'
18215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18216   case $host_os in
18217   irix5* | nonstopux*)
18218     libsuff= shlibsuff=
18219     ;;
18220   *)
18221     case $LD in # libtool.m4 will add one of these switches to LD
18222     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18223       libsuff= shlibsuff= libmagic=32-bit;;
18224     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18225       libsuff=32 shlibsuff=N32 libmagic=N32;;
18226     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18227       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18228     *) libsuff= shlibsuff= libmagic=never-match;;
18229     esac
18230     ;;
18231   esac
18232   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18233   shlibpath_overrides_runpath=no
18234   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18235   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18236   hardcode_into_libs=yes
18237   ;;
18238
18239 # No shared lib support for Linux oldld, aout, or coff.
18240 linux*oldld* | linux*aout* | linux*coff*)
18241   dynamic_linker=no
18242   ;;
18243
18244 # This must be Linux ELF.
18245 linux*)
18246   version_type=linux
18247   need_lib_prefix=no
18248   need_version=no
18249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250   soname_spec='${libname}${release}${shared_ext}$major'
18251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18252   shlibpath_var=LD_LIBRARY_PATH
18253   shlibpath_overrides_runpath=no
18254   # This implies no fast_install, which is unacceptable.
18255   # Some rework will be needed to allow for fast_install
18256   # before this can be enabled.
18257   hardcode_into_libs=yes
18258
18259   # Append ld.so.conf contents to the search path
18260   if test -f /etc/ld.so.conf; then
18261     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' ' '`
18262     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18263   fi
18264
18265   # We used to test for /lib/ld.so.1 and disable shared libraries on
18266   # powerpc, because MkLinux only supported shared libraries with the
18267   # GNU dynamic linker.  Since this was broken with cross compilers,
18268   # most powerpc-linux boxes support dynamic linking these days and
18269   # people can always --disable-shared, the test was removed, and we
18270   # assume the GNU/Linux dynamic linker is in use.
18271   dynamic_linker='GNU/Linux ld.so'
18272   ;;
18273
18274 knetbsd*-gnu)
18275   version_type=linux
18276   need_lib_prefix=no
18277   need_version=no
18278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18279   soname_spec='${libname}${release}${shared_ext}$major'
18280   shlibpath_var=LD_LIBRARY_PATH
18281   shlibpath_overrides_runpath=no
18282   hardcode_into_libs=yes
18283   dynamic_linker='GNU ld.so'
18284   ;;
18285
18286 netbsd*)
18287   version_type=sunos
18288   need_lib_prefix=no
18289   need_version=no
18290   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18292     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18293     dynamic_linker='NetBSD (a.out) ld.so'
18294   else
18295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18296     soname_spec='${libname}${release}${shared_ext}$major'
18297     dynamic_linker='NetBSD ld.elf_so'
18298   fi
18299   shlibpath_var=LD_LIBRARY_PATH
18300   shlibpath_overrides_runpath=yes
18301   hardcode_into_libs=yes
18302   ;;
18303
18304 newsos6)
18305   version_type=linux
18306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307   shlibpath_var=LD_LIBRARY_PATH
18308   shlibpath_overrides_runpath=yes
18309   ;;
18310
18311 nto-qnx*)
18312   version_type=linux
18313   need_lib_prefix=no
18314   need_version=no
18315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316   soname_spec='${libname}${release}${shared_ext}$major'
18317   shlibpath_var=LD_LIBRARY_PATH
18318   shlibpath_overrides_runpath=yes
18319   ;;
18320
18321 openbsd*)
18322   version_type=sunos
18323   sys_lib_dlsearch_path_spec="/usr/lib"
18324   need_lib_prefix=no
18325   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18326   case $host_os in
18327     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18328     *)                         need_version=no  ;;
18329   esac
18330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18331   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18332   shlibpath_var=LD_LIBRARY_PATH
18333   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18334     case $host_os in
18335       openbsd2.[89] | openbsd2.[89].*)
18336         shlibpath_overrides_runpath=no
18337         ;;
18338       *)
18339         shlibpath_overrides_runpath=yes
18340         ;;
18341       esac
18342   else
18343     shlibpath_overrides_runpath=yes
18344   fi
18345   ;;
18346
18347 os2*)
18348   libname_spec='$name'
18349   shrext_cmds=".dll"
18350   need_lib_prefix=no
18351   library_names_spec='$libname${shared_ext} $libname.a'
18352   dynamic_linker='OS/2 ld.exe'
18353   shlibpath_var=LIBPATH
18354   ;;
18355
18356 osf3* | osf4* | osf5*)
18357   version_type=osf
18358   need_lib_prefix=no
18359   need_version=no
18360   soname_spec='${libname}${release}${shared_ext}$major'
18361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362   shlibpath_var=LD_LIBRARY_PATH
18363   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18364   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18365   ;;
18366
18367 solaris*)
18368   version_type=linux
18369   need_lib_prefix=no
18370   need_version=no
18371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372   soname_spec='${libname}${release}${shared_ext}$major'
18373   shlibpath_var=LD_LIBRARY_PATH
18374   shlibpath_overrides_runpath=yes
18375   hardcode_into_libs=yes
18376   # ldd complains unless libraries are executable
18377   postinstall_cmds='chmod +x $lib'
18378   ;;
18379
18380 sunos4*)
18381   version_type=sunos
18382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18383   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18384   shlibpath_var=LD_LIBRARY_PATH
18385   shlibpath_overrides_runpath=yes
18386   if test "$with_gnu_ld" = yes; then
18387     need_lib_prefix=no
18388   fi
18389   need_version=yes
18390   ;;
18391
18392 sysv4 | sysv4.3*)
18393   version_type=linux
18394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18395   soname_spec='${libname}${release}${shared_ext}$major'
18396   shlibpath_var=LD_LIBRARY_PATH
18397   case $host_vendor in
18398     sni)
18399       shlibpath_overrides_runpath=no
18400       need_lib_prefix=no
18401       export_dynamic_flag_spec='${wl}-Blargedynsym'
18402       runpath_var=LD_RUN_PATH
18403       ;;
18404     siemens)
18405       need_lib_prefix=no
18406       ;;
18407     motorola)
18408       need_lib_prefix=no
18409       need_version=no
18410       shlibpath_overrides_runpath=no
18411       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18412       ;;
18413   esac
18414   ;;
18415
18416 sysv4*MP*)
18417   if test -d /usr/nec ;then
18418     version_type=linux
18419     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18420     soname_spec='$libname${shared_ext}.$major'
18421     shlibpath_var=LD_LIBRARY_PATH
18422   fi
18423   ;;
18424
18425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18426   version_type=freebsd-elf
18427   need_lib_prefix=no
18428   need_version=no
18429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18430   soname_spec='${libname}${release}${shared_ext}$major'
18431   shlibpath_var=LD_LIBRARY_PATH
18432   hardcode_into_libs=yes
18433   if test "$with_gnu_ld" = yes; then
18434     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18435     shlibpath_overrides_runpath=no
18436   else
18437     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18438     shlibpath_overrides_runpath=yes
18439     case $host_os in
18440       sco3.2v5*)
18441         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18442         ;;
18443     esac
18444   fi
18445   sys_lib_dlsearch_path_spec='/usr/lib'
18446   ;;
18447
18448 uts4*)
18449   version_type=linux
18450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451   soname_spec='${libname}${release}${shared_ext}$major'
18452   shlibpath_var=LD_LIBRARY_PATH
18453   ;;
18454
18455 *)
18456   dynamic_linker=no
18457   ;;
18458 esac
18459 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18460 echo "${ECHO_T}$dynamic_linker" >&6; }
18461 test "$dynamic_linker" = no && can_build_shared=no
18462
18463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18464 if test "$GCC" = yes; then
18465   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18466 fi
18467
18468 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18470 hardcode_action_GCJ=
18471 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18472    test -n "$runpath_var_GCJ" || \
18473    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18474
18475   # We can hardcode non-existant directories.
18476   if test "$hardcode_direct_GCJ" != no &&
18477      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18478      # have to relink, otherwise we might link with an installed library
18479      # when we should be linking with a yet-to-be-installed one
18480      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18481      test "$hardcode_minus_L_GCJ" != no; then
18482     # Linking always hardcodes the temporary library directory.
18483     hardcode_action_GCJ=relink
18484   else
18485     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18486     hardcode_action_GCJ=immediate
18487   fi
18488 else
18489   # We cannot hardcode anything, or else we can only hardcode existing
18490   # directories.
18491   hardcode_action_GCJ=unsupported
18492 fi
18493 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18494 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18495
18496 if test "$hardcode_action_GCJ" = relink; then
18497   # Fast installation is not supported
18498   enable_fast_install=no
18499 elif test "$shlibpath_overrides_runpath" = yes ||
18500      test "$enable_shared" = no; then
18501   # Fast installation is not necessary
18502   enable_fast_install=needless
18503 fi
18504
18505
18506 # The else clause should only fire when bootstrapping the
18507 # libtool distribution, otherwise you forgot to ship ltmain.sh
18508 # with your package, and you will get complaints that there are
18509 # no rules to generate ltmain.sh.
18510 if test -f "$ltmain"; then
18511   # See if we are running on zsh, and set the options which allow our commands through
18512   # without removal of \ escapes.
18513   if test -n "${ZSH_VERSION+set}" ; then
18514     setopt NO_GLOB_SUBST
18515   fi
18516   # Now quote all the things that may contain metacharacters while being
18517   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18518   # variables and quote the copies for generation of the libtool script.
18519   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18520     SED SHELL STRIP \
18521     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18522     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18523     deplibs_check_method reload_flag reload_cmds need_locks \
18524     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18525     lt_cv_sys_global_symbol_to_c_name_address \
18526     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18527     old_postinstall_cmds old_postuninstall_cmds \
18528     compiler_GCJ \
18529     CC_GCJ \
18530     LD_GCJ \
18531     lt_prog_compiler_wl_GCJ \
18532     lt_prog_compiler_pic_GCJ \
18533     lt_prog_compiler_static_GCJ \
18534     lt_prog_compiler_no_builtin_flag_GCJ \
18535     export_dynamic_flag_spec_GCJ \
18536     thread_safe_flag_spec_GCJ \
18537     whole_archive_flag_spec_GCJ \
18538     enable_shared_with_static_runtimes_GCJ \
18539     old_archive_cmds_GCJ \
18540     old_archive_from_new_cmds_GCJ \
18541     predep_objects_GCJ \
18542     postdep_objects_GCJ \
18543     predeps_GCJ \
18544     postdeps_GCJ \
18545     compiler_lib_search_path_GCJ \
18546     archive_cmds_GCJ \
18547     archive_expsym_cmds_GCJ \
18548     postinstall_cmds_GCJ \
18549     postuninstall_cmds_GCJ \
18550     old_archive_from_expsyms_cmds_GCJ \
18551     allow_undefined_flag_GCJ \
18552     no_undefined_flag_GCJ \
18553     export_symbols_cmds_GCJ \
18554     hardcode_libdir_flag_spec_GCJ \
18555     hardcode_libdir_flag_spec_ld_GCJ \
18556     hardcode_libdir_separator_GCJ \
18557     hardcode_automatic_GCJ \
18558     module_cmds_GCJ \
18559     module_expsym_cmds_GCJ \
18560     lt_cv_prog_compiler_c_o_GCJ \
18561     exclude_expsyms_GCJ \
18562     include_expsyms_GCJ; do
18563
18564     case $var in
18565     old_archive_cmds_GCJ | \
18566     old_archive_from_new_cmds_GCJ | \
18567     archive_cmds_GCJ | \
18568     archive_expsym_cmds_GCJ | \
18569     module_cmds_GCJ | \
18570     module_expsym_cmds_GCJ | \
18571     old_archive_from_expsyms_cmds_GCJ | \
18572     export_symbols_cmds_GCJ | \
18573     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18574     postinstall_cmds | postuninstall_cmds | \
18575     old_postinstall_cmds | old_postuninstall_cmds | \
18576     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18577       # Double-quote double-evaled strings.
18578       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18579       ;;
18580     *)
18581       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18582       ;;
18583     esac
18584   done
18585
18586   case $lt_echo in
18587   *'\$0 --fallback-echo"')
18588     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18589     ;;
18590   esac
18591
18592 cfgfile="$ofile"
18593
18594   cat <<__EOF__ >> "$cfgfile"
18595 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18596
18597 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18598
18599 # Shell to use when invoking shell scripts.
18600 SHELL=$lt_SHELL
18601
18602 # Whether or not to build shared libraries.
18603 build_libtool_libs=$enable_shared
18604
18605 # Whether or not to build static libraries.
18606 build_old_libs=$enable_static
18607
18608 # Whether or not to add -lc for building shared libraries.
18609 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18610
18611 # Whether or not to disallow shared libs when runtime libs are static
18612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18613
18614 # Whether or not to optimize for fast installation.
18615 fast_install=$enable_fast_install
18616
18617 # The host system.
18618 host_alias=$host_alias
18619 host=$host
18620 host_os=$host_os
18621
18622 # The build system.
18623 build_alias=$build_alias
18624 build=$build
18625 build_os=$build_os
18626
18627 # An echo program that does not interpret backslashes.
18628 echo=$lt_echo
18629
18630 # The archiver.
18631 AR=$lt_AR
18632 AR_FLAGS=$lt_AR_FLAGS
18633
18634 # A C compiler.
18635 LTCC=$lt_LTCC
18636
18637 # LTCC compiler flags.
18638 LTCFLAGS=$lt_LTCFLAGS
18639
18640 # A language-specific compiler.
18641 CC=$lt_compiler_GCJ
18642
18643 # Is the compiler the GNU C compiler?
18644 with_gcc=$GCC_GCJ
18645
18646 # An ERE matcher.
18647 EGREP=$lt_EGREP
18648
18649 # The linker used to build libraries.
18650 LD=$lt_LD_GCJ
18651
18652 # Whether we need hard or soft links.
18653 LN_S=$lt_LN_S
18654
18655 # A BSD-compatible nm program.
18656 NM=$lt_NM
18657
18658 # A symbol stripping program
18659 STRIP=$lt_STRIP
18660
18661 # Used to examine libraries when file_magic_cmd begins "file"
18662 MAGIC_CMD=$MAGIC_CMD
18663
18664 # Used on cygwin: DLL creation program.
18665 DLLTOOL="$DLLTOOL"
18666
18667 # Used on cygwin: object dumper.
18668 OBJDUMP="$OBJDUMP"
18669
18670 # Used on cygwin: assembler.
18671 AS="$AS"
18672
18673 # The name of the directory that contains temporary libtool files.
18674 objdir=$objdir
18675
18676 # How to create reloadable object files.
18677 reload_flag=$lt_reload_flag
18678 reload_cmds=$lt_reload_cmds
18679
18680 # How to pass a linker flag through the compiler.
18681 wl=$lt_lt_prog_compiler_wl_GCJ
18682
18683 # Object file suffix (normally "o").
18684 objext="$ac_objext"
18685
18686 # Old archive suffix (normally "a").
18687 libext="$libext"
18688
18689 # Shared library suffix (normally ".so").
18690 shrext_cmds='$shrext_cmds'
18691
18692 # Executable file suffix (normally "").
18693 exeext="$exeext"
18694
18695 # Additional compiler flags for building library objects.
18696 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18697 pic_mode=$pic_mode
18698
18699 # What is the maximum length of a command?
18700 max_cmd_len=$lt_cv_sys_max_cmd_len
18701
18702 # Does compiler simultaneously support -c and -o options?
18703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18704
18705 # Must we lock files when doing compilation?
18706 need_locks=$lt_need_locks
18707
18708 # Do we need the lib prefix for modules?
18709 need_lib_prefix=$need_lib_prefix
18710
18711 # Do we need a version for libraries?
18712 need_version=$need_version
18713
18714 # Whether dlopen is supported.
18715 dlopen_support=$enable_dlopen
18716
18717 # Whether dlopen of programs is supported.
18718 dlopen_self=$enable_dlopen_self
18719
18720 # Whether dlopen of statically linked programs is supported.
18721 dlopen_self_static=$enable_dlopen_self_static
18722
18723 # Compiler flag to prevent dynamic linking.
18724 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18725
18726 # Compiler flag to turn off builtin functions.
18727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18728
18729 # Compiler flag to allow reflexive dlopens.
18730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18731
18732 # Compiler flag to generate shared objects directly from archives.
18733 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18734
18735 # Compiler flag to generate thread-safe objects.
18736 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18737
18738 # Library versioning type.
18739 version_type=$version_type
18740
18741 # Format of library name prefix.
18742 libname_spec=$lt_libname_spec
18743
18744 # List of archive names.  First name is the real one, the rest are links.
18745 # The last name is the one that the linker finds with -lNAME.
18746 library_names_spec=$lt_library_names_spec
18747
18748 # The coded name of the library, if different from the real name.
18749 soname_spec=$lt_soname_spec
18750
18751 # Commands used to build and install an old-style archive.
18752 RANLIB=$lt_RANLIB
18753 old_archive_cmds=$lt_old_archive_cmds_GCJ
18754 old_postinstall_cmds=$lt_old_postinstall_cmds
18755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18756
18757 # Create an old-style archive from a shared archive.
18758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18759
18760 # Create a temporary old-style archive to link instead of a shared archive.
18761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18762
18763 # Commands used to build and install a shared archive.
18764 archive_cmds=$lt_archive_cmds_GCJ
18765 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18766 postinstall_cmds=$lt_postinstall_cmds
18767 postuninstall_cmds=$lt_postuninstall_cmds
18768
18769 # Commands used to build a loadable module (assumed same as above if empty)
18770 module_cmds=$lt_module_cmds_GCJ
18771 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18772
18773 # Commands to strip libraries.
18774 old_striplib=$lt_old_striplib
18775 striplib=$lt_striplib
18776
18777 # Dependencies to place before the objects being linked to create a
18778 # shared library.
18779 predep_objects=$lt_predep_objects_GCJ
18780
18781 # Dependencies to place after the objects being linked to create a
18782 # shared library.
18783 postdep_objects=$lt_postdep_objects_GCJ
18784
18785 # Dependencies to place before the objects being linked to create a
18786 # shared library.
18787 predeps=$lt_predeps_GCJ
18788
18789 # Dependencies to place after the objects being linked to create a
18790 # shared library.
18791 postdeps=$lt_postdeps_GCJ
18792
18793 # The library search path used internally by the compiler when linking
18794 # a shared library.
18795 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18796
18797 # Method to check whether dependent libraries are shared objects.
18798 deplibs_check_method=$lt_deplibs_check_method
18799
18800 # Command to use when deplibs_check_method == file_magic.
18801 file_magic_cmd=$lt_file_magic_cmd
18802
18803 # Flag that allows shared libraries with undefined symbols to be built.
18804 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18805
18806 # Flag that forces no undefined symbols.
18807 no_undefined_flag=$lt_no_undefined_flag_GCJ
18808
18809 # Commands used to finish a libtool library installation in a directory.
18810 finish_cmds=$lt_finish_cmds
18811
18812 # Same as above, but a single script fragment to be evaled but not shown.
18813 finish_eval=$lt_finish_eval
18814
18815 # Take the output of nm and produce a listing of raw symbols and C names.
18816 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18817
18818 # Transform the output of nm in a proper C declaration
18819 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18820
18821 # Transform the output of nm in a C name address pair
18822 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18823
18824 # This is the shared library runtime path variable.
18825 runpath_var=$runpath_var
18826
18827 # This is the shared library path variable.
18828 shlibpath_var=$shlibpath_var
18829
18830 # Is shlibpath searched before the hard-coded library search path?
18831 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18832
18833 # How to hardcode a shared library path into an executable.
18834 hardcode_action=$hardcode_action_GCJ
18835
18836 # Whether we should hardcode library paths into libraries.
18837 hardcode_into_libs=$hardcode_into_libs
18838
18839 # Flag to hardcode \$libdir into a binary during linking.
18840 # This must work even if \$libdir does not exist.
18841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18842
18843 # If ld is used when linking, flag to hardcode \$libdir into
18844 # a binary during linking. This must work even if \$libdir does
18845 # not exist.
18846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18847
18848 # Whether we need a single -rpath flag with a separated argument.
18849 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18850
18851 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18852 # resulting binary.
18853 hardcode_direct=$hardcode_direct_GCJ
18854
18855 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18856 # resulting binary.
18857 hardcode_minus_L=$hardcode_minus_L_GCJ
18858
18859 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18860 # the resulting binary.
18861 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18862
18863 # Set to yes if building a shared library automatically hardcodes DIR into the library
18864 # and all subsequent libraries and executables linked against it.
18865 hardcode_automatic=$hardcode_automatic_GCJ
18866
18867 # Variables whose values should be saved in libtool wrapper scripts and
18868 # restored at relink time.
18869 variables_saved_for_relink="$variables_saved_for_relink"
18870
18871 # Whether libtool must link a program against all its dependency libraries.
18872 link_all_deplibs=$link_all_deplibs_GCJ
18873
18874 # Compile-time system search path for libraries
18875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18876
18877 # Run-time system search path for libraries
18878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18879
18880 # Fix the shell variable \$srcfile for the compiler.
18881 fix_srcfile_path="$fix_srcfile_path_GCJ"
18882
18883 # Set to yes if exported symbols are required.
18884 always_export_symbols=$always_export_symbols_GCJ
18885
18886 # The commands to list exported symbols.
18887 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18888
18889 # The commands to extract the exported symbol list from a shared archive.
18890 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18891
18892 # Symbols that should not be listed in the preloaded symbols.
18893 exclude_expsyms=$lt_exclude_expsyms_GCJ
18894
18895 # Symbols that must always be exported.
18896 include_expsyms=$lt_include_expsyms_GCJ
18897
18898 # ### END LIBTOOL TAG CONFIG: $tagname
18899
18900 __EOF__
18901
18902
18903 else
18904   # If there is no Makefile yet, we rely on a make rule to execute
18905   # `config.status --recheck' to rerun these tests and create the
18906   # libtool script then.
18907   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18908   if test -f "$ltmain_in"; then
18909     test -f Makefile && make "$ltmain"
18910   fi
18911 fi
18912
18913
18914 ac_ext=c
18915 ac_cpp='$CPP $CPPFLAGS'
18916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18919
18920 CC="$lt_save_CC"
18921
18922         else
18923           tagname=""
18924         fi
18925         ;;
18926
18927       RC)
18928
18929
18930 # Source file extension for RC test sources.
18931 ac_ext=rc
18932
18933 # Object file extension for compiled RC test sources.
18934 objext=o
18935 objext_RC=$objext
18936
18937 # Code to be used in simple compile tests
18938 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18939
18940 # Code to be used in simple link tests
18941 lt_simple_link_test_code="$lt_simple_compile_test_code"
18942
18943 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18944
18945 # If no C compiler was specified, use CC.
18946 LTCC=${LTCC-"$CC"}
18947
18948 # If no C compiler flags were specified, use CFLAGS.
18949 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18950
18951 # Allow CC to be a program name with arguments.
18952 compiler=$CC
18953
18954
18955 # save warnings/boilerplate of simple test code
18956 ac_outfile=conftest.$ac_objext
18957 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18958 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18959 _lt_compiler_boilerplate=`cat conftest.err`
18960 $rm conftest*
18961
18962 ac_outfile=conftest.$ac_objext
18963 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18964 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18965 _lt_linker_boilerplate=`cat conftest.err`
18966 $rm conftest*
18967
18968
18969 # Allow CC to be a program name with arguments.
18970 lt_save_CC="$CC"
18971 CC=${RC-"windres"}
18972 compiler=$CC
18973 compiler_RC=$CC
18974 for cc_temp in $compiler""; do
18975   case $cc_temp in
18976     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18977     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18978     \-*) ;;
18979     *) break;;
18980   esac
18981 done
18982 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18983
18984 lt_cv_prog_compiler_c_o_RC=yes
18985
18986 # The else clause should only fire when bootstrapping the
18987 # libtool distribution, otherwise you forgot to ship ltmain.sh
18988 # with your package, and you will get complaints that there are
18989 # no rules to generate ltmain.sh.
18990 if test -f "$ltmain"; then
18991   # See if we are running on zsh, and set the options which allow our commands through
18992   # without removal of \ escapes.
18993   if test -n "${ZSH_VERSION+set}" ; then
18994     setopt NO_GLOB_SUBST
18995   fi
18996   # Now quote all the things that may contain metacharacters while being
18997   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18998   # variables and quote the copies for generation of the libtool script.
18999   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19000     SED SHELL STRIP \
19001     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19002     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19003     deplibs_check_method reload_flag reload_cmds need_locks \
19004     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19005     lt_cv_sys_global_symbol_to_c_name_address \
19006     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19007     old_postinstall_cmds old_postuninstall_cmds \
19008     compiler_RC \
19009     CC_RC \
19010     LD_RC \
19011     lt_prog_compiler_wl_RC \
19012     lt_prog_compiler_pic_RC \
19013     lt_prog_compiler_static_RC \
19014     lt_prog_compiler_no_builtin_flag_RC \
19015     export_dynamic_flag_spec_RC \
19016     thread_safe_flag_spec_RC \
19017     whole_archive_flag_spec_RC \
19018     enable_shared_with_static_runtimes_RC \
19019     old_archive_cmds_RC \
19020     old_archive_from_new_cmds_RC \
19021     predep_objects_RC \
19022     postdep_objects_RC \
19023     predeps_RC \
19024     postdeps_RC \
19025     compiler_lib_search_path_RC \
19026     archive_cmds_RC \
19027     archive_expsym_cmds_RC \
19028     postinstall_cmds_RC \
19029     postuninstall_cmds_RC \
19030     old_archive_from_expsyms_cmds_RC \
19031     allow_undefined_flag_RC \
19032     no_undefined_flag_RC \
19033     export_symbols_cmds_RC \
19034     hardcode_libdir_flag_spec_RC \
19035     hardcode_libdir_flag_spec_ld_RC \
19036     hardcode_libdir_separator_RC \
19037     hardcode_automatic_RC \
19038     module_cmds_RC \
19039     module_expsym_cmds_RC \
19040     lt_cv_prog_compiler_c_o_RC \
19041     exclude_expsyms_RC \
19042     include_expsyms_RC; do
19043
19044     case $var in
19045     old_archive_cmds_RC | \
19046     old_archive_from_new_cmds_RC | \
19047     archive_cmds_RC | \
19048     archive_expsym_cmds_RC | \
19049     module_cmds_RC | \
19050     module_expsym_cmds_RC | \
19051     old_archive_from_expsyms_cmds_RC | \
19052     export_symbols_cmds_RC | \
19053     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19054     postinstall_cmds | postuninstall_cmds | \
19055     old_postinstall_cmds | old_postuninstall_cmds | \
19056     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19057       # Double-quote double-evaled strings.
19058       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19059       ;;
19060     *)
19061       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19062       ;;
19063     esac
19064   done
19065
19066   case $lt_echo in
19067   *'\$0 --fallback-echo"')
19068     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19069     ;;
19070   esac
19071
19072 cfgfile="$ofile"
19073
19074   cat <<__EOF__ >> "$cfgfile"
19075 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19076
19077 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19078
19079 # Shell to use when invoking shell scripts.
19080 SHELL=$lt_SHELL
19081
19082 # Whether or not to build shared libraries.
19083 build_libtool_libs=$enable_shared
19084
19085 # Whether or not to build static libraries.
19086 build_old_libs=$enable_static
19087
19088 # Whether or not to add -lc for building shared libraries.
19089 build_libtool_need_lc=$archive_cmds_need_lc_RC
19090
19091 # Whether or not to disallow shared libs when runtime libs are static
19092 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19093
19094 # Whether or not to optimize for fast installation.
19095 fast_install=$enable_fast_install
19096
19097 # The host system.
19098 host_alias=$host_alias
19099 host=$host
19100 host_os=$host_os
19101
19102 # The build system.
19103 build_alias=$build_alias
19104 build=$build
19105 build_os=$build_os
19106
19107 # An echo program that does not interpret backslashes.
19108 echo=$lt_echo
19109
19110 # The archiver.
19111 AR=$lt_AR
19112 AR_FLAGS=$lt_AR_FLAGS
19113
19114 # A C compiler.
19115 LTCC=$lt_LTCC
19116
19117 # LTCC compiler flags.
19118 LTCFLAGS=$lt_LTCFLAGS
19119
19120 # A language-specific compiler.
19121 CC=$lt_compiler_RC
19122
19123 # Is the compiler the GNU C compiler?
19124 with_gcc=$GCC_RC
19125
19126 # An ERE matcher.
19127 EGREP=$lt_EGREP
19128
19129 # The linker used to build libraries.
19130 LD=$lt_LD_RC
19131
19132 # Whether we need hard or soft links.
19133 LN_S=$lt_LN_S
19134
19135 # A BSD-compatible nm program.
19136 NM=$lt_NM
19137
19138 # A symbol stripping program
19139 STRIP=$lt_STRIP
19140
19141 # Used to examine libraries when file_magic_cmd begins "file"
19142 MAGIC_CMD=$MAGIC_CMD
19143
19144 # Used on cygwin: DLL creation program.
19145 DLLTOOL="$DLLTOOL"
19146
19147 # Used on cygwin: object dumper.
19148 OBJDUMP="$OBJDUMP"
19149
19150 # Used on cygwin: assembler.
19151 AS="$AS"
19152
19153 # The name of the directory that contains temporary libtool files.
19154 objdir=$objdir
19155
19156 # How to create reloadable object files.
19157 reload_flag=$lt_reload_flag
19158 reload_cmds=$lt_reload_cmds
19159
19160 # How to pass a linker flag through the compiler.
19161 wl=$lt_lt_prog_compiler_wl_RC
19162
19163 # Object file suffix (normally "o").
19164 objext="$ac_objext"
19165
19166 # Old archive suffix (normally "a").
19167 libext="$libext"
19168
19169 # Shared library suffix (normally ".so").
19170 shrext_cmds='$shrext_cmds'
19171
19172 # Executable file suffix (normally "").
19173 exeext="$exeext"
19174
19175 # Additional compiler flags for building library objects.
19176 pic_flag=$lt_lt_prog_compiler_pic_RC
19177 pic_mode=$pic_mode
19178
19179 # What is the maximum length of a command?
19180 max_cmd_len=$lt_cv_sys_max_cmd_len
19181
19182 # Does compiler simultaneously support -c and -o options?
19183 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19184
19185 # Must we lock files when doing compilation?
19186 need_locks=$lt_need_locks
19187
19188 # Do we need the lib prefix for modules?
19189 need_lib_prefix=$need_lib_prefix
19190
19191 # Do we need a version for libraries?
19192 need_version=$need_version
19193
19194 # Whether dlopen is supported.
19195 dlopen_support=$enable_dlopen
19196
19197 # Whether dlopen of programs is supported.
19198 dlopen_self=$enable_dlopen_self
19199
19200 # Whether dlopen of statically linked programs is supported.
19201 dlopen_self_static=$enable_dlopen_self_static
19202
19203 # Compiler flag to prevent dynamic linking.
19204 link_static_flag=$lt_lt_prog_compiler_static_RC
19205
19206 # Compiler flag to turn off builtin functions.
19207 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19208
19209 # Compiler flag to allow reflexive dlopens.
19210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19211
19212 # Compiler flag to generate shared objects directly from archives.
19213 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19214
19215 # Compiler flag to generate thread-safe objects.
19216 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19217
19218 # Library versioning type.
19219 version_type=$version_type
19220
19221 # Format of library name prefix.
19222 libname_spec=$lt_libname_spec
19223
19224 # List of archive names.  First name is the real one, the rest are links.
19225 # The last name is the one that the linker finds with -lNAME.
19226 library_names_spec=$lt_library_names_spec
19227
19228 # The coded name of the library, if different from the real name.
19229 soname_spec=$lt_soname_spec
19230
19231 # Commands used to build and install an old-style archive.
19232 RANLIB=$lt_RANLIB
19233 old_archive_cmds=$lt_old_archive_cmds_RC
19234 old_postinstall_cmds=$lt_old_postinstall_cmds
19235 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19236
19237 # Create an old-style archive from a shared archive.
19238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19239
19240 # Create a temporary old-style archive to link instead of a shared archive.
19241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19242
19243 # Commands used to build and install a shared archive.
19244 archive_cmds=$lt_archive_cmds_RC
19245 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19246 postinstall_cmds=$lt_postinstall_cmds
19247 postuninstall_cmds=$lt_postuninstall_cmds
19248
19249 # Commands used to build a loadable module (assumed same as above if empty)
19250 module_cmds=$lt_module_cmds_RC
19251 module_expsym_cmds=$lt_module_expsym_cmds_RC
19252
19253 # Commands to strip libraries.
19254 old_striplib=$lt_old_striplib
19255 striplib=$lt_striplib
19256
19257 # Dependencies to place before the objects being linked to create a
19258 # shared library.
19259 predep_objects=$lt_predep_objects_RC
19260
19261 # Dependencies to place after the objects being linked to create a
19262 # shared library.
19263 postdep_objects=$lt_postdep_objects_RC
19264
19265 # Dependencies to place before the objects being linked to create a
19266 # shared library.
19267 predeps=$lt_predeps_RC
19268
19269 # Dependencies to place after the objects being linked to create a
19270 # shared library.
19271 postdeps=$lt_postdeps_RC
19272
19273 # The library search path used internally by the compiler when linking
19274 # a shared library.
19275 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19276
19277 # Method to check whether dependent libraries are shared objects.
19278 deplibs_check_method=$lt_deplibs_check_method
19279
19280 # Command to use when deplibs_check_method == file_magic.
19281 file_magic_cmd=$lt_file_magic_cmd
19282
19283 # Flag that allows shared libraries with undefined symbols to be built.
19284 allow_undefined_flag=$lt_allow_undefined_flag_RC
19285
19286 # Flag that forces no undefined symbols.
19287 no_undefined_flag=$lt_no_undefined_flag_RC
19288
19289 # Commands used to finish a libtool library installation in a directory.
19290 finish_cmds=$lt_finish_cmds
19291
19292 # Same as above, but a single script fragment to be evaled but not shown.
19293 finish_eval=$lt_finish_eval
19294
19295 # Take the output of nm and produce a listing of raw symbols and C names.
19296 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19297
19298 # Transform the output of nm in a proper C declaration
19299 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19300
19301 # Transform the output of nm in a C name address pair
19302 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19303
19304 # This is the shared library runtime path variable.
19305 runpath_var=$runpath_var
19306
19307 # This is the shared library path variable.
19308 shlibpath_var=$shlibpath_var
19309
19310 # Is shlibpath searched before the hard-coded library search path?
19311 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19312
19313 # How to hardcode a shared library path into an executable.
19314 hardcode_action=$hardcode_action_RC
19315
19316 # Whether we should hardcode library paths into libraries.
19317 hardcode_into_libs=$hardcode_into_libs
19318
19319 # Flag to hardcode \$libdir into a binary during linking.
19320 # This must work even if \$libdir does not exist.
19321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19322
19323 # If ld is used when linking, flag to hardcode \$libdir into
19324 # a binary during linking. This must work even if \$libdir does
19325 # not exist.
19326 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19327
19328 # Whether we need a single -rpath flag with a separated argument.
19329 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19330
19331 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19332 # resulting binary.
19333 hardcode_direct=$hardcode_direct_RC
19334
19335 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19336 # resulting binary.
19337 hardcode_minus_L=$hardcode_minus_L_RC
19338
19339 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19340 # the resulting binary.
19341 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19342
19343 # Set to yes if building a shared library automatically hardcodes DIR into the library
19344 # and all subsequent libraries and executables linked against it.
19345 hardcode_automatic=$hardcode_automatic_RC
19346
19347 # Variables whose values should be saved in libtool wrapper scripts and
19348 # restored at relink time.
19349 variables_saved_for_relink="$variables_saved_for_relink"
19350
19351 # Whether libtool must link a program against all its dependency libraries.
19352 link_all_deplibs=$link_all_deplibs_RC
19353
19354 # Compile-time system search path for libraries
19355 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19356
19357 # Run-time system search path for libraries
19358 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19359
19360 # Fix the shell variable \$srcfile for the compiler.
19361 fix_srcfile_path="$fix_srcfile_path_RC"
19362
19363 # Set to yes if exported symbols are required.
19364 always_export_symbols=$always_export_symbols_RC
19365
19366 # The commands to list exported symbols.
19367 export_symbols_cmds=$lt_export_symbols_cmds_RC
19368
19369 # The commands to extract the exported symbol list from a shared archive.
19370 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19371
19372 # Symbols that should not be listed in the preloaded symbols.
19373 exclude_expsyms=$lt_exclude_expsyms_RC
19374
19375 # Symbols that must always be exported.
19376 include_expsyms=$lt_include_expsyms_RC
19377
19378 # ### END LIBTOOL TAG CONFIG: $tagname
19379
19380 __EOF__
19381
19382
19383 else
19384   # If there is no Makefile yet, we rely on a make rule to execute
19385   # `config.status --recheck' to rerun these tests and create the
19386   # libtool script then.
19387   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19388   if test -f "$ltmain_in"; then
19389     test -f Makefile && make "$ltmain"
19390   fi
19391 fi
19392
19393
19394 ac_ext=c
19395 ac_cpp='$CPP $CPPFLAGS'
19396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19399
19400 CC="$lt_save_CC"
19401
19402         ;;
19403
19404       *)
19405         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19406 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19407    { (exit 1); exit 1; }; }
19408         ;;
19409       esac
19410
19411       # Append the new tag name to the list of available tags.
19412       if test -n "$tagname" ; then
19413       available_tags="$available_tags $tagname"
19414     fi
19415     fi
19416   done
19417   IFS="$lt_save_ifs"
19418
19419   # Now substitute the updated list of available tags.
19420   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19421     mv "${ofile}T" "$ofile"
19422     chmod +x "$ofile"
19423   else
19424     rm -f "${ofile}T"
19425     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19426 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19427    { (exit 1); exit 1; }; }
19428   fi
19429 fi
19430
19431
19432
19433 # This can be used to rebuild libtool when needed
19434 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19435
19436 # Always use our own libtool.
19437 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19438
19439 # Prevent multiple expansion
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452 # Check whether --with-system-libtool was given.
19453 if test "${with_system_libtool+set}" = set; then
19454   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19455 set dummy libtool; ac_word=$2
19456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19458 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19459   echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461   case $LIBTOOL in
19462   [\\/]* | ?:[\\/]*)
19463   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19464   ;;
19465   *)
19466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19467 as_dummy="$PATH:/usr/local/bin"
19468 for as_dir in $as_dummy
19469 do
19470   IFS=$as_save_IFS
19471   test -z "$as_dir" && as_dir=.
19472   for ac_exec_ext in '' $ac_executable_extensions; do
19473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19474     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19476     break 2
19477   fi
19478 done
19479 done
19480 IFS=$as_save_IFS
19481
19482   ;;
19483 esac
19484 fi
19485 LIBTOOL=$ac_cv_path_LIBTOOL
19486 if test -n "$LIBTOOL"; then
19487   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19488 echo "${ECHO_T}$LIBTOOL" >&6; }
19489 else
19490   { echo "$as_me:$LINENO: result: no" >&5
19491 echo "${ECHO_T}no" >&6; }
19492 fi
19493
19494
19495 else
19496
19497   LIBTOOL="`pwd`/libtool"
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512 fi
19513
19514
19515
19516
19517 # Check whether --enable-strict-dependencies was given.
19518 if test "${enable_strict_dependencies+set}" = set; then
19519   enableval=$enable_strict_dependencies;
19520 fi
19521
19522
19523 docdir='${datadir}/doc/freeradius'
19524 { echo "$as_me:$LINENO: checking docdir" >&5
19525 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19526
19527 # Check whether --with-docdir was given.
19528 if test "${with_docdir+set}" = set; then
19529   withval=$with_docdir;  case "$withval" in
19530     no)
19531         docdir=no
19532         ;;
19533     yes)
19534         ;;
19535     [\\/$]* | ?:[\\/]* )
19536         docdir="$withval"
19537         ;;
19538     *)
19539         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19540 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19541    { (exit 1); exit 1; }; }
19542         ;;
19543   esac
19544
19545 fi
19546
19547
19548 { echo "$as_me:$LINENO: result: $docdir" >&5
19549 echo "${ECHO_T}$docdir" >&6; }
19550 if test "x$docdir" = xno; then
19551         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19552 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19553 fi
19554
19555 logdir='${localstatedir}/log/radius'
19556 { echo "$as_me:$LINENO: checking logdir" >&5
19557 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19558
19559 # Check whether --with-logdir was given.
19560 if test "${with_logdir+set}" = set; then
19561   withval=$with_logdir;  case "$withval" in
19562     no)
19563         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19564 echo "$as_me: error: Need logdir" >&2;}
19565    { (exit 1); exit 1; }; }
19566         ;;
19567     yes)
19568         ;;
19569     [\\/$]* | ?:[\\/]* )
19570         logdir="$withval"
19571         ;;
19572     *)
19573         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19574 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19575    { (exit 1); exit 1; }; }
19576         ;;
19577   esac
19578
19579 fi
19580
19581
19582 { echo "$as_me:$LINENO: result: $logdir" >&5
19583 echo "${ECHO_T}$logdir" >&6; }
19584
19585 radacctdir='${logdir}/radacct'
19586 { echo "$as_me:$LINENO: checking radacctdir" >&5
19587 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19588
19589 # Check whether --with-radacctdir was given.
19590 if test "${with_radacctdir+set}" = set; then
19591   withval=$with_radacctdir;  case "$withval" in
19592     no)
19593         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19594 echo "$as_me: error: Need radacctdir" >&2;}
19595    { (exit 1); exit 1; }; }
19596         ;;
19597     yes)
19598         ;;
19599     [\\/$]* | ?:[\\/]* )
19600         radacctdir="$withval"
19601         ;;
19602     *)
19603         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19604 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19605    { (exit 1); exit 1; }; }
19606         ;;
19607   esac
19608
19609 fi
19610
19611
19612 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19613 echo "${ECHO_T}$radacctdir" >&6; }
19614
19615 raddbdir='${sysconfdir}/raddb'
19616 { echo "$as_me:$LINENO: checking raddbdir" >&5
19617 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19618
19619 # Check whether --with-raddbdir was given.
19620 if test "${with_raddbdir+set}" = set; then
19621   withval=$with_raddbdir;  case "$withval" in
19622     no)
19623         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19624 echo "$as_me: error: Need raddbdir" >&2;}
19625    { (exit 1); exit 1; }; }
19626         ;;
19627     yes)
19628         ;;
19629     [\\/$]* | ?:[\\/]* )
19630         raddbdir="$withval"
19631         ;;
19632     *)
19633         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19634 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19635    { (exit 1); exit 1; }; }
19636         ;;
19637   esac
19638
19639 fi
19640
19641
19642 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19643 echo "${ECHO_T}$raddbdir" >&6; }
19644
19645 ASCEND_BINARY=yes
19646
19647 # Check whether --with-ascend-binary was given.
19648 if test "${with_ascend_binary+set}" = set; then
19649   withval=$with_ascend_binary;  case "$withval" in
19650     yes)
19651         ;;
19652     *)
19653         ASCEND_BINARY=""
19654   esac
19655
19656 fi
19657
19658 if test "X$ASCEND_BINARY" = "Xyes"; then
19659
19660 cat >>confdefs.h <<\_ACEOF
19661 #define ASCEND_BINARY
19662 _ACEOF
19663
19664 fi
19665
19666 WITH_THREADS=yes
19667
19668 # Check whether --with-threads was given.
19669 if test "${with_threads+set}" = set; then
19670   withval=$with_threads;  case "$withval" in
19671     yes)
19672         ;;
19673     *)
19674         WITH_THREADS=""
19675   esac
19676
19677 fi
19678
19679
19680 WITH_SNMP=yes
19681
19682 # Check whether --with-snmp was given.
19683 if test "${with_snmp+set}" = set; then
19684   withval=$with_snmp;  case "$withval" in
19685     yes)
19686         ;;
19687     *)
19688         WITH_SNMP=no
19689   esac
19690
19691 fi
19692
19693
19694
19695 # Check whether --with-snmp-include-dir was given.
19696 if test "${with_snmp_include_dir+set}" = set; then
19697   withval=$with_snmp_include_dir;  case "$withval" in
19698     *)
19699         ;;
19700   esac
19701
19702 fi
19703
19704
19705 WITH_VMPS=yes
19706
19707 # Check whether --with-vmps was given.
19708 if test "${with_vmps+set}" = set; then
19709   withval=$with_vmps;  case "$withval" in
19710     yes)
19711         ;;
19712     *)
19713         WITH_VMPS=no
19714   esac
19715
19716 fi
19717
19718 if test "x$WITH_VMPS" = "xyes"; then
19719
19720 cat >>confdefs.h <<\_ACEOF
19721 #define WITH_VMPS
19722 _ACEOF
19723
19724 fi
19725
19726
19727 STATIC_MODULES=
19728
19729 # Check whether --with-static_modules was given.
19730 if test "${with_static_modules+set}" = set; then
19731   withval=$with_static_modules;
19732   for i in $withval; do
19733     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19734   done
19735
19736 fi
19737
19738
19739 MODULES=
19740
19741 # Check whether --with-modules was given.
19742 if test "${with_modules+set}" = set; then
19743   withval=$with_modules;
19744  for i in $withval; do
19745    MODULES="$MODULES $i"
19746  done
19747
19748 fi
19749
19750
19751 # Check whether --enable-developer was given.
19752 if test "${enable_developer+set}" = set; then
19753   enableval=$enable_developer;  case "$enableval" in
19754     no)
19755         developer=no
19756         ;;
19757     *)
19758         developer=yes
19759   esac
19760
19761 fi
19762
19763
19764 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19765     developer="yes"
19766 fi
19767
19768 EXPERIMENTAL=
19769
19770 # Check whether --with-experimental-modules was given.
19771 if test "${with_experimental_modules+set}" = set; then
19772   withval=$with_experimental_modules;  case "$withval" in
19773     yes)
19774         EXPERIMENTAL=yes
19775         ;;
19776     *)
19777   esac
19778
19779 fi
19780
19781
19782 OPENSSL_INCLUDE_DIR=
19783
19784 # Check whether --with-openssl-includes was given.
19785 if test "${with_openssl_includes+set}" = set; then
19786   withval=$with_openssl_includes;  case "$withval" in
19787     *) OPENSSL_INCLUDE_DIR="$withval"
19788         ;;
19789   esac
19790
19791 fi
19792
19793
19794 OPENSSL_LIB_DIR=
19795
19796 # Check whether --with-openssl-libraries was given.
19797 if test "${with_openssl_libraries+set}" = set; then
19798   withval=$with_openssl_libraries;  case "$withval" in
19799     *) OPENSSL_LIB_DIR="$withval"
19800         ;;
19801   esac
19802
19803 fi
19804
19805
19806
19807
19808 # Check whether --with-rlm-FOO-lib-dir was given.
19809 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19810   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19811     *)
19812         ;;
19813   esac
19814
19815 fi
19816
19817
19818
19819 # Check whether --with-rlm-FOO-include-dir was given.
19820 if test "${with_rlm_FOO_include_dir+set}" = set; then
19821   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19822     *)
19823         ;;
19824   esac
19825
19826 fi
19827
19828
19829
19830 WITH_UDPFROMTO=no
19831
19832 # Check whether --with-udpfromto was given.
19833 if test "${with_udpfromto+set}" = set; then
19834   withval=$with_udpfromto;  case "$withval" in
19835     yes)
19836         WITH_UDPFROMTO=yes
19837         ;;
19838     *)
19839         WITH_UDPFROMTO=no
19840   esac
19841
19842 fi
19843
19844
19845 if test "x$WITH_UDPFROMTO" = "xyes"; then
19846
19847 cat >>confdefs.h <<\_ACEOF
19848 #define WITH_UDPFROMTO
19849 _ACEOF
19850
19851 fi
19852
19853
19854 CHECKRAD=checkrad.pl
19855 # Extract the first word of "perl", so it can be a program name with args.
19856 set dummy perl; ac_word=$2
19857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19859 if test "${ac_cv_path_PERL+set}" = set; then
19860   echo $ECHO_N "(cached) $ECHO_C" >&6
19861 else
19862   case $PERL in
19863   [\\/]* | ?:[\\/]*)
19864   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19865   ;;
19866   *)
19867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19868 for as_dir in $PATH
19869 do
19870   IFS=$as_save_IFS
19871   test -z "$as_dir" && as_dir=.
19872   for ac_exec_ext in '' $ac_executable_extensions; do
19873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19874     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19876     break 2
19877   fi
19878 done
19879 done
19880 IFS=$as_save_IFS
19881
19882   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19883   ;;
19884 esac
19885 fi
19886 PERL=$ac_cv_path_PERL
19887 if test -n "$PERL"; then
19888   { echo "$as_me:$LINENO: result: $PERL" >&5
19889 echo "${ECHO_T}$PERL" >&6; }
19890 else
19891   { echo "$as_me:$LINENO: result: no" >&5
19892 echo "${ECHO_T}no" >&6; }
19893 fi
19894
19895
19896 if test "x$ac_cv_path_PERL" = "x"; then
19897   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19898 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19899 fi
19900 # Extract the first word of "snmpget", so it can be a program name with args.
19901 set dummy snmpget; ac_word=$2
19902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19904 if test "${ac_cv_path_SNMPGET+set}" = set; then
19905   echo $ECHO_N "(cached) $ECHO_C" >&6
19906 else
19907   case $SNMPGET in
19908   [\\/]* | ?:[\\/]*)
19909   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19910   ;;
19911   *)
19912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19913 for as_dir in $PATH
19914 do
19915   IFS=$as_save_IFS
19916   test -z "$as_dir" && as_dir=.
19917   for ac_exec_ext in '' $ac_executable_extensions; do
19918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19919     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19921     break 2
19922   fi
19923 done
19924 done
19925 IFS=$as_save_IFS
19926
19927   ;;
19928 esac
19929 fi
19930 SNMPGET=$ac_cv_path_SNMPGET
19931 if test -n "$SNMPGET"; then
19932   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19933 echo "${ECHO_T}$SNMPGET" >&6; }
19934 else
19935   { echo "$as_me:$LINENO: result: no" >&5
19936 echo "${ECHO_T}no" >&6; }
19937 fi
19938
19939
19940 if test "x$ac_cv_path_SNMPGET" = "x"; then
19941   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19942 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19943 fi
19944
19945 # Extract the first word of "snmpwalk", so it can be a program name with args.
19946 set dummy snmpwalk; ac_word=$2
19947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19949 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19950   echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952   case $SNMPWALK in
19953   [\\/]* | ?:[\\/]*)
19954   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19955   ;;
19956   *)
19957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19958 for as_dir in $PATH
19959 do
19960   IFS=$as_save_IFS
19961   test -z "$as_dir" && as_dir=.
19962   for ac_exec_ext in '' $ac_executable_extensions; do
19963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19964     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19966     break 2
19967   fi
19968 done
19969 done
19970 IFS=$as_save_IFS
19971
19972   ;;
19973 esac
19974 fi
19975 SNMPWALK=$ac_cv_path_SNMPWALK
19976 if test -n "$SNMPWALK"; then
19977   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19978 echo "${ECHO_T}$SNMPWALK" >&6; }
19979 else
19980   { echo "$as_me:$LINENO: result: no" >&5
19981 echo "${ECHO_T}no" >&6; }
19982 fi
19983
19984
19985 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19986   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19987 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19988 fi
19989
19990 # Extract the first word of "rusers", so it can be a program name with args.
19991 set dummy rusers; ac_word=$2
19992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19994 if test "${ac_cv_path_RUSERS+set}" = set; then
19995   echo $ECHO_N "(cached) $ECHO_C" >&6
19996 else
19997   case $RUSERS in
19998   [\\/]* | ?:[\\/]*)
19999   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20000   ;;
20001   *)
20002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20003 for as_dir in $PATH
20004 do
20005   IFS=$as_save_IFS
20006   test -z "$as_dir" && as_dir=.
20007   for ac_exec_ext in '' $ac_executable_extensions; do
20008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20009     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20011     break 2
20012   fi
20013 done
20014 done
20015 IFS=$as_save_IFS
20016
20017   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20018   ;;
20019 esac
20020 fi
20021 RUSERS=$ac_cv_path_RUSERS
20022 if test -n "$RUSERS"; then
20023   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20024 echo "${ECHO_T}$RUSERS" >&6; }
20025 else
20026   { echo "$as_me:$LINENO: result: no" >&5
20027 echo "${ECHO_T}no" >&6; }
20028 fi
20029
20030
20031
20032 missing_dir=`cd $ac_aux_dir && pwd`
20033 # expand $ac_aux_dir to an absolute path
20034 am_aux_dir=`cd $ac_aux_dir && pwd`
20035
20036 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20037 # Use eval to expand $SHELL
20038 if eval "$MISSING --run true"; then
20039   am_missing_run="$MISSING --run "
20040 else
20041   am_missing_run=
20042   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20043 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20044 fi
20045
20046
20047 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20048
20049
20050 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20051
20052
20053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20054
20055
20056 # Extract the first word of "locate", so it can be a program name with args.
20057 set dummy locate; ac_word=$2
20058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20060 if test "${ac_cv_path_LOCATE+set}" = set; then
20061   echo $ECHO_N "(cached) $ECHO_C" >&6
20062 else
20063   case $LOCATE in
20064   [\\/]* | ?:[\\/]*)
20065   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20066   ;;
20067   *)
20068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20069 for as_dir in $PATH
20070 do
20071   IFS=$as_save_IFS
20072   test -z "$as_dir" && as_dir=.
20073   for ac_exec_ext in '' $ac_executable_extensions; do
20074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20075     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20077     break 2
20078   fi
20079 done
20080 done
20081 IFS=$as_save_IFS
20082
20083   ;;
20084 esac
20085 fi
20086 LOCATE=$ac_cv_path_LOCATE
20087 if test -n "$LOCATE"; then
20088   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20089 echo "${ECHO_T}$LOCATE" >&6; }
20090 else
20091   { echo "$as_me:$LINENO: result: no" >&5
20092 echo "${ECHO_T}no" >&6; }
20093 fi
20094
20095
20096 # Extract the first word of "dirname", so it can be a program name with args.
20097 set dummy dirname; ac_word=$2
20098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20100 if test "${ac_cv_path_DIRNAME+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   case $DIRNAME in
20104   [\\/]* | ?:[\\/]*)
20105   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20106   ;;
20107   *)
20108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20109 for as_dir in $PATH
20110 do
20111   IFS=$as_save_IFS
20112   test -z "$as_dir" && as_dir=.
20113   for ac_exec_ext in '' $ac_executable_extensions; do
20114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20115     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20117     break 2
20118   fi
20119 done
20120 done
20121 IFS=$as_save_IFS
20122
20123   ;;
20124 esac
20125 fi
20126 DIRNAME=$ac_cv_path_DIRNAME
20127 if test -n "$DIRNAME"; then
20128   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20129 echo "${ECHO_T}$DIRNAME" >&6; }
20130 else
20131   { echo "$as_me:$LINENO: result: no" >&5
20132 echo "${ECHO_T}no" >&6; }
20133 fi
20134
20135
20136 # Extract the first word of "grep", so it can be a program name with args.
20137 set dummy grep; ac_word=$2
20138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20140 if test "${ac_cv_path_GREP+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   case $GREP in
20144   [\\/]* | ?:[\\/]*)
20145   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20146   ;;
20147   *)
20148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20149 for as_dir in $PATH
20150 do
20151   IFS=$as_save_IFS
20152   test -z "$as_dir" && as_dir=.
20153   for ac_exec_ext in '' $ac_executable_extensions; do
20154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20155     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20157     break 2
20158   fi
20159 done
20160 done
20161 IFS=$as_save_IFS
20162
20163   ;;
20164 esac
20165 fi
20166 GREP=$ac_cv_path_GREP
20167 if test -n "$GREP"; then
20168   { echo "$as_me:$LINENO: result: $GREP" >&5
20169 echo "${ECHO_T}$GREP" >&6; }
20170 else
20171   { echo "$as_me:$LINENO: result: no" >&5
20172 echo "${ECHO_T}no" >&6; }
20173 fi
20174
20175
20176
20177
20178 old_CFLAGS=$CFLAGS
20179 if test "x$WITH_THREADS" = "xyes"; then
20180   if test $ac_cv_prog_suncc = "yes"; then
20181     CFLAGS="$CFLAGS -mt"
20182   fi
20183
20184
20185 for ac_header in pthread.h
20186 do
20187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20189   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20192   echo $ECHO_N "(cached) $ECHO_C" >&6
20193 fi
20194 ac_res=`eval echo '${'$as_ac_Header'}'`
20195                { echo "$as_me:$LINENO: result: $ac_res" >&5
20196 echo "${ECHO_T}$ac_res" >&6; }
20197 else
20198   # Is the header compilable?
20199 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20201 cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h.  */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h.  */
20207 $ac_includes_default
20208 #include <$ac_header>
20209 _ACEOF
20210 rm -f conftest.$ac_objext
20211 if { (ac_try="$ac_compile"
20212 case "(($ac_try" in
20213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214   *) ac_try_echo=$ac_try;;
20215 esac
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217   (eval "$ac_compile") 2>conftest.er1
20218   ac_status=$?
20219   grep -v '^ *+' conftest.er1 >conftest.err
20220   rm -f conftest.er1
20221   cat conftest.err >&5
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); } && {
20224          test -z "$ac_c_werror_flag" ||
20225          test ! -s conftest.err
20226        } && test -s conftest.$ac_objext; then
20227   ac_header_compiler=yes
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232         ac_header_compiler=no
20233 fi
20234
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20237 echo "${ECHO_T}$ac_header_compiler" >&6; }
20238
20239 # Is the header present?
20240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248 #include <$ac_header>
20249 _ACEOF
20250 if { (ac_try="$ac_cpp conftest.$ac_ext"
20251 case "(($ac_try" in
20252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253   *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20257   ac_status=$?
20258   grep -v '^ *+' conftest.er1 >conftest.err
20259   rm -f conftest.er1
20260   cat conftest.err >&5
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); } >/dev/null && {
20263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20264          test ! -s conftest.err
20265        }; then
20266   ac_header_preproc=yes
20267 else
20268   echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271   ac_header_preproc=no
20272 fi
20273
20274 rm -f conftest.err conftest.$ac_ext
20275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20276 echo "${ECHO_T}$ac_header_preproc" >&6; }
20277
20278 # So?  What about this header?
20279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20280   yes:no: )
20281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20285     ac_header_preproc=yes
20286     ;;
20287   no:yes:* )
20288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20300
20301     ;;
20302 esac
20303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20306   echo $ECHO_N "(cached) $ECHO_C" >&6
20307 else
20308   eval "$as_ac_Header=\$ac_header_preproc"
20309 fi
20310 ac_res=`eval echo '${'$as_ac_Header'}'`
20311                { echo "$as_me:$LINENO: result: $ac_res" >&5
20312 echo "${ECHO_T}$ac_res" >&6; }
20313
20314 fi
20315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20316   cat >>confdefs.h <<_ACEOF
20317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20318 _ACEOF
20319
20320 else
20321    WITH_THREADS="no"
20322 fi
20323
20324 done
20325
20326
20327   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20328 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20329 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   ac_check_lib_save_LIBS=$LIBS
20333 LIBS="-lpthread  $LIBS"
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h.  */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h.  */
20340
20341 /* Override any GCC internal prototype to avoid an error.
20342    Use char because int might match the return type of a GCC
20343    builtin and then its argument prototype would still apply.  */
20344 #ifdef __cplusplus
20345 extern "C"
20346 #endif
20347 char pthread_create ();
20348 int
20349 main ()
20350 {
20351 return pthread_create ();
20352   ;
20353   return 0;
20354 }
20355 _ACEOF
20356 rm -f conftest.$ac_objext conftest$ac_exeext
20357 if { (ac_try="$ac_link"
20358 case "(($ac_try" in
20359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360   *) ac_try_echo=$ac_try;;
20361 esac
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363   (eval "$ac_link") 2>conftest.er1
20364   ac_status=$?
20365   grep -v '^ *+' conftest.er1 >conftest.err
20366   rm -f conftest.er1
20367   cat conftest.err >&5
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } && {
20370          test -z "$ac_c_werror_flag" ||
20371          test ! -s conftest.err
20372        } && test -s conftest$ac_exeext &&
20373        $as_test_x conftest$ac_exeext; then
20374   ac_cv_lib_pthread_pthread_create=yes
20375 else
20376   echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379         ac_cv_lib_pthread_pthread_create=no
20380 fi
20381
20382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20383       conftest$ac_exeext conftest.$ac_ext
20384 LIBS=$ac_check_lib_save_LIBS
20385 fi
20386 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20387 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20388 if test $ac_cv_lib_pthread_pthread_create = yes; then
20389    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20390                   LIBS="$LIBS -lpthread"
20391 else
20392   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20393 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20394 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20395   echo $ECHO_N "(cached) $ECHO_C" >&6
20396 else
20397   ac_check_lib_save_LIBS=$LIBS
20398 LIBS="-lc_r  $LIBS"
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405
20406 /* Override any GCC internal prototype to avoid an error.
20407    Use char because int might match the return type of a GCC
20408    builtin and then its argument prototype would still apply.  */
20409 #ifdef __cplusplus
20410 extern "C"
20411 #endif
20412 char pthread_create ();
20413 int
20414 main ()
20415 {
20416 return pthread_create ();
20417   ;
20418   return 0;
20419 }
20420 _ACEOF
20421 rm -f conftest.$ac_objext conftest$ac_exeext
20422 if { (ac_try="$ac_link"
20423 case "(($ac_try" in
20424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425   *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428   (eval "$ac_link") 2>conftest.er1
20429   ac_status=$?
20430   grep -v '^ *+' conftest.er1 >conftest.err
20431   rm -f conftest.er1
20432   cat conftest.err >&5
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); } && {
20435          test -z "$ac_c_werror_flag" ||
20436          test ! -s conftest.err
20437        } && test -s conftest$ac_exeext &&
20438        $as_test_x conftest$ac_exeext; then
20439   ac_cv_lib_c_r_pthread_create=yes
20440 else
20441   echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20443
20444         ac_cv_lib_c_r_pthread_create=no
20445 fi
20446
20447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20448       conftest$ac_exeext conftest.$ac_ext
20449 LIBS=$ac_check_lib_save_LIBS
20450 fi
20451 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20452 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20453 if test $ac_cv_lib_c_r_pthread_create = yes; then
20454    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20455 else
20456    WITH_THREADS="no"
20457
20458 fi
20459
20460
20461 fi
20462
20463 fi
20464
20465 if test "x$WITH_THREADS" != "xyes"; then
20466   CFLAGS=$old_CFLAGS
20467   ac_cv_header_pthread_h="no"
20468   WITH_THREADS=no
20469 else
20470
20471   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20472 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20473 if test "${ac_cv_search_sem_init+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476   ac_func_search_save_LIBS=$LIBS
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483
20484 /* Override any GCC internal prototype to avoid an error.
20485    Use char because int might match the return type of a GCC
20486    builtin and then its argument prototype would still apply.  */
20487 #ifdef __cplusplus
20488 extern "C"
20489 #endif
20490 char sem_init ();
20491 int
20492 main ()
20493 {
20494 return sem_init ();
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 for ac_lib in '' pthread sem posix4 rt semaphore; do
20500   if test -z "$ac_lib"; then
20501     ac_res="none required"
20502   else
20503     ac_res=-l$ac_lib
20504     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20505   fi
20506   rm -f conftest.$ac_objext conftest$ac_exeext
20507 if { (ac_try="$ac_link"
20508 case "(($ac_try" in
20509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510   *) ac_try_echo=$ac_try;;
20511 esac
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513   (eval "$ac_link") 2>conftest.er1
20514   ac_status=$?
20515   grep -v '^ *+' conftest.er1 >conftest.err
20516   rm -f conftest.er1
20517   cat conftest.err >&5
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } && {
20520          test -z "$ac_c_werror_flag" ||
20521          test ! -s conftest.err
20522        } && test -s conftest$ac_exeext &&
20523        $as_test_x conftest$ac_exeext; then
20524   ac_cv_search_sem_init=$ac_res
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529
20530 fi
20531
20532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20533       conftest$ac_exeext
20534   if test "${ac_cv_search_sem_init+set}" = set; then
20535   break
20536 fi
20537 done
20538 if test "${ac_cv_search_sem_init+set}" = set; then
20539   :
20540 else
20541   ac_cv_search_sem_init=no
20542 fi
20543 rm conftest.$ac_ext
20544 LIBS=$ac_func_search_save_LIBS
20545 fi
20546 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20547 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20548 ac_res=$ac_cv_search_sem_init
20549 if test "$ac_res" != no; then
20550   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20551
20552 else
20553   { { 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
20554 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;}
20555    { (exit 1); exit 1; }; }
20556
20557 fi
20558
20559 fi
20560
20561
20562 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20563 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20564 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20565   echo $ECHO_N "(cached) $ECHO_C" >&6
20566 else
20567   ac_check_lib_save_LIBS=$LIBS
20568 LIBS="-lsocket  $LIBS"
20569 cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575
20576 /* Override any GCC internal prototype to avoid an error.
20577    Use char because int might match the return type of a GCC
20578    builtin and then its argument prototype would still apply.  */
20579 #ifdef __cplusplus
20580 extern "C"
20581 #endif
20582 char getsockname ();
20583 int
20584 main ()
20585 {
20586 return getsockname ();
20587   ;
20588   return 0;
20589 }
20590 _ACEOF
20591 rm -f conftest.$ac_objext conftest$ac_exeext
20592 if { (ac_try="$ac_link"
20593 case "(($ac_try" in
20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595   *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598   (eval "$ac_link") 2>conftest.er1
20599   ac_status=$?
20600   grep -v '^ *+' conftest.er1 >conftest.err
20601   rm -f conftest.er1
20602   cat conftest.err >&5
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); } && {
20605          test -z "$ac_c_werror_flag" ||
20606          test ! -s conftest.err
20607        } && test -s conftest$ac_exeext &&
20608        $as_test_x conftest$ac_exeext; then
20609   ac_cv_lib_socket_getsockname=yes
20610 else
20611   echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20613
20614         ac_cv_lib_socket_getsockname=no
20615 fi
20616
20617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20618       conftest$ac_exeext conftest.$ac_ext
20619 LIBS=$ac_check_lib_save_LIBS
20620 fi
20621 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20622 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20623 if test $ac_cv_lib_socket_getsockname = yes; then
20624   cat >>confdefs.h <<_ACEOF
20625 #define HAVE_LIBSOCKET 1
20626 _ACEOF
20627
20628   LIBS="-lsocket $LIBS"
20629
20630 fi
20631
20632
20633
20634 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20635 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20636 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639   ac_check_lib_save_LIBS=$LIBS
20640 LIBS="-lresolv  $LIBS"
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h.  */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h.  */
20647
20648 /* Override any GCC internal prototype to avoid an error.
20649    Use char because int might match the return type of a GCC
20650    builtin and then its argument prototype would still apply.  */
20651 #ifdef __cplusplus
20652 extern "C"
20653 #endif
20654 char inet_aton ();
20655 int
20656 main ()
20657 {
20658 return inet_aton ();
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (ac_try="$ac_link"
20665 case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670   (eval "$ac_link") 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } && {
20677          test -z "$ac_c_werror_flag" ||
20678          test ! -s conftest.err
20679        } && test -s conftest$ac_exeext &&
20680        $as_test_x conftest$ac_exeext; then
20681   ac_cv_lib_resolv_inet_aton=yes
20682 else
20683   echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686         ac_cv_lib_resolv_inet_aton=no
20687 fi
20688
20689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20690       conftest$ac_exeext conftest.$ac_ext
20691 LIBS=$ac_check_lib_save_LIBS
20692 fi
20693 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20694 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20695 if test $ac_cv_lib_resolv_inet_aton = yes; then
20696   cat >>confdefs.h <<_ACEOF
20697 #define HAVE_LIBRESOLV 1
20698 _ACEOF
20699
20700   LIBS="-lresolv $LIBS"
20701
20702 fi
20703
20704
20705
20706 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20707 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20708 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20709   echo $ECHO_N "(cached) $ECHO_C" >&6
20710 else
20711   ac_check_lib_save_LIBS=$LIBS
20712 LIBS="-lnsl  $LIBS"
20713 cat >conftest.$ac_ext <<_ACEOF
20714 /* confdefs.h.  */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h.  */
20719
20720 /* Override any GCC internal prototype to avoid an error.
20721    Use char because int might match the return type of a GCC
20722    builtin and then its argument prototype would still apply.  */
20723 #ifdef __cplusplus
20724 extern "C"
20725 #endif
20726 char inet_ntoa ();
20727 int
20728 main ()
20729 {
20730 return inet_ntoa ();
20731   ;
20732   return 0;
20733 }
20734 _ACEOF
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (ac_try="$ac_link"
20737 case "(($ac_try" in
20738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739   *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742   (eval "$ac_link") 2>conftest.er1
20743   ac_status=$?
20744   grep -v '^ *+' conftest.er1 >conftest.err
20745   rm -f conftest.er1
20746   cat conftest.err >&5
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } && {
20749          test -z "$ac_c_werror_flag" ||
20750          test ! -s conftest.err
20751        } && test -s conftest$ac_exeext &&
20752        $as_test_x conftest$ac_exeext; then
20753   ac_cv_lib_nsl_inet_ntoa=yes
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758         ac_cv_lib_nsl_inet_ntoa=no
20759 fi
20760
20761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20762       conftest$ac_exeext conftest.$ac_ext
20763 LIBS=$ac_check_lib_save_LIBS
20764 fi
20765 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20766 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20767 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20768   cat >>confdefs.h <<_ACEOF
20769 #define HAVE_LIBNSL 1
20770 _ACEOF
20771
20772   LIBS="-lnsl $LIBS"
20773
20774 fi
20775
20776
20777 OPENSSL_LIBS=
20778 old_LIBS=$LIBS
20779 if test "x$OPENSSL_LIB_DIR" != "x"; then
20780     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20781 fi
20782 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20783 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20784 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787   ac_check_lib_save_LIBS=$LIBS
20788 LIBS="-lcrypto  $LIBS"
20789 cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795
20796 /* Override any GCC internal prototype to avoid an error.
20797    Use char because int might match the return type of a GCC
20798    builtin and then its argument prototype would still apply.  */
20799 #ifdef __cplusplus
20800 extern "C"
20801 #endif
20802 char DH_new ();
20803 int
20804 main ()
20805 {
20806 return DH_new ();
20807   ;
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest.$ac_objext conftest$ac_exeext
20812 if { (ac_try="$ac_link"
20813 case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818   (eval "$ac_link") 2>conftest.er1
20819   ac_status=$?
20820   grep -v '^ *+' conftest.er1 >conftest.err
20821   rm -f conftest.er1
20822   cat conftest.err >&5
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); } && {
20825          test -z "$ac_c_werror_flag" ||
20826          test ! -s conftest.err
20827        } && test -s conftest$ac_exeext &&
20828        $as_test_x conftest$ac_exeext; then
20829   ac_cv_lib_crypto_DH_new=yes
20830 else
20831   echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834         ac_cv_lib_crypto_DH_new=no
20835 fi
20836
20837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20838       conftest$ac_exeext conftest.$ac_ext
20839 LIBS=$ac_check_lib_save_LIBS
20840 fi
20841 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20842 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20843 if test $ac_cv_lib_crypto_DH_new = yes; then
20844
20845
20846 cat >>confdefs.h <<\_ACEOF
20847 #define HAVE_LIBCRYPTO 1
20848 _ACEOF
20849
20850         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20851 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20852 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20853   echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855   ac_check_lib_save_LIBS=$LIBS
20856 LIBS="-lssl  $LIBS"
20857 cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863
20864 /* Override any GCC internal prototype to avoid an error.
20865    Use char because int might match the return type of a GCC
20866    builtin and then its argument prototype would still apply.  */
20867 #ifdef __cplusplus
20868 extern "C"
20869 #endif
20870 char SSL_new ();
20871 int
20872 main ()
20873 {
20874 return SSL_new ();
20875   ;
20876   return 0;
20877 }
20878 _ACEOF
20879 rm -f conftest.$ac_objext conftest$ac_exeext
20880 if { (ac_try="$ac_link"
20881 case "(($ac_try" in
20882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883   *) ac_try_echo=$ac_try;;
20884 esac
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886   (eval "$ac_link") 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } && {
20893          test -z "$ac_c_werror_flag" ||
20894          test ! -s conftest.err
20895        } && test -s conftest$ac_exeext &&
20896        $as_test_x conftest$ac_exeext; then
20897   ac_cv_lib_ssl_SSL_new=yes
20898 else
20899   echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20901
20902         ac_cv_lib_ssl_SSL_new=no
20903 fi
20904
20905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20906       conftest$ac_exeext conftest.$ac_ext
20907 LIBS=$ac_check_lib_save_LIBS
20908 fi
20909 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20910 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20911 if test $ac_cv_lib_ssl_SSL_new = yes; then
20912
20913
20914 cat >>confdefs.h <<\_ACEOF
20915 #define HAVE_LIBSSL 1
20916 _ACEOF
20917
20918                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20919                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20920                 fi
20921                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20922
20923 fi
20924
20925
20926 fi
20927
20928 LIBS=$old_LIBS
20929
20930
20931 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20932 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20933 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20934   echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936   ac_check_lib_save_LIBS=$LIBS
20937 LIBS="-lws2_32  $LIBS"
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944
20945 /* Override any GCC internal prototype to avoid an error.
20946    Use char because int might match the return type of a GCC
20947    builtin and then its argument prototype would still apply.  */
20948 #ifdef __cplusplus
20949 extern "C"
20950 #endif
20951 char htonl ();
20952 int
20953 main ()
20954 {
20955 return htonl ();
20956   ;
20957   return 0;
20958 }
20959 _ACEOF
20960 rm -f conftest.$ac_objext conftest$ac_exeext
20961 if { (ac_try="$ac_link"
20962 case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967   (eval "$ac_link") 2>conftest.er1
20968   ac_status=$?
20969   grep -v '^ *+' conftest.er1 >conftest.err
20970   rm -f conftest.er1
20971   cat conftest.err >&5
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } && {
20974          test -z "$ac_c_werror_flag" ||
20975          test ! -s conftest.err
20976        } && test -s conftest$ac_exeext &&
20977        $as_test_x conftest$ac_exeext; then
20978   ac_cv_lib_ws2_32_htonl=yes
20979 else
20980   echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20982
20983         ac_cv_lib_ws2_32_htonl=no
20984 fi
20985
20986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20987       conftest$ac_exeext conftest.$ac_ext
20988 LIBS=$ac_check_lib_save_LIBS
20989 fi
20990 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
20991 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
20992 if test $ac_cv_lib_ws2_32_htonl = yes; then
20993   cat >>confdefs.h <<_ACEOF
20994 #define HAVE_LIBWS2_32 1
20995 _ACEOF
20996
20997   LIBS="-lws2_32 $LIBS"
20998
20999 fi
21000
21001
21002 PCAP_LIBS=
21003 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21004 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21005 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21006   echo $ECHO_N "(cached) $ECHO_C" >&6
21007 else
21008   ac_check_lib_save_LIBS=$LIBS
21009 LIBS="-lpcap  $LIBS"
21010 cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h.  */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h.  */
21016
21017 /* Override any GCC internal prototype to avoid an error.
21018    Use char because int might match the return type of a GCC
21019    builtin and then its argument prototype would still apply.  */
21020 #ifdef __cplusplus
21021 extern "C"
21022 #endif
21023 char pcap_open_live ();
21024 int
21025 main ()
21026 {
21027 return pcap_open_live ();
21028   ;
21029   return 0;
21030 }
21031 _ACEOF
21032 rm -f conftest.$ac_objext conftest$ac_exeext
21033 if { (ac_try="$ac_link"
21034 case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_link") 2>conftest.er1
21040   ac_status=$?
21041   grep -v '^ *+' conftest.er1 >conftest.err
21042   rm -f conftest.er1
21043   cat conftest.err >&5
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } && {
21046          test -z "$ac_c_werror_flag" ||
21047          test ! -s conftest.err
21048        } && test -s conftest$ac_exeext &&
21049        $as_test_x conftest$ac_exeext; then
21050   ac_cv_lib_pcap_pcap_open_live=yes
21051 else
21052   echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055         ac_cv_lib_pcap_pcap_open_live=no
21056 fi
21057
21058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21059       conftest$ac_exeext conftest.$ac_ext
21060 LIBS=$ac_check_lib_save_LIBS
21061 fi
21062 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21063 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21064 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21065    PCAP_LIBS="-lpcap"
21066
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_LIBPCAP 1
21069 _ACEOF
21070
21071
21072 else
21073    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21074 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21075 fi
21076
21077
21078
21079 case "$host" in
21080 *-interix*)
21081         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21082         ;;
21083 *-darwin*)
21084         CFLAGS="$CFLAGS -DDARWIN"
21085         ;;
21086 esac
21087
21088
21089
21090
21091
21092
21093 ac_header_dirent=no
21094 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21095   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21096 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21097 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21099   echo $ECHO_N "(cached) $ECHO_C" >&6
21100 else
21101   cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h.  */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h.  */
21107 #include <sys/types.h>
21108 #include <$ac_hdr>
21109
21110 int
21111 main ()
21112 {
21113 if ((DIR *) 0)
21114 return 0;
21115   ;
21116   return 0;
21117 }
21118 _ACEOF
21119 rm -f conftest.$ac_objext
21120 if { (ac_try="$ac_compile"
21121 case "(($ac_try" in
21122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123   *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126   (eval "$ac_compile") 2>conftest.er1
21127   ac_status=$?
21128   grep -v '^ *+' conftest.er1 >conftest.err
21129   rm -f conftest.er1
21130   cat conftest.err >&5
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); } && {
21133          test -z "$ac_c_werror_flag" ||
21134          test ! -s conftest.err
21135        } && test -s conftest.$ac_objext; then
21136   eval "$as_ac_Header=yes"
21137 else
21138   echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141         eval "$as_ac_Header=no"
21142 fi
21143
21144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21145 fi
21146 ac_res=`eval echo '${'$as_ac_Header'}'`
21147                { echo "$as_me:$LINENO: result: $ac_res" >&5
21148 echo "${ECHO_T}$ac_res" >&6; }
21149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21150   cat >>confdefs.h <<_ACEOF
21151 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21152 _ACEOF
21153
21154 ac_header_dirent=$ac_hdr; break
21155 fi
21156
21157 done
21158 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21159 if test $ac_header_dirent = dirent.h; then
21160   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21161 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21162 if test "${ac_cv_search_opendir+set}" = set; then
21163   echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165   ac_func_search_save_LIBS=$LIBS
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h.  */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h.  */
21172
21173 /* Override any GCC internal prototype to avoid an error.
21174    Use char because int might match the return type of a GCC
21175    builtin and then its argument prototype would still apply.  */
21176 #ifdef __cplusplus
21177 extern "C"
21178 #endif
21179 char opendir ();
21180 int
21181 main ()
21182 {
21183 return opendir ();
21184   ;
21185   return 0;
21186 }
21187 _ACEOF
21188 for ac_lib in '' dir; do
21189   if test -z "$ac_lib"; then
21190     ac_res="none required"
21191   else
21192     ac_res=-l$ac_lib
21193     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21194   fi
21195   rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (ac_try="$ac_link"
21197 case "(($ac_try" in
21198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199   *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202   (eval "$ac_link") 2>conftest.er1
21203   ac_status=$?
21204   grep -v '^ *+' conftest.er1 >conftest.err
21205   rm -f conftest.er1
21206   cat conftest.err >&5
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); } && {
21209          test -z "$ac_c_werror_flag" ||
21210          test ! -s conftest.err
21211        } && test -s conftest$ac_exeext &&
21212        $as_test_x conftest$ac_exeext; then
21213   ac_cv_search_opendir=$ac_res
21214 else
21215   echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218
21219 fi
21220
21221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21222       conftest$ac_exeext
21223   if test "${ac_cv_search_opendir+set}" = set; then
21224   break
21225 fi
21226 done
21227 if test "${ac_cv_search_opendir+set}" = set; then
21228   :
21229 else
21230   ac_cv_search_opendir=no
21231 fi
21232 rm conftest.$ac_ext
21233 LIBS=$ac_func_search_save_LIBS
21234 fi
21235 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21236 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21237 ac_res=$ac_cv_search_opendir
21238 if test "$ac_res" != no; then
21239   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21240
21241 fi
21242
21243 else
21244   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21245 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21246 if test "${ac_cv_search_opendir+set}" = set; then
21247   echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249   ac_func_search_save_LIBS=$LIBS
21250 cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h.  */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h.  */
21256
21257 /* Override any GCC internal prototype to avoid an error.
21258    Use char because int might match the return type of a GCC
21259    builtin and then its argument prototype would still apply.  */
21260 #ifdef __cplusplus
21261 extern "C"
21262 #endif
21263 char opendir ();
21264 int
21265 main ()
21266 {
21267 return opendir ();
21268   ;
21269   return 0;
21270 }
21271 _ACEOF
21272 for ac_lib in '' x; do
21273   if test -z "$ac_lib"; then
21274     ac_res="none required"
21275   else
21276     ac_res=-l$ac_lib
21277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21278   fi
21279   rm -f conftest.$ac_objext conftest$ac_exeext
21280 if { (ac_try="$ac_link"
21281 case "(($ac_try" in
21282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283   *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286   (eval "$ac_link") 2>conftest.er1
21287   ac_status=$?
21288   grep -v '^ *+' conftest.er1 >conftest.err
21289   rm -f conftest.er1
21290   cat conftest.err >&5
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } && {
21293          test -z "$ac_c_werror_flag" ||
21294          test ! -s conftest.err
21295        } && test -s conftest$ac_exeext &&
21296        $as_test_x conftest$ac_exeext; then
21297   ac_cv_search_opendir=$ac_res
21298 else
21299   echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21306       conftest$ac_exeext
21307   if test "${ac_cv_search_opendir+set}" = set; then
21308   break
21309 fi
21310 done
21311 if test "${ac_cv_search_opendir+set}" = set; then
21312   :
21313 else
21314   ac_cv_search_opendir=no
21315 fi
21316 rm conftest.$ac_ext
21317 LIBS=$ac_func_search_save_LIBS
21318 fi
21319 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21320 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21321 ac_res=$ac_cv_search_opendir
21322 if test "$ac_res" != no; then
21323   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21324
21325 fi
21326
21327 fi
21328
21329 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21331 if test "${ac_cv_header_stdc+set}" = set; then
21332   echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334   cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h.  */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h.  */
21340 #include <stdlib.h>
21341 #include <stdarg.h>
21342 #include <string.h>
21343 #include <float.h>
21344
21345 int
21346 main ()
21347 {
21348
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357   *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360   (eval "$ac_compile") 2>conftest.er1
21361   ac_status=$?
21362   grep -v '^ *+' conftest.er1 >conftest.err
21363   rm -f conftest.er1
21364   cat conftest.err >&5
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); } && {
21367          test -z "$ac_c_werror_flag" ||
21368          test ! -s conftest.err
21369        } && test -s conftest.$ac_objext; then
21370   ac_cv_header_stdc=yes
21371 else
21372   echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375         ac_cv_header_stdc=no
21376 fi
21377
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379
21380 if test $ac_cv_header_stdc = yes; then
21381   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21382   cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 #include <string.h>
21389
21390 _ACEOF
21391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21392   $EGREP "memchr" >/dev/null 2>&1; then
21393   :
21394 else
21395   ac_cv_header_stdc=no
21396 fi
21397 rm -f conftest*
21398
21399 fi
21400
21401 if test $ac_cv_header_stdc = yes; then
21402   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21403   cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409 #include <stdlib.h>
21410
21411 _ACEOF
21412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21413   $EGREP "free" >/dev/null 2>&1; then
21414   :
21415 else
21416   ac_cv_header_stdc=no
21417 fi
21418 rm -f conftest*
21419
21420 fi
21421
21422 if test $ac_cv_header_stdc = yes; then
21423   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21424   if test "$cross_compiling" = yes; then
21425   :
21426 else
21427   cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 #include <ctype.h>
21434 #include <stdlib.h>
21435 #if ((' ' & 0x0FF) == 0x020)
21436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21438 #else
21439 # define ISLOWER(c) \
21440                    (('a' <= (c) && (c) <= 'i') \
21441                      || ('j' <= (c) && (c) <= 'r') \
21442                      || ('s' <= (c) && (c) <= 'z'))
21443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21444 #endif
21445
21446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21447 int
21448 main ()
21449 {
21450   int i;
21451   for (i = 0; i < 256; i++)
21452     if (XOR (islower (i), ISLOWER (i))
21453         || toupper (i) != TOUPPER (i))
21454       return 2;
21455   return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest$ac_exeext
21459 if { (ac_try="$ac_link"
21460 case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_link") 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21469   { (case "(($ac_try" in
21470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471   *) ac_try_echo=$ac_try;;
21472 esac
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474   (eval "$ac_try") 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); }; }; then
21478   :
21479 else
21480   echo "$as_me: program exited with status $ac_status" >&5
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21483
21484 ( exit $ac_status )
21485 ac_cv_header_stdc=no
21486 fi
21487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21488 fi
21489
21490
21491 fi
21492 fi
21493 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21494 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21495 if test $ac_cv_header_stdc = yes; then
21496
21497 cat >>confdefs.h <<\_ACEOF
21498 #define STDC_HEADERS 1
21499 _ACEOF
21500
21501 fi
21502
21503 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21504 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21505 if test "${ac_cv_header_time+set}" = set; then
21506   echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508   cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h.  */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h.  */
21514 #include <sys/types.h>
21515 #include <sys/time.h>
21516 #include <time.h>
21517
21518 int
21519 main ()
21520 {
21521 if ((struct tm *) 0)
21522 return 0;
21523   ;
21524   return 0;
21525 }
21526 _ACEOF
21527 rm -f conftest.$ac_objext
21528 if { (ac_try="$ac_compile"
21529 case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_compile") 2>conftest.er1
21535   ac_status=$?
21536   grep -v '^ *+' conftest.er1 >conftest.err
21537   rm -f conftest.er1
21538   cat conftest.err >&5
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); } && {
21541          test -z "$ac_c_werror_flag" ||
21542          test ! -s conftest.err
21543        } && test -s conftest.$ac_objext; then
21544   ac_cv_header_time=yes
21545 else
21546   echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21548
21549         ac_cv_header_time=no
21550 fi
21551
21552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553 fi
21554 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21555 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21556 if test $ac_cv_header_time = yes; then
21557
21558 cat >>confdefs.h <<\_ACEOF
21559 #define TIME_WITH_SYS_TIME 1
21560 _ACEOF
21561
21562 fi
21563
21564 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21565 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21566 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21567   echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569   cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575 #include <sys/types.h>
21576 #include <sys/wait.h>
21577 #ifndef WEXITSTATUS
21578 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21579 #endif
21580 #ifndef WIFEXITED
21581 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21582 #endif
21583
21584 int
21585 main ()
21586 {
21587   int s;
21588   wait (&s);
21589   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21590   ;
21591   return 0;
21592 }
21593 _ACEOF
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598   *) ac_try_echo=$ac_try;;
21599 esac
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601   (eval "$ac_compile") 2>conftest.er1
21602   ac_status=$?
21603   grep -v '^ *+' conftest.er1 >conftest.err
21604   rm -f conftest.er1
21605   cat conftest.err >&5
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); } && {
21608          test -z "$ac_c_werror_flag" ||
21609          test ! -s conftest.err
21610        } && test -s conftest.$ac_objext; then
21611   ac_cv_header_sys_wait_h=yes
21612 else
21613   echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616         ac_cv_header_sys_wait_h=no
21617 fi
21618
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 fi
21621 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21622 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21623 if test $ac_cv_header_sys_wait_h = yes; then
21624
21625 cat >>confdefs.h <<\_ACEOF
21626 #define HAVE_SYS_WAIT_H 1
21627 _ACEOF
21628
21629 fi
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664 for ac_header in \
21665         unistd.h \
21666         crypt.h \
21667         errno.h \
21668         resource.h \
21669         sys/resource.h \
21670         getopt.h \
21671         malloc.h \
21672         utmp.h \
21673         utmpx.h \
21674         signal.h \
21675         sys/select.h \
21676         syslog.h \
21677         inttypes.h \
21678         stdint.h \
21679         stdio.h \
21680         netdb.h \
21681         semaphore.h \
21682         arpa/inet.h \
21683         netinet/in.h \
21684         sys/types.h \
21685         sys/socket.h \
21686         winsock.h \
21687         sys/time.h \
21688         sys/wait.h \
21689         sys/security.h \
21690         fcntl.h \
21691         sys/fcntl.h \
21692         prot.h \
21693         pwd.h \
21694         grp.h \
21695         sia.h \
21696         siad.h
21697
21698 do
21699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21701   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21704   echo $ECHO_N "(cached) $ECHO_C" >&6
21705 fi
21706 ac_res=`eval echo '${'$as_ac_Header'}'`
21707                { echo "$as_me:$LINENO: result: $ac_res" >&5
21708 echo "${ECHO_T}$ac_res" >&6; }
21709 else
21710   # Is the header compilable?
21711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719 $ac_includes_default
21720 #include <$ac_header>
21721 _ACEOF
21722 rm -f conftest.$ac_objext
21723 if { (ac_try="$ac_compile"
21724 case "(($ac_try" in
21725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726   *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729   (eval "$ac_compile") 2>conftest.er1
21730   ac_status=$?
21731   grep -v '^ *+' conftest.er1 >conftest.err
21732   rm -f conftest.er1
21733   cat conftest.err >&5
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); } && {
21736          test -z "$ac_c_werror_flag" ||
21737          test ! -s conftest.err
21738        } && test -s conftest.$ac_objext; then
21739   ac_header_compiler=yes
21740 else
21741   echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21743
21744         ac_header_compiler=no
21745 fi
21746
21747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21749 echo "${ECHO_T}$ac_header_compiler" >&6; }
21750
21751 # Is the header present?
21752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21753 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
21761 _ACEOF
21762 if { (ac_try="$ac_cpp conftest.$ac_ext"
21763 case "(($ac_try" in
21764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765   *) ac_try_echo=$ac_try;;
21766 esac
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21769   ac_status=$?
21770   grep -v '^ *+' conftest.er1 >conftest.err
21771   rm -f conftest.er1
21772   cat conftest.err >&5
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); } >/dev/null && {
21775          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21776          test ! -s conftest.err
21777        }; then
21778   ac_header_preproc=yes
21779 else
21780   echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783   ac_header_preproc=no
21784 fi
21785
21786 rm -f conftest.err conftest.$ac_ext
21787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21788 echo "${ECHO_T}$ac_header_preproc" >&6; }
21789
21790 # So?  What about this header?
21791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21792   yes:no: )
21793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21797     ac_header_preproc=yes
21798     ;;
21799   no:yes:* )
21800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21812
21813     ;;
21814 esac
21815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21818   echo $ECHO_N "(cached) $ECHO_C" >&6
21819 else
21820   eval "$as_ac_Header=\$ac_header_preproc"
21821 fi
21822 ac_res=`eval echo '${'$as_ac_Header'}'`
21823                { echo "$as_me:$LINENO: result: $ac_res" >&5
21824 echo "${ECHO_T}$ac_res" >&6; }
21825
21826 fi
21827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21828   cat >>confdefs.h <<_ACEOF
21829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21830 _ACEOF
21831
21832 fi
21833
21834 done
21835
21836
21837
21838 for ac_header in net/if.h
21839 do
21840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21844   echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846   cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852 #ifdef HAVE_SYS_SOCKET_H
21853 # include <sys/socket.h>
21854 # endif
21855
21856
21857 #include <$ac_header>
21858 _ACEOF
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863   *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866   (eval "$ac_compile") 2>conftest.er1
21867   ac_status=$?
21868   grep -v '^ *+' conftest.er1 >conftest.err
21869   rm -f conftest.er1
21870   cat conftest.err >&5
21871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872   (exit $ac_status); } && {
21873          test -z "$ac_c_werror_flag" ||
21874          test ! -s conftest.err
21875        } && test -s conftest.$ac_objext; then
21876   eval "$as_ac_Header=yes"
21877 else
21878   echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881         eval "$as_ac_Header=no"
21882 fi
21883
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 fi
21886 ac_res=`eval echo '${'$as_ac_Header'}'`
21887                { echo "$as_me:$LINENO: result: $ac_res" >&5
21888 echo "${ECHO_T}$ac_res" >&6; }
21889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21890   cat >>confdefs.h <<_ACEOF
21891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21892 _ACEOF
21893
21894 fi
21895
21896 done
21897
21898
21899 REGEX=no
21900 if test "${ac_cv_header_regex_h+set}" = set; then
21901   { echo "$as_me:$LINENO: checking for regex.h" >&5
21902 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21903 if test "${ac_cv_header_regex_h+set}" = set; then
21904   echo $ECHO_N "(cached) $ECHO_C" >&6
21905 fi
21906 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21907 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21908 else
21909   # Is the header compilable?
21910 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21911 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21912 cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h.  */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h.  */
21918 $ac_includes_default
21919 #include <regex.h>
21920 _ACEOF
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925   *) ac_try_echo=$ac_try;;
21926 esac
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928   (eval "$ac_compile") 2>conftest.er1
21929   ac_status=$?
21930   grep -v '^ *+' conftest.er1 >conftest.err
21931   rm -f conftest.er1
21932   cat conftest.err >&5
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); } && {
21935          test -z "$ac_c_werror_flag" ||
21936          test ! -s conftest.err
21937        } && test -s conftest.$ac_objext; then
21938   ac_header_compiler=yes
21939 else
21940   echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943         ac_header_compiler=no
21944 fi
21945
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21948 echo "${ECHO_T}$ac_header_compiler" >&6; }
21949
21950 # Is the header present?
21951 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21952 echo $ECHO_N "checking regex.h presence... $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 #include <regex.h>
21960 _ACEOF
21961 if { (ac_try="$ac_cpp conftest.$ac_ext"
21962 case "(($ac_try" in
21963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964   *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21968   ac_status=$?
21969   grep -v '^ *+' conftest.er1 >conftest.err
21970   rm -f conftest.er1
21971   cat conftest.err >&5
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); } >/dev/null && {
21974          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21975          test ! -s conftest.err
21976        }; then
21977   ac_header_preproc=yes
21978 else
21979   echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21981
21982   ac_header_preproc=no
21983 fi
21984
21985 rm -f conftest.err conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21987 echo "${ECHO_T}$ac_header_preproc" >&6; }
21988
21989 # So?  What about this header?
21990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21991   yes:no: )
21992     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21993 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21994     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21995 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21996     ac_header_preproc=yes
21997     ;;
21998   no:yes:* )
21999     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22000 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22001     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22002 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22003     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22004 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22005     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22006 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22007     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22008 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22009     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22010 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22011
22012     ;;
22013 esac
22014 { echo "$as_me:$LINENO: checking for regex.h" >&5
22015 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22016 if test "${ac_cv_header_regex_h+set}" = set; then
22017   echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019   ac_cv_header_regex_h=$ac_header_preproc
22020 fi
22021 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22022 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22023
22024 fi
22025 if test $ac_cv_header_regex_h = yes; then
22026
22027 cat >>confdefs.h <<\_ACEOF
22028 #define HAVE_REGEX_H
22029 _ACEOF
22030
22031 fi
22032
22033
22034 if test "x$ac_cv_header_regex_h" = "xyes"; then
22035   REGEX_EXTENDED=no
22036   REGEX=yes
22037   cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h.  */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h.  */
22043 #include <regex.h>
22044      #ifdef REG_EXTENDED
22045        yes
22046      #endif
22047
22048 _ACEOF
22049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22050   $EGREP "yes" >/dev/null 2>&1; then
22051
22052 cat >>confdefs.h <<\_ACEOF
22053 #define HAVE_REG_EXTENDED
22054 _ACEOF
22055  REGEX_EXTENDED=yes
22056 fi
22057 rm -f conftest*
22058
22059 fi
22060
22061
22062
22063 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22064 then
22065
22066 cat >>confdefs.h <<\_ACEOF
22067 #define OSFC2
22068 _ACEOF
22069
22070 fi
22071
22072 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22073 then
22074
22075 cat >>confdefs.h <<\_ACEOF
22076 #define OSFSIA
22077 _ACEOF
22078
22079 fi
22080
22081 OPENSSL_INCLUDE="-DNO_OPENSSL"
22082 if test "x$OPENSSL_LIBS" = "x"; then
22083     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22084 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22085 else
22086     old_CPPFLAGS=$CPPFLAGS
22087     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22088         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22089     fi
22090         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22091
22092
22093
22094
22095 for ac_header in \
22096         openssl/ssl.h \
22097         openssl/crypto.h \
22098         openssl/err.h \
22099         openssl/engine.h
22100 do
22101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22106   echo $ECHO_N "(cached) $ECHO_C" >&6
22107 fi
22108 ac_res=`eval echo '${'$as_ac_Header'}'`
22109                { echo "$as_me:$LINENO: result: $ac_res" >&5
22110 echo "${ECHO_T}$ac_res" >&6; }
22111 else
22112   # Is the header compilable?
22113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22115 cat >conftest.$ac_ext <<_ACEOF
22116 /* confdefs.h.  */
22117 _ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h.  */
22121 $ac_includes_default
22122 #include <$ac_header>
22123 _ACEOF
22124 rm -f conftest.$ac_objext
22125 if { (ac_try="$ac_compile"
22126 case "(($ac_try" in
22127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128   *) ac_try_echo=$ac_try;;
22129 esac
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131   (eval "$ac_compile") 2>conftest.er1
22132   ac_status=$?
22133   grep -v '^ *+' conftest.er1 >conftest.err
22134   rm -f conftest.er1
22135   cat conftest.err >&5
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); } && {
22138          test -z "$ac_c_werror_flag" ||
22139          test ! -s conftest.err
22140        } && test -s conftest.$ac_objext; then
22141   ac_header_compiler=yes
22142 else
22143   echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22145
22146         ac_header_compiler=no
22147 fi
22148
22149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22151 echo "${ECHO_T}$ac_header_compiler" >&6; }
22152
22153 # Is the header present?
22154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22156 cat >conftest.$ac_ext <<_ACEOF
22157 /* confdefs.h.  */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h.  */
22162 #include <$ac_header>
22163 _ACEOF
22164 if { (ac_try="$ac_cpp conftest.$ac_ext"
22165 case "(($ac_try" in
22166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167   *) ac_try_echo=$ac_try;;
22168 esac
22169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22171   ac_status=$?
22172   grep -v '^ *+' conftest.er1 >conftest.err
22173   rm -f conftest.er1
22174   cat conftest.err >&5
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); } >/dev/null && {
22177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22178          test ! -s conftest.err
22179        }; then
22180   ac_header_preproc=yes
22181 else
22182   echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22184
22185   ac_header_preproc=no
22186 fi
22187
22188 rm -f conftest.err conftest.$ac_ext
22189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22190 echo "${ECHO_T}$ac_header_preproc" >&6; }
22191
22192 # So?  What about this header?
22193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22194   yes:no: )
22195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22199     ac_header_preproc=yes
22200     ;;
22201   no:yes:* )
22202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22214
22215     ;;
22216 esac
22217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22220   echo $ECHO_N "(cached) $ECHO_C" >&6
22221 else
22222   eval "$as_ac_Header=\$ac_header_preproc"
22223 fi
22224 ac_res=`eval echo '${'$as_ac_Header'}'`
22225                { echo "$as_me:$LINENO: result: $ac_res" >&5
22226 echo "${ECHO_T}$ac_res" >&6; }
22227
22228 fi
22229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22230   cat >>confdefs.h <<_ACEOF
22231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22232 _ACEOF
22233
22234 else
22235   OPENSSL_LIBS=
22236
22237 fi
22238
22239 done
22240
22241     if test "x$OPENSSL_LIBS" != "x"; then
22242         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22243 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22244         cat >conftest.$ac_ext <<_ACEOF
22245 /* confdefs.h.  */
22246 _ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h.  */
22250 #include <openssl/crypto.h>
22251              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22252              yes
22253              #endif
22254
22255 _ACEOF
22256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22257   $EGREP "yes" >/dev/null 2>&1; then
22258   goodssl="yes"
22259 fi
22260 rm -f conftest*
22261
22262         if test "x$goodssl" != "xyes"; then
22263             { echo "$as_me:$LINENO: result: no" >&5
22264 echo "${ECHO_T}no" >&6; }
22265             OPENSSL_LIBS=
22266         else
22267             { echo "$as_me:$LINENO: result: yes" >&5
22268 echo "${ECHO_T}yes" >&6; }
22269             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22270                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22271             else
22272                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22273             fi
22274         fi
22275     fi
22276     CPPFLAGS=$old_CPPFLAGS
22277 fi
22278
22279
22280 export OPENSSL_LIBS
22281
22282 if test "x$PCAP_LIBS" = x; then
22283     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22284 echo "$as_me: skipping test for pcap.h." >&6;}
22285 else
22286     if test "${ac_cv_header_pcap_h+set}" = set; then
22287   { echo "$as_me:$LINENO: checking for pcap.h" >&5
22288 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22289 if test "${ac_cv_header_pcap_h+set}" = set; then
22290   echo $ECHO_N "(cached) $ECHO_C" >&6
22291 fi
22292 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22293 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22294 else
22295   # Is the header compilable?
22296 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22297 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22298 cat >conftest.$ac_ext <<_ACEOF
22299 /* confdefs.h.  */
22300 _ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h.  */
22304 $ac_includes_default
22305 #include <pcap.h>
22306 _ACEOF
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311   *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314   (eval "$ac_compile") 2>conftest.er1
22315   ac_status=$?
22316   grep -v '^ *+' conftest.er1 >conftest.err
22317   rm -f conftest.er1
22318   cat conftest.err >&5
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); } && {
22321          test -z "$ac_c_werror_flag" ||
22322          test ! -s conftest.err
22323        } && test -s conftest.$ac_objext; then
22324   ac_header_compiler=yes
22325 else
22326   echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329         ac_header_compiler=no
22330 fi
22331
22332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22334 echo "${ECHO_T}$ac_header_compiler" >&6; }
22335
22336 # Is the header present?
22337 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22338 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22339 cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345 #include <pcap.h>
22346 _ACEOF
22347 if { (ac_try="$ac_cpp conftest.$ac_ext"
22348 case "(($ac_try" in
22349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350   *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22354   ac_status=$?
22355   grep -v '^ *+' conftest.er1 >conftest.err
22356   rm -f conftest.er1
22357   cat conftest.err >&5
22358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359   (exit $ac_status); } >/dev/null && {
22360          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22361          test ! -s conftest.err
22362        }; then
22363   ac_header_preproc=yes
22364 else
22365   echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22367
22368   ac_header_preproc=no
22369 fi
22370
22371 rm -f conftest.err conftest.$ac_ext
22372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22373 echo "${ECHO_T}$ac_header_preproc" >&6; }
22374
22375 # So?  What about this header?
22376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22377   yes:no: )
22378     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22379 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22380     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22381 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22382     ac_header_preproc=yes
22383     ;;
22384   no:yes:* )
22385     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22386 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22387     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
22388 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
22389     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22390 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22391     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
22392 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22393     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22394 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22395     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22396 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22397
22398     ;;
22399 esac
22400 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22401 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22402 if test "${ac_cv_header_pcap_h+set}" = set; then
22403   echo $ECHO_N "(cached) $ECHO_C" >&6
22404 else
22405   ac_cv_header_pcap_h=$ac_header_preproc
22406 fi
22407 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22408 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22409
22410 fi
22411 if test $ac_cv_header_pcap_h = yes; then
22412
22413 cat >>confdefs.h <<\_ACEOF
22414 #define HAVE_PCAP_H 1
22415 _ACEOF
22416
22417 else
22418    PCAP_LIBS=
22419         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22420 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22421
22422 fi
22423
22424
22425 fi
22426
22427
22428
22429 { echo "$as_me:$LINENO: checking for off_t" >&5
22430 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22431 if test "${ac_cv_type_off_t+set}" = set; then
22432   echo $ECHO_N "(cached) $ECHO_C" >&6
22433 else
22434   cat >conftest.$ac_ext <<_ACEOF
22435 /* confdefs.h.  */
22436 _ACEOF
22437 cat confdefs.h >>conftest.$ac_ext
22438 cat >>conftest.$ac_ext <<_ACEOF
22439 /* end confdefs.h.  */
22440 $ac_includes_default
22441 typedef off_t ac__type_new_;
22442 int
22443 main ()
22444 {
22445 if ((ac__type_new_ *) 0)
22446   return 0;
22447 if (sizeof (ac__type_new_))
22448   return 0;
22449   ;
22450   return 0;
22451 }
22452 _ACEOF
22453 rm -f conftest.$ac_objext
22454 if { (ac_try="$ac_compile"
22455 case "(($ac_try" in
22456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457   *) ac_try_echo=$ac_try;;
22458 esac
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460   (eval "$ac_compile") 2>conftest.er1
22461   ac_status=$?
22462   grep -v '^ *+' conftest.er1 >conftest.err
22463   rm -f conftest.er1
22464   cat conftest.err >&5
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); } && {
22467          test -z "$ac_c_werror_flag" ||
22468          test ! -s conftest.err
22469        } && test -s conftest.$ac_objext; then
22470   ac_cv_type_off_t=yes
22471 else
22472   echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22474
22475         ac_cv_type_off_t=no
22476 fi
22477
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 fi
22480 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22481 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22482 if test $ac_cv_type_off_t = yes; then
22483   :
22484 else
22485
22486 cat >>confdefs.h <<_ACEOF
22487 #define off_t long int
22488 _ACEOF
22489
22490 fi
22491
22492 { echo "$as_me:$LINENO: checking for pid_t" >&5
22493 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22494 if test "${ac_cv_type_pid_t+set}" = set; then
22495   echo $ECHO_N "(cached) $ECHO_C" >&6
22496 else
22497   cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h.  */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h.  */
22503 $ac_includes_default
22504 typedef pid_t ac__type_new_;
22505 int
22506 main ()
22507 {
22508 if ((ac__type_new_ *) 0)
22509   return 0;
22510 if (sizeof (ac__type_new_))
22511   return 0;
22512   ;
22513   return 0;
22514 }
22515 _ACEOF
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520   *) ac_try_echo=$ac_try;;
22521 esac
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523   (eval "$ac_compile") 2>conftest.er1
22524   ac_status=$?
22525   grep -v '^ *+' conftest.er1 >conftest.err
22526   rm -f conftest.er1
22527   cat conftest.err >&5
22528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529   (exit $ac_status); } && {
22530          test -z "$ac_c_werror_flag" ||
22531          test ! -s conftest.err
22532        } && test -s conftest.$ac_objext; then
22533   ac_cv_type_pid_t=yes
22534 else
22535   echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22537
22538         ac_cv_type_pid_t=no
22539 fi
22540
22541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22542 fi
22543 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22544 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22545 if test $ac_cv_type_pid_t = yes; then
22546   :
22547 else
22548
22549 cat >>confdefs.h <<_ACEOF
22550 #define pid_t int
22551 _ACEOF
22552
22553 fi
22554
22555 { echo "$as_me:$LINENO: checking for size_t" >&5
22556 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22557 if test "${ac_cv_type_size_t+set}" = set; then
22558   echo $ECHO_N "(cached) $ECHO_C" >&6
22559 else
22560   cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h.  */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h.  */
22566 $ac_includes_default
22567 typedef size_t ac__type_new_;
22568 int
22569 main ()
22570 {
22571 if ((ac__type_new_ *) 0)
22572   return 0;
22573 if (sizeof (ac__type_new_))
22574   return 0;
22575   ;
22576   return 0;
22577 }
22578 _ACEOF
22579 rm -f conftest.$ac_objext
22580 if { (ac_try="$ac_compile"
22581 case "(($ac_try" in
22582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583   *) ac_try_echo=$ac_try;;
22584 esac
22585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22586   (eval "$ac_compile") 2>conftest.er1
22587   ac_status=$?
22588   grep -v '^ *+' conftest.er1 >conftest.err
22589   rm -f conftest.er1
22590   cat conftest.err >&5
22591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592   (exit $ac_status); } && {
22593          test -z "$ac_c_werror_flag" ||
22594          test ! -s conftest.err
22595        } && test -s conftest.$ac_objext; then
22596   ac_cv_type_size_t=yes
22597 else
22598   echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22600
22601         ac_cv_type_size_t=no
22602 fi
22603
22604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22605 fi
22606 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22607 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22608 if test $ac_cv_type_size_t = yes; then
22609   :
22610 else
22611
22612 cat >>confdefs.h <<_ACEOF
22613 #define size_t unsigned int
22614 _ACEOF
22615
22616 fi
22617
22618 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22619 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22620 if test "${ac_cv_type_uid_t+set}" = set; then
22621   echo $ECHO_N "(cached) $ECHO_C" >&6
22622 else
22623   cat >conftest.$ac_ext <<_ACEOF
22624 /* confdefs.h.  */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h.  */
22629 #include <sys/types.h>
22630
22631 _ACEOF
22632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22633   $EGREP "uid_t" >/dev/null 2>&1; then
22634   ac_cv_type_uid_t=yes
22635 else
22636   ac_cv_type_uid_t=no
22637 fi
22638 rm -f conftest*
22639
22640 fi
22641 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22642 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22643 if test $ac_cv_type_uid_t = no; then
22644
22645 cat >>confdefs.h <<\_ACEOF
22646 #define uid_t int
22647 _ACEOF
22648
22649
22650 cat >>confdefs.h <<\_ACEOF
22651 #define gid_t int
22652 _ACEOF
22653
22654 fi
22655
22656
22657
22658   { echo "$as_me:$LINENO: checking for socklen_t" >&5
22659 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22660 if test "${ac_cv_type_socklen_t+set}" = set; then
22661   echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22663    ac_cv_type_socklen_t=no
22664       cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h.  */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h.  */
22670 #ifdef HAVE_SYS_TYPES_H
22671 #include <sys/types.h>
22672 #endif
22673 #ifdef HAVE_SYS_SOCKET_H
22674 #include <sys/socket.h>
22675 #endif
22676
22677 int
22678 main ()
22679 {
22680 socklen_t foo
22681   ;
22682   return 0;
22683 }
22684 _ACEOF
22685 rm -f conftest.$ac_objext
22686 if { (ac_try="$ac_compile"
22687 case "(($ac_try" in
22688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689   *) ac_try_echo=$ac_try;;
22690 esac
22691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22692   (eval "$ac_compile") 2>conftest.er1
22693   ac_status=$?
22694   grep -v '^ *+' conftest.er1 >conftest.err
22695   rm -f conftest.er1
22696   cat conftest.err >&5
22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698   (exit $ac_status); } && {
22699          test -z "$ac_c_werror_flag" ||
22700          test ! -s conftest.err
22701        } && test -s conftest.$ac_objext; then
22702   ac_cv_type_socklen_t=yes
22703 else
22704   echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22706
22707
22708 fi
22709
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711
22712
22713 fi
22714 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22715 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22716
22717   if test "$ac_cv_type_socklen_t" != "yes"; then
22718
22719 cat >>confdefs.h <<\_ACEOF
22720 #define socklen_t int
22721 _ACEOF
22722
22723   fi
22724
22725
22726
22727   { echo "$as_me:$LINENO: checking for uint8_t" >&5
22728 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22729 if test "${ac_cv_type_uint8_t+set}" = set; then
22730   echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732    ac_cv_type_uint8_t=no
22733       cat >conftest.$ac_ext <<_ACEOF
22734 /* confdefs.h.  */
22735 _ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h.  */
22739 #ifdef HAVE_INTTYPES_H
22740 #include <inttypes.h>
22741 #endif
22742 #ifdef HAVE_STDINT_H
22743 #include <stdint.h>
22744 #endif
22745
22746 int
22747 main ()
22748 {
22749 uint8_t foo
22750   ;
22751   return 0;
22752 }
22753 _ACEOF
22754 rm -f conftest.$ac_objext
22755 if { (ac_try="$ac_compile"
22756 case "(($ac_try" in
22757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758   *) ac_try_echo=$ac_try;;
22759 esac
22760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22761   (eval "$ac_compile") 2>conftest.er1
22762   ac_status=$?
22763   grep -v '^ *+' conftest.er1 >conftest.err
22764   rm -f conftest.er1
22765   cat conftest.err >&5
22766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767   (exit $ac_status); } && {
22768          test -z "$ac_c_werror_flag" ||
22769          test ! -s conftest.err
22770        } && test -s conftest.$ac_objext; then
22771   ac_cv_type_uint8_t=yes
22772 else
22773   echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22775
22776
22777 fi
22778
22779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22780
22781
22782 fi
22783 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22784 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22785
22786   if test "$ac_cv_type_uint8_t" != "yes"; then
22787
22788 cat >>confdefs.h <<\_ACEOF
22789 #define uint8_t unsigned char
22790 _ACEOF
22791
22792   fi
22793
22794
22795
22796   { echo "$as_me:$LINENO: checking for uint16_t" >&5
22797 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22798 if test "${ac_cv_type_uint16_t+set}" = set; then
22799   echo $ECHO_N "(cached) $ECHO_C" >&6
22800 else
22801    ac_cv_type_uint16_t=no
22802       cat >conftest.$ac_ext <<_ACEOF
22803 /* confdefs.h.  */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h.  */
22808 #ifdef HAVE_INTTYPES_H
22809 #include <inttypes.h>
22810 #endif
22811 #ifdef HAVE_STDINT_H
22812 #include <stdint.h>
22813 #endif
22814
22815 int
22816 main ()
22817 {
22818 uint16_t foo
22819   ;
22820   return 0;
22821 }
22822 _ACEOF
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827   *) ac_try_echo=$ac_try;;
22828 esac
22829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22830   (eval "$ac_compile") 2>conftest.er1
22831   ac_status=$?
22832   grep -v '^ *+' conftest.er1 >conftest.err
22833   rm -f conftest.er1
22834   cat conftest.err >&5
22835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836   (exit $ac_status); } && {
22837          test -z "$ac_c_werror_flag" ||
22838          test ! -s conftest.err
22839        } && test -s conftest.$ac_objext; then
22840   ac_cv_type_uint16_t=yes
22841 else
22842   echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22844
22845
22846 fi
22847
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849
22850
22851 fi
22852 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22853 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22854
22855   if test "$ac_cv_type_uint16_t" != "yes"; then
22856
22857 cat >>confdefs.h <<\_ACEOF
22858 #define uint16_t unsigned short
22859 _ACEOF
22860
22861   fi
22862
22863
22864
22865   { echo "$as_me:$LINENO: checking for uint32_t" >&5
22866 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22867 if test "${ac_cv_type_uint32_t+set}" = set; then
22868   echo $ECHO_N "(cached) $ECHO_C" >&6
22869 else
22870    ac_cv_type_uint32_t=no
22871       cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h.  */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h.  */
22877 #ifdef HAVE_INTTYPES_H
22878 #include <inttypes.h>
22879 #endif
22880 #ifdef HAVE_STDINT_H
22881 #include <stdint.h>
22882 #endif
22883
22884 int
22885 main ()
22886 {
22887 uint32_t foo
22888   ;
22889   return 0;
22890 }
22891 _ACEOF
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896   *) ac_try_echo=$ac_try;;
22897 esac
22898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899   (eval "$ac_compile") 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } && {
22906          test -z "$ac_c_werror_flag" ||
22907          test ! -s conftest.err
22908        } && test -s conftest.$ac_objext; then
22909   ac_cv_type_uint32_t=yes
22910 else
22911   echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22913
22914
22915 fi
22916
22917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918
22919
22920 fi
22921 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22922 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22923
22924   if test "$ac_cv_type_uint32_t" != "yes"; then
22925
22926 cat >>confdefs.h <<\_ACEOF
22927 #define uint32_t unsigned int
22928 _ACEOF
22929
22930   fi
22931
22932
22933 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22934 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22935 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22936   echo $ECHO_N "(cached) $ECHO_C" >&6
22937 else
22938   cat >conftest.$ac_ext <<_ACEOF
22939 /* confdefs.h.  */
22940 _ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h.  */
22944
22945 #ifdef HAVE_NETINET_IN_H
22946 #include <netinet/in.h>
22947 #endif
22948
22949
22950 typedef struct in6_addr ac__type_new_;
22951 int
22952 main ()
22953 {
22954 if ((ac__type_new_ *) 0)
22955   return 0;
22956 if (sizeof (ac__type_new_))
22957   return 0;
22958   ;
22959   return 0;
22960 }
22961 _ACEOF
22962 rm -f conftest.$ac_objext
22963 if { (ac_try="$ac_compile"
22964 case "(($ac_try" in
22965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966   *) ac_try_echo=$ac_try;;
22967 esac
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969   (eval "$ac_compile") 2>conftest.er1
22970   ac_status=$?
22971   grep -v '^ *+' conftest.er1 >conftest.err
22972   rm -f conftest.er1
22973   cat conftest.err >&5
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); } && {
22976          test -z "$ac_c_werror_flag" ||
22977          test ! -s conftest.err
22978        } && test -s conftest.$ac_objext; then
22979   ac_cv_type_struct_in6_addr=yes
22980 else
22981   echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22983
22984         ac_cv_type_struct_in6_addr=no
22985 fi
22986
22987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988 fi
22989 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22990 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
22991 if test $ac_cv_type_struct_in6_addr = yes; then
22992
22993 cat >>confdefs.h <<\_ACEOF
22994 #define HAVE_STRUCT_IN6_ADDR 1
22995 _ACEOF
22996
22997 fi
22998
22999
23000 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23001 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23002 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23003   echo $ECHO_N "(cached) $ECHO_C" >&6
23004 else
23005   cat >conftest.$ac_ext <<_ACEOF
23006 /* confdefs.h.  */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h.  */
23011
23012 #ifdef HAVE_NETINET_IN_H
23013 #include <netinet/in.h>
23014 #endif
23015 #ifdef HAVE_SYS_SOCKET_H
23016 #include <sys/socket.h>
23017 #endif
23018
23019
23020 typedef struct sockaddr_storage ac__type_new_;
23021 int
23022 main ()
23023 {
23024 if ((ac__type_new_ *) 0)
23025   return 0;
23026 if (sizeof (ac__type_new_))
23027   return 0;
23028   ;
23029   return 0;
23030 }
23031 _ACEOF
23032 rm -f conftest.$ac_objext
23033 if { (ac_try="$ac_compile"
23034 case "(($ac_try" in
23035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036   *) ac_try_echo=$ac_try;;
23037 esac
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039   (eval "$ac_compile") 2>conftest.er1
23040   ac_status=$?
23041   grep -v '^ *+' conftest.er1 >conftest.err
23042   rm -f conftest.er1
23043   cat conftest.err >&5
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); } && {
23046          test -z "$ac_c_werror_flag" ||
23047          test ! -s conftest.err
23048        } && test -s conftest.$ac_objext; then
23049   ac_cv_type_struct_sockaddr_storage=yes
23050 else
23051   echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23053
23054         ac_cv_type_struct_sockaddr_storage=no
23055 fi
23056
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 fi
23059 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23060 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23061 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23062
23063 cat >>confdefs.h <<\_ACEOF
23064 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23065 _ACEOF
23066
23067 fi
23068
23069
23070 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23071 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23072 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23073   echo $ECHO_N "(cached) $ECHO_C" >&6
23074 else
23075   cat >conftest.$ac_ext <<_ACEOF
23076 /* confdefs.h.  */
23077 _ACEOF
23078 cat confdefs.h >>conftest.$ac_ext
23079 cat >>conftest.$ac_ext <<_ACEOF
23080 /* end confdefs.h.  */
23081
23082 #ifdef HAVE_NETINET_IN_H
23083 #include <netinet/in.h>
23084 #endif
23085
23086
23087 typedef struct sockaddr_in6 ac__type_new_;
23088 int
23089 main ()
23090 {
23091 if ((ac__type_new_ *) 0)
23092   return 0;
23093 if (sizeof (ac__type_new_))
23094   return 0;
23095   ;
23096   return 0;
23097 }
23098 _ACEOF
23099 rm -f conftest.$ac_objext
23100 if { (ac_try="$ac_compile"
23101 case "(($ac_try" in
23102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103   *) ac_try_echo=$ac_try;;
23104 esac
23105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23106   (eval "$ac_compile") 2>conftest.er1
23107   ac_status=$?
23108   grep -v '^ *+' conftest.er1 >conftest.err
23109   rm -f conftest.er1
23110   cat conftest.err >&5
23111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112   (exit $ac_status); } && {
23113          test -z "$ac_c_werror_flag" ||
23114          test ! -s conftest.err
23115        } && test -s conftest.$ac_objext; then
23116   ac_cv_type_struct_sockaddr_in6=yes
23117 else
23118   echo "$as_me: failed program was:" >&5
23119 sed 's/^/| /' conftest.$ac_ext >&5
23120
23121         ac_cv_type_struct_sockaddr_in6=no
23122 fi
23123
23124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125 fi
23126 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23127 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23128 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23129
23130 cat >>confdefs.h <<\_ACEOF
23131 #define HAVE_STRUCT_SOCKADDR_IN6 1
23132 _ACEOF
23133
23134 fi
23135
23136
23137 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23138 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23139 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23140   echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142   cat >conftest.$ac_ext <<_ACEOF
23143 /* confdefs.h.  */
23144 _ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h.  */
23148
23149 #ifdef HAVE_SYS_TYPES_H
23150 #include <sys/types.h>
23151 #endif
23152 #ifdef HAVE_SYS_SOCKET_H
23153 #include <sys/socket.h>
23154 #endif
23155 #ifdef HAVE_NETDB_H
23156 #include <netdb.h>
23157 #endif
23158
23159
23160 typedef struct addrinfo ac__type_new_;
23161 int
23162 main ()
23163 {
23164 if ((ac__type_new_ *) 0)
23165   return 0;
23166 if (sizeof (ac__type_new_))
23167   return 0;
23168   ;
23169   return 0;
23170 }
23171 _ACEOF
23172 rm -f conftest.$ac_objext
23173 if { (ac_try="$ac_compile"
23174 case "(($ac_try" in
23175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176   *) ac_try_echo=$ac_try;;
23177 esac
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179   (eval "$ac_compile") 2>conftest.er1
23180   ac_status=$?
23181   grep -v '^ *+' conftest.er1 >conftest.err
23182   rm -f conftest.er1
23183   cat conftest.err >&5
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } && {
23186          test -z "$ac_c_werror_flag" ||
23187          test ! -s conftest.err
23188        } && test -s conftest.$ac_objext; then
23189   ac_cv_type_struct_addrinfo=yes
23190 else
23191   echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194         ac_cv_type_struct_addrinfo=no
23195 fi
23196
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198 fi
23199 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23200 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23201 if test $ac_cv_type_struct_addrinfo = yes; then
23202
23203 cat >>confdefs.h <<\_ACEOF
23204 #define HAVE_STRUCT_ADDRINFO 1
23205 _ACEOF
23206
23207 fi
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238 for ac_func in \
23239         getopt_long \
23240         lockf \
23241         strsignal \
23242         sigaction \
23243         sigprocmask \
23244         pthread_sigmask \
23245         snprintf \
23246         vsnprintf \
23247         setsid \
23248         strncasecmp \
23249         strcasecmp \
23250         localtime_r \
23251         ctime_r \
23252         gmtime_r \
23253         strsep \
23254         inet_aton \
23255         inet_pton \
23256         inet_ntop \
23257         setlinebuf \
23258         setvbuf \
23259         getusershell \
23260         initgroups \
23261         getaddrinfo \
23262         getnameinfo \
23263         closefrom \
23264         gettimeofday \
23265         strlcat \
23266         strlcpy
23267
23268 do
23269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23273   echo $ECHO_N "(cached) $ECHO_C" >&6
23274 else
23275   cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h.  */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h.  */
23281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23283 #define $ac_func innocuous_$ac_func
23284
23285 /* System header to define __stub macros and hopefully few prototypes,
23286     which can conflict with char $ac_func (); below.
23287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23288     <limits.h> exists even on freestanding compilers.  */
23289
23290 #ifdef __STDC__
23291 # include <limits.h>
23292 #else
23293 # include <assert.h>
23294 #endif
23295
23296 #undef $ac_func
23297
23298 /* Override any GCC internal prototype to avoid an error.
23299    Use char because int might match the return type of a GCC
23300    builtin and then its argument prototype would still apply.  */
23301 #ifdef __cplusplus
23302 extern "C"
23303 #endif
23304 char $ac_func ();
23305 /* The GNU C library defines this for functions which it implements
23306     to always fail with ENOSYS.  Some functions are actually named
23307     something starting with __ and the normal name is an alias.  */
23308 #if defined __stub_$ac_func || defined __stub___$ac_func
23309 choke me
23310 #endif
23311
23312 int
23313 main ()
23314 {
23315 return $ac_func ();
23316   ;
23317   return 0;
23318 }
23319 _ACEOF
23320 rm -f conftest.$ac_objext conftest$ac_exeext
23321 if { (ac_try="$ac_link"
23322 case "(($ac_try" in
23323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324   *) ac_try_echo=$ac_try;;
23325 esac
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327   (eval "$ac_link") 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } && {
23334          test -z "$ac_c_werror_flag" ||
23335          test ! -s conftest.err
23336        } && test -s conftest$ac_exeext &&
23337        $as_test_x conftest$ac_exeext; then
23338   eval "$as_ac_var=yes"
23339 else
23340   echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23342
23343         eval "$as_ac_var=no"
23344 fi
23345
23346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23347       conftest$ac_exeext conftest.$ac_ext
23348 fi
23349 ac_res=`eval echo '${'$as_ac_var'}'`
23350                { echo "$as_me:$LINENO: result: $ac_res" >&5
23351 echo "${ECHO_T}$ac_res" >&6; }
23352 if test `eval echo '${'$as_ac_var'}'` = yes; then
23353   cat >>confdefs.h <<_ACEOF
23354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23355 _ACEOF
23356
23357 fi
23358 done
23359
23360 for ac_func in \
23361         crypt \
23362         strncasecmp \
23363         strcasecmp \
23364         inet_aton \
23365         setlinebuf \
23366         getusershell \
23367         endusershell
23368
23369 do
23370 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23371 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23372 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23373   echo $ECHO_N "(cached) $ECHO_C" >&6
23374 else
23375   cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381
23382 #include <stdio.h>
23383 #include <string.h>
23384 #ifdef HAVE_UNISTD_H
23385 #include <unistd.h>
23386 #endif
23387 #ifdef HAVE_CRYPT_H
23388 #include <crypt.h>
23389 #endif
23390 #ifdef HAVE_ERRNO_H
23391 #include <errno.h>
23392 #endif
23393 #ifdef HAVE_RESOURCE_H
23394 #include <resource.h>
23395 #endif
23396 #ifdef HAVE_GETOPT_H
23397 #include <getopt.h>
23398 #endif
23399 #ifdef HAVE_MALLOC_H
23400 #include <malloc.h>
23401 #endif
23402 #ifdef HAVE_UTMP_H
23403 #include <utmp.h>
23404 #endif
23405 #ifdef HAVE_UTMPX_H
23406 #include <utmpx.h>
23407 #endif
23408 #ifdef HAVE_SYS_SELECT_H
23409 #include <sys/select.h>
23410 #endif
23411 #ifdef HAVE_DLFCN_H
23412 #include <dlfcn.h>
23413 #endif
23414 #ifdef HAVE_REGEX_H
23415 #include <regex.h>
23416 #endif
23417 #ifdef HAVE_SYSLOG_H
23418 #include <syslog.h>
23419 #endif
23420 #ifdef HAVE_INTTYPES_H
23421 #include <inttypes.h>
23422 #endif
23423 #ifdef HAVE_STDINT_H
23424 #include <stdint.h>
23425 #endif
23426 #ifdef HAVE_ARPA_INET_H
23427 #include <arpa/inet.h>
23428 #endif
23429
23430 int
23431 main ()
23432 {
23433 char *(*pfn) = (char *(*)) $ac_func
23434   ;
23435   return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext
23439 if { (ac_try="$ac_compile"
23440 case "(($ac_try" in
23441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442   *) ac_try_echo=$ac_try;;
23443 esac
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445   (eval "$ac_compile") 2>conftest.er1
23446   ac_status=$?
23447   grep -v '^ *+' conftest.er1 >conftest.err
23448   rm -f conftest.er1
23449   cat conftest.err >&5
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); } && {
23452          test -z "$ac_c_werror_flag" ||
23453          test ! -s conftest.err
23454        } && test -s conftest.$ac_objext; then
23455   eval "radius_cv_decl_needed_$ac_func=no"
23456 else
23457   echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23459
23460         eval "radius_cv_decl_needed_$ac_func=yes"
23461 fi
23462
23463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23464 fi
23465
23466 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23467   { echo "$as_me:$LINENO: result: yes" >&5
23468 echo "${ECHO_T}yes" >&6; }
23469   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23470   cat >>confdefs.h <<_ACEOF
23471 #define $radius_tr_decl 1
23472 _ACEOF
23473
23474 else
23475   { echo "$as_me:$LINENO: result: no" >&5
23476 echo "${ECHO_T}no" >&6; }
23477 fi
23478
23479 done
23480
23481
23482 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23483 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23484 if test "${ac_cv_type_signal+set}" = set; then
23485   echo $ECHO_N "(cached) $ECHO_C" >&6
23486 else
23487   cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h.  */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h.  */
23493 #include <sys/types.h>
23494 #include <signal.h>
23495
23496 int
23497 main ()
23498 {
23499 return *(signal (0, 0)) (0) == 1;
23500   ;
23501   return 0;
23502 }
23503 _ACEOF
23504 rm -f conftest.$ac_objext
23505 if { (ac_try="$ac_compile"
23506 case "(($ac_try" in
23507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508   *) ac_try_echo=$ac_try;;
23509 esac
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511   (eval "$ac_compile") 2>conftest.er1
23512   ac_status=$?
23513   grep -v '^ *+' conftest.er1 >conftest.err
23514   rm -f conftest.er1
23515   cat conftest.err >&5
23516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517   (exit $ac_status); } && {
23518          test -z "$ac_c_werror_flag" ||
23519          test ! -s conftest.err
23520        } && test -s conftest.$ac_objext; then
23521   ac_cv_type_signal=int
23522 else
23523   echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23525
23526         ac_cv_type_signal=void
23527 fi
23528
23529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23530 fi
23531 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23532 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23533
23534 cat >>confdefs.h <<_ACEOF
23535 #define RETSIGTYPE $ac_cv_type_signal
23536 _ACEOF
23537
23538
23539
23540 if test "x$ac_cv_header_utmpx_h" = "xyes"
23541 then
23542
23543   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23544 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23545
23546
23547   cat >conftest.$ac_ext <<_ACEOF
23548 /* confdefs.h.  */
23549 _ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h.  */
23553
23554 #include <utmpx.h>
23555 #ifndef offsetof
23556 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23557 #endif
23558
23559 int
23560 main ()
23561 {
23562  int foo = offsetof(struct utmpx, ut_xtime)
23563   ;
23564   return 0;
23565 }
23566 _ACEOF
23567 rm -f conftest.$ac_objext
23568 if { (ac_try="$ac_compile"
23569 case "(($ac_try" in
23570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571   *) ac_try_echo=$ac_try;;
23572 esac
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574   (eval "$ac_compile") 2>conftest.er1
23575   ac_status=$?
23576   grep -v '^ *+' conftest.er1 >conftest.err
23577   rm -f conftest.er1
23578   cat conftest.err >&5
23579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580   (exit $ac_status); } && {
23581          test -z "$ac_c_werror_flag" ||
23582          test ! -s conftest.err
23583        } && test -s conftest.$ac_objext; then
23584   has_element=" "
23585 else
23586   echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23588
23589         has_element=
23590 fi
23591
23592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593
23594   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23595   if test "x$has_element" != "x"; then
23596     { echo "$as_me:$LINENO: result: yes" >&5
23597 echo "${ECHO_T}yes" >&6; }
23598     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23599   else
23600     { echo "$as_me:$LINENO: result: no" >&5
23601 echo "${ECHO_T}no" >&6; }
23602     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23603  fi
23604
23605  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23606  then
23607
23608 cat >>confdefs.h <<\_ACEOF
23609 #define ut_xtime ut_tv.tv_sec
23610 _ACEOF
23611
23612  fi
23613 fi
23614
23615
23616   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23617 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23618
23619
23620   cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h.  */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h.  */
23626
23627 #include <netinet/in.h>
23628 #ifndef offsetof
23629 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23630 #endif
23631
23632 int
23633 main ()
23634 {
23635  int foo = offsetof(struct in_pktinfo, ipi_addr)
23636   ;
23637   return 0;
23638 }
23639 _ACEOF
23640 rm -f conftest.$ac_objext
23641 if { (ac_try="$ac_compile"
23642 case "(($ac_try" in
23643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23644   *) ac_try_echo=$ac_try;;
23645 esac
23646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23647   (eval "$ac_compile") 2>conftest.er1
23648   ac_status=$?
23649   grep -v '^ *+' conftest.er1 >conftest.err
23650   rm -f conftest.er1
23651   cat conftest.err >&5
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } && {
23654          test -z "$ac_c_werror_flag" ||
23655          test ! -s conftest.err
23656        } && test -s conftest.$ac_objext; then
23657   has_element=" "
23658 else
23659   echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23661
23662         has_element=
23663 fi
23664
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23666
23667   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23668   if test "x$has_element" != "x"; then
23669     { echo "$as_me:$LINENO: result: yes" >&5
23670 echo "${ECHO_T}yes" >&6; }
23671     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23672   else
23673     { echo "$as_me:$LINENO: result: no" >&5
23674 echo "${ECHO_T}no" >&6; }
23675     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23676  fi
23677
23678 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23679 then
23680
23681 cat >>confdefs.h <<\_ACEOF
23682 #define HAVE_IP_PKTINFO
23683 _ACEOF
23684
23685 fi
23686
23687
23688   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23689 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
23690
23691
23692   cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h.  */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h.  */
23698
23699 #include <netinet/in.h>
23700 #ifndef offsetof
23701 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23702 #endif
23703
23704 int
23705 main ()
23706 {
23707  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23708   ;
23709   return 0;
23710 }
23711 _ACEOF
23712 rm -f conftest.$ac_objext
23713 if { (ac_try="$ac_compile"
23714 case "(($ac_try" in
23715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716   *) ac_try_echo=$ac_try;;
23717 esac
23718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23719   (eval "$ac_compile") 2>conftest.er1
23720   ac_status=$?
23721   grep -v '^ *+' conftest.er1 >conftest.err
23722   rm -f conftest.er1
23723   cat conftest.err >&5
23724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725   (exit $ac_status); } && {
23726          test -z "$ac_c_werror_flag" ||
23727          test ! -s conftest.err
23728        } && test -s conftest.$ac_objext; then
23729   has_element=" "
23730 else
23731   echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23733
23734         has_element=
23735 fi
23736
23737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23738
23739   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23740   if test "x$has_element" != "x"; then
23741     { echo "$as_me:$LINENO: result: yes" >&5
23742 echo "${ECHO_T}yes" >&6; }
23743     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23744   else
23745     { echo "$as_me:$LINENO: result: no" >&5
23746 echo "${ECHO_T}no" >&6; }
23747     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23748  fi
23749
23750 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23751 then
23752
23753 cat >>confdefs.h <<\_ACEOF
23754 #define HAVE_IN6_PKTINFO
23755 _ACEOF
23756
23757 fi
23758
23759
23760 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23761 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23762 if test "${ac_cv_c_const+set}" = set; then
23763   echo $ECHO_N "(cached) $ECHO_C" >&6
23764 else
23765   cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h.  */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h.  */
23771
23772 int
23773 main ()
23774 {
23775 /* FIXME: Include the comments suggested by Paul. */
23776 #ifndef __cplusplus
23777   /* Ultrix mips cc rejects this.  */
23778   typedef int charset[2];
23779   const charset cs;
23780   /* SunOS 4.1.1 cc rejects this.  */
23781   char const *const *pcpcc;
23782   char **ppc;
23783   /* NEC SVR4.0.2 mips cc rejects this.  */
23784   struct point {int x, y;};
23785   static struct point const zero = {0,0};
23786   /* AIX XL C 1.02.0.0 rejects this.
23787      It does not let you subtract one const X* pointer from another in
23788      an arm of an if-expression whose if-part is not a constant
23789      expression */
23790   const char *g = "string";
23791   pcpcc = &g + (g ? g-g : 0);
23792   /* HPUX 7.0 cc rejects these. */
23793   ++pcpcc;
23794   ppc = (char**) pcpcc;
23795   pcpcc = (char const *const *) ppc;
23796   { /* SCO 3.2v4 cc rejects this.  */
23797     char *t;
23798     char const *s = 0 ? (char *) 0 : (char const *) 0;
23799
23800     *t++ = 0;
23801     if (s) return 0;
23802   }
23803   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23804     int x[] = {25, 17};
23805     const int *foo = &x[0];
23806     ++foo;
23807   }
23808   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23809     typedef const int *iptr;
23810     iptr p = 0;
23811     ++p;
23812   }
23813   { /* AIX XL C 1.02.0.0 rejects this saying
23814        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23815     struct s { int j; const int *ap[3]; };
23816     struct s *b; b->j = 5;
23817   }
23818   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23819     const int foo = 10;
23820     if (!foo) return 0;
23821   }
23822   return !cs[0] && !zero.x;
23823 #endif
23824
23825   ;
23826   return 0;
23827 }
23828 _ACEOF
23829 rm -f conftest.$ac_objext
23830 if { (ac_try="$ac_compile"
23831 case "(($ac_try" in
23832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833   *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836   (eval "$ac_compile") 2>conftest.er1
23837   ac_status=$?
23838   grep -v '^ *+' conftest.er1 >conftest.err
23839   rm -f conftest.er1
23840   cat conftest.err >&5
23841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); } && {
23843          test -z "$ac_c_werror_flag" ||
23844          test ! -s conftest.err
23845        } && test -s conftest.$ac_objext; then
23846   ac_cv_c_const=yes
23847 else
23848   echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23850
23851         ac_cv_c_const=no
23852 fi
23853
23854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 fi
23856 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23857 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23858 if test $ac_cv_c_const = no; then
23859
23860 cat >>confdefs.h <<\_ACEOF
23861 #define const
23862 _ACEOF
23863
23864 fi
23865
23866
23867 { echo "$as_me:$LINENO: checking type of OS" >&5
23868 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23869 OS=`uname -s`
23870 { echo "$as_me:$LINENO: result: $OS" >&5
23871 echo "${ECHO_T}$OS" >&6; }
23872 if test "$OS" = "OS/2"; then
23873         LIBPREFIX=
23874 else
23875         LIBPREFIX=lib
23876 fi
23877
23878
23879 if test "x$GCC" = "xyes"; then
23880     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23881 fi
23882
23883 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23884 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23885 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23886   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23887   CFLAGS="$CFLAGS $devflags"
23888   INSTALLSTRIP=""
23889   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23890 echo "${ECHO_T}yes.  Using $devflags" >&6; }
23891 else
23892   devflags=""
23893   CFLAGS="$CFLAGS -DNDEBUG"
23894   INSTALLSTRIP="-s"
23895   { echo "$as_me:$LINENO: result: no." >&5
23896 echo "${ECHO_T}no." >&6; }
23897 fi
23898
23899
23900 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23901 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23902 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23903   echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905   ac_check_lib_save_LIBS=$LIBS
23906 LIBS="-lcrypt  $LIBS"
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913
23914 /* Override any GCC internal prototype to avoid an error.
23915    Use char because int might match the return type of a GCC
23916    builtin and then its argument prototype would still apply.  */
23917 #ifdef __cplusplus
23918 extern "C"
23919 #endif
23920 char crypt ();
23921 int
23922 main ()
23923 {
23924 return crypt ();
23925   ;
23926   return 0;
23927 }
23928 _ACEOF
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933   *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936   (eval "$ac_link") 2>conftest.er1
23937   ac_status=$?
23938   grep -v '^ *+' conftest.er1 >conftest.err
23939   rm -f conftest.er1
23940   cat conftest.err >&5
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } && {
23943          test -z "$ac_c_werror_flag" ||
23944          test ! -s conftest.err
23945        } && test -s conftest$ac_exeext &&
23946        $as_test_x conftest$ac_exeext; then
23947   ac_cv_lib_crypt_crypt=yes
23948 else
23949   echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23951
23952         ac_cv_lib_crypt_crypt=no
23953 fi
23954
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956       conftest$ac_exeext conftest.$ac_ext
23957 LIBS=$ac_check_lib_save_LIBS
23958 fi
23959 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23960 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23961 if test $ac_cv_lib_crypt_crypt = yes; then
23962   CRYPTLIB="-lcrypt"
23963
23964 fi
23965
23966 if test "$CRYPTLIB" != ""; then
23967
23968 cat >>confdefs.h <<\_ACEOF
23969 #define HAVE_CRYPT
23970 _ACEOF
23971
23972 else
23973   { echo "$as_me:$LINENO: checking for crypt" >&5
23974 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
23975 if test "${ac_cv_func_crypt+set}" = set; then
23976   echo $ECHO_N "(cached) $ECHO_C" >&6
23977 else
23978   cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h.  */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h.  */
23984 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23986 #define crypt innocuous_crypt
23987
23988 /* System header to define __stub macros and hopefully few prototypes,
23989     which can conflict with char crypt (); below.
23990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23991     <limits.h> exists even on freestanding compilers.  */
23992
23993 #ifdef __STDC__
23994 # include <limits.h>
23995 #else
23996 # include <assert.h>
23997 #endif
23998
23999 #undef crypt
24000
24001 /* Override any GCC internal prototype to avoid an error.
24002    Use char because int might match the return type of a GCC
24003    builtin and then its argument prototype would still apply.  */
24004 #ifdef __cplusplus
24005 extern "C"
24006 #endif
24007 char crypt ();
24008 /* The GNU C library defines this for functions which it implements
24009     to always fail with ENOSYS.  Some functions are actually named
24010     something starting with __ and the normal name is an alias.  */
24011 #if defined __stub_crypt || defined __stub___crypt
24012 choke me
24013 #endif
24014
24015 int
24016 main ()
24017 {
24018 return crypt ();
24019   ;
24020   return 0;
24021 }
24022 _ACEOF
24023 rm -f conftest.$ac_objext conftest$ac_exeext
24024 if { (ac_try="$ac_link"
24025 case "(($ac_try" in
24026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027   *) ac_try_echo=$ac_try;;
24028 esac
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030   (eval "$ac_link") 2>conftest.er1
24031   ac_status=$?
24032   grep -v '^ *+' conftest.er1 >conftest.err
24033   rm -f conftest.er1
24034   cat conftest.err >&5
24035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036   (exit $ac_status); } && {
24037          test -z "$ac_c_werror_flag" ||
24038          test ! -s conftest.err
24039        } && test -s conftest$ac_exeext &&
24040        $as_test_x conftest$ac_exeext; then
24041   ac_cv_func_crypt=yes
24042 else
24043   echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24045
24046         ac_cv_func_crypt=no
24047 fi
24048
24049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24050       conftest$ac_exeext conftest.$ac_ext
24051 fi
24052 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24053 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24054 if test $ac_cv_func_crypt = yes; then
24055
24056 cat >>confdefs.h <<\_ACEOF
24057 #define HAVE_CRYPT
24058 _ACEOF
24059
24060 fi
24061
24062 fi
24063
24064 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24065 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24066 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24067   echo $ECHO_N "(cached) $ECHO_C" >&6
24068 else
24069   ac_check_lib_save_LIBS=$LIBS
24070 LIBS="-lcipher  $LIBS"
24071 cat >conftest.$ac_ext <<_ACEOF
24072 /* confdefs.h.  */
24073 _ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h.  */
24077
24078 /* Override any GCC internal prototype to avoid an error.
24079    Use char because int might match the return type of a GCC
24080    builtin and then its argument prototype would still apply.  */
24081 #ifdef __cplusplus
24082 extern "C"
24083 #endif
24084 char setkey ();
24085 int
24086 main ()
24087 {
24088 return setkey ();
24089   ;
24090   return 0;
24091 }
24092 _ACEOF
24093 rm -f conftest.$ac_objext conftest$ac_exeext
24094 if { (ac_try="$ac_link"
24095 case "(($ac_try" in
24096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097   *) ac_try_echo=$ac_try;;
24098 esac
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100   (eval "$ac_link") 2>conftest.er1
24101   ac_status=$?
24102   grep -v '^ *+' conftest.er1 >conftest.err
24103   rm -f conftest.er1
24104   cat conftest.err >&5
24105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106   (exit $ac_status); } && {
24107          test -z "$ac_c_werror_flag" ||
24108          test ! -s conftest.err
24109        } && test -s conftest$ac_exeext &&
24110        $as_test_x conftest$ac_exeext; then
24111   ac_cv_lib_cipher_setkey=yes
24112 else
24113   echo "$as_me: failed program was:" >&5
24114 sed 's/^/| /' conftest.$ac_ext >&5
24115
24116         ac_cv_lib_cipher_setkey=no
24117 fi
24118
24119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24120       conftest$ac_exeext conftest.$ac_ext
24121 LIBS=$ac_check_lib_save_LIBS
24122 fi
24123 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24124 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24125 if test $ac_cv_lib_cipher_setkey = yes; then
24126   CRYPTLIB="${CRYPTLIB} -lcipher"
24127
24128 fi
24129
24130
24131
24132 if test "x$WITH_SNMP" = "xyes"; then
24133
24134
24135
24136
24137 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24138 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24139
24140 cat >conftest.$ac_ext <<_ACEOF
24141 /* confdefs.h.  */
24142 _ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h.  */
24146
24147 #ifdef HAVE_SYS_TYPES_H
24148 #include <sys/types.h>
24149 #endif
24150 #ifdef HAVE_STDINT_H
24151 #include <stdint.h>
24152 #endif
24153 #ifdef HAVE_STDIO_H
24154 #include <stdio.h>
24155 #endif
24156 #ifdef HAVE_NETDB_H
24157 #include <netdb.h>
24158 #endif
24159 #ifdef HAVE_UNISTD_H
24160 #include <unistd.h>
24161 #endif
24162 #include <ucd-snmp/ucd-snmp-config.h>
24163 #include <ucd-snmp/asn1.h>
24164 #include <ucd-snmp/snmp.h>
24165 #include <ucd-snmp/snmp_impl.h>
24166 int
24167 main ()
24168 {
24169  int a = 1;
24170   ;
24171   return 0;
24172 }
24173 _ACEOF
24174 rm -f conftest.$ac_objext
24175 if { (ac_try="$ac_compile"
24176 case "(($ac_try" in
24177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24178   *) ac_try_echo=$ac_try;;
24179 esac
24180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24181   (eval "$ac_compile") 2>conftest.er1
24182   ac_status=$?
24183   grep -v '^ *+' conftest.er1 >conftest.err
24184   rm -f conftest.er1
24185   cat conftest.err >&5
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); } && {
24188          test -z "$ac_c_werror_flag" ||
24189          test ! -s conftest.err
24190        } && test -s conftest.$ac_objext; then
24191   SNMP_INCLUDE="";ucdsnmp=yes
24192 else
24193   echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24195
24196         ucdsnmp=
24197 fi
24198
24199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24200
24201 if test "x$ucdsnmp" = "x"; then
24202   old_CFLAGS="$CFLAGS"
24203   for try in /usr/include /usr/local/include $snmp_include_dir; do
24204     CFLAGS="$old_CFLAGS -I$try"
24205     cat >conftest.$ac_ext <<_ACEOF
24206 /* confdefs.h.  */
24207 _ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h.  */
24211
24212 #ifdef HAVE_SYS_TYPES_H
24213 #include <sys/types.h>
24214 #endif
24215 #ifdef HAVE_STDINT_H
24216 #include <stdint.h>
24217 #endif
24218 #ifdef HAVE_STDIO_H
24219 #include <stdio.h>
24220 #endif
24221 #ifdef HAVE_NETDB_H
24222 #include <netdb.h>
24223 #endif
24224 #ifdef HAVE_UNISTD_H
24225 #include <unistd.h>
24226 #endif
24227 #include <ucd-snmp/ucd-snmp-config.h>
24228 #include <ucd-snmp/asn1.h>
24229 #include <ucd-snmp/snmp.h>
24230 #include <ucd-snmp/snmp_impl.h>
24231 int
24232 main ()
24233 {
24234  int a = 1;
24235   ;
24236   return 0;
24237 }
24238 _ACEOF
24239 rm -f conftest.$ac_objext
24240 if { (ac_try="$ac_compile"
24241 case "(($ac_try" in
24242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243   *) ac_try_echo=$ac_try;;
24244 esac
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246   (eval "$ac_compile") 2>conftest.er1
24247   ac_status=$?
24248   grep -v '^ *+' conftest.er1 >conftest.err
24249   rm -f conftest.er1
24250   cat conftest.err >&5
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); } && {
24253          test -z "$ac_c_werror_flag" ||
24254          test ! -s conftest.err
24255        } && test -s conftest.$ac_objext; then
24256   SNMP_INCLUDE="-I$try";ucdsnmp=yes
24257 else
24258   echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24260
24261         ucdsnmp=
24262 fi
24263
24264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24265     if test "x$ucdsnmp" != "x"; then
24266       break;
24267     fi
24268   done
24269   CFLAGS="$old_CFLAGS"
24270 fi
24271
24272 if test "x$ucdsnmp" = "x"; then
24273   old_CFLAGS="$CFLAGS"
24274   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24275     CFLAGS="$old_CFLAGS -I$try"
24276 cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282
24283 #ifdef HAVE_SYS_TYPES_H
24284 #include <sys/types.h>
24285 #endif
24286 #ifdef HAVE_STDINT_H
24287 #include <stdint.h>
24288 #endif
24289 #ifdef HAVE_STDIO_H
24290 #include <stdio.h>
24291 #endif
24292 #ifdef HAVE_NETDB_H
24293 #include <netdb.h>
24294 #endif
24295 #ifdef HAVE_UNISTD_H
24296 #include <unistd.h>
24297 #endif
24298 #include <asn1.h>
24299 #include <snmp.h>
24300 #include <snmp_impl.h>
24301 int
24302 main ()
24303 {
24304  int a = 1;
24305   ;
24306   return 0;
24307 }
24308 _ACEOF
24309 rm -f conftest.$ac_objext
24310 if { (ac_try="$ac_compile"
24311 case "(($ac_try" in
24312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313   *) ac_try_echo=$ac_try;;
24314 esac
24315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24316   (eval "$ac_compile") 2>conftest.er1
24317   ac_status=$?
24318   grep -v '^ *+' conftest.er1 >conftest.err
24319   rm -f conftest.er1
24320   cat conftest.err >&5
24321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322   (exit $ac_status); } && {
24323          test -z "$ac_c_werror_flag" ||
24324          test ! -s conftest.err
24325        } && test -s conftest.$ac_objext; then
24326   SNMP_INCLUDE="";ucdsnmp=no
24327 else
24328   echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24330
24331         ucdsnmp=
24332 fi
24333
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335     if test "x$ucdsnmp" != "x"; then
24336       break;
24337     fi
24338   done
24339   CFLAGS="$old_CFLAGS"
24340 fi
24341
24342 if test "x$ucdsnmp" = "x"; then
24343   old_CFLAGS="$CFLAGS"
24344   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24345     CFLAGS="$old_CFLAGS -I$try"
24346     cat >conftest.$ac_ext <<_ACEOF
24347 /* confdefs.h.  */
24348 _ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h.  */
24352
24353 #ifdef HAVE_SYS_TYPES_H
24354 #include <sys/types.h>
24355 #endif
24356 #ifdef HAVE_STDINT_H
24357 #include <stdint.h>
24358 #endif
24359 #ifdef HAVE_STDIO_H
24360 #include <stdio.h>
24361 #endif
24362 #ifdef HAVE_NETDB_H
24363 #include <netdb.h>
24364 #endif
24365 #ifdef HAVE_UNISTD_H
24366 #include <unistd.h>
24367 #endif
24368 #include <asn1.h>
24369 #include <snmp.h>
24370 #include <snmp_impl.h>
24371 int
24372 main ()
24373 {
24374  int a = 1;
24375   ;
24376   return 0;
24377 }
24378 _ACEOF
24379 rm -f conftest.$ac_objext
24380 if { (ac_try="$ac_compile"
24381 case "(($ac_try" in
24382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24383   *) ac_try_echo=$ac_try;;
24384 esac
24385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24386   (eval "$ac_compile") 2>conftest.er1
24387   ac_status=$?
24388   grep -v '^ *+' conftest.er1 >conftest.err
24389   rm -f conftest.er1
24390   cat conftest.err >&5
24391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392   (exit $ac_status); } && {
24393          test -z "$ac_c_werror_flag" ||
24394          test ! -s conftest.err
24395        } && test -s conftest.$ac_objext; then
24396   SNMP_INCLUDE="-I$try";ucdsnmp=no
24397 else
24398   echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24400
24401         ucdsnmp=
24402 fi
24403
24404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405     if test "x$ucdsnmp" != "x"; then
24406       break;
24407     fi
24408   done
24409   CFLAGS="$old_CFLAGS"
24410 fi
24411
24412 if test "x$ucdsnmp" = "x"; then
24413   { echo "$as_me:$LINENO: result: no" >&5
24414 echo "${ECHO_T}no" >&6; }
24415 else
24416   if test "x$ucdsnmp" = "xyes"; then
24417     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24418 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24419
24420 cat >>confdefs.h <<\_ACEOF
24421 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24422 _ACEOF
24423
24424   else
24425     { echo "$as_me:$LINENO: result: yes" >&5
24426 echo "${ECHO_T}yes" >&6; }
24427
24428 cat >>confdefs.h <<\_ACEOF
24429 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24430 _ACEOF
24431
24432   fi
24433   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24434 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24435
24436   old_LIBS="$LIBS"
24437   LIBS="$old_LIBS -lsnmp"
24438   cat >conftest.$ac_ext <<_ACEOF
24439 /* confdefs.h.  */
24440 _ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h.  */
24444 extern char snmp_build_var_op();
24445 int
24446 main ()
24447 {
24448  snmp_build_var_op()
24449   ;
24450   return 0;
24451 }
24452 _ACEOF
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (ac_try="$ac_link"
24455 case "(($ac_try" in
24456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457   *) ac_try_echo=$ac_try;;
24458 esac
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460   (eval "$ac_link") 2>conftest.er1
24461   ac_status=$?
24462   grep -v '^ *+' conftest.er1 >conftest.err
24463   rm -f conftest.er1
24464   cat conftest.err >&5
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); } && {
24467          test -z "$ac_c_werror_flag" ||
24468          test ! -s conftest.err
24469        } && test -s conftest$ac_exeext &&
24470        $as_test_x conftest$ac_exeext; then
24471   SNMP_LIBS="-lsnmp"
24472 else
24473   echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24475
24476         SNMP_LIBS=
24477 fi
24478
24479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24480       conftest$ac_exeext conftest.$ac_ext
24481
24482   if test "x$SNMP_LIBS" = "x"; then
24483     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24484       LIBS="$old_LIBS -L$try -lsnmp"
24485       cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h.  */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h.  */
24491 extern char snmp_build_var_op();
24492 int
24493 main ()
24494 {
24495  snmp_build_var_op()
24496   ;
24497   return 0;
24498 }
24499 _ACEOF
24500 rm -f conftest.$ac_objext conftest$ac_exeext
24501 if { (ac_try="$ac_link"
24502 case "(($ac_try" in
24503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504   *) ac_try_echo=$ac_try;;
24505 esac
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507   (eval "$ac_link") 2>conftest.er1
24508   ac_status=$?
24509   grep -v '^ *+' conftest.er1 >conftest.err
24510   rm -f conftest.er1
24511   cat conftest.err >&5
24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513   (exit $ac_status); } && {
24514          test -z "$ac_c_werror_flag" ||
24515          test ! -s conftest.err
24516        } && test -s conftest$ac_exeext &&
24517        $as_test_x conftest$ac_exeext; then
24518   SNMP_LIBS="-L$try -lsnmp"
24519 else
24520   echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24522
24523         SNMP_LIBS=
24524 fi
24525
24526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24527       conftest$ac_exeext conftest.$ac_ext
24528       if test "x$SNMP_LIBS" != "x"; then
24529         break;
24530       fi
24531       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24532       cat >conftest.$ac_ext <<_ACEOF
24533 /* confdefs.h.  */
24534 _ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h.  */
24538 extern char snmp_build_var_op();
24539 int
24540 main ()
24541 {
24542  snmp_build_var_op()
24543   ;
24544   return 0;
24545 }
24546 _ACEOF
24547 rm -f conftest.$ac_objext conftest$ac_exeext
24548 if { (ac_try="$ac_link"
24549 case "(($ac_try" in
24550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551   *) ac_try_echo=$ac_try;;
24552 esac
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554   (eval "$ac_link") 2>conftest.er1
24555   ac_status=$?
24556   grep -v '^ *+' conftest.er1 >conftest.err
24557   rm -f conftest.er1
24558   cat conftest.err >&5
24559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560   (exit $ac_status); } && {
24561          test -z "$ac_c_werror_flag" ||
24562          test ! -s conftest.err
24563        } && test -s conftest$ac_exeext &&
24564        $as_test_x conftest$ac_exeext; then
24565   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24566 else
24567   echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24569
24570         SNMP_LIBS=
24571 fi
24572
24573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24574       conftest$ac_exeext conftest.$ac_ext
24575       if test "x$SNMP_LIBS" != "x"; then
24576         break;
24577       fi
24578       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24579       cat >conftest.$ac_ext <<_ACEOF
24580 /* confdefs.h.  */
24581 _ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h.  */
24585 extern char snmp_build_var_op();
24586 int
24587 main ()
24588 {
24589  snmp_build_var_op()
24590   ;
24591   return 0;
24592 }
24593 _ACEOF
24594 rm -f conftest.$ac_objext conftest$ac_exeext
24595 if { (ac_try="$ac_link"
24596 case "(($ac_try" in
24597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598   *) ac_try_echo=$ac_try;;
24599 esac
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601   (eval "$ac_link") 2>conftest.er1
24602   ac_status=$?
24603   grep -v '^ *+' conftest.er1 >conftest.err
24604   rm -f conftest.er1
24605   cat conftest.err >&5
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); } && {
24608          test -z "$ac_c_werror_flag" ||
24609          test ! -s conftest.err
24610        } && test -s conftest$ac_exeext &&
24611        $as_test_x conftest$ac_exeext; then
24612   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24613 else
24614   echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617         SNMP_LIBS=
24618 fi
24619
24620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24621       conftest$ac_exeext conftest.$ac_ext
24622       if test "x$SNMP_LIBS" != "x"; then
24623         break;
24624       fi
24625     done
24626   fi
24627   LIBS="$old_LIBS"
24628
24629           CFLAGS="$old_CFLAGS"
24630   if test "x$SNMP_LIBS" = "x"; then
24631     { echo "$as_me:$LINENO: result: no" >&5
24632 echo "${ECHO_T}no" >&6; }
24633     SNMP_INCLUDE=
24634   else
24635     { echo "$as_me:$LINENO: result: yes" >&5
24636 echo "${ECHO_T}yes" >&6; }
24637
24638 cat >>confdefs.h <<\_ACEOF
24639 #define WITH_SNMP
24640 _ACEOF
24641
24642
24643 cat >>confdefs.h <<\_ACEOF
24644 #define HAVE_LIBSNMP
24645 _ACEOF
24646
24647   fi
24648 fi
24649
24650 fi
24651
24652
24653 cat >>confdefs.h <<\_ACEOF
24654 #define GNUSTYLE 1
24655 _ACEOF
24656
24657
24658 cat >>confdefs.h <<\_ACEOF
24659 #define SYSVSTYLE 2
24660 _ACEOF
24661
24662
24663 cat >>confdefs.h <<\_ACEOF
24664 #define BSDSTYLE 3
24665 _ACEOF
24666
24667 gethostbyaddrrstyle=""
24668 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24669 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24670 case "$host" in
24671 *-freebsd*)
24672         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24673 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24674 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24675   echo $ECHO_N "(cached) $ECHO_C" >&6
24676 else
24677   cat >conftest.$ac_ext <<_ACEOF
24678 /* confdefs.h.  */
24679 _ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h.  */
24683
24684 #ifdef HAVE_NETDB_H
24685 #include <netdb.h>
24686 #endif
24687
24688
24689 int
24690 main ()
24691 {
24692 #ifndef gethostbyaddr_r
24693   (void) gethostbyaddr_r;
24694 #endif
24695
24696   ;
24697   return 0;
24698 }
24699 _ACEOF
24700 rm -f conftest.$ac_objext
24701 if { (ac_try="$ac_compile"
24702 case "(($ac_try" in
24703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704   *) ac_try_echo=$ac_try;;
24705 esac
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707   (eval "$ac_compile") 2>conftest.er1
24708   ac_status=$?
24709   grep -v '^ *+' conftest.er1 >conftest.err
24710   rm -f conftest.er1
24711   cat conftest.err >&5
24712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713   (exit $ac_status); } && {
24714          test -z "$ac_c_werror_flag" ||
24715          test ! -s conftest.err
24716        } && test -s conftest.$ac_objext; then
24717   ac_cv_have_decl_gethostbyaddr_r=yes
24718 else
24719   echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24721
24722         ac_cv_have_decl_gethostbyaddr_r=no
24723 fi
24724
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726 fi
24727 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24728 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24729 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24730
24731 cat >>confdefs.h <<_ACEOF
24732 #define HAVE_DECL_GETHOSTBYADDR_R 1
24733 _ACEOF
24734
24735
24736 else
24737   cat >>confdefs.h <<_ACEOF
24738 #define HAVE_DECL_GETHOSTBYADDR_R 0
24739 _ACEOF
24740
24741
24742
24743 cat >>confdefs.h <<\_ACEOF
24744 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24745 _ACEOF
24746
24747                 gethostbyaddrrstyle=BSD
24748                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24749 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24750
24751 fi
24752
24753
24754         ;;
24755 esac
24756 if test "x$gethostbyaddrrstyle" = "x"; then
24757         cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h.  */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h.  */
24763
24764 #include <stdio.h>
24765 #include <netdb.h>
24766
24767 int
24768 main ()
24769 {
24770  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24771   ;
24772   return 0;
24773 }
24774 _ACEOF
24775 rm -f conftest.$ac_objext conftest$ac_exeext
24776 if { (ac_try="$ac_link"
24777 case "(($ac_try" in
24778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779   *) ac_try_echo=$ac_try;;
24780 esac
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782   (eval "$ac_link") 2>conftest.er1
24783   ac_status=$?
24784   grep -v '^ *+' conftest.er1 >conftest.err
24785   rm -f conftest.er1
24786   cat conftest.err >&5
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); } && {
24789          test -z "$ac_c_werror_flag" ||
24790          test ! -s conftest.err
24791        } && test -s conftest$ac_exeext &&
24792        $as_test_x conftest$ac_exeext; then
24793
24794
24795 cat >>confdefs.h <<\_ACEOF
24796 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24797 _ACEOF
24798
24799         gethostbyaddrrstyle=GNU
24800
24801 else
24802   echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24804
24805
24806 fi
24807
24808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24809       conftest$ac_exeext conftest.$ac_ext
24810 fi
24811 if test "x$gethostbyaddrrstyle" = "x"; then
24812         cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h.  */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h.  */
24818
24819 #include <stdio.h>
24820 #include <netdb.h>
24821
24822 int
24823 main ()
24824 {
24825  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24826   ;
24827   return 0;
24828 }
24829 _ACEOF
24830 rm -f conftest.$ac_objext conftest$ac_exeext
24831 if { (ac_try="$ac_link"
24832 case "(($ac_try" in
24833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834   *) ac_try_echo=$ac_try;;
24835 esac
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837   (eval "$ac_link") 2>conftest.er1
24838   ac_status=$?
24839   grep -v '^ *+' conftest.er1 >conftest.err
24840   rm -f conftest.er1
24841   cat conftest.err >&5
24842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843   (exit $ac_status); } && {
24844          test -z "$ac_c_werror_flag" ||
24845          test ! -s conftest.err
24846        } && test -s conftest$ac_exeext &&
24847        $as_test_x conftest$ac_exeext; then
24848
24849
24850 cat >>confdefs.h <<\_ACEOF
24851 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24852 _ACEOF
24853
24854                 gethostbyaddrrstyle=SYSV
24855
24856 else
24857   echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24859
24860
24861 fi
24862
24863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24864       conftest$ac_exeext conftest.$ac_ext
24865 fi
24866 if test "x$gethostbyaddrrstyle" = "x"; then
24867         cat >conftest.$ac_ext <<_ACEOF
24868 /* confdefs.h.  */
24869 _ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h.  */
24873
24874 #include <stdio.h>
24875 #include <netdb.h>
24876
24877 int
24878 main ()
24879 {
24880  gethostbyaddr(NULL, 0, 0)
24881   ;
24882   return 0;
24883 }
24884 _ACEOF
24885 rm -f conftest.$ac_objext conftest$ac_exeext
24886 if { (ac_try="$ac_link"
24887 case "(($ac_try" in
24888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24889   *) ac_try_echo=$ac_try;;
24890 esac
24891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24892   (eval "$ac_link") 2>conftest.er1
24893   ac_status=$?
24894   grep -v '^ *+' conftest.er1 >conftest.err
24895   rm -f conftest.er1
24896   cat conftest.err >&5
24897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898   (exit $ac_status); } && {
24899          test -z "$ac_c_werror_flag" ||
24900          test ! -s conftest.err
24901        } && test -s conftest$ac_exeext &&
24902        $as_test_x conftest$ac_exeext; then
24903
24904
24905 cat >>confdefs.h <<\_ACEOF
24906 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24907 _ACEOF
24908
24909                 gethostbyaddrrstyle=BSD
24910
24911 else
24912   echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24914
24915
24916 fi
24917
24918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24919       conftest$ac_exeext conftest.$ac_ext
24920 fi
24921
24922 if test "x$gethostbyaddrrstyle" = "x"; then
24923         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24924 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24925 else
24926         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24927 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24928 fi
24929
24930 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24931         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24932 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24933 fi
24934
24935 gethostbynamerstyle=""
24936 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24937 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24938 cat >conftest.$ac_ext <<_ACEOF
24939 /* confdefs.h.  */
24940 _ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h.  */
24944
24945 #include <stdio.h>
24946 #include <netdb.h>
24947
24948 int
24949 main ()
24950 {
24951  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24952   ;
24953   return 0;
24954 }
24955 _ACEOF
24956 rm -f conftest.$ac_objext conftest$ac_exeext
24957 if { (ac_try="$ac_link"
24958 case "(($ac_try" in
24959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960   *) ac_try_echo=$ac_try;;
24961 esac
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963   (eval "$ac_link") 2>conftest.er1
24964   ac_status=$?
24965   grep -v '^ *+' conftest.er1 >conftest.err
24966   rm -f conftest.er1
24967   cat conftest.err >&5
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); } && {
24970          test -z "$ac_c_werror_flag" ||
24971          test ! -s conftest.err
24972        } && test -s conftest$ac_exeext &&
24973        $as_test_x conftest$ac_exeext; then
24974
24975
24976 cat >>confdefs.h <<\_ACEOF
24977 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24978 _ACEOF
24979
24980         gethostbynamerstyle=GNU
24981
24982 else
24983   echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24985
24986
24987 fi
24988
24989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24990       conftest$ac_exeext conftest.$ac_ext
24991 if test "x$gethostbynamerstyle" = "x"; then
24992         cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h.  */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h.  */
24998
24999 #include <stdio.h>
25000 #include <netdb.h>
25001
25002 int
25003 main ()
25004 {
25005  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25006   ;
25007   return 0;
25008 }
25009 _ACEOF
25010 rm -f conftest.$ac_objext conftest$ac_exeext
25011 if { (ac_try="$ac_link"
25012 case "(($ac_try" in
25013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014   *) ac_try_echo=$ac_try;;
25015 esac
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017   (eval "$ac_link") 2>conftest.er1
25018   ac_status=$?
25019   grep -v '^ *+' conftest.er1 >conftest.err
25020   rm -f conftest.er1
25021   cat conftest.err >&5
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); } && {
25024          test -z "$ac_c_werror_flag" ||
25025          test ! -s conftest.err
25026        } && test -s conftest$ac_exeext &&
25027        $as_test_x conftest$ac_exeext; then
25028
25029
25030 cat >>confdefs.h <<\_ACEOF
25031 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25032 _ACEOF
25033
25034                 gethostbynamerstyle=SYSV
25035
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040
25041 fi
25042
25043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25044       conftest$ac_exeext conftest.$ac_ext
25045 fi
25046 if test "x$gethostbynamerstyle" = "x"; then
25047         cat >conftest.$ac_ext <<_ACEOF
25048 /* confdefs.h.  */
25049 _ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h.  */
25053
25054 #include <stdio.h>
25055 #include <netdb.h>
25056
25057 int
25058 main ()
25059 {
25060  gethostbyname(NULL)
25061   ;
25062   return 0;
25063 }
25064 _ACEOF
25065 rm -f conftest.$ac_objext conftest$ac_exeext
25066 if { (ac_try="$ac_link"
25067 case "(($ac_try" in
25068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069   *) ac_try_echo=$ac_try;;
25070 esac
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072   (eval "$ac_link") 2>conftest.er1
25073   ac_status=$?
25074   grep -v '^ *+' conftest.er1 >conftest.err
25075   rm -f conftest.er1
25076   cat conftest.err >&5
25077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); } && {
25079          test -z "$ac_c_werror_flag" ||
25080          test ! -s conftest.err
25081        } && test -s conftest$ac_exeext &&
25082        $as_test_x conftest$ac_exeext; then
25083
25084
25085 cat >>confdefs.h <<\_ACEOF
25086 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25087 _ACEOF
25088
25089                 gethostbynamerstyle=BSD
25090
25091 else
25092   echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25094
25095
25096 fi
25097
25098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25099       conftest$ac_exeext conftest.$ac_ext
25100 fi
25101
25102 if test "x$gethostbynamerstyle" = "x"; then
25103         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25104 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25105 else
25106         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25107 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25108 fi
25109
25110 if test "x$gethostbynamerstyle" = "xBSD"; then
25111         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25112 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25113 fi
25114
25115
25116 cat >>confdefs.h <<\_ACEOF
25117 #define POSIXSTYLE 1
25118 _ACEOF
25119
25120
25121 cat >>confdefs.h <<\_ACEOF
25122 #define SOLARISSTYLE 2
25123 _ACEOF
25124
25125 ctimerstyle=""
25126 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25127 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25128 cat >conftest.$ac_ext <<_ACEOF
25129 /* confdefs.h.  */
25130 _ACEOF
25131 cat confdefs.h >>conftest.$ac_ext
25132 cat >>conftest.$ac_ext <<_ACEOF
25133 /* end confdefs.h.  */
25134
25135 #include <time.h>
25136
25137 int
25138 main ()
25139 {
25140  ctime_r(NULL, NULL, 0)
25141   ;
25142   return 0;
25143 }
25144 _ACEOF
25145 rm -f conftest.$ac_objext conftest$ac_exeext
25146 if { (ac_try="$ac_link"
25147 case "(($ac_try" in
25148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25149   *) ac_try_echo=$ac_try;;
25150 esac
25151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25152   (eval "$ac_link") 2>conftest.er1
25153   ac_status=$?
25154   grep -v '^ *+' conftest.er1 >conftest.err
25155   rm -f conftest.er1
25156   cat conftest.err >&5
25157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158   (exit $ac_status); } && {
25159          test -z "$ac_c_werror_flag" ||
25160          test ! -s conftest.err
25161        } && test -s conftest$ac_exeext &&
25162        $as_test_x conftest$ac_exeext; then
25163
25164
25165 cat >>confdefs.h <<\_ACEOF
25166 #define CTIMERSTYLE SOLARISSTYLE
25167 _ACEOF
25168
25169         ctimerstyle="SOLARIS"
25170
25171 else
25172   echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175
25176 fi
25177
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25179       conftest$ac_exeext conftest.$ac_ext
25180 if test "x$ctimerstyle" = "x"; then
25181         cat >conftest.$ac_ext <<_ACEOF
25182 /* confdefs.h.  */
25183 _ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h.  */
25187
25188 #include <time.h>
25189
25190 int
25191 main ()
25192 {
25193  ctime_r(NULL, NULL)
25194   ;
25195   return 0;
25196 }
25197 _ACEOF
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202   *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205   (eval "$ac_link") 2>conftest.er1
25206   ac_status=$?
25207   grep -v '^ *+' conftest.er1 >conftest.err
25208   rm -f conftest.er1
25209   cat conftest.err >&5
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); } && {
25212          test -z "$ac_c_werror_flag" ||
25213          test ! -s conftest.err
25214        } && test -s conftest$ac_exeext &&
25215        $as_test_x conftest$ac_exeext; then
25216
25217
25218 cat >>confdefs.h <<\_ACEOF
25219 #define CTIMERSTYLE POSIXSTYLE
25220 _ACEOF
25221
25222                 ctimerstyle="POSIX"
25223
25224 else
25225   echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25227
25228
25229 fi
25230
25231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25232       conftest$ac_exeext conftest.$ac_ext
25233 fi
25234
25235 if test "x$ctimerstyle" = "x"; then
25236         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25237 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25238 else
25239         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25240 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25241 fi
25242
25243 HOSTINFO=$host
25244
25245
25246
25247 top_builddir=`pwd`
25248 export top_builddir
25249 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25250 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25251
25252
25253
25254
25255
25256 mysubdirs="$LIBLTDLPATH"
25257 if test "x$EXPERIMENTAL" = "xyes"; then
25258   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25259     mysubdirs=`echo $mysubdirs $bar`
25260 else
25261         for bar in `cat "${srcdir}"/src/modules/stable`; do
25262     if test -f "${srcdir}"/src/modules/$bar/configure; then
25263       mysubdirs="$mysubdirs src/modules/$bar"
25264     fi
25265   done
25266 fi
25267
25268 if test "x$EXPERIMENTAL" = "xyes"; then
25269   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25270     MODULES="$MODULES $foo"
25271   done
25272 else
25273             for foo in `cat "${srcdir}"/src/modules/stable`; do
25274     MODULES="$MODULES $foo"
25275    done
25276 fi
25277
25278 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25279
25280
25281
25282
25283 ac_config_commands="$ac_config_commands stamp-h"
25284
25285 ac_config_commands="$ac_config_commands build-radpaths-h"
25286
25287 ac_config_commands="$ac_config_commands main-chmod"
25288
25289 ac_config_commands="$ac_config_commands scripts-chmod"
25290
25291
25292
25293
25294
25295 USE_SHARED_LIBS=$enable_shared
25296
25297 USE_STATIC_LIBS=$enable_static
25298
25299
25300
25301
25302
25303
25304 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf ./raddb/vmpsd.conf ./raddb/radrelay.conf"
25305
25306 cat >confcache <<\_ACEOF
25307 # This file is a shell script that caches the results of configure
25308 # tests run on this system so they can be shared between configure
25309 # scripts and configure runs, see configure's option --config-cache.
25310 # It is not useful on other systems.  If it contains results you don't
25311 # want to keep, you may remove or edit it.
25312 #
25313 # config.status only pays attention to the cache file if you give it
25314 # the --recheck option to rerun configure.
25315 #
25316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25318 # following values.
25319
25320 _ACEOF
25321
25322 # The following way of writing the cache mishandles newlines in values,
25323 # but we know of no workaround that is simple, portable, and efficient.
25324 # So, we kill variables containing newlines.
25325 # Ultrix sh set writes to stderr and can't be redirected directly,
25326 # and sets the high bit in the cache file unless we assign to the vars.
25327 (
25328   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25329     eval ac_val=\$$ac_var
25330     case $ac_val in #(
25331     *${as_nl}*)
25332       case $ac_var in #(
25333       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25334 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25335       esac
25336       case $ac_var in #(
25337       _ | IFS | as_nl) ;; #(
25338       *) $as_unset $ac_var ;;
25339       esac ;;
25340     esac
25341   done
25342
25343   (set) 2>&1 |
25344     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25345     *${as_nl}ac_space=\ *)
25346       # `set' does not quote correctly, so add quotes (double-quote
25347       # substitution turns \\\\ into \\, and sed turns \\ into \).
25348       sed -n \
25349         "s/'/'\\\\''/g;
25350           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25351       ;; #(
25352     *)
25353       # `set' quotes correctly as required by POSIX, so do not add quotes.
25354       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25355       ;;
25356     esac |
25357     sort
25358 ) |
25359   sed '
25360      /^ac_cv_env_/b end
25361      t clear
25362      :clear
25363      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25364      t end
25365      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25366      :end' >>confcache
25367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25368   if test -w "$cache_file"; then
25369     test "x$cache_file" != "x/dev/null" &&
25370       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25371 echo "$as_me: updating cache $cache_file" >&6;}
25372     cat confcache >$cache_file
25373   else
25374     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25375 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25376   fi
25377 fi
25378 rm -f confcache
25379
25380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25381 # Let make expand exec_prefix.
25382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25383
25384 DEFS=-DHAVE_CONFIG_H
25385
25386 ac_libobjs=
25387 ac_ltlibobjs=
25388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25389   # 1. Remove the extension, and $U if already installed.
25390   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25391   ac_i=`echo "$ac_i" | sed "$ac_script"`
25392   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25393   #    will be set to the directory where LIBOBJS objects are built.
25394   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25395   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25396 done
25397 LIBOBJS=$ac_libobjs
25398
25399 LTLIBOBJS=$ac_ltlibobjs
25400
25401
25402
25403 : ${CONFIG_STATUS=./config.status}
25404 ac_clean_files_save=$ac_clean_files
25405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25406 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25407 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25408 cat >$CONFIG_STATUS <<_ACEOF
25409 #! $SHELL
25410 # Generated by $as_me.
25411 # Run this file to recreate the current configuration.
25412 # Compiler output produced by configure, useful for debugging
25413 # configure, is in config.log if it exists.
25414
25415 debug=false
25416 ac_cs_recheck=false
25417 ac_cs_silent=false
25418 SHELL=\${CONFIG_SHELL-$SHELL}
25419 _ACEOF
25420
25421 cat >>$CONFIG_STATUS <<\_ACEOF
25422 ## --------------------- ##
25423 ## M4sh Initialization.  ##
25424 ## --------------------- ##
25425
25426 # Be more Bourne compatible
25427 DUALCASE=1; export DUALCASE # for MKS sh
25428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25429   emulate sh
25430   NULLCMD=:
25431   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25432   # is contrary to our usage.  Disable this feature.
25433   alias -g '${1+"$@"}'='"$@"'
25434   setopt NO_GLOB_SUBST
25435 else
25436   case `(set -o) 2>/dev/null` in
25437   *posix*) set -o posix ;;
25438 esac
25439
25440 fi
25441
25442
25443
25444
25445 # PATH needs CR
25446 # Avoid depending upon Character Ranges.
25447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25450 as_cr_digits='0123456789'
25451 as_cr_alnum=$as_cr_Letters$as_cr_digits
25452
25453 # The user is always right.
25454 if test "${PATH_SEPARATOR+set}" != set; then
25455   echo "#! /bin/sh" >conf$$.sh
25456   echo  "exit 0"   >>conf$$.sh
25457   chmod +x conf$$.sh
25458   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25459     PATH_SEPARATOR=';'
25460   else
25461     PATH_SEPARATOR=:
25462   fi
25463   rm -f conf$$.sh
25464 fi
25465
25466 # Support unset when possible.
25467 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25468   as_unset=unset
25469 else
25470   as_unset=false
25471 fi
25472
25473
25474 # IFS
25475 # We need space, tab and new line, in precisely that order.  Quoting is
25476 # there to prevent editors from complaining about space-tab.
25477 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25478 # splitting by setting IFS to empty value.)
25479 as_nl='
25480 '
25481 IFS=" ""        $as_nl"
25482
25483 # Find who we are.  Look in the path if we contain no directory separator.
25484 case $0 in
25485   *[\\/]* ) as_myself=$0 ;;
25486   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25487 for as_dir in $PATH
25488 do
25489   IFS=$as_save_IFS
25490   test -z "$as_dir" && as_dir=.
25491   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25492 done
25493 IFS=$as_save_IFS
25494
25495      ;;
25496 esac
25497 # We did not find ourselves, most probably we were run as `sh COMMAND'
25498 # in which case we are not to be found in the path.
25499 if test "x$as_myself" = x; then
25500   as_myself=$0
25501 fi
25502 if test ! -f "$as_myself"; then
25503   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25504   { (exit 1); exit 1; }
25505 fi
25506
25507 # Work around bugs in pre-3.0 UWIN ksh.
25508 for as_var in ENV MAIL MAILPATH
25509 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25510 done
25511 PS1='$ '
25512 PS2='> '
25513 PS4='+ '
25514
25515 # NLS nuisances.
25516 for as_var in \
25517   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25518   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25519   LC_TELEPHONE LC_TIME
25520 do
25521   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25522     eval $as_var=C; export $as_var
25523   else
25524     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25525   fi
25526 done
25527
25528 # Required to use basename.
25529 if expr a : '\(a\)' >/dev/null 2>&1 &&
25530    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25531   as_expr=expr
25532 else
25533   as_expr=false
25534 fi
25535
25536 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25537   as_basename=basename
25538 else
25539   as_basename=false
25540 fi
25541
25542
25543 # Name of the executable.
25544 as_me=`$as_basename -- "$0" ||
25545 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25546          X"$0" : 'X\(//\)$' \| \
25547          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25548 echo X/"$0" |
25549     sed '/^.*\/\([^/][^/]*\)\/*$/{
25550             s//\1/
25551             q
25552           }
25553           /^X\/\(\/\/\)$/{
25554             s//\1/
25555             q
25556           }
25557           /^X\/\(\/\).*/{
25558             s//\1/
25559             q
25560           }
25561           s/.*/./; q'`
25562
25563 # CDPATH.
25564 $as_unset CDPATH
25565
25566
25567
25568   as_lineno_1=$LINENO
25569   as_lineno_2=$LINENO
25570   test "x$as_lineno_1" != "x$as_lineno_2" &&
25571   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25572
25573   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25574   # uniformly replaced by the line number.  The first 'sed' inserts a
25575   # line-number line after each line using $LINENO; the second 'sed'
25576   # does the real work.  The second script uses 'N' to pair each
25577   # line-number line with the line containing $LINENO, and appends
25578   # trailing '-' during substitution so that $LINENO is not a special
25579   # case at line end.
25580   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25581   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25582   # E. McMahon (1931-1989) for sed's syntax.  :-)
25583   sed -n '
25584     p
25585     /[$]LINENO/=
25586   ' <$as_myself |
25587     sed '
25588       s/[$]LINENO.*/&-/
25589       t lineno
25590       b
25591       :lineno
25592       N
25593       :loop
25594       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25595       t loop
25596       s/-\n.*//
25597     ' >$as_me.lineno &&
25598   chmod +x "$as_me.lineno" ||
25599     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25600    { (exit 1); exit 1; }; }
25601
25602   # Don't try to exec as it changes $[0], causing all sort of problems
25603   # (the dirname of $[0] is not the place where we might find the
25604   # original and so on.  Autoconf is especially sensitive to this).
25605   . "./$as_me.lineno"
25606   # Exit status is that of the last command.
25607   exit
25608 }
25609
25610
25611 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25612   as_dirname=dirname
25613 else
25614   as_dirname=false
25615 fi
25616
25617 ECHO_C= ECHO_N= ECHO_T=
25618 case `echo -n x` in
25619 -n*)
25620   case `echo 'x\c'` in
25621   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25622   *)   ECHO_C='\c';;
25623   esac;;
25624 *)
25625   ECHO_N='-n';;
25626 esac
25627
25628 if expr a : '\(a\)' >/dev/null 2>&1 &&
25629    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25630   as_expr=expr
25631 else
25632   as_expr=false
25633 fi
25634
25635 rm -f conf$$ conf$$.exe conf$$.file
25636 if test -d conf$$.dir; then
25637   rm -f conf$$.dir/conf$$.file
25638 else
25639   rm -f conf$$.dir
25640   mkdir conf$$.dir
25641 fi
25642 echo >conf$$.file
25643 if ln -s conf$$.file conf$$ 2>/dev/null; then
25644   as_ln_s='ln -s'
25645   # ... but there are two gotchas:
25646   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25647   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25648   # In both cases, we have to default to `cp -p'.
25649   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25650     as_ln_s='cp -p'
25651 elif ln conf$$.file conf$$ 2>/dev/null; then
25652   as_ln_s=ln
25653 else
25654   as_ln_s='cp -p'
25655 fi
25656 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25657 rmdir conf$$.dir 2>/dev/null
25658
25659 if mkdir -p . 2>/dev/null; then
25660   as_mkdir_p=:
25661 else
25662   test -d ./-p && rmdir ./-p
25663   as_mkdir_p=false
25664 fi
25665
25666 if test -x / >/dev/null 2>&1; then
25667   as_test_x='test -x'
25668 else
25669   if ls -dL / >/dev/null 2>&1; then
25670     as_ls_L_option=L
25671   else
25672     as_ls_L_option=
25673   fi
25674   as_test_x='
25675     eval sh -c '\''
25676       if test -d "$1"; then
25677         test -d "$1/.";
25678       else
25679         case $1 in
25680         -*)set "./$1";;
25681         esac;
25682         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25683         ???[sx]*):;;*)false;;esac;fi
25684     '\'' sh
25685   '
25686 fi
25687 as_executable_p=$as_test_x
25688
25689 # Sed expression to map a string onto a valid CPP name.
25690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25691
25692 # Sed expression to map a string onto a valid variable name.
25693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25694
25695
25696 exec 6>&1
25697
25698 # Save the log message, to keep $[0] and so on meaningful, and to
25699 # report actual input values of CONFIG_FILES etc. instead of their
25700 # values after options handling.
25701 ac_log="
25702 This file was extended by $as_me, which was
25703 generated by GNU Autoconf 2.61.  Invocation command line was
25704
25705   CONFIG_FILES    = $CONFIG_FILES
25706   CONFIG_HEADERS  = $CONFIG_HEADERS
25707   CONFIG_LINKS    = $CONFIG_LINKS
25708   CONFIG_COMMANDS = $CONFIG_COMMANDS
25709   $ $0 $@
25710
25711 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25712 "
25713
25714 _ACEOF
25715
25716 cat >>$CONFIG_STATUS <<_ACEOF
25717 # Files that config.status was made for.
25718 config_files="$ac_config_files"
25719 config_headers="$ac_config_headers"
25720 config_commands="$ac_config_commands"
25721
25722 _ACEOF
25723
25724 cat >>$CONFIG_STATUS <<\_ACEOF
25725 ac_cs_usage="\
25726 \`$as_me' instantiates files from templates according to the
25727 current configuration.
25728
25729 Usage: $0 [OPTIONS] [FILE]...
25730
25731   -h, --help       print this help, then exit
25732   -V, --version    print version number and configuration settings, then exit
25733   -q, --quiet      do not print progress messages
25734   -d, --debug      don't remove temporary files
25735       --recheck    update $as_me by reconfiguring in the same conditions
25736   --file=FILE[:TEMPLATE]
25737                    instantiate the configuration file FILE
25738   --header=FILE[:TEMPLATE]
25739                    instantiate the configuration header FILE
25740
25741 Configuration files:
25742 $config_files
25743
25744 Configuration headers:
25745 $config_headers
25746
25747 Configuration commands:
25748 $config_commands
25749
25750 Report bugs to <bug-autoconf@gnu.org>."
25751
25752 _ACEOF
25753 cat >>$CONFIG_STATUS <<_ACEOF
25754 ac_cs_version="\\
25755 config.status
25756 configured by $0, generated by GNU Autoconf 2.61,
25757   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25758
25759 Copyright (C) 2006 Free Software Foundation, Inc.
25760 This config.status script is free software; the Free Software Foundation
25761 gives unlimited permission to copy, distribute and modify it."
25762
25763 ac_pwd='$ac_pwd'
25764 srcdir='$srcdir'
25765 _ACEOF
25766
25767 cat >>$CONFIG_STATUS <<\_ACEOF
25768 # If no file are specified by the user, then we need to provide default
25769 # value.  By we need to know if files were specified by the user.
25770 ac_need_defaults=:
25771 while test $# != 0
25772 do
25773   case $1 in
25774   --*=*)
25775     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25776     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25777     ac_shift=:
25778     ;;
25779   *)
25780     ac_option=$1
25781     ac_optarg=$2
25782     ac_shift=shift
25783     ;;
25784   esac
25785
25786   case $ac_option in
25787   # Handling of the options.
25788   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25789     ac_cs_recheck=: ;;
25790   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25791     echo "$ac_cs_version"; exit ;;
25792   --debug | --debu | --deb | --de | --d | -d )
25793     debug=: ;;
25794   --file | --fil | --fi | --f )
25795     $ac_shift
25796     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25797     ac_need_defaults=false;;
25798   --header | --heade | --head | --hea )
25799     $ac_shift
25800     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25801     ac_need_defaults=false;;
25802   --he | --h)
25803     # Conflict between --help and --header
25804     { echo "$as_me: error: ambiguous option: $1
25805 Try \`$0 --help' for more information." >&2
25806    { (exit 1); exit 1; }; };;
25807   --help | --hel | -h )
25808     echo "$ac_cs_usage"; exit ;;
25809   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25810   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25811     ac_cs_silent=: ;;
25812
25813   # This is an error.
25814   -*) { echo "$as_me: error: unrecognized option: $1
25815 Try \`$0 --help' for more information." >&2
25816    { (exit 1); exit 1; }; } ;;
25817
25818   *) ac_config_targets="$ac_config_targets $1"
25819      ac_need_defaults=false ;;
25820
25821   esac
25822   shift
25823 done
25824
25825 ac_configure_extra_args=
25826
25827 if $ac_cs_silent; then
25828   exec 6>/dev/null
25829   ac_configure_extra_args="$ac_configure_extra_args --silent"
25830 fi
25831
25832 _ACEOF
25833 cat >>$CONFIG_STATUS <<_ACEOF
25834 if \$ac_cs_recheck; then
25835   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25836   CONFIG_SHELL=$SHELL
25837   export CONFIG_SHELL
25838   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25839 fi
25840
25841 _ACEOF
25842 cat >>$CONFIG_STATUS <<\_ACEOF
25843 exec 5>>config.log
25844 {
25845   echo
25846   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25847 ## Running $as_me. ##
25848 _ASBOX
25849   echo "$ac_log"
25850 } >&5
25851
25852 _ACEOF
25853 cat >>$CONFIG_STATUS <<_ACEOF
25854 _ACEOF
25855
25856 cat >>$CONFIG_STATUS <<\_ACEOF
25857
25858 # Handling of arguments.
25859 for ac_config_target in $ac_config_targets
25860 do
25861   case $ac_config_target in
25862     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25863     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25864     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25865     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25866     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25867     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25868     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25869     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25870     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25871     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25872     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25873     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25874     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25875     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25876     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25877     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25878     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25879     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25880     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25881     "./raddb/vmpsd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/vmpsd.conf" ;;
25882     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
25883
25884   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25885 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25886    { (exit 1); exit 1; }; };;
25887   esac
25888 done
25889
25890
25891 # If the user did not use the arguments to specify the items to instantiate,
25892 # then the envvar interface is used.  Set only those that are not.
25893 # We use the long form for the default assignment because of an extremely
25894 # bizarre bug on SunOS 4.1.3.
25895 if $ac_need_defaults; then
25896   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25897   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25898   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25899 fi
25900
25901 # Have a temporary directory for convenience.  Make it in the build tree
25902 # simply because there is no reason against having it here, and in addition,
25903 # creating and moving files from /tmp can sometimes cause problems.
25904 # Hook for its removal unless debugging.
25905 # Note that there is a small window in which the directory will not be cleaned:
25906 # after its creation but before its name has been assigned to `$tmp'.
25907 $debug ||
25908 {
25909   tmp=
25910   trap 'exit_status=$?
25911   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25912 ' 0
25913   trap '{ (exit 1); exit 1; }' 1 2 13 15
25914 }
25915 # Create a (secure) tmp directory for tmp files.
25916
25917 {
25918   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25919   test -n "$tmp" && test -d "$tmp"
25920 }  ||
25921 {
25922   tmp=./conf$$-$RANDOM
25923   (umask 077 && mkdir "$tmp")
25924 } ||
25925 {
25926    echo "$me: cannot create a temporary directory in ." >&2
25927    { (exit 1); exit 1; }
25928 }
25929
25930 #
25931 # Set up the sed scripts for CONFIG_FILES section.
25932 #
25933
25934 # No need to generate the scripts if there are no CONFIG_FILES.
25935 # This happens for instance when ./config.status config.h
25936 if test -n "$CONFIG_FILES"; then
25937
25938 _ACEOF
25939
25940
25941
25942 ac_delim='%!_!# '
25943 for ac_last_try in false false false false false :; do
25944   cat >conf$$subs.sed <<_ACEOF
25945 SHELL!$SHELL$ac_delim
25946 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25947 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25948 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25949 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25950 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25951 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25952 exec_prefix!$exec_prefix$ac_delim
25953 prefix!$prefix$ac_delim
25954 program_transform_name!$program_transform_name$ac_delim
25955 bindir!$bindir$ac_delim
25956 sbindir!$sbindir$ac_delim
25957 libexecdir!$libexecdir$ac_delim
25958 datarootdir!$datarootdir$ac_delim
25959 datadir!$datadir$ac_delim
25960 sysconfdir!$sysconfdir$ac_delim
25961 sharedstatedir!$sharedstatedir$ac_delim
25962 localstatedir!$localstatedir$ac_delim
25963 includedir!$includedir$ac_delim
25964 oldincludedir!$oldincludedir$ac_delim
25965 docdir!$docdir$ac_delim
25966 infodir!$infodir$ac_delim
25967 htmldir!$htmldir$ac_delim
25968 dvidir!$dvidir$ac_delim
25969 pdfdir!$pdfdir$ac_delim
25970 psdir!$psdir$ac_delim
25971 libdir!$libdir$ac_delim
25972 localedir!$localedir$ac_delim
25973 mandir!$mandir$ac_delim
25974 DEFS!$DEFS$ac_delim
25975 ECHO_C!$ECHO_C$ac_delim
25976 ECHO_N!$ECHO_N$ac_delim
25977 ECHO_T!$ECHO_T$ac_delim
25978 LIBS!$LIBS$ac_delim
25979 build_alias!$build_alias$ac_delim
25980 host_alias!$host_alias$ac_delim
25981 target_alias!$target_alias$ac_delim
25982 CC!$CC$ac_delim
25983 CFLAGS!$CFLAGS$ac_delim
25984 LDFLAGS!$LDFLAGS$ac_delim
25985 CPPFLAGS!$CPPFLAGS$ac_delim
25986 ac_ct_CC!$ac_ct_CC$ac_delim
25987 EXEEXT!$EXEEXT$ac_delim
25988 OBJEXT!$OBJEXT$ac_delim
25989 CXX!$CXX$ac_delim
25990 CXXFLAGS!$CXXFLAGS$ac_delim
25991 ac_ct_CXX!$ac_ct_CXX$ac_delim
25992 CPP!$CPP$ac_delim
25993 GREP!$GREP$ac_delim
25994 EGREP!$EGREP$ac_delim
25995 RANLIB!$RANLIB$ac_delim
25996 GMAKE!$GMAKE$ac_delim
25997 MAKE!$MAKE$ac_delim
25998 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
25999 LIBTOOL!$LIBTOOL$ac_delim
26000 build!$build$ac_delim
26001 build_cpu!$build_cpu$ac_delim
26002 build_vendor!$build_vendor$ac_delim
26003 build_os!$build_os$ac_delim
26004 host!$host$ac_delim
26005 host_cpu!$host_cpu$ac_delim
26006 host_vendor!$host_vendor$ac_delim
26007 host_os!$host_os$ac_delim
26008 LN_S!$LN_S$ac_delim
26009 ECHO!$ECHO$ac_delim
26010 AR!$AR$ac_delim
26011 STRIP!$STRIP$ac_delim
26012 CXXCPP!$CXXCPP$ac_delim
26013 F77!$F77$ac_delim
26014 FFLAGS!$FFLAGS$ac_delim
26015 ac_ct_F77!$ac_ct_F77$ac_delim
26016 logdir!$logdir$ac_delim
26017 radacctdir!$radacctdir$ac_delim
26018 raddbdir!$raddbdir$ac_delim
26019 PERL!$PERL$ac_delim
26020 SNMPGET!$SNMPGET$ac_delim
26021 SNMPWALK!$SNMPWALK$ac_delim
26022 RUSERS!$RUSERS$ac_delim
26023 ACLOCAL!$ACLOCAL$ac_delim
26024 AUTOCONF!$AUTOCONF$ac_delim
26025 AUTOHEADER!$AUTOHEADER$ac_delim
26026 LOCATE!$LOCATE$ac_delim
26027 DIRNAME!$DIRNAME$ac_delim
26028 REGEX!$REGEX$ac_delim
26029 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26030 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26031 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26032 PCAP_LIBS!$PCAP_LIBS$ac_delim
26033 LIBPREFIX!$LIBPREFIX$ac_delim
26034 CRYPTLIB!$CRYPTLIB$ac_delim
26035 SNMP_LIBS!$SNMP_LIBS$ac_delim
26036 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26037 HOSTINFO!$HOSTINFO$ac_delim
26038 LIBLTDL!$LIBLTDL$ac_delim
26039 INCLTDL!$INCLTDL$ac_delim
26040 subdirs!$subdirs$ac_delim
26041 MODULES!$MODULES$ac_delim
26042 _ACEOF
26043
26044   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26045     break
26046   elif $ac_last_try; then
26047     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26048 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26049    { (exit 1); exit 1; }; }
26050   else
26051     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26052   fi
26053 done
26054
26055 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26056 if test -n "$ac_eof"; then
26057   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26058   ac_eof=`expr $ac_eof + 1`
26059 fi
26060
26061 cat >>$CONFIG_STATUS <<_ACEOF
26062 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26064 _ACEOF
26065 sed '
26066 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26067 s/^/s,@/; s/!/@,|#_!!_#|/
26068 :n
26069 t n
26070 s/'"$ac_delim"'$/,g/; t
26071 s/$/\\/; p
26072 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26073 ' >>$CONFIG_STATUS <conf$$subs.sed
26074 rm -f conf$$subs.sed
26075 cat >>$CONFIG_STATUS <<_ACEOF
26076 CEOF$ac_eof
26077 _ACEOF
26078
26079
26080 ac_delim='%!_!# '
26081 for ac_last_try in false false false false false :; do
26082   cat >conf$$subs.sed <<_ACEOF
26083 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26084 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26085 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26086 STATIC_MODULES!$STATIC_MODULES$ac_delim
26087 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26088 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26089 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26090 LIBOBJS!$LIBOBJS$ac_delim
26091 LTLIBOBJS!$LTLIBOBJS$ac_delim
26092 _ACEOF
26093
26094   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
26095     break
26096   elif $ac_last_try; then
26097     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26098 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26099    { (exit 1); exit 1; }; }
26100   else
26101     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26102   fi
26103 done
26104
26105 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26106 if test -n "$ac_eof"; then
26107   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26108   ac_eof=`expr $ac_eof + 1`
26109 fi
26110
26111 cat >>$CONFIG_STATUS <<_ACEOF
26112 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26114 _ACEOF
26115 sed '
26116 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26117 s/^/s,@/; s/!/@,|#_!!_#|/
26118 :n
26119 t n
26120 s/'"$ac_delim"'$/,g/; t
26121 s/$/\\/; p
26122 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26123 ' >>$CONFIG_STATUS <conf$$subs.sed
26124 rm -f conf$$subs.sed
26125 cat >>$CONFIG_STATUS <<_ACEOF
26126 :end
26127 s/|#_!!_#|//g
26128 CEOF$ac_eof
26129 _ACEOF
26130
26131
26132 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26133 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26134 # trailing colons and then remove the whole line if VPATH becomes empty
26135 # (actually we leave an empty line to preserve line numbers).
26136 if test "x$srcdir" = x.; then
26137   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26138 s/:*\$(srcdir):*/:/
26139 s/:*\${srcdir}:*/:/
26140 s/:*@srcdir@:*/:/
26141 s/^\([^=]*=[     ]*\):*/\1/
26142 s/:*$//
26143 s/^[^=]*=[       ]*$//
26144 }'
26145 fi
26146
26147 cat >>$CONFIG_STATUS <<\_ACEOF
26148 fi # test -n "$CONFIG_FILES"
26149
26150
26151 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26152 do
26153   case $ac_tag in
26154   :[FHLC]) ac_mode=$ac_tag; continue;;
26155   esac
26156   case $ac_mode$ac_tag in
26157   :[FHL]*:*);;
26158   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26159 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26160    { (exit 1); exit 1; }; };;
26161   :[FH]-) ac_tag=-:-;;
26162   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26163   esac
26164   ac_save_IFS=$IFS
26165   IFS=:
26166   set x $ac_tag
26167   IFS=$ac_save_IFS
26168   shift
26169   ac_file=$1
26170   shift
26171
26172   case $ac_mode in
26173   :L) ac_source=$1;;
26174   :[FH])
26175     ac_file_inputs=
26176     for ac_f
26177     do
26178       case $ac_f in
26179       -) ac_f="$tmp/stdin";;
26180       *) # Look for the file first in the build tree, then in the source tree
26181          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26182          # because $ac_f cannot contain `:'.
26183          test -f "$ac_f" ||
26184            case $ac_f in
26185            [\\/$]*) false;;
26186            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26187            esac ||
26188            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26189 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26190    { (exit 1); exit 1; }; };;
26191       esac
26192       ac_file_inputs="$ac_file_inputs $ac_f"
26193     done
26194
26195     # Let's still pretend it is `configure' which instantiates (i.e., don't
26196     # use $as_me), people would be surprised to read:
26197     #    /* config.h.  Generated by config.status.  */
26198     configure_input="Generated from "`IFS=:
26199           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26200     if test x"$ac_file" != x-; then
26201       configure_input="$ac_file.  $configure_input"
26202       { echo "$as_me:$LINENO: creating $ac_file" >&5
26203 echo "$as_me: creating $ac_file" >&6;}
26204     fi
26205
26206     case $ac_tag in
26207     *:-:* | *:-) cat >"$tmp/stdin";;
26208     esac
26209     ;;
26210   esac
26211
26212   ac_dir=`$as_dirname -- "$ac_file" ||
26213 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26214          X"$ac_file" : 'X\(//\)[^/]' \| \
26215          X"$ac_file" : 'X\(//\)$' \| \
26216          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26217 echo X"$ac_file" |
26218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26219             s//\1/
26220             q
26221           }
26222           /^X\(\/\/\)[^/].*/{
26223             s//\1/
26224             q
26225           }
26226           /^X\(\/\/\)$/{
26227             s//\1/
26228             q
26229           }
26230           /^X\(\/\).*/{
26231             s//\1/
26232             q
26233           }
26234           s/.*/./; q'`
26235   { as_dir="$ac_dir"
26236   case $as_dir in #(
26237   -*) as_dir=./$as_dir;;
26238   esac
26239   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26240     as_dirs=
26241     while :; do
26242       case $as_dir in #(
26243       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26244       *) as_qdir=$as_dir;;
26245       esac
26246       as_dirs="'$as_qdir' $as_dirs"
26247       as_dir=`$as_dirname -- "$as_dir" ||
26248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26249          X"$as_dir" : 'X\(//\)[^/]' \| \
26250          X"$as_dir" : 'X\(//\)$' \| \
26251          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26252 echo X"$as_dir" |
26253     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26254             s//\1/
26255             q
26256           }
26257           /^X\(\/\/\)[^/].*/{
26258             s//\1/
26259             q
26260           }
26261           /^X\(\/\/\)$/{
26262             s//\1/
26263             q
26264           }
26265           /^X\(\/\).*/{
26266             s//\1/
26267             q
26268           }
26269           s/.*/./; q'`
26270       test -d "$as_dir" && break
26271     done
26272     test -z "$as_dirs" || eval "mkdir $as_dirs"
26273   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26274 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26275    { (exit 1); exit 1; }; }; }
26276   ac_builddir=.
26277
26278 case "$ac_dir" in
26279 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26280 *)
26281   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26282   # A ".." for each directory in $ac_dir_suffix.
26283   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26284   case $ac_top_builddir_sub in
26285   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26286   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26287   esac ;;
26288 esac
26289 ac_abs_top_builddir=$ac_pwd
26290 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26291 # for backward compatibility:
26292 ac_top_builddir=$ac_top_build_prefix
26293
26294 case $srcdir in
26295   .)  # We are building in place.
26296     ac_srcdir=.
26297     ac_top_srcdir=$ac_top_builddir_sub
26298     ac_abs_top_srcdir=$ac_pwd ;;
26299   [\\/]* | ?:[\\/]* )  # Absolute name.
26300     ac_srcdir=$srcdir$ac_dir_suffix;
26301     ac_top_srcdir=$srcdir
26302     ac_abs_top_srcdir=$srcdir ;;
26303   *) # Relative name.
26304     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26305     ac_top_srcdir=$ac_top_build_prefix$srcdir
26306     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26307 esac
26308 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26309
26310
26311   case $ac_mode in
26312   :F)
26313   #
26314   # CONFIG_FILE
26315   #
26316
26317 _ACEOF
26318
26319 cat >>$CONFIG_STATUS <<\_ACEOF
26320 # If the template does not know about datarootdir, expand it.
26321 # FIXME: This hack should be removed a few years after 2.60.
26322 ac_datarootdir_hack=; ac_datarootdir_seen=
26323
26324 case `sed -n '/datarootdir/ {
26325   p
26326   q
26327 }
26328 /@datadir@/p
26329 /@docdir@/p
26330 /@infodir@/p
26331 /@localedir@/p
26332 /@mandir@/p
26333 ' $ac_file_inputs` in
26334 *datarootdir*) ac_datarootdir_seen=yes;;
26335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26336   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26337 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26338 _ACEOF
26339 cat >>$CONFIG_STATUS <<_ACEOF
26340   ac_datarootdir_hack='
26341   s&@datadir@&$datadir&g
26342   s&@docdir@&$docdir&g
26343   s&@infodir@&$infodir&g
26344   s&@localedir@&$localedir&g
26345   s&@mandir@&$mandir&g
26346     s&\\\${datarootdir}&$datarootdir&g' ;;
26347 esac
26348 _ACEOF
26349
26350 # Neutralize VPATH when `$srcdir' = `.'.
26351 # Shell code in configure.ac might set extrasub.
26352 # FIXME: do we really want to maintain this feature?
26353 cat >>$CONFIG_STATUS <<_ACEOF
26354   sed "$ac_vpsub
26355 $extrasub
26356 _ACEOF
26357 cat >>$CONFIG_STATUS <<\_ACEOF
26358 :t
26359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26360 s&@configure_input@&$configure_input&;t t
26361 s&@top_builddir@&$ac_top_builddir_sub&;t t
26362 s&@srcdir@&$ac_srcdir&;t t
26363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26364 s&@top_srcdir@&$ac_top_srcdir&;t t
26365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26366 s&@builddir@&$ac_builddir&;t t
26367 s&@abs_builddir@&$ac_abs_builddir&;t t
26368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26369 $ac_datarootdir_hack
26370 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26371
26372 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26373   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26374   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26375   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26376 which seems to be undefined.  Please make sure it is defined." >&5
26377 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26378 which seems to be undefined.  Please make sure it is defined." >&2;}
26379
26380   rm -f "$tmp/stdin"
26381   case $ac_file in
26382   -) cat "$tmp/out"; rm -f "$tmp/out";;
26383   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26384   esac
26385  ;;
26386   :H)
26387   #
26388   # CONFIG_HEADER
26389   #
26390 _ACEOF
26391
26392 # Transform confdefs.h into a sed script `conftest.defines', that
26393 # substitutes the proper values into config.h.in to produce config.h.
26394 rm -f conftest.defines conftest.tail
26395 # First, append a space to every undef/define line, to ease matching.
26396 echo 's/$/ /' >conftest.defines
26397 # Then, protect against being on the right side of a sed subst, or in
26398 # an unquoted here document, in config.status.  If some macros were
26399 # called several times there might be several #defines for the same
26400 # symbol, which is useless.  But do not sort them, since the last
26401 # AC_DEFINE must be honored.
26402 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26403 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26404 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26405 # PARAMS is the parameter list in the macro definition--in most cases, it's
26406 # just an empty string.
26407 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26408 ac_dB='\\)[      (].*,\\1define\\2'
26409 ac_dC=' '
26410 ac_dD=' ,'
26411
26412 uniq confdefs.h |
26413   sed -n '
26414         t rset
26415         :rset
26416         s/^[     ]*#[    ]*define[       ][      ]*//
26417         t ok
26418         d
26419         :ok
26420         s/[\\&,]/\\&/g
26421         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26422         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26423   ' >>conftest.defines
26424
26425 # Remove the space that was appended to ease matching.
26426 # Then replace #undef with comments.  This is necessary, for
26427 # example, in the case of _POSIX_SOURCE, which is predefined and required
26428 # on some systems where configure will not decide to define it.
26429 # (The regexp can be short, since the line contains either #define or #undef.)
26430 echo 's/ $//
26431 s,^[     #]*u.*,/* & */,' >>conftest.defines
26432
26433 # Break up conftest.defines:
26434 ac_max_sed_lines=50
26435
26436 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26437 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26438 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26439 # et cetera.
26440 ac_in='$ac_file_inputs'
26441 ac_out='"$tmp/out1"'
26442 ac_nxt='"$tmp/out2"'
26443
26444 while :
26445 do
26446   # Write a here document:
26447     cat >>$CONFIG_STATUS <<_ACEOF
26448     # First, check the format of the line:
26449     cat >"\$tmp/defines.sed" <<\\CEOF
26450 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26451 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26452 b
26453 :def
26454 _ACEOF
26455   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26456   echo 'CEOF
26457     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26458   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26459   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26460   grep . conftest.tail >/dev/null || break
26461   rm -f conftest.defines
26462   mv conftest.tail conftest.defines
26463 done
26464 rm -f conftest.defines conftest.tail
26465
26466 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26467 cat >>$CONFIG_STATUS <<\_ACEOF
26468   if test x"$ac_file" != x-; then
26469     echo "/* $configure_input  */" >"$tmp/config.h"
26470     cat "$ac_result" >>"$tmp/config.h"
26471     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26472       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26473 echo "$as_me: $ac_file is unchanged" >&6;}
26474     else
26475       rm -f $ac_file
26476       mv "$tmp/config.h" $ac_file
26477     fi
26478   else
26479     echo "/* $configure_input  */"
26480     cat "$ac_result"
26481   fi
26482   rm -f "$tmp/out12"
26483  ;;
26484
26485   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26486 echo "$as_me: executing $ac_file commands" >&6;}
26487  ;;
26488   esac
26489
26490
26491   case $ac_file$ac_mode in
26492     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26493     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26494     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26495     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26496
26497   esac
26498 done # for ac_tag
26499
26500
26501 { (exit 0); exit 0; }
26502 _ACEOF
26503 chmod +x $CONFIG_STATUS
26504 ac_clean_files=$ac_clean_files_save
26505
26506
26507 # configure is writing to config.log, and then calls config.status.
26508 # config.status does its own redirection, appending to config.log.
26509 # Unfortunately, on DOS this fails, as config.log is still kept open
26510 # by configure, so config.status won't be able to write to it; its
26511 # output is simply discarded.  So we exec the FD to /dev/null,
26512 # effectively closing config.log, so it can be properly (re)opened and
26513 # appended to by config.status.  When coming back to configure, we
26514 # need to make the FD available again.
26515 if test "$no_create" != yes; then
26516   ac_cs_success=:
26517   ac_config_status_args=
26518   test "$silent" = yes &&
26519     ac_config_status_args="$ac_config_status_args --quiet"
26520   exec 5>/dev/null
26521   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26522   exec 5>>config.log
26523   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26524   # would make configure fail if this is the last instruction.
26525   $ac_cs_success || { (exit 1); exit 1; }
26526 fi
26527
26528 #
26529 # CONFIG_SUBDIRS section.
26530 #
26531 if test "$no_recursion" != yes; then
26532
26533   # Remove --cache-file and --srcdir arguments so they do not pile up.
26534   ac_sub_configure_args=
26535   ac_prev=
26536   eval "set x $ac_configure_args"
26537   shift
26538   for ac_arg
26539   do
26540     if test -n "$ac_prev"; then
26541       ac_prev=
26542       continue
26543     fi
26544     case $ac_arg in
26545     -cache-file | --cache-file | --cache-fil | --cache-fi \
26546     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26547       ac_prev=cache_file ;;
26548     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26549     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26550     | --c=*)
26551       ;;
26552     --config-cache | -C)
26553       ;;
26554     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26555       ac_prev=srcdir ;;
26556     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26557       ;;
26558     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26559       ac_prev=prefix ;;
26560     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26561       ;;
26562     *)
26563       case $ac_arg in
26564       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26565       esac
26566       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26567     esac
26568   done
26569
26570   # Always prepend --prefix to ensure using the same prefix
26571   # in subdir configurations.
26572   ac_arg="--prefix=$prefix"
26573   case $ac_arg in
26574   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26575   esac
26576   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26577
26578   # Pass --silent
26579   if test "$silent" = yes; then
26580     ac_sub_configure_args="--silent $ac_sub_configure_args"
26581   fi
26582
26583   ac_popdir=`pwd`
26584   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26585
26586     # Do not complain, so a configure script can configure whichever
26587     # parts of a large source tree are present.
26588     test -d "$srcdir/$ac_dir" || continue
26589
26590     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26591     echo "$as_me:$LINENO: $ac_msg" >&5
26592     echo "$ac_msg" >&6
26593     { as_dir="$ac_dir"
26594   case $as_dir in #(
26595   -*) as_dir=./$as_dir;;
26596   esac
26597   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26598     as_dirs=
26599     while :; do
26600       case $as_dir in #(
26601       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26602       *) as_qdir=$as_dir;;
26603       esac
26604       as_dirs="'$as_qdir' $as_dirs"
26605       as_dir=`$as_dirname -- "$as_dir" ||
26606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26607          X"$as_dir" : 'X\(//\)[^/]' \| \
26608          X"$as_dir" : 'X\(//\)$' \| \
26609          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26610 echo X"$as_dir" |
26611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26612             s//\1/
26613             q
26614           }
26615           /^X\(\/\/\)[^/].*/{
26616             s//\1/
26617             q
26618           }
26619           /^X\(\/\/\)$/{
26620             s//\1/
26621             q
26622           }
26623           /^X\(\/\).*/{
26624             s//\1/
26625             q
26626           }
26627           s/.*/./; q'`
26628       test -d "$as_dir" && break
26629     done
26630     test -z "$as_dirs" || eval "mkdir $as_dirs"
26631   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26632 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26633    { (exit 1); exit 1; }; }; }
26634     ac_builddir=.
26635
26636 case "$ac_dir" in
26637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26638 *)
26639   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26640   # A ".." for each directory in $ac_dir_suffix.
26641   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26642   case $ac_top_builddir_sub in
26643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26645   esac ;;
26646 esac
26647 ac_abs_top_builddir=$ac_pwd
26648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26649 # for backward compatibility:
26650 ac_top_builddir=$ac_top_build_prefix
26651
26652 case $srcdir in
26653   .)  # We are building in place.
26654     ac_srcdir=.
26655     ac_top_srcdir=$ac_top_builddir_sub
26656     ac_abs_top_srcdir=$ac_pwd ;;
26657   [\\/]* | ?:[\\/]* )  # Absolute name.
26658     ac_srcdir=$srcdir$ac_dir_suffix;
26659     ac_top_srcdir=$srcdir
26660     ac_abs_top_srcdir=$srcdir ;;
26661   *) # Relative name.
26662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26663     ac_top_srcdir=$ac_top_build_prefix$srcdir
26664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26665 esac
26666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26667
26668
26669     cd "$ac_dir"
26670
26671     # Check for guested configure; otherwise get Cygnus style configure.
26672     if test -f "$ac_srcdir/configure.gnu"; then
26673       ac_sub_configure=$ac_srcdir/configure.gnu
26674     elif test -f "$ac_srcdir/configure"; then
26675       ac_sub_configure=$ac_srcdir/configure
26676     elif test -f "$ac_srcdir/configure.in"; then
26677       # This should be Cygnus configure.
26678       ac_sub_configure=$ac_aux_dir/configure
26679     else
26680       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26682       ac_sub_configure=
26683     fi
26684
26685     # The recursion is here.
26686     if test -n "$ac_sub_configure"; then
26687       # Make the cache file name correct relative to the subdirectory.
26688       case $cache_file in
26689       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26690       *) # Relative name.
26691         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26692       esac
26693
26694       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26695 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26696       # The eval makes quoting arguments work.
26697       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26698            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26699         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26700 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26701    { (exit 1); exit 1; }; }
26702     fi
26703
26704     cd "$ac_popdir"
26705   done
26706 fi
26707