corrected typo
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.260 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 case X$ECHO in
558 X*--fallback-echo)
559   # Remove one level of quotation (which was required for Make).
560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561   ;;
562 esac
563
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566   # Discard the --no-reexec flag, and continue.
567   shift
568 elif test "X$1" = X--fallback-echo; then
569   # Avoid inline document here, it may be left over
570   :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572   # Yippee, $echo works!
573   :
574 else
575   # Restart under the correct shell.
576   exec $SHELL "$0" --no-reexec ${1+"$@"}
577 fi
578
579 if test "X$1" = X--fallback-echo; then
580   # used as fallback echo
581   shift
582   cat <<EOF
583 $*
584 EOF
585   exit 0
586 fi
587
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598        echo_test_string=`eval $cmd` &&
599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600     then
601       break
602     fi
603   done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608    test "X$echo_testing_string" = "X$echo_test_string"; then
609   :
610 else
611   # The Solaris, AIX, and Digital Unix default echo programs unquote
612   # backslashes.  This makes it impossible to quote backslashes using
613   #   echo "$something" | sed 's/\\/\\\\/g'
614   #
615   # So, first we look for a working echo in the user's PATH.
616
617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618   for dir in $PATH /usr/ucb; do
619     IFS="$lt_save_ifs"
620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623        test "X$echo_testing_string" = "X$echo_test_string"; then
624       echo="$dir/echo"
625       break
626     fi
627   done
628   IFS="$lt_save_ifs"
629
630   if test "X$echo" = Xecho; then
631     # We didn't find a better echo, so look for alternatives.
632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634        test "X$echo_testing_string" = "X$echo_test_string"; then
635       # This shell has a builtin print -r that does the trick.
636       echo='print -r'
637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638          test "X$CONFIG_SHELL" != X/bin/ksh; then
639       # If we have ksh, try running configure again with it.
640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641       export ORIGINAL_CONFIG_SHELL
642       CONFIG_SHELL=/bin/ksh
643       export CONFIG_SHELL
644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645     else
646       # Try using printf.
647       echo='printf %s\n'
648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650          test "X$echo_testing_string" = "X$echo_test_string"; then
651         # Cool, printf works
652         :
653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654            test "X$echo_testing_string" = 'X\t' &&
655            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658         export CONFIG_SHELL
659         SHELL="$CONFIG_SHELL"
660         export SHELL
661         echo="$CONFIG_SHELL $0 --fallback-echo"
662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663            test "X$echo_testing_string" = 'X\t' &&
664            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665            test "X$echo_testing_string" = "X$echo_test_string"; then
666         echo="$CONFIG_SHELL $0 --fallback-echo"
667       else
668         # maybe with a smaller string...
669         prev=:
670
671         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673           then
674             break
675           fi
676           prev="$cmd"
677         done
678
679         if test "$prev" != 'sed 50q "$0"'; then
680           echo_test_string=`eval $prev`
681           export echo_test_string
682           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683         else
684           # Oops.  We lost completely, so just stick with echo.
685           echo=echo
686         fi
687       fi
688     fi
689   fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
706
707 exec 7<&0 </dev/null 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
726
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
733
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 ac_ct_CC
813 EXEEXT
814 OBJEXT
815 CXX
816 CXXFLAGS
817 ac_ct_CXX
818 CPP
819 GREP
820 EGREP
821 RANLIB
822 GMAKE
823 MAKE
824 LTDL_SUBDIRS
825 LIBTOOL
826 build
827 build_cpu
828 build_vendor
829 build_os
830 host
831 host_cpu
832 host_vendor
833 host_os
834 LN_S
835 ECHO
836 AR
837 STRIP
838 CXXCPP
839 F77
840 FFLAGS
841 ac_ct_F77
842 logdir
843 radacctdir
844 raddbdir
845 PERL
846 SNMPGET
847 SNMPWALK
848 RUSERS
849 ACLOCAL
850 AUTOCONF
851 AUTOHEADER
852 LOCATE
853 DIRNAME
854 REGEX
855 REGEX_EXTENDED
856 OPENSSL_INCLUDE
857 OPENSSL_LIBS
858 PCAP_LIBS
859 LIBPREFIX
860 CRYPTLIB
861 SNMP_LIBS
862 SNMP_INCLUDE
863 HOSTINFO
864 LIBLTDL
865 INCLTDL
866 subdirs
867 MODULES
868 INSTALLSTRIP
869 USE_SHARED_LIBS
870 USE_STATIC_LIBS
871 STATIC_MODULES
872 RADIUSD_MAJOR_VERSION
873 RADIUSD_MINOR_VERSION
874 RADIUSD_VERSION
875 LIBOBJS
876 LTLIBOBJS'
877 ac_subst_files=''
878       ac_precious_vars='build_alias
879 host_alias
880 target_alias
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 CXX
887 CXXFLAGS
888 CCC
889 CPP
890 CXXCPP
891 F77
892 FFLAGS'
893 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
894
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
900 cache_file=/dev/null
901 exec_prefix=NONE
902 no_create=
903 no_recursion=
904 prefix=NONE
905 program_prefix=NONE
906 program_suffix=NONE
907 program_transform_name=s,x,x,
908 silent=
909 site=
910 srcdir=
911 verbose=
912 x_includes=NONE
913 x_libraries=NONE
914
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE}'
932 infodir='${datarootdir}/info'
933 htmldir='${docdir}'
934 dvidir='${docdir}'
935 pdfdir='${docdir}'
936 psdir='${docdir}'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
940
941 ac_prev=
942 ac_dashdash=
943 for ac_option
944 do
945   # If the previous option needs an argument, assign it.
946   if test -n "$ac_prev"; then
947     eval $ac_prev=\$ac_option
948     ac_prev=
949     continue
950   fi
951
952   case $ac_option in
953   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954   *)    ac_optarg=yes ;;
955   esac
956
957   # Accept the important Cygnus configure options, so we can diagnose typos.
958
959   case $ac_dashdash$ac_option in
960   --)
961     ac_dashdash=yes ;;
962
963   -bindir | --bindir | --bindi | --bind | --bin | --bi)
964     ac_prev=bindir ;;
965   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966     bindir=$ac_optarg ;;
967
968   -build | --build | --buil | --bui | --bu)
969     ac_prev=build_alias ;;
970   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971     build_alias=$ac_optarg ;;
972
973   -cache-file | --cache-file | --cache-fil | --cache-fi \
974   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975     ac_prev=cache_file ;;
976   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978     cache_file=$ac_optarg ;;
979
980   --config-cache | -C)
981     cache_file=config.cache ;;
982
983   -datadir | --datadir | --datadi | --datad)
984     ac_prev=datadir ;;
985   -datadir=* | --datadir=* | --datadi=* | --datad=*)
986     datadir=$ac_optarg ;;
987
988   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989   | --dataroo | --dataro | --datar)
990     ac_prev=datarootdir ;;
991   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993     datarootdir=$ac_optarg ;;
994
995   -disable-* | --disable-*)
996     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000    { (exit 1); exit 1; }; }
1001     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002     eval enable_$ac_feature=no ;;
1003
1004   -docdir | --docdir | --docdi | --doc | --do)
1005     ac_prev=docdir ;;
1006   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007     docdir=$ac_optarg ;;
1008
1009   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010     ac_prev=dvidir ;;
1011   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012     dvidir=$ac_optarg ;;
1013
1014   -enable-* | --enable-*)
1015     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019    { (exit 1); exit 1; }; }
1020     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021     eval enable_$ac_feature=\$ac_optarg ;;
1022
1023   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025   | --exec | --exe | --ex)
1026     ac_prev=exec_prefix ;;
1027   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029   | --exec=* | --exe=* | --ex=*)
1030     exec_prefix=$ac_optarg ;;
1031
1032   -gas | --gas | --ga | --g)
1033     # Obsolete; use --with-gas.
1034     with_gas=yes ;;
1035
1036   -help | --help | --hel | --he | -h)
1037     ac_init_help=long ;;
1038   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039     ac_init_help=recursive ;;
1040   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041     ac_init_help=short ;;
1042
1043   -host | --host | --hos | --ho)
1044     ac_prev=host_alias ;;
1045   -host=* | --host=* | --hos=* | --ho=*)
1046     host_alias=$ac_optarg ;;
1047
1048   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049     ac_prev=htmldir ;;
1050   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051   | --ht=*)
1052     htmldir=$ac_optarg ;;
1053
1054   -includedir | --includedir | --includedi | --included | --include \
1055   | --includ | --inclu | --incl | --inc)
1056     ac_prev=includedir ;;
1057   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058   | --includ=* | --inclu=* | --incl=* | --inc=*)
1059     includedir=$ac_optarg ;;
1060
1061   -infodir | --infodir | --infodi | --infod | --info | --inf)
1062     ac_prev=infodir ;;
1063   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064     infodir=$ac_optarg ;;
1065
1066   -libdir | --libdir | --libdi | --libd)
1067     ac_prev=libdir ;;
1068   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069     libdir=$ac_optarg ;;
1070
1071   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072   | --libexe | --libex | --libe)
1073     ac_prev=libexecdir ;;
1074   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075   | --libexe=* | --libex=* | --libe=*)
1076     libexecdir=$ac_optarg ;;
1077
1078   -localedir | --localedir | --localedi | --localed | --locale)
1079     ac_prev=localedir ;;
1080   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081     localedir=$ac_optarg ;;
1082
1083   -localstatedir | --localstatedir | --localstatedi | --localstated \
1084   | --localstate | --localstat | --localsta | --localst | --locals)
1085     ac_prev=localstatedir ;;
1086   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088     localstatedir=$ac_optarg ;;
1089
1090   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091     ac_prev=mandir ;;
1092   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093     mandir=$ac_optarg ;;
1094
1095   -nfp | --nfp | --nf)
1096     # Obsolete; use --without-fp.
1097     with_fp=no ;;
1098
1099   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100   | --no-cr | --no-c | -n)
1101     no_create=yes ;;
1102
1103   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105     no_recursion=yes ;;
1106
1107   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109   | --oldin | --oldi | --old | --ol | --o)
1110     ac_prev=oldincludedir ;;
1111   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114     oldincludedir=$ac_optarg ;;
1115
1116   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117     ac_prev=prefix ;;
1118   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119     prefix=$ac_optarg ;;
1120
1121   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122   | --program-pre | --program-pr | --program-p)
1123     ac_prev=program_prefix ;;
1124   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126     program_prefix=$ac_optarg ;;
1127
1128   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129   | --program-suf | --program-su | --program-s)
1130     ac_prev=program_suffix ;;
1131   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133     program_suffix=$ac_optarg ;;
1134
1135   -program-transform-name | --program-transform-name \
1136   | --program-transform-nam | --program-transform-na \
1137   | --program-transform-n | --program-transform- \
1138   | --program-transform | --program-transfor \
1139   | --program-transfo | --program-transf \
1140   | --program-trans | --program-tran \
1141   | --progr-tra | --program-tr | --program-t)
1142     ac_prev=program_transform_name ;;
1143   -program-transform-name=* | --program-transform-name=* \
1144   | --program-transform-nam=* | --program-transform-na=* \
1145   | --program-transform-n=* | --program-transform-=* \
1146   | --program-transform=* | --program-transfor=* \
1147   | --program-transfo=* | --program-transf=* \
1148   | --program-trans=* | --program-tran=* \
1149   | --progr-tra=* | --program-tr=* | --program-t=*)
1150     program_transform_name=$ac_optarg ;;
1151
1152   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153     ac_prev=pdfdir ;;
1154   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155     pdfdir=$ac_optarg ;;
1156
1157   -psdir | --psdir | --psdi | --psd | --ps)
1158     ac_prev=psdir ;;
1159   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160     psdir=$ac_optarg ;;
1161
1162   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163   | -silent | --silent | --silen | --sile | --sil)
1164     silent=yes ;;
1165
1166   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167     ac_prev=sbindir ;;
1168   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169   | --sbi=* | --sb=*)
1170     sbindir=$ac_optarg ;;
1171
1172   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174   | --sharedst | --shareds | --shared | --share | --shar \
1175   | --sha | --sh)
1176     ac_prev=sharedstatedir ;;
1177   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180   | --sha=* | --sh=*)
1181     sharedstatedir=$ac_optarg ;;
1182
1183   -site | --site | --sit)
1184     ac_prev=site ;;
1185   -site=* | --site=* | --sit=*)
1186     site=$ac_optarg ;;
1187
1188   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189     ac_prev=srcdir ;;
1190   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191     srcdir=$ac_optarg ;;
1192
1193   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194   | --syscon | --sysco | --sysc | --sys | --sy)
1195     ac_prev=sysconfdir ;;
1196   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198     sysconfdir=$ac_optarg ;;
1199
1200   -target | --target | --targe | --targ | --tar | --ta | --t)
1201     ac_prev=target_alias ;;
1202   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203     target_alias=$ac_optarg ;;
1204
1205   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206     verbose=yes ;;
1207
1208   -version | --version | --versio | --versi | --vers | -V)
1209     ac_init_version=: ;;
1210
1211   -with-* | --with-*)
1212     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215       { echo "$as_me: error: invalid package name: $ac_package" >&2
1216    { (exit 1); exit 1; }; }
1217     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218     eval with_$ac_package=\$ac_optarg ;;
1219
1220   -without-* | --without-*)
1221     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       { echo "$as_me: error: invalid package name: $ac_package" >&2
1225    { (exit 1); exit 1; }; }
1226     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227     eval with_$ac_package=no ;;
1228
1229   --x)
1230     # Obsolete; use --with-x.
1231     with_x=yes ;;
1232
1233   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234   | --x-incl | --x-inc | --x-in | --x-i)
1235     ac_prev=x_includes ;;
1236   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238     x_includes=$ac_optarg ;;
1239
1240   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242     ac_prev=x_libraries ;;
1243   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245     x_libraries=$ac_optarg ;;
1246
1247   -*) { echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249    { (exit 1); exit 1; }; }
1250     ;;
1251
1252   *=*)
1253     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254     # Reject names that are not valid shell variable names.
1255     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257    { (exit 1); exit 1; }; }
1258     eval $ac_envvar=\$ac_optarg
1259     export $ac_envvar ;;
1260
1261   *)
1262     # FIXME: should be removed in autoconf 3.0.
1263     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267     ;;
1268
1269   esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274   { echo "$as_me: error: missing argument to $ac_option" >&2
1275    { (exit 1); exit 1; }; }
1276 fi
1277
1278 # Be sure to have absolute directory names.
1279 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280                 datadir sysconfdir sharedstatedir localstatedir includedir \
1281                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282                 libdir localedir mandir
1283 do
1284   eval ac_val=\$$ac_var
1285   case $ac_val in
1286     [\\/$]* | ?:[\\/]* )  continue;;
1287     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288   esac
1289   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290    { (exit 1); exit 1; }; }
1291 done
1292
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1299
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302   if test "x$build_alias" = x; then
1303     cross_compiling=maybe
1304     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305     If a cross compiler is detected then cross compile mode will be used." >&2
1306   elif test "x$build_alias" != "x$host_alias"; then
1307     cross_compiling=yes
1308   fi
1309 fi
1310
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314 test "$silent" = yes && exec 6>/dev/null
1315
1316
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320   { echo "$as_me: error: Working directory cannot be determined" >&2
1321    { (exit 1); exit 1; }; }
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323   { echo "$as_me: error: pwd does not report name of working directory" >&2
1324    { (exit 1); exit 1; }; }
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329   ac_srcdir_defaulted=yes
1330   # Try the directory containing this script, then the parent directory.
1331   ac_confdir=`$as_dirname -- "$0" ||
1332 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333          X"$0" : 'X\(//\)[^/]' \| \
1334          X"$0" : 'X\(//\)$' \| \
1335          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336 echo X"$0" |
1337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)[^/].*/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\).*/{
1350             s//\1/
1351             q
1352           }
1353           s/.*/./; q'`
1354   srcdir=$ac_confdir
1355   if test ! -r "$srcdir/$ac_unique_file"; then
1356     srcdir=..
1357   fi
1358 else
1359   ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364    { (exit 1); exit 1; }; }
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369    { (exit 1); exit 1; }; }
1370         pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373   srcdir=.
1374 fi
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_env_${ac_var}_value=\$${ac_var}
1384   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392   # Omit some internal or obsolete options to make the list less imposing.
1393   # This message is too long to be a string in the A/UX 3.1 sh.
1394   cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405   -h, --help              display this help and exit
1406       --help=short        display options specific to this package
1407       --help=recursive    display the short help of all the included packages
1408   -V, --version           display version information and exit
1409   -q, --quiet, --silent   do not print \`checking...' messages
1410       --cache-file=FILE   cache test results in FILE [disabled]
1411   -C, --config-cache      alias for \`--cache-file=config.cache'
1412   -n, --no-create         do not create output files
1413       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416   --prefix=PREFIX         install architecture-independent files in PREFIX
1417                           [$ac_default_prefix]
1418   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419                           [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429   --bindir=DIR           user executables [EPREFIX/bin]
1430   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431   --libexecdir=DIR       program executables [EPREFIX/libexec]
1432   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435   --libdir=DIR           object code libraries [EPREFIX/lib]
1436   --includedir=DIR       C header files [PREFIX/include]
1437   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440   --infodir=DIR          info documentation [DATAROOTDIR/info]
1441   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442   --mandir=DIR           man documentation [DATAROOTDIR/man]
1443   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1444   --htmldir=DIR          html documentation [DOCDIR]
1445   --dvidir=DIR           dvi documentation [DOCDIR]
1446   --pdfdir=DIR           pdf documentation [DOCDIR]
1447   --psdir=DIR            ps documentation [DOCDIR]
1448 _ACEOF
1449
1450   cat <<\_ACEOF
1451
1452 System types:
1453   --build=BUILD     configure for building on BUILD [guessed]
1454   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459
1460   cat <<\_ACEOF
1461
1462 Optional Features:
1463   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465   --disable-largefile     omit support for large files
1466   --enable-shared[=PKGS]  build shared libraries [default=yes]
1467   --enable-static[=PKGS]  build static libraries [default=yes]
1468   --enable-fast-install[=PKGS]
1469                           optimize for fast installation [default=yes]
1470   --disable-libtool-lock  avoid locking (might break parallel builds)
1471   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1472   --enable-developer               Enables features of interest to developers.
1473
1474 Optional Packages:
1475   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1476   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1477   --with-system-libtool              try to use libtool installed in your system default=use our own
1478   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1479   --with-pic              try to use only PIC/non-PIC objects [default=use
1480                           both]
1481   --with-tags[=TAGS]      include additional configurations [automatic]
1482   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1483   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1484   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1485   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1486   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1487   --with-threads          Use threads, if available.  (default=yes)
1488   --with-snmp             Compile in SNMP support. (default=yes)
1489   --with-snmp-include-dir=DIR  Directory to look for include files used by SNMP
1490   --with-vmps             Compile in VMPS support. (default=yes)
1491   --with-dhcp             Compile in DHCP support. (default=no)
1492   --with-static-modules=QUOTED-MODULE-LIST
1493  --with-modules=QUOTED-MODULE-LIST
1494   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1495   --with-openssl                   Use OpenSSL. (default=yes)
1496   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1497   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1498   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1499   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1500   --with-udpfromto        Compile in UDPFROMTO support. (default=yes)
1501
1502 Some influential environment variables:
1503   CC          C compiler command
1504   CFLAGS      C compiler flags
1505   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1506               nonstandard directory <lib dir>
1507   LIBS        libraries to pass to the linker, e.g. -l<library>
1508   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509               you have headers in a nonstandard directory <include dir>
1510   CXX         C++ compiler command
1511   CXXFLAGS    C++ compiler flags
1512   CPP         C preprocessor
1513   CXXCPP      C++ preprocessor
1514   F77         Fortran 77 compiler command
1515   FFLAGS      Fortran 77 compiler flags
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" || continue
1528     ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534   # A ".." for each directory in $ac_dir_suffix.
1535   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536   case $ac_top_builddir_sub in
1537   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539   esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547   .)  # We are building in place.
1548     ac_srcdir=.
1549     ac_top_srcdir=$ac_top_builddir_sub
1550     ac_abs_top_srcdir=$ac_pwd ;;
1551   [\\/]* | ?:[\\/]* )  # Absolute name.
1552     ac_srcdir=$srcdir$ac_dir_suffix;
1553     ac_top_srcdir=$srcdir
1554     ac_abs_top_srcdir=$srcdir ;;
1555   *) # Relative name.
1556     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557     ac_top_srcdir=$ac_top_build_prefix$srcdir
1558     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562     cd "$ac_dir" || { ac_status=$?; continue; }
1563     # Check for guested configure.
1564     if test -f "$ac_srcdir/configure.gnu"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567     elif test -f "$ac_srcdir/configure"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure" --help=recursive
1570     else
1571       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572     fi || ac_status=$?
1573     cd "$ac_pwd" || { ac_status=$?; break; }
1574   done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579   cat <<\_ACEOF
1580 configure
1581 generated by GNU Autoconf 2.61
1582
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588   exit
1589 fi
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1593
1594 It was created by $as_me, which was
1595 generated by GNU Autoconf 2.61.  Invocation command line was
1596
1597   $ $0 $@
1598
1599 _ACEOF
1600 exec 5>>config.log
1601 {
1602 cat <<_ASUNAME
1603 ## --------- ##
1604 ## Platform. ##
1605 ## --------- ##
1606
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1615
1616 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1617 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1620 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1621 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1622 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1623
1624 _ASUNAME
1625
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   echo "PATH: $as_dir"
1632 done
1633 IFS=$as_save_IFS
1634
1635 } >&5
1636
1637 cat >&5 <<_ACEOF
1638
1639
1640 ## ----------- ##
1641 ## Core tests. ##
1642 ## ----------- ##
1643
1644 _ACEOF
1645
1646
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1652 ac_configure_args=
1653 ac_configure_args0=
1654 ac_configure_args1=
1655 ac_must_keep_next=false
1656 for ac_pass in 1 2
1657 do
1658   for ac_arg
1659   do
1660     case $ac_arg in
1661     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663     | -silent | --silent | --silen | --sile | --sil)
1664       continue ;;
1665     *\'*)
1666       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667     esac
1668     case $ac_pass in
1669     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670     2)
1671       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672       if test $ac_must_keep_next = true; then
1673         ac_must_keep_next=false # Got value, back to normal.
1674       else
1675         case $ac_arg in
1676           *=* | --config-cache | -C | -disable-* | --disable-* \
1677           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679           | -with-* | --with-* | -without-* | --without-* | --x)
1680             case "$ac_configure_args0 " in
1681               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682             esac
1683             ;;
1684           -* ) ac_must_keep_next=true ;;
1685         esac
1686       fi
1687       ac_configure_args="$ac_configure_args '$ac_arg'"
1688       ;;
1689     esac
1690   done
1691 done
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log.  We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701   # Save into config.log some information that might help in debugging.
1702   {
1703     echo
1704
1705     cat <<\_ASBOX
1706 ## ---------------- ##
1707 ## Cache variables. ##
1708 ## ---------------- ##
1709 _ASBOX
1710     echo
1711     # The following way of writing the cache mishandles newlines in values,
1712 (
1713   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714     eval ac_val=\$$ac_var
1715     case $ac_val in #(
1716     *${as_nl}*)
1717       case $ac_var in #(
1718       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720       esac
1721       case $ac_var in #(
1722       _ | IFS | as_nl) ;; #(
1723       *) $as_unset $ac_var ;;
1724       esac ;;
1725     esac
1726   done
1727   (set) 2>&1 |
1728     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729     *${as_nl}ac_space=\ *)
1730       sed -n \
1731         "s/'\''/'\''\\\\'\'''\''/g;
1732           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733       ;; #(
1734     *)
1735       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736       ;;
1737     esac |
1738     sort
1739 )
1740     echo
1741
1742     cat <<\_ASBOX
1743 ## ----------------- ##
1744 ## Output variables. ##
1745 ## ----------------- ##
1746 _ASBOX
1747     echo
1748     for ac_var in $ac_subst_vars
1749     do
1750       eval ac_val=\$$ac_var
1751       case $ac_val in
1752       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753       esac
1754       echo "$ac_var='\''$ac_val'\''"
1755     done | sort
1756     echo
1757
1758     if test -n "$ac_subst_files"; then
1759       cat <<\_ASBOX
1760 ## ------------------- ##
1761 ## File substitutions. ##
1762 ## ------------------- ##
1763 _ASBOX
1764       echo
1765       for ac_var in $ac_subst_files
1766       do
1767         eval ac_val=\$$ac_var
1768         case $ac_val in
1769         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770         esac
1771         echo "$ac_var='\''$ac_val'\''"
1772       done | sort
1773       echo
1774     fi
1775
1776     if test -s confdefs.h; then
1777       cat <<\_ASBOX
1778 ## ----------- ##
1779 ## confdefs.h. ##
1780 ## ----------- ##
1781 _ASBOX
1782       echo
1783       cat confdefs.h
1784       echo
1785     fi
1786     test "$ac_signal" != 0 &&
1787       echo "$as_me: caught signal $ac_signal"
1788     echo "$as_me: exit $exit_status"
1789   } >&5
1790   rm -f core *.core core.conftest.* &&
1791     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792     exit $exit_status
1793 ' 0
1794 for ac_signal in 1 2 13 15; do
1795   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796 done
1797 ac_signal=0
1798
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1801
1802 # Predefined preprocessor variables.
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_NAME "$PACKAGE_NAME"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_STRING "$PACKAGE_STRING"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826 _ACEOF
1827
1828
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832   set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835 else
1836   set x "$ac_default_prefix/share/config.site" \
1837         "$ac_default_prefix/etc/config.site"
1838 fi
1839 shift
1840 for ac_site_file
1841 do
1842   if test -r "$ac_site_file"; then
1843     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845     sed 's/^/| /' "$ac_site_file" >&5
1846     . "$ac_site_file"
1847   fi
1848 done
1849
1850 if test -r "$cache_file"; then
1851   # Some versions of bash will fail to source /dev/null (special
1852   # files actually), so we avoid doing that.
1853   if test -f "$cache_file"; then
1854     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1856     case $cache_file in
1857       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858       *)                      . "./$cache_file";;
1859     esac
1860   fi
1861 else
1862   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1864   >$cache_file
1865 fi
1866
1867 # Check that the precious variables saved in the cache have kept the same
1868 # value.
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872   eval ac_new_set=\$ac_env_${ac_var}_set
1873   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874   eval ac_new_val=\$ac_env_${ac_var}_value
1875   case $ac_old_set,$ac_new_set in
1876     set,)
1877       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879       ac_cache_corrupted=: ;;
1880     ,set)
1881       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883       ac_cache_corrupted=: ;;
1884     ,);;
1885     *)
1886       if test "x$ac_old_val" != "x$ac_new_val"; then
1887         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1890 echo "$as_me:   former value:  $ac_old_val" >&2;}
1891         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1892 echo "$as_me:   current value: $ac_new_val" >&2;}
1893         ac_cache_corrupted=:
1894       fi;;
1895   esac
1896   # Pass precious variables to config.status.
1897   if test "$ac_new_set" = set; then
1898     case $ac_new_val in
1899     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900     *) ac_arg=$ac_var=$ac_new_val ;;
1901     esac
1902     case " $ac_configure_args " in
1903       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1904       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905     esac
1906   fi
1907 done
1908 if $ac_cache_corrupted; then
1909   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913    { (exit 1); exit 1; }; }
1914 fi
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937
1938
1939 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1940
1941
1942 RADIUSD_VERSION=`cat VERSION`
1943 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1944 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1945 PACKAGE=freeradius
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 if test -n "$ac_tool_prefix"; then
1954   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$CC"; then
1962   ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1978
1979 fi
1980 fi
1981 CC=$ac_cv_prog_CC
1982 if test -n "$CC"; then
1983   { echo "$as_me:$LINENO: result: $CC" >&5
1984 echo "${ECHO_T}$CC" >&6; }
1985 else
1986   { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1989
1990
1991 fi
1992 if test -z "$ac_cv_prog_CC"; then
1993   ac_ct_CC=$CC
1994   # Extract the first word of "gcc", so it can be a program name with args.
1995 set dummy gcc; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$ac_ct_CC"; then
2002   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2011     ac_cv_prog_ac_ct_CC="gcc"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017 IFS=$as_save_IFS
2018
2019 fi
2020 fi
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6; }
2025 else
2026   { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028 fi
2029
2030   if test "x$ac_ct_CC" = x; then
2031     CC=""
2032   else
2033     case $cross_compiling:$ac_tool_warned in
2034 yes:)
2035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2036 whose name does not start with the host triplet.  If you think this
2037 configuration is useful to you, please write to autoconf@gnu.org." >&5
2038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2039 whose name does not start with the host triplet.  If you think this
2040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2041 ac_tool_warned=yes ;;
2042 esac
2043     CC=$ac_ct_CC
2044   fi
2045 else
2046   CC="$ac_cv_prog_CC"
2047 fi
2048
2049 if test -z "$CC"; then
2050           if test -n "$ac_tool_prefix"; then
2051     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068     ac_cv_prog_CC="${ac_tool_prefix}cc"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074 IFS=$as_save_IFS
2075
2076 fi
2077 fi
2078 CC=$ac_cv_prog_CC
2079 if test -n "$CC"; then
2080   { echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6; }
2082 else
2083   { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2085 fi
2086
2087
2088   fi
2089 fi
2090 if test -z "$CC"; then
2091   # Extract the first word of "cc", so it can be a program name with args.
2092 set dummy cc; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   if test -n "$CC"; then
2099   ac_cv_prog_CC="$CC" # Let the user override the test.
2100 else
2101   ac_prog_rejected=no
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2110        ac_prog_rejected=yes
2111        continue
2112      fi
2113     ac_cv_prog_CC="cc"
2114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119 IFS=$as_save_IFS
2120
2121 if test $ac_prog_rejected = yes; then
2122   # We found a bogon in the path, so make sure we never use it.
2123   set dummy $ac_cv_prog_CC
2124   shift
2125   if test $# != 0; then
2126     # We chose a different compiler from the bogus one.
2127     # However, it has the same basename, so the bogon will be chosen
2128     # first if we set CC to just the basename; use the full file name.
2129     shift
2130     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2131   fi
2132 fi
2133 fi
2134 fi
2135 CC=$ac_cv_prog_CC
2136 if test -n "$CC"; then
2137   { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2139 else
2140   { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2142 fi
2143
2144
2145 fi
2146 if test -z "$CC"; then
2147   if test -n "$ac_tool_prefix"; then
2148   for ac_prog in cl.exe
2149   do
2150     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test -n "$CC"; then
2158   ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_exec_ext in '' $ac_executable_extensions; do
2166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169     break 2
2170   fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2174
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179   { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2181 else
2182   { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187     test -n "$CC" && break
2188   done
2189 fi
2190 if test -z "$CC"; then
2191   ac_ct_CC=$CC
2192   for ac_prog in cl.exe
2193 do
2194   # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$ac_ct_CC"; then
2202   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211     ac_cv_prog_ac_ct_CC="$ac_prog"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6; }
2225 else
2226   { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2228 fi
2229
2230
2231   test -n "$ac_ct_CC" && break
2232 done
2233
2234   if test "x$ac_ct_CC" = x; then
2235     CC=""
2236   else
2237     case $cross_compiling:$ac_tool_warned in
2238 yes:)
2239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet.  If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&5
2242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2243 whose name does not start with the host triplet.  If you think this
2244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2245 ac_tool_warned=yes ;;
2246 esac
2247     CC=$ac_ct_CC
2248   fi
2249 fi
2250
2251 fi
2252
2253
2254 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&2;}
2258    { (exit 1); exit 1; }; }
2259
2260 # Provide some information about the compiler.
2261 echo "$as_me:$LINENO: checking for C compiler version" >&5
2262 ac_compiler=`set X $ac_compile; echo $2`
2263 { (ac_try="$ac_compiler --version >&5"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269   (eval "$ac_compiler --version >&5") 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }
2273 { (ac_try="$ac_compiler -v >&5"
2274 case "(($ac_try" in
2275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276   *) ac_try_echo=$ac_try;;
2277 esac
2278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2279   (eval "$ac_compiler -v >&5") 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (ac_try="$ac_compiler -V >&5"
2284 case "(($ac_try" in
2285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286   *) ac_try_echo=$ac_try;;
2287 esac
2288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2289   (eval "$ac_compiler -V >&5") 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }
2293
2294 cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300
2301 int
2302 main ()
2303 {
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 ac_clean_files_save=$ac_clean_files
2310 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2311 # Try to create an executable without -o first, disregard a.out.
2312 # It will help us diagnose broken compilers, and finding out an intuition
2313 # of exeext.
2314 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2315 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2316 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2317 #
2318 # List of possible output files, starting from the most likely.
2319 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2320 # only as a last resort.  b.out is created by i960 compilers.
2321 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2322 #
2323 # The IRIX 6 linker writes into existing files which may not be
2324 # executable, retaining their permissions.  Remove them first so a
2325 # subsequent execution test works.
2326 ac_rmfiles=
2327 for ac_file in $ac_files
2328 do
2329   case $ac_file in
2330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2332   esac
2333 done
2334 rm -f $ac_rmfiles
2335
2336 if { (ac_try="$ac_link_default"
2337 case "(($ac_try" in
2338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339   *) ac_try_echo=$ac_try;;
2340 esac
2341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342   (eval "$ac_link_default") 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; then
2346   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2348 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2349 # so that the user can short-circuit this test for compilers unknown to
2350 # Autoconf.
2351 for ac_file in $ac_files ''
2352 do
2353   test -f "$ac_file" || continue
2354   case $ac_file in
2355     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2356         ;;
2357     [ab].out )
2358         # We found the default executable, but exeext='' is most
2359         # certainly right.
2360         break;;
2361     *.* )
2362         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2363         then :; else
2364            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365         fi
2366         # We set ac_cv_exeext here because the later test for it is not
2367         # safe: cross compilers may not add the suffix if given an `-o'
2368         # argument, so we may need to know it at that point already.
2369         # Even if this section looks crufty: it has the advantage of
2370         # actually working.
2371         break;;
2372     * )
2373         break;;
2374   esac
2375 done
2376 test "$ac_cv_exeext" = no && ac_cv_exeext=
2377
2378 else
2379   ac_file=''
2380 fi
2381
2382 { echo "$as_me:$LINENO: result: $ac_file" >&5
2383 echo "${ECHO_T}$ac_file" >&6; }
2384 if test -z "$ac_file"; then
2385   echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&2;}
2392    { (exit 77); exit 77; }; }
2393 fi
2394
2395 ac_exeext=$ac_cv_exeext
2396
2397 # Check that the compiler produces executables we can run.  If not, either
2398 # the compiler is broken, or we cross compile.
2399 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2400 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2401 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2402 # If not cross compiling, check that we can run a simple program.
2403 if test "$cross_compiling" != yes; then
2404   if { ac_try='./$ac_file'
2405   { (case "(($ac_try" in
2406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407   *) ac_try_echo=$ac_try;;
2408 esac
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410   (eval "$ac_try") 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414     cross_compiling=no
2415   else
2416     if test "$cross_compiling" = maybe; then
2417         cross_compiling=yes
2418     else
2419         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2420 If you meant to cross compile, use \`--host'.
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&2;}
2425    { (exit 1); exit 1; }; }
2426     fi
2427   fi
2428 fi
2429 { echo "$as_me:$LINENO: result: yes" >&5
2430 echo "${ECHO_T}yes" >&6; }
2431
2432 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2433 ac_clean_files=$ac_clean_files_save
2434 # Check that the compiler produces executables we can run.  If not, either
2435 # the compiler is broken, or we cross compile.
2436 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2437 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2438 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2439 echo "${ECHO_T}$cross_compiling" >&6; }
2440
2441 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2442 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2443 if { (ac_try="$ac_link"
2444 case "(($ac_try" in
2445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446   *) ac_try_echo=$ac_try;;
2447 esac
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449   (eval "$ac_link") 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; then
2453   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2456 # `rm'.
2457 for ac_file in conftest.exe conftest conftest.*; do
2458   test -f "$ac_file" || continue
2459   case $ac_file in
2460     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2461     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462           break;;
2463     * ) break;;
2464   esac
2465 done
2466 else
2467   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&2;}
2471    { (exit 1); exit 1; }; }
2472 fi
2473
2474 rm -f conftest$ac_cv_exeext
2475 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2476 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2477
2478 rm -f conftest.$ac_ext
2479 EXEEXT=$ac_cv_exeext
2480 ac_exeext=$EXEEXT
2481 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2482 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2483 if test "${ac_cv_objext+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h.  */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h.  */
2492
2493 int
2494 main ()
2495 {
2496
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.o conftest.obj
2502 if { (ac_try="$ac_compile"
2503 case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508   (eval "$ac_compile") 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; then
2512   for ac_file in conftest.o conftest.obj conftest.*; do
2513   test -f "$ac_file" || continue;
2514   case $ac_file in
2515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2516     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2517        break;;
2518   esac
2519 done
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&2;}
2528    { (exit 1); exit 1; }; }
2529 fi
2530
2531 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2532 fi
2533 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2534 echo "${ECHO_T}$ac_cv_objext" >&6; }
2535 OBJEXT=$ac_cv_objext
2536 ac_objext=$OBJEXT
2537 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2539 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552 #ifndef __GNUC__
2553        choke me
2554 #endif
2555
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2562 case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_compile") 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } && {
2574          test -z "$ac_c_werror_flag" ||
2575          test ! -s conftest.err
2576        } && test -s conftest.$ac_objext; then
2577   ac_compiler_gnu=yes
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582         ac_compiler_gnu=no
2583 fi
2584
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587
2588 fi
2589 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2591 GCC=`test $ac_compiler_gnu = yes && echo yes`
2592 ac_test_CFLAGS=${CFLAGS+set}
2593 ac_save_CFLAGS=$CFLAGS
2594 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2595 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_cc_g+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   ac_save_c_werror_flag=$ac_c_werror_flag
2600    ac_c_werror_flag=yes
2601    ac_cv_prog_cc_g=no
2602    CFLAGS="-g"
2603    cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609
2610 int
2611 main ()
2612 {
2613
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (ac_try="$ac_compile"
2620 case "(($ac_try" in
2621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622   *) ac_try_echo=$ac_try;;
2623 esac
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625   (eval "$ac_compile") 2>conftest.er1
2626   ac_status=$?
2627   grep -v '^ *+' conftest.er1 >conftest.err
2628   rm -f conftest.er1
2629   cat conftest.err >&5
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } && {
2632          test -z "$ac_c_werror_flag" ||
2633          test ! -s conftest.err
2634        } && test -s conftest.$ac_objext; then
2635   ac_cv_prog_cc_g=yes
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640         CFLAGS=""
2641       cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647
2648 int
2649 main ()
2650 {
2651
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (ac_try="$ac_compile"
2658 case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663   (eval "$ac_compile") 2>conftest.er1
2664   ac_status=$?
2665   grep -v '^ *+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } && {
2670          test -z "$ac_c_werror_flag" ||
2671          test ! -s conftest.err
2672        } && test -s conftest.$ac_objext; then
2673   :
2674 else
2675   echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678         ac_c_werror_flag=$ac_save_c_werror_flag
2679          CFLAGS="-g"
2680          cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686
2687 int
2688 main ()
2689 {
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702   (eval "$ac_compile") 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } && {
2709          test -z "$ac_c_werror_flag" ||
2710          test ! -s conftest.err
2711        } && test -s conftest.$ac_objext; then
2712   ac_cv_prog_cc_g=yes
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717
2718 fi
2719
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 fi
2722
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 fi
2725
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727    ac_c_werror_flag=$ac_save_c_werror_flag
2728 fi
2729 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2731 if test "$ac_test_CFLAGS" = set; then
2732   CFLAGS=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734   if test "$GCC" = yes; then
2735     CFLAGS="-g -O2"
2736   else
2737     CFLAGS="-g"
2738   fi
2739 else
2740   if test "$GCC" = yes; then
2741     CFLAGS="-O2"
2742   else
2743     CFLAGS=
2744   fi
2745 fi
2746 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2747 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_cc_c89+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   ac_cv_prog_cc_c89=no
2752 ac_save_CC=$CC
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759 #include <stdarg.h>
2760 #include <stdio.h>
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2767      char **p;
2768      int i;
2769 {
2770   return p[i];
2771 }
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2773 {
2774   char *s;
2775   va_list v;
2776   va_start (v,p);
2777   s = g (p, va_arg (v,int));
2778   va_end (v);
2779   return s;
2780 }
2781
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2783    function prototypes and stuff, but not '\xHH' hex character constants.
2784    These don't provoke an error unfortunately, instead are silently treated
2785    as 'x'.  The following induces an error, until -std is added to get
2786    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2787    array size at least.  It's necessary to write '\x00'==0 to get something
2788    that's true only with -std.  */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2790
2791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2792    inside strings and character constants.  */
2793 #define FOO(x) 'x'
2794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2795
2796 int test (int i, double x);
2797 struct s1 {int (*f) (int a);};
2798 struct s2 {int (*f) (double a);};
2799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2800 int argc;
2801 char **argv;
2802 int
2803 main ()
2804 {
2805 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2811         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2812 do
2813   CC="$ac_save_CC $ac_arg"
2814   rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2816 case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821   (eval "$ac_compile") 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } && {
2828          test -z "$ac_c_werror_flag" ||
2829          test ! -s conftest.err
2830        } && test -s conftest.$ac_objext; then
2831   ac_cv_prog_cc_c89=$ac_arg
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836
2837 fi
2838
2839 rm -f core conftest.err conftest.$ac_objext
2840   test "x$ac_cv_prog_cc_c89" != "xno" && break
2841 done
2842 rm -f conftest.$ac_ext
2843 CC=$ac_save_CC
2844
2845 fi
2846 # AC_CACHE_VAL
2847 case "x$ac_cv_prog_cc_c89" in
2848   x)
2849     { echo "$as_me:$LINENO: result: none needed" >&5
2850 echo "${ECHO_T}none needed" >&6; } ;;
2851   xno)
2852     { echo "$as_me:$LINENO: result: unsupported" >&5
2853 echo "${ECHO_T}unsupported" >&6; } ;;
2854   *)
2855     CC="$CC $ac_cv_prog_cc_c89"
2856     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2858 esac
2859
2860
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867 ac_ext=cpp
2868 ac_cpp='$CXXCPP $CPPFLAGS'
2869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2872 if test -z "$CXX"; then
2873   if test -n "$CCC"; then
2874     CXX=$CCC
2875   else
2876     if test -n "$ac_tool_prefix"; then
2877   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2878   do
2879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_CXX+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   if test -n "$CXX"; then
2887   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894   for ac_exec_ext in '' $ac_executable_extensions; do
2895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898     break 2
2899   fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 CXX=$ac_cv_prog_CXX
2907 if test -n "$CXX"; then
2908   { echo "$as_me:$LINENO: result: $CXX" >&5
2909 echo "${ECHO_T}$CXX" >&6; }
2910 else
2911   { echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6; }
2913 fi
2914
2915
2916     test -n "$CXX" && break
2917   done
2918 fi
2919 if test -z "$CXX"; then
2920   ac_ct_CXX=$CXX
2921   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2922 do
2923   # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930   if test -n "$ac_ct_CXX"; then
2931   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936   IFS=$as_save_IFS
2937   test -z "$as_dir" && as_dir=.
2938   for ac_exec_ext in '' $ac_executable_extensions; do
2939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940     ac_cv_prog_ac_ct_CXX="$ac_prog"
2941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943   fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2951 if test -n "$ac_ct_CXX"; then
2952   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2953 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2954 else
2955   { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2957 fi
2958
2959
2960   test -n "$ac_ct_CXX" && break
2961 done
2962
2963   if test "x$ac_ct_CXX" = x; then
2964     CXX="g++"
2965   else
2966     case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2969 whose name does not start with the host triplet.  If you think this
2970 configuration is useful to you, please write to autoconf@gnu.org." >&5
2971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2972 whose name does not start with the host triplet.  If you think this
2973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2974 ac_tool_warned=yes ;;
2975 esac
2976     CXX=$ac_ct_CXX
2977   fi
2978 fi
2979
2980   fi
2981 fi
2982 # Provide some information about the compiler.
2983 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2984 ac_compiler=`set X $ac_compile; echo $2`
2985 { (ac_try="$ac_compiler --version >&5"
2986 case "(($ac_try" in
2987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988   *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991   (eval "$ac_compiler --version >&5") 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }
2995 { (ac_try="$ac_compiler -v >&5"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_compiler -v >&5") 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }
3005 { (ac_try="$ac_compiler -V >&5"
3006 case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_compiler -V >&5") 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }
3015
3016 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3017 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3018 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027
3028 int
3029 main ()
3030 {
3031 #ifndef __GNUC__
3032        choke me
3033 #endif
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } && {
3053          test -z "$ac_cxx_werror_flag" ||
3054          test ! -s conftest.err
3055        } && test -s conftest.$ac_objext; then
3056   ac_compiler_gnu=yes
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061         ac_compiler_gnu=no
3062 fi
3063
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3066
3067 fi
3068 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3069 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3070 GXX=`test $ac_compiler_gnu = yes && echo yes`
3071 ac_test_CXXFLAGS=${CXXFLAGS+set}
3072 ac_save_CXXFLAGS=$CXXFLAGS
3073 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3074 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_cxx_g+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3079    ac_cxx_werror_flag=yes
3080    ac_cv_prog_cxx_g=no
3081    CXXFLAGS="-g"
3082    cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } && {
3111          test -z "$ac_cxx_werror_flag" ||
3112          test ! -s conftest.err
3113        } && test -s conftest.$ac_objext; then
3114   ac_cv_prog_cxx_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         CXXFLAGS=""
3120       cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } && {
3149          test -z "$ac_cxx_werror_flag" ||
3150          test ! -s conftest.err
3151        } && test -s conftest.$ac_objext; then
3152   :
3153 else
3154   echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3158          CXXFLAGS="-g"
3159          cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } && {
3188          test -z "$ac_cxx_werror_flag" ||
3189          test ! -s conftest.err
3190        } && test -s conftest.$ac_objext; then
3191   ac_cv_prog_cxx_g=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211   CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213   if test "$GXX" = yes; then
3214     CXXFLAGS="-g -O2"
3215   else
3216     CXXFLAGS="-g"
3217   fi
3218 else
3219   if test "$GXX" = yes; then
3220     CXXFLAGS="-O2"
3221   else
3222     CXXFLAGS=
3223   fi
3224 fi
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3242   CPP=
3243 fi
3244 if test -z "$CPP"; then
3245   if test "${ac_cv_prog_CPP+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248       # Double quotes because CPP needs to be expanded
3249     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250     do
3251       ac_preproc_ok=false
3252 for ac_c_preproc_warn_flag in '' yes
3253 do
3254   # Use a header file that comes with gcc, so configuring glibc
3255   # with a fresh cross-compiler works.
3256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257   # <limits.h> exists even on freestanding compilers.
3258   # On the NeXT, cc -E runs the code through the compiler's parser,
3259   # not just through cpp. "Syntax error" is here to catch this case.
3260   cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271                      Syntax error
3272 _ACEOF
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } >/dev/null && {
3286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3287          test ! -s conftest.err
3288        }; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294   # Broken: fails on valid input.
3295 continue
3296 fi
3297
3298 rm -f conftest.err conftest.$ac_ext
3299
3300   # OK, works on sane cases.  Now check whether nonexistent headers
3301   # can be detected and how.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <ac_nonexistent.h>
3309 _ACEOF
3310 if { (ac_try="$ac_cpp conftest.$ac_ext"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } >/dev/null && {
3323          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3324          test ! -s conftest.err
3325        }; then
3326   # Broken: success on invalid input.
3327 continue
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332   # Passes both tests.
3333 ac_preproc_ok=:
3334 break
3335 fi
3336
3337 rm -f conftest.err conftest.$ac_ext
3338
3339 done
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3343   break
3344 fi
3345
3346     done
3347     ac_cv_prog_CPP=$CPP
3348
3349 fi
3350   CPP=$ac_cv_prog_CPP
3351 else
3352   ac_cv_prog_CPP=$CPP
3353 fi
3354 { echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6; }
3356 ac_preproc_ok=false
3357 for ac_c_preproc_warn_flag in '' yes
3358 do
3359   # Use a header file that comes with gcc, so configuring glibc
3360   # with a fresh cross-compiler works.
3361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362   # <limits.h> exists even on freestanding compilers.
3363   # On the NeXT, cc -E runs the code through the compiler's parser,
3364   # not just through cpp. "Syntax error" is here to catch this case.
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #ifdef __STDC__
3372 # include <limits.h>
3373 #else
3374 # include <assert.h>
3375 #endif
3376                      Syntax error
3377 _ACEOF
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } >/dev/null && {
3391          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3392          test ! -s conftest.err
3393        }; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Broken: fails on valid input.
3400 continue
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether nonexistent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null && {
3428          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429          test ! -s conftest.err
3430        }; then
3431   # Broken: success on invalid input.
3432 continue
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437   # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448   :
3449 else
3450   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3465 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3466 if test "${ac_cv_path_GREP+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   # Extract the first word of "grep ggrep" to use in msg output
3470 if test -z "$GREP"; then
3471 set dummy grep ggrep; ac_prog_name=$2
3472 if test "${ac_cv_path_GREP+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   ac_path_GREP_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482   for ac_prog in grep ggrep; do
3483   for ac_exec_ext in '' $ac_executable_extensions; do
3484     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3485     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3486     # Check for GNU ac_path_GREP and select it if it is found.
3487   # Check for GNU $ac_path_GREP
3488 case `"$ac_path_GREP" --version 2>&1` in
3489 *GNU*)
3490   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3491 *)
3492   ac_count=0
3493   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3494   while :
3495   do
3496     cat "conftest.in" "conftest.in" >"conftest.tmp"
3497     mv "conftest.tmp" "conftest.in"
3498     cp "conftest.in" "conftest.nl"
3499     echo 'GREP' >> "conftest.nl"
3500     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502     ac_count=`expr $ac_count + 1`
3503     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3504       # Best one so far, save it but keep looking for a better one
3505       ac_cv_path_GREP="$ac_path_GREP"
3506       ac_path_GREP_max=$ac_count
3507     fi
3508     # 10*(2^10) chars as input seems more than enough
3509     test $ac_count -gt 10 && break
3510   done
3511   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3512 esac
3513
3514
3515     $ac_path_GREP_found && break 3
3516   done
3517 done
3518
3519 done
3520 IFS=$as_save_IFS
3521
3522
3523 fi
3524
3525 GREP="$ac_cv_path_GREP"
3526 if test -z "$GREP"; then
3527   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3528 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3529    { (exit 1); exit 1; }; }
3530 fi
3531
3532 else
3533   ac_cv_path_GREP=$GREP
3534 fi
3535
3536
3537 fi
3538 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3539 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3540  GREP="$ac_cv_path_GREP"
3541
3542
3543 { echo "$as_me:$LINENO: checking for egrep" >&5
3544 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3545 if test "${ac_cv_path_EGREP+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3549    then ac_cv_path_EGREP="$GREP -E"
3550    else
3551      # Extract the first word of "egrep" to use in msg output
3552 if test -z "$EGREP"; then
3553 set dummy egrep; ac_prog_name=$2
3554 if test "${ac_cv_path_EGREP+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   ac_path_EGREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 do
3562   IFS=$as_save_IFS
3563   test -z "$as_dir" && as_dir=.
3564   for ac_prog in egrep; do
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3567     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3568     # Check for GNU ac_path_EGREP and select it if it is found.
3569   # Check for GNU $ac_path_EGREP
3570 case `"$ac_path_EGREP" --version 2>&1` in
3571 *GNU*)
3572   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3573 *)
3574   ac_count=0
3575   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3576   while :
3577   do
3578     cat "conftest.in" "conftest.in" >"conftest.tmp"
3579     mv "conftest.tmp" "conftest.in"
3580     cp "conftest.in" "conftest.nl"
3581     echo 'EGREP' >> "conftest.nl"
3582     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584     ac_count=`expr $ac_count + 1`
3585     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3586       # Best one so far, save it but keep looking for a better one
3587       ac_cv_path_EGREP="$ac_path_EGREP"
3588       ac_path_EGREP_max=$ac_count
3589     fi
3590     # 10*(2^10) chars as input seems more than enough
3591     test $ac_count -gt 10 && break
3592   done
3593   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 esac
3595
3596
3597     $ac_path_EGREP_found && break 3
3598   done
3599 done
3600
3601 done
3602 IFS=$as_save_IFS
3603
3604
3605 fi
3606
3607 EGREP="$ac_cv_path_EGREP"
3608 if test -z "$EGREP"; then
3609   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3611    { (exit 1); exit 1; }; }
3612 fi
3613
3614 else
3615   ac_cv_path_EGREP=$EGREP
3616 fi
3617
3618
3619    fi
3620 fi
3621 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3622 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3623  EGREP="$ac_cv_path_EGREP"
3624
3625
3626
3627 { echo "$as_me:$LINENO: checking for AIX" >&5
3628 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635 #ifdef _AIX
3636   yes
3637 #endif
3638
3639 _ACEOF
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641   $EGREP "yes" >/dev/null 2>&1; then
3642   { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3644 cat >>confdefs.h <<\_ACEOF
3645 #define _ALL_SOURCE 1
3646 _ACEOF
3647
3648 else
3649   { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3651 fi
3652 rm -f conftest*
3653
3654
3655
3656 if test $ac_cv_c_compiler_gnu = yes; then
3657     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3658 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3659 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662     ac_pattern="Autoconf.*'x'"
3663   cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #include <sgtty.h>
3670 Autoconf TIOCGETP
3671 _ACEOF
3672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3673   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3674   ac_cv_prog_gcc_traditional=yes
3675 else
3676   ac_cv_prog_gcc_traditional=no
3677 fi
3678 rm -f conftest*
3679
3680
3681   if test $ac_cv_prog_gcc_traditional = no; then
3682     cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688 #include <termio.h>
3689 Autoconf TCGETA
3690 _ACEOF
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3693   ac_cv_prog_gcc_traditional=yes
3694 fi
3695 rm -f conftest*
3696
3697   fi
3698 fi
3699 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3700 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3701   if test $ac_cv_prog_gcc_traditional = yes; then
3702     CC="$CC -traditional"
3703   fi
3704 fi
3705
3706 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3707 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3708 if test "${ac_cv_prog_suncc+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   cat > conftest.c <<EOF
3712 #ifdef __SUNPRO_C
3713   yes;
3714 #endif
3715 EOF
3716 if { ac_try='${CC-cc} -E conftest.c'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3722   ac_cv_prog_suncc=yes
3723 else
3724   ac_cv_prog_suncc=no
3725 fi
3726 fi
3727 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3728 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3729 if test -n "$ac_tool_prefix"; then
3730   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3734 if test "${ac_cv_prog_RANLIB+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   if test -n "$RANLIB"; then
3738   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for ac_exec_ext in '' $ac_executable_extensions; do
3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 RANLIB=$ac_cv_prog_RANLIB
3758 if test -n "$RANLIB"; then
3759   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3760 echo "${ECHO_T}$RANLIB" >&6; }
3761 else
3762   { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3764 fi
3765
3766
3767 fi
3768 if test -z "$ac_cv_prog_RANLIB"; then
3769   ac_ct_RANLIB=$RANLIB
3770   # Extract the first word of "ranlib", so it can be a program name with args.
3771 set dummy ranlib; ac_word=$2
3772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   if test -n "$ac_ct_RANLIB"; then
3778   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785   for ac_exec_ext in '' $ac_executable_extensions; do
3786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787     ac_cv_prog_ac_ct_RANLIB="ranlib"
3788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789     break 2
3790   fi
3791 done
3792 done
3793 IFS=$as_save_IFS
3794
3795 fi
3796 fi
3797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3798 if test -n "$ac_ct_RANLIB"; then
3799   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3800 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3801 else
3802   { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3804 fi
3805
3806   if test "x$ac_ct_RANLIB" = x; then
3807     RANLIB=":"
3808   else
3809     case $cross_compiling:$ac_tool_warned in
3810 yes:)
3811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3812 whose name does not start with the host triplet.  If you think this
3813 configuration is useful to you, please write to autoconf@gnu.org." >&5
3814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3815 whose name does not start with the host triplet.  If you think this
3816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3817 ac_tool_warned=yes ;;
3818 esac
3819     RANLIB=$ac_ct_RANLIB
3820   fi
3821 else
3822   RANLIB="$ac_cv_prog_RANLIB"
3823 fi
3824
3825
3826 # Check whether --enable-largefile was given.
3827 if test "${enable_largefile+set}" = set; then
3828   enableval=$enable_largefile;
3829 fi
3830
3831 if test "$enable_largefile" != no; then
3832
3833   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   ac_cv_sys_largefile_CC=no
3839      if test "$GCC" != yes; then
3840        ac_save_CC=$CC
3841        while :; do
3842          # IRIX 6.2 and later do not support large files by default,
3843          # so use the C compiler's -n32 option if that helps.
3844          cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850 #include <sys/types.h>
3851  /* Check that off_t can represent 2**63 - 1 correctly.
3852     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3853     since some C++ compilers masquerading as C compilers
3854     incorrectly reject 9223372036854775807.  */
3855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3856   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3857                        && LARGE_OFF_T % 2147483647 == 1)
3858                       ? 1 : -1];
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867          rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3869 case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874   (eval "$ac_compile") 2>conftest.er1
3875   ac_status=$?
3876   grep -v '^ *+' conftest.er1 >conftest.err
3877   rm -f conftest.er1
3878   cat conftest.err >&5
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); } && {
3881          test -z "$ac_c_werror_flag" ||
3882          test ! -s conftest.err
3883        } && test -s conftest.$ac_objext; then
3884   break
3885 else
3886   echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889
3890 fi
3891
3892 rm -f core conftest.err conftest.$ac_objext
3893          CC="$CC -n32"
3894          rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3896 case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901   (eval "$ac_compile") 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } && {
3908          test -z "$ac_c_werror_flag" ||
3909          test ! -s conftest.err
3910        } && test -s conftest.$ac_objext; then
3911   ac_cv_sys_largefile_CC=' -n32'; break
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916
3917 fi
3918
3919 rm -f core conftest.err conftest.$ac_objext
3920          break
3921        done
3922        CC=$ac_save_CC
3923        rm -f conftest.$ac_ext
3924     fi
3925 fi
3926 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3927 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3928   if test "$ac_cv_sys_largefile_CC" != no; then
3929     CC=$CC$ac_cv_sys_largefile_CC
3930   fi
3931
3932   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3933 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3934 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937   while :; do
3938   cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 #include <sys/types.h>
3945  /* Check that off_t can represent 2**63 - 1 correctly.
3946     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3947     since some C++ compilers masquerading as C compilers
3948     incorrectly reject 9223372036854775807.  */
3949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3950   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3951                        && LARGE_OFF_T % 2147483647 == 1)
3952                       ? 1 : -1];
3953 int
3954 main ()
3955 {
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_compile") 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } && {
3975          test -z "$ac_c_werror_flag" ||
3976          test ! -s conftest.err
3977        } && test -s conftest.$ac_objext; then
3978   ac_cv_sys_file_offset_bits=no; break
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983
3984 fi
3985
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987   cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h.  */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h.  */
3993 #define _FILE_OFFSET_BITS 64
3994 #include <sys/types.h>
3995  /* Check that off_t can represent 2**63 - 1 correctly.
3996     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3997     since some C++ compilers masquerading as C compilers
3998     incorrectly reject 9223372036854775807.  */
3999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4000   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4001                        && LARGE_OFF_T % 2147483647 == 1)
4002                       ? 1 : -1];
4003 int
4004 main ()
4005 {
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4013 case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018   (eval "$ac_compile") 2>conftest.er1
4019   ac_status=$?
4020   grep -v '^ *+' conftest.er1 >conftest.err
4021   rm -f conftest.er1
4022   cat conftest.err >&5
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); } && {
4025          test -z "$ac_c_werror_flag" ||
4026          test ! -s conftest.err
4027        } && test -s conftest.$ac_objext; then
4028   ac_cv_sys_file_offset_bits=64; break
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033
4034 fi
4035
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037   ac_cv_sys_file_offset_bits=unknown
4038   break
4039 done
4040 fi
4041 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4042 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4043 case $ac_cv_sys_file_offset_bits in #(
4044   no | unknown) ;;
4045   *)
4046 cat >>confdefs.h <<_ACEOF
4047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4048 _ACEOF
4049 ;;
4050 esac
4051 rm -f conftest*
4052   if test $ac_cv_sys_file_offset_bits = unknown; then
4053     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4055 if test "${ac_cv_sys_large_files+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   while :; do
4059   cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 #include <sys/types.h>
4066  /* Check that off_t can represent 2**63 - 1 correctly.
4067     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4068     since some C++ compilers masquerading as C compilers
4069     incorrectly reject 9223372036854775807.  */
4070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4071   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4072                        && LARGE_OFF_T % 2147483647 == 1)
4073                       ? 1 : -1];
4074 int
4075 main ()
4076 {
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4084 case "(($ac_try" in
4085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086   *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089   (eval "$ac_compile") 2>conftest.er1
4090   ac_status=$?
4091   grep -v '^ *+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } && {
4096          test -z "$ac_c_werror_flag" ||
4097          test ! -s conftest.err
4098        } && test -s conftest.$ac_objext; then
4099   ac_cv_sys_large_files=no; break
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #define _LARGE_FILES 1
4115 #include <sys/types.h>
4116  /* Check that off_t can represent 2**63 - 1 correctly.
4117     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118     since some C++ compilers masquerading as C compilers
4119     incorrectly reject 9223372036854775807.  */
4120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4121   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122                        && LARGE_OFF_T % 2147483647 == 1)
4123                       ? 1 : -1];
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_compile") 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } && {
4146          test -z "$ac_c_werror_flag" ||
4147          test ! -s conftest.err
4148        } && test -s conftest.$ac_objext; then
4149   ac_cv_sys_large_files=1; break
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158   ac_cv_sys_large_files=unknown
4159   break
4160 done
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4163 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4164 case $ac_cv_sys_large_files in #(
4165   no | unknown) ;;
4166   *)
4167 cat >>confdefs.h <<_ACEOF
4168 #define _LARGE_FILES $ac_cv_sys_large_files
4169 _ACEOF
4170 ;;
4171 esac
4172 rm -f conftest*
4173   fi
4174 fi
4175
4176
4177 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4179 if test "${ac_cv_header_stdc+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <stdlib.h>
4189 #include <stdarg.h>
4190 #include <string.h>
4191 #include <float.h>
4192
4193 int
4194 main ()
4195 {
4196
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_compile") 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } && {
4215          test -z "$ac_c_werror_flag" ||
4216          test ! -s conftest.err
4217        } && test -s conftest.$ac_objext; then
4218   ac_cv_header_stdc=yes
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223         ac_cv_header_stdc=no
4224 fi
4225
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227
4228 if test $ac_cv_header_stdc = yes; then
4229   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4230   cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236 #include <string.h>
4237
4238 _ACEOF
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240   $EGREP "memchr" >/dev/null 2>&1; then
4241   :
4242 else
4243   ac_cv_header_stdc=no
4244 fi
4245 rm -f conftest*
4246
4247 fi
4248
4249 if test $ac_cv_header_stdc = yes; then
4250   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251   cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 #include <stdlib.h>
4258
4259 _ACEOF
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261   $EGREP "free" >/dev/null 2>&1; then
4262   :
4263 else
4264   ac_cv_header_stdc=no
4265 fi
4266 rm -f conftest*
4267
4268 fi
4269
4270 if test $ac_cv_header_stdc = yes; then
4271   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272   if test "$cross_compiling" = yes; then
4273   :
4274 else
4275   cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 #include <ctype.h>
4282 #include <stdlib.h>
4283 #if ((' ' & 0x0FF) == 0x020)
4284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286 #else
4287 # define ISLOWER(c) \
4288                    (('a' <= (c) && (c) <= 'i') \
4289                      || ('j' <= (c) && (c) <= 'r') \
4290                      || ('s' <= (c) && (c) <= 'z'))
4291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4292 #endif
4293
4294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4295 int
4296 main ()
4297 {
4298   int i;
4299   for (i = 0; i < 256; i++)
4300     if (XOR (islower (i), ISLOWER (i))
4301         || toupper (i) != TOUPPER (i))
4302       return 2;
4303   return 0;
4304 }
4305 _ACEOF
4306 rm -f conftest$ac_exeext
4307 if { (ac_try="$ac_link"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_link") 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4317   { (case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322   (eval "$ac_try") 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   :
4327 else
4328   echo "$as_me: program exited with status $ac_status" >&5
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 ( exit $ac_status )
4333 ac_cv_header_stdc=no
4334 fi
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4336 fi
4337
4338
4339 fi
4340 fi
4341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4343 if test $ac_cv_header_stdc = yes; then
4344
4345 cat >>confdefs.h <<\_ACEOF
4346 #define STDC_HEADERS 1
4347 _ACEOF
4348
4349 fi
4350
4351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4362                   inttypes.h stdint.h unistd.h
4363 do
4364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 $ac_includes_default
4377
4378 #include <$ac_header>
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4382 case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387   (eval "$ac_compile") 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } && {
4394          test -z "$ac_c_werror_flag" ||
4395          test ! -s conftest.err
4396        } && test -s conftest.$ac_objext; then
4397   eval "$as_ac_Header=yes"
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402         eval "$as_ac_Header=no"
4403 fi
4404
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 fi
4407 ac_res=`eval echo '${'$as_ac_Header'}'`
4408                { echo "$as_me:$LINENO: result: $ac_res" >&5
4409 echo "${ECHO_T}$ac_res" >&6; }
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411   cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413 _ACEOF
4414
4415 fi
4416
4417 done
4418
4419
4420 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4421 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4422 if test "${ac_cv_c_bigendian+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   # See if sys/param.h defines the BYTE_ORDER macro.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h.  */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h.  */
4432 #include <sys/types.h>
4433 #include <sys/param.h>
4434
4435 int
4436 main ()
4437 {
4438 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4439         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4440  bogus endian macros
4441 #endif
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454   (eval "$ac_compile") 2>conftest.er1
4455   ac_status=$?
4456   grep -v '^ *+' conftest.er1 >conftest.err
4457   rm -f conftest.er1
4458   cat conftest.err >&5
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } && {
4461          test -z "$ac_c_werror_flag" ||
4462          test ! -s conftest.err
4463        } && test -s conftest.$ac_objext; then
4464   # It does; now see whether it defined to BIG_ENDIAN or not.
4465 cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 #include <sys/types.h>
4472 #include <sys/param.h>
4473
4474 int
4475 main ()
4476 {
4477 #if BYTE_ORDER != BIG_ENDIAN
4478  not big endian
4479 #endif
4480
4481   ;
4482   return 0;
4483 }
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (ac_try="$ac_compile"
4487 case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492   (eval "$ac_compile") 2>conftest.er1
4493   ac_status=$?
4494   grep -v '^ *+' conftest.er1 >conftest.err
4495   rm -f conftest.er1
4496   cat conftest.err >&5
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } && {
4499          test -z "$ac_c_werror_flag" ||
4500          test ! -s conftest.err
4501        } && test -s conftest.$ac_objext; then
4502   ac_cv_c_bigendian=yes
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507         ac_cv_c_bigendian=no
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 else
4512   echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515         # It does not; compile a test program.
4516 if test "$cross_compiling" = yes; then
4517   # try to guess the endianness by grepping values into an object file
4518   ac_cv_c_bigendian=unknown
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4526 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4528 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4529 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4531 int
4532 main ()
4533 {
4534  _ascii (); _ebcdic ();
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4541 case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_compile") 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } && {
4553          test -z "$ac_c_werror_flag" ||
4554          test ! -s conftest.err
4555        } && test -s conftest.$ac_objext; then
4556   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4557   ac_cv_c_bigendian=yes
4558 fi
4559 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4560   if test "$ac_cv_c_bigendian" = unknown; then
4561     ac_cv_c_bigendian=no
4562   else
4563     # finding both strings is unlikely to happen, but who knows?
4564     ac_cv_c_bigendian=unknown
4565   fi
4566 fi
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571
4572 fi
4573
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 else
4576   cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h.  */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h.  */
4582 $ac_includes_default
4583 int
4584 main ()
4585 {
4586
4587   /* Are we little or big endian?  From Harbison&Steele.  */
4588   union
4589   {
4590     long int l;
4591     char c[sizeof (long int)];
4592   } u;
4593   u.l = 1;
4594   return u.c[sizeof (long int) - 1] == 1;
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4602 case "(($ac_try" in
4603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604   *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607   (eval "$ac_link") 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4611   { (case "(($ac_try" in
4612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613   *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616   (eval "$ac_try") 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620   ac_cv_c_bigendian=no
4621 else
4622   echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ( exit $ac_status )
4627 ac_cv_c_bigendian=yes
4628 fi
4629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4630 fi
4631
4632
4633 fi
4634
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4638 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4639 case $ac_cv_c_bigendian in
4640   yes)
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define WORDS_BIGENDIAN 1
4644 _ACEOF
4645  ;;
4646   no)
4647      ;;
4648   *)
4649     { { echo "$as_me:$LINENO: error: unknown endianness
4650 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4651 echo "$as_me: error: unknown endianness
4652 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4653    { (exit 1); exit 1; }; } ;;
4654 esac
4655
4656
4657 # Extract the first word of "gmake", so it can be a program name with args.
4658 set dummy gmake; ac_word=$2
4659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661 if test "${ac_cv_prog_GMAKE+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   if test -n "$GMAKE"; then
4665   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_exec_ext in '' $ac_executable_extensions; do
4673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674     ac_cv_prog_GMAKE="yes"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4683 fi
4684 fi
4685 GMAKE=$ac_cv_prog_GMAKE
4686 if test -n "$GMAKE"; then
4687   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4688 echo "${ECHO_T}$GMAKE" >&6; }
4689 else
4690   { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4692 fi
4693
4694
4695 if test $GMAKE = no; then
4696   # Extract the first word of "make", so it can be a program name with args.
4697 set dummy make; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_MAKE+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   case $MAKE in
4704   [\\/]* | ?:[\\/]*)
4705   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4706   ;;
4707   *)
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4724   ;;
4725 esac
4726 fi
4727 MAKE=$ac_cv_path_MAKE
4728 if test -n "$MAKE"; then
4729   { echo "$as_me:$LINENO: result: $MAKE" >&5
4730 echo "${ECHO_T}$MAKE" >&6; }
4731 else
4732   { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4734 fi
4735
4736
4737 else
4738   # Extract the first word of "gmake", so it can be a program name with args.
4739 set dummy gmake; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_MAKE+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   case $MAKE in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4766   ;;
4767 esac
4768 fi
4769 MAKE=$ac_cv_path_MAKE
4770 if test -n "$MAKE"; then
4771   { echo "$as_me:$LINENO: result: $MAKE" >&5
4772 echo "${ECHO_T}$MAKE" >&6; }
4773 else
4774   { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4776 fi
4777
4778
4779 fi
4780 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4781 if test -z "$makever"; then
4782   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4783                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4784 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4785                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4786    { (exit 1); exit 1; }; }
4787 fi
4788
4789   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4790 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4791 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4792   echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794   ac_check_lib_save_LIBS=$LIBS
4795 LIBS="-lltdl  $LIBS"
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802
4803 /* Override any GCC internal prototype to avoid an error.
4804    Use char because int might match the return type of a GCC
4805    builtin and then its argument prototype would still apply.  */
4806 #ifdef __cplusplus
4807 extern "C"
4808 #endif
4809 char lt_dlinit ();
4810 int
4811 main ()
4812 {
4813 return lt_dlinit ();
4814   ;
4815   return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext conftest$ac_exeext
4819 if { (ac_try="$ac_link"
4820 case "(($ac_try" in
4821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822   *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825   (eval "$ac_link") 2>conftest.er1
4826   ac_status=$?
4827   grep -v '^ *+' conftest.er1 >conftest.err
4828   rm -f conftest.er1
4829   cat conftest.err >&5
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); } && {
4832          test -z "$ac_c_werror_flag" ||
4833          test ! -s conftest.err
4834        } && test -s conftest$ac_exeext &&
4835        $as_test_x conftest$ac_exeext; then
4836   ac_cv_lib_ltdl_lt_dlinit=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841         ac_cv_lib_ltdl_lt_dlinit=no
4842 fi
4843
4844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4845       conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4847 fi
4848 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4849 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4850 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4851   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4852 else
4853   if test x"$enable_ltdl_install" = xno; then
4854      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4855 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4856    else
4857      enable_ltdl_install=yes
4858    fi
4859
4860 fi
4861
4862   if test x"$enable_ltdl_install" = x"yes"; then
4863     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4864     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4865     LTDLINCL='-I${top_srcdir}/''libltdl'
4866   else
4867     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4868     LIBLTDL="-lltdl"
4869     LTDLINCL=
4870   fi
4871   # For backwards non-gettext consistent compatibility...
4872   INCLTDL="$LTDLINCL"
4873
4874
4875 if test x"$enable_ltdl_install" = x"yes"; then
4876   LTDL_SUBDIRS=libltdl
4877 fi
4878
4879
4880 # Check whether --enable-shared was given.
4881 if test "${enable_shared+set}" = set; then
4882   enableval=$enable_shared; p=${PACKAGE-default}
4883     case $enableval in
4884     yes) enable_shared=yes ;;
4885     no) enable_shared=no ;;
4886     *)
4887       enable_shared=no
4888       # Look at the argument we got.  We use all the common list separators.
4889       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4890       for pkg in $enableval; do
4891         IFS="$lt_save_ifs"
4892         if test "X$pkg" = "X$p"; then
4893           enable_shared=yes
4894         fi
4895       done
4896       IFS="$lt_save_ifs"
4897       ;;
4898     esac
4899 else
4900   enable_shared=yes
4901 fi
4902
4903
4904 # Check whether --enable-static was given.
4905 if test "${enable_static+set}" = set; then
4906   enableval=$enable_static; p=${PACKAGE-default}
4907     case $enableval in
4908     yes) enable_static=yes ;;
4909     no) enable_static=no ;;
4910     *)
4911      enable_static=no
4912       # Look at the argument we got.  We use all the common list separators.
4913       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4914       for pkg in $enableval; do
4915         IFS="$lt_save_ifs"
4916         if test "X$pkg" = "X$p"; then
4917           enable_static=yes
4918         fi
4919       done
4920       IFS="$lt_save_ifs"
4921       ;;
4922     esac
4923 else
4924   enable_static=yes
4925 fi
4926
4927
4928 # Check whether --enable-fast-install was given.
4929 if test "${enable_fast_install+set}" = set; then
4930   enableval=$enable_fast_install; p=${PACKAGE-default}
4931     case $enableval in
4932     yes) enable_fast_install=yes ;;
4933     no) enable_fast_install=no ;;
4934     *)
4935       enable_fast_install=no
4936       # Look at the argument we got.  We use all the common list separators.
4937       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4938       for pkg in $enableval; do
4939         IFS="$lt_save_ifs"
4940         if test "X$pkg" = "X$p"; then
4941           enable_fast_install=yes
4942         fi
4943       done
4944       IFS="$lt_save_ifs"
4945       ;;
4946     esac
4947 else
4948   enable_fast_install=yes
4949 fi
4950
4951
4952 ac_aux_dir=
4953 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4954   if test -f "$ac_dir/install-sh"; then
4955     ac_aux_dir=$ac_dir
4956     ac_install_sh="$ac_aux_dir/install-sh -c"
4957     break
4958   elif test -f "$ac_dir/install.sh"; then
4959     ac_aux_dir=$ac_dir
4960     ac_install_sh="$ac_aux_dir/install.sh -c"
4961     break
4962   elif test -f "$ac_dir/shtool"; then
4963     ac_aux_dir=$ac_dir
4964     ac_install_sh="$ac_aux_dir/shtool install -c"
4965     break
4966   fi
4967 done
4968 if test -z "$ac_aux_dir"; then
4969   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4970 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4971    { (exit 1); exit 1; }; }
4972 fi
4973
4974 # These three variables are undocumented and unsupported,
4975 # and are intended to be withdrawn in a future Autoconf release.
4976 # They can cause serious problems if a builder's source tree is in a directory
4977 # whose full name contains unusual characters.
4978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4980 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4981
4982
4983 # Make sure we can run config.sub.
4984 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4985   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4986 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4987    { (exit 1); exit 1; }; }
4988
4989 { echo "$as_me:$LINENO: checking build system type" >&5
4990 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4991 if test "${ac_cv_build+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   ac_build_alias=$build_alias
4995 test "x$ac_build_alias" = x &&
4996   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4997 test "x$ac_build_alias" = x &&
4998   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4999 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5000    { (exit 1); exit 1; }; }
5001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5002   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5003 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5004    { (exit 1); exit 1; }; }
5005
5006 fi
5007 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5008 echo "${ECHO_T}$ac_cv_build" >&6; }
5009 case $ac_cv_build in
5010 *-*-*) ;;
5011 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5012 echo "$as_me: error: invalid value of canonical build" >&2;}
5013    { (exit 1); exit 1; }; };;
5014 esac
5015 build=$ac_cv_build
5016 ac_save_IFS=$IFS; IFS='-'
5017 set x $ac_cv_build
5018 shift
5019 build_cpu=$1
5020 build_vendor=$2
5021 shift; shift
5022 # Remember, the first character of IFS is used to create $*,
5023 # except with old shells:
5024 build_os=$*
5025 IFS=$ac_save_IFS
5026 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5027
5028
5029 { echo "$as_me:$LINENO: checking host system type" >&5
5030 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5031 if test "${ac_cv_host+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   if test "x$host_alias" = x; then
5035   ac_cv_host=$ac_cv_build
5036 else
5037   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5038     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5040    { (exit 1); exit 1; }; }
5041 fi
5042
5043 fi
5044 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5045 echo "${ECHO_T}$ac_cv_host" >&6; }
5046 case $ac_cv_host in
5047 *-*-*) ;;
5048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5049 echo "$as_me: error: invalid value of canonical host" >&2;}
5050    { (exit 1); exit 1; }; };;
5051 esac
5052 host=$ac_cv_host
5053 ac_save_IFS=$IFS; IFS='-'
5054 set x $ac_cv_host
5055 shift
5056 host_cpu=$1
5057 host_vendor=$2
5058 shift; shift
5059 # Remember, the first character of IFS is used to create $*,
5060 # except with old shells:
5061 host_os=$*
5062 IFS=$ac_save_IFS
5063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5064
5065
5066 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5068 if test "${lt_cv_path_SED+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071   # Loop through the user's path and test for sed and gsed.
5072 # Then use that list of sed's as ones to test for truncation.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078   for lt_ac_prog in sed gsed; do
5079     for ac_exec_ext in '' $ac_executable_extensions; do
5080       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5081         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5082       fi
5083     done
5084   done
5085 done
5086 lt_ac_max=0
5087 lt_ac_count=0
5088 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5089 # along with /bin/sed that truncates output.
5090 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5091   test ! -f $lt_ac_sed && continue
5092   cat /dev/null > conftest.in
5093   lt_ac_count=0
5094   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5095   # Check for GNU sed and select it if it is found.
5096   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5097     lt_cv_path_SED=$lt_ac_sed
5098     break
5099   fi
5100   while true; do
5101     cat conftest.in conftest.in >conftest.tmp
5102     mv conftest.tmp conftest.in
5103     cp conftest.in conftest.nl
5104     echo >>conftest.nl
5105     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5106     cmp -s conftest.out conftest.nl || break
5107     # 10000 chars as input seems more than enough
5108     test $lt_ac_count -gt 10 && break
5109     lt_ac_count=`expr $lt_ac_count + 1`
5110     if test $lt_ac_count -gt $lt_ac_max; then
5111       lt_ac_max=$lt_ac_count
5112       lt_cv_path_SED=$lt_ac_sed
5113     fi
5114   done
5115 done
5116
5117 fi
5118
5119 SED=$lt_cv_path_SED
5120 { echo "$as_me:$LINENO: result: $SED" >&5
5121 echo "${ECHO_T}$SED" >&6; }
5122
5123
5124 # Check whether --with-gnu-ld was given.
5125 if test "${with_gnu_ld+set}" = set; then
5126   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5127 else
5128   with_gnu_ld=no
5129 fi
5130
5131 ac_prog=ld
5132 if test "$GCC" = yes; then
5133   # Check if gcc -print-prog-name=ld gives a path.
5134   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5135 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5136   case $host in
5137   *-*-mingw*)
5138     # gcc leaves a trailing carriage return which upsets mingw
5139     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5140   *)
5141     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5142   esac
5143   case $ac_prog in
5144     # Accept absolute paths.
5145     [\\/]* | ?:[\\/]*)
5146       re_direlt='/[^/][^/]*/\.\./'
5147       # Canonicalize the pathname of ld
5148       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5149       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5150         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5151       done
5152       test -z "$LD" && LD="$ac_prog"
5153       ;;
5154   "")
5155     # If it fails, then pretend we aren't using GCC.
5156     ac_prog=ld
5157     ;;
5158   *)
5159     # If it is relative, then search for the first ld in PATH.
5160     with_gnu_ld=unknown
5161     ;;
5162   esac
5163 elif test "$with_gnu_ld" = yes; then
5164   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5165 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5166 else
5167   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5168 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5169 fi
5170 if test "${lt_cv_path_LD+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   if test -z "$LD"; then
5174   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5175   for ac_dir in $PATH; do
5176     IFS="$lt_save_ifs"
5177     test -z "$ac_dir" && ac_dir=.
5178     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5179       lt_cv_path_LD="$ac_dir/$ac_prog"
5180       # Check to see if the program is GNU ld.  I'd rather use --version,
5181       # but apparently some variants of GNU ld only accept -v.
5182       # Break only if it was the GNU/non-GNU ld that we prefer.
5183       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5184       *GNU* | *'with BFD'*)
5185         test "$with_gnu_ld" != no && break
5186         ;;
5187       *)
5188         test "$with_gnu_ld" != yes && break
5189         ;;
5190       esac
5191     fi
5192   done
5193   IFS="$lt_save_ifs"
5194 else
5195   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5196 fi
5197 fi
5198
5199 LD="$lt_cv_path_LD"
5200 if test -n "$LD"; then
5201   { echo "$as_me:$LINENO: result: $LD" >&5
5202 echo "${ECHO_T}$LD" >&6; }
5203 else
5204   { echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6; }
5206 fi
5207 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5208 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5209    { (exit 1); exit 1; }; }
5210 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5211 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5212 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5216 case `$LD -v 2>&1 </dev/null` in
5217 *GNU* | *'with BFD'*)
5218   lt_cv_prog_gnu_ld=yes
5219   ;;
5220 *)
5221   lt_cv_prog_gnu_ld=no
5222   ;;
5223 esac
5224 fi
5225 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5226 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5227 with_gnu_ld=$lt_cv_prog_gnu_ld
5228
5229
5230 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5231 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5232 if test "${lt_cv_ld_reload_flag+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   lt_cv_ld_reload_flag='-r'
5236 fi
5237 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5238 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5239 reload_flag=$lt_cv_ld_reload_flag
5240 case $reload_flag in
5241 "" | " "*) ;;
5242 *) reload_flag=" $reload_flag" ;;
5243 esac
5244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5245 case $host_os in
5246   darwin*)
5247     if test "$GCC" = yes; then
5248       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5249     else
5250       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5251     fi
5252     ;;
5253 esac
5254
5255 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5256 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5257 if test "${lt_cv_path_NM+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   if test -n "$NM"; then
5261   # Let the user override the test.
5262   lt_cv_path_NM="$NM"
5263 else
5264   lt_nm_to_check="${ac_tool_prefix}nm"
5265   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5266     lt_nm_to_check="$lt_nm_to_check nm"
5267   fi
5268   for lt_tmp_nm in $lt_nm_to_check; do
5269     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5270     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5271       IFS="$lt_save_ifs"
5272       test -z "$ac_dir" && ac_dir=.
5273       tmp_nm="$ac_dir/$lt_tmp_nm"
5274       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5275         # Check to see if the nm accepts a BSD-compat flag.
5276         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5277         #   nm: unknown option "B" ignored
5278         # Tru64's nm complains that /dev/null is an invalid object file
5279         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5280         */dev/null* | *'Invalid file or object type'*)
5281           lt_cv_path_NM="$tmp_nm -B"
5282           break
5283           ;;
5284         *)
5285           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5286           */dev/null*)
5287             lt_cv_path_NM="$tmp_nm -p"
5288             break
5289             ;;
5290           *)
5291             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5292             continue # so that we can try to find one that supports BSD flags
5293             ;;
5294           esac
5295           ;;
5296         esac
5297       fi
5298     done
5299     IFS="$lt_save_ifs"
5300   done
5301   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5302 fi
5303 fi
5304 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5305 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5306 NM="$lt_cv_path_NM"
5307
5308 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5309 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5310 LN_S=$as_ln_s
5311 if test "$LN_S" = "ln -s"; then
5312   { echo "$as_me:$LINENO: result: yes" >&5
5313 echo "${ECHO_T}yes" >&6; }
5314 else
5315   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5316 echo "${ECHO_T}no, using $LN_S" >&6; }
5317 fi
5318
5319 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5320 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5321 if test "${lt_cv_deplibs_check_method+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   lt_cv_file_magic_cmd='$MAGIC_CMD'
5325 lt_cv_file_magic_test_file=
5326 lt_cv_deplibs_check_method='unknown'
5327 # Need to set the preceding variable on all platforms that support
5328 # interlibrary dependencies.
5329 # 'none' -- dependencies not supported.
5330 # `unknown' -- same as none, but documents that we really don't know.
5331 # 'pass_all' -- all dependencies passed with no checks.
5332 # 'test_compile' -- check by making test program.
5333 # 'file_magic [[regex]]' -- check by looking for files in library path
5334 # which responds to the $file_magic_cmd with a given extended regex.
5335 # If you have `file' or equivalent on your system and you're not sure
5336 # whether `pass_all' will *always* work, you probably want this one.
5337
5338 case $host_os in
5339 aix4* | aix5*)
5340   lt_cv_deplibs_check_method=pass_all
5341   ;;
5342
5343 beos*)
5344   lt_cv_deplibs_check_method=pass_all
5345   ;;
5346
5347 bsdi[45]*)
5348   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5349   lt_cv_file_magic_cmd='/usr/bin/file -L'
5350   lt_cv_file_magic_test_file=/shlib/libc.so
5351   ;;
5352
5353 cygwin*)
5354   # func_win32_libid is a shell function defined in ltmain.sh
5355   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5356   lt_cv_file_magic_cmd='func_win32_libid'
5357   ;;
5358
5359 mingw* | pw32*)
5360   # Base MSYS/MinGW do not provide the 'file' command needed by
5361   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5362   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5363   lt_cv_file_magic_cmd='$OBJDUMP -f'
5364   ;;
5365
5366 darwin* | rhapsody*)
5367   lt_cv_deplibs_check_method=pass_all
5368   ;;
5369
5370 freebsd* | kfreebsd*-gnu | dragonfly*)
5371   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5372     case $host_cpu in
5373     i*86 )
5374       # Not sure whether the presence of OpenBSD here was a mistake.
5375       # Let's accept both of them until this is cleared up.
5376       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5377       lt_cv_file_magic_cmd=/usr/bin/file
5378       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5379       ;;
5380     esac
5381   else
5382     lt_cv_deplibs_check_method=pass_all
5383   fi
5384   ;;
5385
5386 gnu*)
5387   lt_cv_deplibs_check_method=pass_all
5388   ;;
5389
5390 hpux10.20* | hpux11*)
5391   lt_cv_file_magic_cmd=/usr/bin/file
5392   case $host_cpu in
5393   ia64*)
5394     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5395     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5396     ;;
5397   hppa*64*)
5398     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5399     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5400     ;;
5401   *)
5402     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5403     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5404     ;;
5405   esac
5406   ;;
5407
5408 interix3*)
5409   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5410   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5411   ;;
5412
5413 irix5* | irix6* | nonstopux*)
5414   case $LD in
5415   *-32|*"-32 ") libmagic=32-bit;;
5416   *-n32|*"-n32 ") libmagic=N32;;
5417   *-64|*"-64 ") libmagic=64-bit;;
5418   *) libmagic=never-match;;
5419   esac
5420   lt_cv_deplibs_check_method=pass_all
5421   ;;
5422
5423 # This must be Linux ELF.
5424 linux*)
5425   lt_cv_deplibs_check_method=pass_all
5426   ;;
5427
5428 netbsd*)
5429   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5430     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5431   else
5432     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5433   fi
5434   ;;
5435
5436 newos6*)
5437   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5438   lt_cv_file_magic_cmd=/usr/bin/file
5439   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5440   ;;
5441
5442 nto-qnx*)
5443   lt_cv_deplibs_check_method=unknown
5444   ;;
5445
5446 openbsd*)
5447   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5448     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5449   else
5450     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5451   fi
5452   ;;
5453
5454 osf3* | osf4* | osf5*)
5455   lt_cv_deplibs_check_method=pass_all
5456   ;;
5457
5458 solaris*)
5459   lt_cv_deplibs_check_method=pass_all
5460   ;;
5461
5462 sysv4 | sysv4.3*)
5463   case $host_vendor in
5464   motorola)
5465     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5466     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5467     ;;
5468   ncr)
5469     lt_cv_deplibs_check_method=pass_all
5470     ;;
5471   sequent)
5472     lt_cv_file_magic_cmd='/bin/file'
5473     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5474     ;;
5475   sni)
5476     lt_cv_file_magic_cmd='/bin/file'
5477     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5478     lt_cv_file_magic_test_file=/lib/libc.so
5479     ;;
5480   siemens)
5481     lt_cv_deplibs_check_method=pass_all
5482     ;;
5483   pc)
5484     lt_cv_deplibs_check_method=pass_all
5485     ;;
5486   esac
5487   ;;
5488
5489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492 esac
5493
5494 fi
5495 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5496 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5497 file_magic_cmd=$lt_cv_file_magic_cmd
5498 deplibs_check_method=$lt_cv_deplibs_check_method
5499 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5500
5501
5502
5503
5504 # If no C compiler was specified, use CC.
5505 LTCC=${LTCC-"$CC"}
5506
5507 # If no C compiler flags were specified, use CFLAGS.
5508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5509
5510 # Allow CC to be a program name with arguments.
5511 compiler=$CC
5512
5513 # Check whether --enable-libtool-lock was given.
5514 if test "${enable_libtool_lock+set}" = set; then
5515   enableval=$enable_libtool_lock;
5516 fi
5517
5518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5519
5520 # Some flags need to be propagated to the compiler or linker for good
5521 # libtool support.
5522 case $host in
5523 ia64-*-hpux*)
5524   # Find out which ABI we are using.
5525   echo 'int i;' > conftest.$ac_ext
5526   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527   (eval $ac_compile) 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }; then
5531     case `/usr/bin/file conftest.$ac_objext` in
5532     *ELF-32*)
5533       HPUX_IA64_MODE="32"
5534       ;;
5535     *ELF-64*)
5536       HPUX_IA64_MODE="64"
5537       ;;
5538     esac
5539   fi
5540   rm -rf conftest*
5541   ;;
5542 *-*-irix6*)
5543   # Find out which ABI we are using.
5544   echo '#line 5544 "configure"' > conftest.$ac_ext
5545   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546   (eval $ac_compile) 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); }; then
5550    if test "$lt_cv_prog_gnu_ld" = yes; then
5551     case `/usr/bin/file conftest.$ac_objext` in
5552     *32-bit*)
5553       LD="${LD-ld} -melf32bsmip"
5554       ;;
5555     *N32*)
5556       LD="${LD-ld} -melf32bmipn32"
5557       ;;
5558     *64-bit*)
5559       LD="${LD-ld} -melf64bmip"
5560       ;;
5561     esac
5562    else
5563     case `/usr/bin/file conftest.$ac_objext` in
5564     *32-bit*)
5565       LD="${LD-ld} -32"
5566       ;;
5567     *N32*)
5568       LD="${LD-ld} -n32"
5569       ;;
5570     *64-bit*)
5571       LD="${LD-ld} -64"
5572       ;;
5573     esac
5574    fi
5575   fi
5576   rm -rf conftest*
5577   ;;
5578
5579 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5580   # Find out which ABI we are using.
5581   echo 'int i;' > conftest.$ac_ext
5582   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583   (eval $ac_compile) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }; then
5587     case `/usr/bin/file conftest.o` in
5588     *32-bit*)
5589       case $host in
5590         x86_64-*linux*)
5591           LD="${LD-ld} -m elf_i386"
5592           ;;
5593         ppc64-*linux*|powerpc64-*linux*)
5594           LD="${LD-ld} -m elf32ppclinux"
5595           ;;
5596         s390x-*linux*)
5597           LD="${LD-ld} -m elf_s390"
5598           ;;
5599         sparc64-*linux*)
5600           LD="${LD-ld} -m elf32_sparc"
5601           ;;
5602       esac
5603       ;;
5604     *64-bit*)
5605       case $host in
5606         x86_64-*linux*)
5607           LD="${LD-ld} -m elf_x86_64"
5608           ;;
5609         ppc*-*linux*|powerpc*-*linux*)
5610           LD="${LD-ld} -m elf64ppc"
5611           ;;
5612         s390*-*linux*)
5613           LD="${LD-ld} -m elf64_s390"
5614           ;;
5615         sparc*-*linux*)
5616           LD="${LD-ld} -m elf64_sparc"
5617           ;;
5618       esac
5619       ;;
5620     esac
5621   fi
5622   rm -rf conftest*
5623   ;;
5624
5625 *-*-sco3.2v5*)
5626   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5627   SAVE_CFLAGS="$CFLAGS"
5628   CFLAGS="$CFLAGS -belf"
5629   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5630 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5631 if test "${lt_cv_cc_needs_belf+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639
5640      cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h.  */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h.  */
5646
5647 int
5648 main ()
5649 {
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (ac_try="$ac_link"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_link") 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } && {
5669          test -z "$ac_c_werror_flag" ||
5670          test ! -s conftest.err
5671        } && test -s conftest$ac_exeext &&
5672        $as_test_x conftest$ac_exeext; then
5673   lt_cv_cc_needs_belf=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678         lt_cv_cc_needs_belf=no
5679 fi
5680
5681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5682       conftest$ac_exeext conftest.$ac_ext
5683      ac_ext=c
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5688
5689 fi
5690 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5691 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5692   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5693     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5694     CFLAGS="$SAVE_CFLAGS"
5695   fi
5696   ;;
5697 sparc*-*solaris*)
5698   # Find out which ABI we are using.
5699   echo 'int i;' > conftest.$ac_ext
5700   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701   (eval $ac_compile) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; then
5705     case `/usr/bin/file conftest.o` in
5706     *64-bit*)
5707       case $lt_cv_prog_gnu_ld in
5708       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5709       *)    LD="${LD-ld} -64" ;;
5710       esac
5711       ;;
5712     esac
5713   fi
5714   rm -rf conftest*
5715   ;;
5716
5717
5718 esac
5719
5720 need_locks="$enable_libtool_lock"
5721
5722
5723
5724 for ac_header in dlfcn.h
5725 do
5726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5728   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 fi
5733 ac_res=`eval echo '${'$as_ac_Header'}'`
5734                { echo "$as_me:$LINENO: result: $ac_res" >&5
5735 echo "${ECHO_T}$ac_res" >&6; }
5736 else
5737   # Is the header compilable?
5738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746 $ac_includes_default
5747 #include <$ac_header>
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5751 case "(($ac_try" in
5752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753   *) ac_try_echo=$ac_try;;
5754 esac
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756   (eval "$ac_compile") 2>conftest.er1
5757   ac_status=$?
5758   grep -v '^ *+' conftest.er1 >conftest.err
5759   rm -f conftest.er1
5760   cat conftest.err >&5
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); } && {
5763          test -z "$ac_c_werror_flag" ||
5764          test ! -s conftest.err
5765        } && test -s conftest.$ac_objext; then
5766   ac_header_compiler=yes
5767 else
5768   echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771         ac_header_compiler=no
5772 fi
5773
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5776 echo "${ECHO_T}$ac_header_compiler" >&6; }
5777
5778 # Is the header present?
5779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787 #include <$ac_header>
5788 _ACEOF
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } >/dev/null && {
5802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5803          test ! -s conftest.err
5804        }; then
5805   ac_header_preproc=yes
5806 else
5807   echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810   ac_header_preproc=no
5811 fi
5812
5813 rm -f conftest.err conftest.$ac_ext
5814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5815 echo "${ECHO_T}$ac_header_preproc" >&6; }
5816
5817 # So?  What about this header?
5818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5819   yes:no: )
5820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5824     ac_header_preproc=yes
5825     ;;
5826   no:yes:* )
5827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5839
5840     ;;
5841 esac
5842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   eval "$as_ac_Header=\$ac_header_preproc"
5848 fi
5849 ac_res=`eval echo '${'$as_ac_Header'}'`
5850                { echo "$as_me:$LINENO: result: $ac_res" >&5
5851 echo "${ECHO_T}$ac_res" >&6; }
5852
5853 fi
5854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5855   cat >>confdefs.h <<_ACEOF
5856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5857 _ACEOF
5858
5859 fi
5860
5861 done
5862
5863
5864
5865 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5866     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5867     (test "X$CXX" != "Xg++"))) ; then
5868   ac_ext=cpp
5869 ac_cpp='$CXXCPP $CPPFLAGS'
5870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5873 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5874 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5875 if test -z "$CXXCPP"; then
5876   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879       # Double quotes because CXXCPP needs to be expanded
5880     for CXXCPP in "$CXX -E" "/lib/cpp"
5881     do
5882       ac_preproc_ok=false
5883 for ac_cxx_preproc_warn_flag in '' yes
5884 do
5885   # Use a header file that comes with gcc, so configuring glibc
5886   # with a fresh cross-compiler works.
5887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888   # <limits.h> exists even on freestanding compilers.
5889   # On the NeXT, cc -E runs the code through the compiler's parser,
5890   # not just through cpp. "Syntax error" is here to catch this case.
5891   cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897 #ifdef __STDC__
5898 # include <limits.h>
5899 #else
5900 # include <assert.h>
5901 #endif
5902                      Syntax error
5903 _ACEOF
5904 if { (ac_try="$ac_cpp conftest.$ac_ext"
5905 case "(($ac_try" in
5906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907   *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } >/dev/null && {
5917          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5918          test ! -s conftest.err
5919        }; then
5920   :
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925   # Broken: fails on valid input.
5926 continue
5927 fi
5928
5929 rm -f conftest.err conftest.$ac_ext
5930
5931   # OK, works on sane cases.  Now check whether nonexistent headers
5932   # can be detected and how.
5933   cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939 #include <ac_nonexistent.h>
5940 _ACEOF
5941 if { (ac_try="$ac_cpp conftest.$ac_ext"
5942 case "(($ac_try" in
5943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944   *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948   ac_status=$?
5949   grep -v '^ *+' conftest.er1 >conftest.err
5950   rm -f conftest.er1
5951   cat conftest.err >&5
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } >/dev/null && {
5954          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5955          test ! -s conftest.err
5956        }; then
5957   # Broken: success on invalid input.
5958 continue
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963   # Passes both tests.
5964 ac_preproc_ok=:
5965 break
5966 fi
5967
5968 rm -f conftest.err conftest.$ac_ext
5969
5970 done
5971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5972 rm -f conftest.err conftest.$ac_ext
5973 if $ac_preproc_ok; then
5974   break
5975 fi
5976
5977     done
5978     ac_cv_prog_CXXCPP=$CXXCPP
5979
5980 fi
5981   CXXCPP=$ac_cv_prog_CXXCPP
5982 else
5983   ac_cv_prog_CXXCPP=$CXXCPP
5984 fi
5985 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5986 echo "${ECHO_T}$CXXCPP" >&6; }
5987 ac_preproc_ok=false
5988 for ac_cxx_preproc_warn_flag in '' yes
5989 do
5990   # Use a header file that comes with gcc, so configuring glibc
5991   # with a fresh cross-compiler works.
5992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5993   # <limits.h> exists even on freestanding compilers.
5994   # On the NeXT, cc -E runs the code through the compiler's parser,
5995   # not just through cpp. "Syntax error" is here to catch this case.
5996   cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h.  */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h.  */
6002 #ifdef __STDC__
6003 # include <limits.h>
6004 #else
6005 # include <assert.h>
6006 #endif
6007                      Syntax error
6008 _ACEOF
6009 if { (ac_try="$ac_cpp conftest.$ac_ext"
6010 case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } >/dev/null && {
6022          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6023          test ! -s conftest.err
6024        }; then
6025   :
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030   # Broken: fails on valid input.
6031 continue
6032 fi
6033
6034 rm -f conftest.err conftest.$ac_ext
6035
6036   # OK, works on sane cases.  Now check whether nonexistent headers
6037   # can be detected and how.
6038   cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044 #include <ac_nonexistent.h>
6045 _ACEOF
6046 if { (ac_try="$ac_cpp conftest.$ac_ext"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } >/dev/null && {
6059          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6060          test ! -s conftest.err
6061        }; then
6062   # Broken: success on invalid input.
6063 continue
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068   # Passes both tests.
6069 ac_preproc_ok=:
6070 break
6071 fi
6072
6073 rm -f conftest.err conftest.$ac_ext
6074
6075 done
6076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6077 rm -f conftest.err conftest.$ac_ext
6078 if $ac_preproc_ok; then
6079   :
6080 else
6081   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6082 See \`config.log' for more details." >&5
6083 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6084 See \`config.log' for more details." >&2;}
6085    { (exit 1); exit 1; }; }
6086 fi
6087
6088 ac_ext=cpp
6089 ac_cpp='$CXXCPP $CPPFLAGS'
6090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6093
6094 fi
6095
6096
6097 ac_ext=f
6098 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6099 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6101 if test -n "$ac_tool_prefix"; then
6102   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6103   do
6104     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_F77+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   if test -n "$F77"; then
6112   ac_cv_prog_F77="$F77" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119   for ac_exec_ext in '' $ac_executable_extensions; do
6120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 F77=$ac_cv_prog_F77
6132 if test -n "$F77"; then
6133   { echo "$as_me:$LINENO: result: $F77" >&5
6134 echo "${ECHO_T}$F77" >&6; }
6135 else
6136   { echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6; }
6138 fi
6139
6140
6141     test -n "$F77" && break
6142   done
6143 fi
6144 if test -z "$F77"; then
6145   ac_ct_F77=$F77
6146   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6147 do
6148   # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy $ac_prog; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6153   echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155   if test -n "$ac_ct_F77"; then
6156   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_prog_ac_ct_F77="$ac_prog"
6166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6176 if test -n "$ac_ct_F77"; then
6177   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6178 echo "${ECHO_T}$ac_ct_F77" >&6; }
6179 else
6180   { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6182 fi
6183
6184
6185   test -n "$ac_ct_F77" && break
6186 done
6187
6188   if test "x$ac_ct_F77" = x; then
6189     F77=""
6190   else
6191     case $cross_compiling:$ac_tool_warned in
6192 yes:)
6193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6194 whose name does not start with the host triplet.  If you think this
6195 configuration is useful to you, please write to autoconf@gnu.org." >&5
6196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6197 whose name does not start with the host triplet.  If you think this
6198 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6199 ac_tool_warned=yes ;;
6200 esac
6201     F77=$ac_ct_F77
6202   fi
6203 fi
6204
6205
6206 # Provide some information about the compiler.
6207 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6208 ac_compiler=`set X $ac_compile; echo $2`
6209 { (ac_try="$ac_compiler --version >&5"
6210 case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_compiler --version >&5") 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }
6219 { (ac_try="$ac_compiler -v >&5"
6220 case "(($ac_try" in
6221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222   *) ac_try_echo=$ac_try;;
6223 esac
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225   (eval "$ac_compiler -v >&5") 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }
6229 { (ac_try="$ac_compiler -V >&5"
6230 case "(($ac_try" in
6231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232   *) ac_try_echo=$ac_try;;
6233 esac
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235   (eval "$ac_compiler -V >&5") 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }
6239 rm -f a.out
6240
6241 # If we don't use `.F' as extension, the preprocessor is not run on the
6242 # input file.  (Note that this only needs to work for GNU compilers.)
6243 ac_save_ext=$ac_ext
6244 ac_ext=F
6245 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6246 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6247 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   cat >conftest.$ac_ext <<_ACEOF
6251       program main
6252 #ifndef __GNUC__
6253        choke me
6254 #endif
6255
6256       end
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262   *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265   (eval "$ac_compile") 2>conftest.er1
6266   ac_status=$?
6267   grep -v '^ *+' conftest.er1 >conftest.err
6268   rm -f conftest.er1
6269   cat conftest.err >&5
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); } && {
6272          test -z "$ac_f77_werror_flag" ||
6273          test ! -s conftest.err
6274        } && test -s conftest.$ac_objext; then
6275   ac_compiler_gnu=yes
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280         ac_compiler_gnu=no
6281 fi
6282
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6285
6286 fi
6287 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6288 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6289 ac_ext=$ac_save_ext
6290 ac_test_FFLAGS=${FFLAGS+set}
6291 ac_save_FFLAGS=$FFLAGS
6292 FFLAGS=
6293 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6294 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6295 if test "${ac_cv_prog_f77_g+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   FFLAGS=-g
6299 cat >conftest.$ac_ext <<_ACEOF
6300       program main
6301
6302       end
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6306 case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_compile") 2>conftest.er1
6312   ac_status=$?
6313   grep -v '^ *+' conftest.er1 >conftest.err
6314   rm -f conftest.er1
6315   cat conftest.err >&5
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } && {
6318          test -z "$ac_f77_werror_flag" ||
6319          test ! -s conftest.err
6320        } && test -s conftest.$ac_objext; then
6321   ac_cv_prog_f77_g=yes
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326         ac_cv_prog_f77_g=no
6327 fi
6328
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330
6331 fi
6332 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6333 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6334 if test "$ac_test_FFLAGS" = set; then
6335   FFLAGS=$ac_save_FFLAGS
6336 elif test $ac_cv_prog_f77_g = yes; then
6337   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6338     FFLAGS="-g -O2"
6339   else
6340     FFLAGS="-g"
6341   fi
6342 else
6343   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6344     FFLAGS="-O2"
6345   else
6346     FFLAGS=
6347   fi
6348 fi
6349
6350 G77=`test $ac_compiler_gnu = yes && echo yes`
6351 ac_ext=c
6352 ac_cpp='$CPP $CPPFLAGS'
6353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6356
6357
6358
6359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6360
6361 # find the maximum length of command line arguments
6362 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6363 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367     i=0
6368   teststring="ABCD"
6369
6370   case $build_os in
6371   msdosdjgpp*)
6372     # On DJGPP, this test can blow up pretty badly due to problems in libc
6373     # (any single argument exceeding 2000 bytes causes a buffer overrun
6374     # during glob expansion).  Even if it were fixed, the result of this
6375     # check would be larger than it should be.
6376     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6377     ;;
6378
6379   gnu*)
6380     # Under GNU Hurd, this test is not required because there is
6381     # no limit to the length of command line arguments.
6382     # Libtool will interpret -1 as no limit whatsoever
6383     lt_cv_sys_max_cmd_len=-1;
6384     ;;
6385
6386   cygwin* | mingw*)
6387     # On Win9x/ME, this test blows up -- it succeeds, but takes
6388     # about 5 minutes as the teststring grows exponentially.
6389     # Worse, since 9x/ME are not pre-emptively multitasking,
6390     # you end up with a "frozen" computer, even though with patience
6391     # the test eventually succeeds (with a max line length of 256k).
6392     # Instead, let's just punt: use the minimum linelength reported by
6393     # all of the supported platforms: 8192 (on NT/2K/XP).
6394     lt_cv_sys_max_cmd_len=8192;
6395     ;;
6396
6397   amigaos*)
6398     # On AmigaOS with pdksh, this test takes hours, literally.
6399     # So we just punt and use a minimum line length of 8192.
6400     lt_cv_sys_max_cmd_len=8192;
6401     ;;
6402
6403   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6404     # This has been around since 386BSD, at least.  Likely further.
6405     if test -x /sbin/sysctl; then
6406       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6407     elif test -x /usr/sbin/sysctl; then
6408       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6409     else
6410       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6411     fi
6412     # And add a safety zone
6413     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6414     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6415     ;;
6416
6417   interix*)
6418     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6419     lt_cv_sys_max_cmd_len=196608
6420     ;;
6421
6422   osf*)
6423     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6424     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6425     # nice to cause kernel panics so lets avoid the loop below.
6426     # First set a reasonable default.
6427     lt_cv_sys_max_cmd_len=16384
6428     #
6429     if test -x /sbin/sysconfig; then
6430       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6431         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6432       esac
6433     fi
6434     ;;
6435   sco3.2v5*)
6436     lt_cv_sys_max_cmd_len=102400
6437     ;;
6438   sysv5* | sco5v6* | sysv4.2uw2*)
6439     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6440     if test -n "$kargmax"; then
6441       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6442     else
6443       lt_cv_sys_max_cmd_len=32768
6444     fi
6445     ;;
6446   *)
6447     # If test is not a shell built-in, we'll probably end up computing a
6448     # maximum length that is only half of the actual maximum length, but
6449     # we can't tell.
6450     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6451     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6452                = "XX$teststring") >/dev/null 2>&1 &&
6453             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6454             lt_cv_sys_max_cmd_len=$new_result &&
6455             test $i != 17 # 1/2 MB should be enough
6456     do
6457       i=`expr $i + 1`
6458       teststring=$teststring$teststring
6459     done
6460     teststring=
6461     # Add a significant safety factor because C++ compilers can tack on massive
6462     # amounts of additional arguments before passing them to the linker.
6463     # It appears as though 1/2 is a usable value.
6464     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6465     ;;
6466   esac
6467
6468 fi
6469
6470 if test -n $lt_cv_sys_max_cmd_len ; then
6471   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6472 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6473 else
6474   { echo "$as_me:$LINENO: result: none" >&5
6475 echo "${ECHO_T}none" >&6; }
6476 fi
6477
6478
6479
6480
6481 # Check for command to grab the raw symbol name followed by C symbol from nm.
6482 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6483 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6484 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487
6488 # These are sane defaults that work on at least a few old systems.
6489 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6490
6491 # Character class describing NM global symbol codes.
6492 symcode='[BCDEGRST]'
6493
6494 # Regexp to match symbols that can be accessed directly from C.
6495 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6496
6497 # Transform an extracted symbol line into a proper C declaration
6498 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6499
6500 # Transform an extracted symbol line into symbol name and symbol address
6501 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6502
6503 # Define system-specific variables.
6504 case $host_os in
6505 aix*)
6506   symcode='[BCDT]'
6507   ;;
6508 cygwin* | mingw* | pw32*)
6509   symcode='[ABCDGISTW]'
6510   ;;
6511 hpux*) # Its linker distinguishes data from code symbols
6512   if test "$host_cpu" = ia64; then
6513     symcode='[ABCDEGRST]'
6514   fi
6515   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6516   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6517   ;;
6518 linux*)
6519   if test "$host_cpu" = ia64; then
6520     symcode='[ABCDGIRSTW]'
6521     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6522     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6523   fi
6524   ;;
6525 irix* | nonstopux*)
6526   symcode='[BCDEGRST]'
6527   ;;
6528 osf*)
6529   symcode='[BCDEGQRST]'
6530   ;;
6531 solaris*)
6532   symcode='[BDRT]'
6533   ;;
6534 sco3.2v5*)
6535   symcode='[DT]'
6536   ;;
6537 sysv4.2uw2*)
6538   symcode='[DT]'
6539   ;;
6540 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6541   symcode='[ABDT]'
6542   ;;
6543 sysv4)
6544   symcode='[DFNSTU]'
6545   ;;
6546 esac
6547
6548 # Handle CRLF in mingw tool chain
6549 opt_cr=
6550 case $build_os in
6551 mingw*)
6552   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6553   ;;
6554 esac
6555
6556 # If we're using GNU nm, then use its standard symbol codes.
6557 case `$NM -V 2>&1` in
6558 *GNU* | *'with BFD'*)
6559   symcode='[ABCDGIRSTW]' ;;
6560 esac
6561
6562 # Try without a prefix undercore, then with it.
6563 for ac_symprfx in "" "_"; do
6564
6565   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6566   symxfrm="\\1 $ac_symprfx\\2 \\2"
6567
6568   # Write the raw and C identifiers.
6569   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6570
6571   # Check to see that the pipe works correctly.
6572   pipe_works=no
6573
6574   rm -f conftest*
6575   cat > conftest.$ac_ext <<EOF
6576 #ifdef __cplusplus
6577 extern "C" {
6578 #endif
6579 char nm_test_var;
6580 void nm_test_func(){}
6581 #ifdef __cplusplus
6582 }
6583 #endif
6584 int main(){nm_test_var='a';nm_test_func();return(0);}
6585 EOF
6586
6587   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588   (eval $ac_compile) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; then
6592     # Now try to grab the symbols.
6593     nlist=conftest.nm
6594     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6595   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } && test -s "$nlist"; then
6599       # Try sorting and uniquifying the output.
6600       if sort "$nlist" | uniq > "$nlist"T; then
6601         mv -f "$nlist"T "$nlist"
6602       else
6603         rm -f "$nlist"T
6604       fi
6605
6606       # Make sure that we snagged all the symbols we need.
6607       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6608         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6609           cat <<EOF > conftest.$ac_ext
6610 #ifdef __cplusplus
6611 extern "C" {
6612 #endif
6613
6614 EOF
6615           # Now generate the symbol file.
6616           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6617
6618           cat <<EOF >> conftest.$ac_ext
6619 #if defined (__STDC__) && __STDC__
6620 # define lt_ptr_t void *
6621 #else
6622 # define lt_ptr_t char *
6623 # define const
6624 #endif
6625
6626 /* The mapping between symbol names and symbols. */
6627 const struct {
6628   const char *name;
6629   lt_ptr_t address;
6630 }
6631 lt_preloaded_symbols[] =
6632 {
6633 EOF
6634           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6635           cat <<\EOF >> conftest.$ac_ext
6636   {0, (lt_ptr_t) 0}
6637 };
6638
6639 #ifdef __cplusplus
6640 }
6641 #endif
6642 EOF
6643           # Now try linking the two files.
6644           mv conftest.$ac_objext conftstm.$ac_objext
6645           lt_save_LIBS="$LIBS"
6646           lt_save_CFLAGS="$CFLAGS"
6647           LIBS="conftstm.$ac_objext"
6648           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6649           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650   (eval $ac_link) 2>&5
6651   ac_status=$?
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6654             pipe_works=yes
6655           fi
6656           LIBS="$lt_save_LIBS"
6657           CFLAGS="$lt_save_CFLAGS"
6658         else
6659           echo "cannot find nm_test_func in $nlist" >&5
6660         fi
6661       else
6662         echo "cannot find nm_test_var in $nlist" >&5
6663       fi
6664     else
6665       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6666     fi
6667   else
6668     echo "$progname: failed program was:" >&5
6669     cat conftest.$ac_ext >&5
6670   fi
6671   rm -f conftest* conftst*
6672
6673   # Do not use the global_symbol_pipe unless it works.
6674   if test "$pipe_works" = yes; then
6675     break
6676   else
6677     lt_cv_sys_global_symbol_pipe=
6678   fi
6679 done
6680
6681 fi
6682
6683 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6684   lt_cv_sys_global_symbol_to_cdecl=
6685 fi
6686 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6687   { echo "$as_me:$LINENO: result: failed" >&5
6688 echo "${ECHO_T}failed" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: ok" >&5
6691 echo "${ECHO_T}ok" >&6; }
6692 fi
6693
6694 { echo "$as_me:$LINENO: checking for objdir" >&5
6695 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6696 if test "${lt_cv_objdir+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   rm -f .libs 2>/dev/null
6700 mkdir .libs 2>/dev/null
6701 if test -d .libs; then
6702   lt_cv_objdir=.libs
6703 else
6704   # MS-DOS does not allow filenames that begin with a dot.
6705   lt_cv_objdir=_libs
6706 fi
6707 rmdir .libs 2>/dev/null
6708 fi
6709 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6710 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6711 objdir=$lt_cv_objdir
6712
6713
6714
6715
6716
6717 case $host_os in
6718 aix3*)
6719   # AIX sometimes has problems with the GCC collect2 program.  For some
6720   # reason, if we set the COLLECT_NAMES environment variable, the problems
6721   # vanish in a puff of smoke.
6722   if test "X${COLLECT_NAMES+set}" != Xset; then
6723     COLLECT_NAMES=
6724     export COLLECT_NAMES
6725   fi
6726   ;;
6727 esac
6728
6729 # Sed substitution that helps us do robust quoting.  It backslashifies
6730 # metacharacters that are still active within double-quoted strings.
6731 Xsed='sed -e 1s/^X//'
6732 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6733
6734 # Same as above, but do not quote variable references.
6735 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6736
6737 # Sed substitution to delay expansion of an escaped shell variable in a
6738 # double_quote_subst'ed string.
6739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6740
6741 # Sed substitution to avoid accidental globbing in evaled expressions
6742 no_glob_subst='s/\*/\\\*/g'
6743
6744 # Constants:
6745 rm="rm -f"
6746
6747 # Global variables:
6748 default_ofile=libtool
6749 can_build_shared=yes
6750
6751 # All known linkers require a `.a' archive for static linking (except MSVC,
6752 # which needs '.lib').
6753 libext=a
6754 ltmain="$ac_aux_dir/ltmain.sh"
6755 ofile="$default_ofile"
6756 with_gnu_ld="$lt_cv_prog_gnu_ld"
6757
6758 if test -n "$ac_tool_prefix"; then
6759   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6760 set dummy ${ac_tool_prefix}ar; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_AR+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   if test -n "$AR"; then
6767   ac_cv_prog_AR="$AR" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_prog_AR="${ac_tool_prefix}ar"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 AR=$ac_cv_prog_AR
6787 if test -n "$AR"; then
6788   { echo "$as_me:$LINENO: result: $AR" >&5
6789 echo "${ECHO_T}$AR" >&6; }
6790 else
6791   { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6793 fi
6794
6795
6796 fi
6797 if test -z "$ac_cv_prog_AR"; then
6798   ac_ct_AR=$AR
6799   # Extract the first word of "ar", so it can be a program name with args.
6800 set dummy ar; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6804   echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806   if test -n "$ac_ct_AR"; then
6807   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812   IFS=$as_save_IFS
6813   test -z "$as_dir" && as_dir=.
6814   for ac_exec_ext in '' $ac_executable_extensions; do
6815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816     ac_cv_prog_ac_ct_AR="ar"
6817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818     break 2
6819   fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6827 if test -n "$ac_ct_AR"; then
6828   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6829 echo "${ECHO_T}$ac_ct_AR" >&6; }
6830 else
6831   { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6833 fi
6834
6835   if test "x$ac_ct_AR" = x; then
6836     AR="false"
6837   else
6838     case $cross_compiling:$ac_tool_warned in
6839 yes:)
6840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6841 whose name does not start with the host triplet.  If you think this
6842 configuration is useful to you, please write to autoconf@gnu.org." >&5
6843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6844 whose name does not start with the host triplet.  If you think this
6845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6846 ac_tool_warned=yes ;;
6847 esac
6848     AR=$ac_ct_AR
6849   fi
6850 else
6851   AR="$ac_cv_prog_AR"
6852 fi
6853
6854 if test -n "$ac_tool_prefix"; then
6855   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_RANLIB+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   if test -n "$RANLIB"; then
6863   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870   for ac_exec_ext in '' $ac_executable_extensions; do
6871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 RANLIB=$ac_cv_prog_RANLIB
6883 if test -n "$RANLIB"; then
6884   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6885 echo "${ECHO_T}$RANLIB" >&6; }
6886 else
6887   { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6889 fi
6890
6891
6892 fi
6893 if test -z "$ac_cv_prog_RANLIB"; then
6894   ac_ct_RANLIB=$RANLIB
6895   # Extract the first word of "ranlib", so it can be a program name with args.
6896 set dummy ranlib; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   if test -n "$ac_ct_RANLIB"; then
6903   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908   IFS=$as_save_IFS
6909   test -z "$as_dir" && as_dir=.
6910   for ac_exec_ext in '' $ac_executable_extensions; do
6911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912     ac_cv_prog_ac_ct_RANLIB="ranlib"
6913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914     break 2
6915   fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6923 if test -n "$ac_ct_RANLIB"; then
6924   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6925 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6926 else
6927   { echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6; }
6929 fi
6930
6931   if test "x$ac_ct_RANLIB" = x; then
6932     RANLIB=":"
6933   else
6934     case $cross_compiling:$ac_tool_warned in
6935 yes:)
6936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6937 whose name does not start with the host triplet.  If you think this
6938 configuration is useful to you, please write to autoconf@gnu.org." >&5
6939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6940 whose name does not start with the host triplet.  If you think this
6941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6942 ac_tool_warned=yes ;;
6943 esac
6944     RANLIB=$ac_ct_RANLIB
6945   fi
6946 else
6947   RANLIB="$ac_cv_prog_RANLIB"
6948 fi
6949
6950 if test -n "$ac_tool_prefix"; then
6951   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}strip; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_prog_STRIP+set}" = set; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958   if test -n "$STRIP"; then
6959   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 STRIP=$ac_cv_prog_STRIP
6979 if test -n "$STRIP"; then
6980   { echo "$as_me:$LINENO: result: $STRIP" >&5
6981 echo "${ECHO_T}$STRIP" >&6; }
6982 else
6983   { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987
6988 fi
6989 if test -z "$ac_cv_prog_STRIP"; then
6990   ac_ct_STRIP=$STRIP
6991   # Extract the first word of "strip", so it can be a program name with args.
6992 set dummy strip; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6996   echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998   if test -n "$ac_ct_STRIP"; then
6999   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006   for ac_exec_ext in '' $ac_executable_extensions; do
7007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008     ac_cv_prog_ac_ct_STRIP="strip"
7009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7019 if test -n "$ac_ct_STRIP"; then
7020   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7021 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7022 else
7023   { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7025 fi
7026
7027   if test "x$ac_ct_STRIP" = x; then
7028     STRIP=":"
7029   else
7030     case $cross_compiling:$ac_tool_warned in
7031 yes:)
7032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7033 whose name does not start with the host triplet.  If you think this
7034 configuration is useful to you, please write to autoconf@gnu.org." >&5
7035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7036 whose name does not start with the host triplet.  If you think this
7037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7038 ac_tool_warned=yes ;;
7039 esac
7040     STRIP=$ac_ct_STRIP
7041   fi
7042 else
7043   STRIP="$ac_cv_prog_STRIP"
7044 fi
7045
7046
7047 old_CC="$CC"
7048 old_CFLAGS="$CFLAGS"
7049
7050 # Set sane defaults for various variables
7051 test -z "$AR" && AR=ar
7052 test -z "$AR_FLAGS" && AR_FLAGS=cru
7053 test -z "$AS" && AS=as
7054 test -z "$CC" && CC=cc
7055 test -z "$LTCC" && LTCC=$CC
7056 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7057 test -z "$DLLTOOL" && DLLTOOL=dlltool
7058 test -z "$LD" && LD=ld
7059 test -z "$LN_S" && LN_S="ln -s"
7060 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7061 test -z "$NM" && NM=nm
7062 test -z "$SED" && SED=sed
7063 test -z "$OBJDUMP" && OBJDUMP=objdump
7064 test -z "$RANLIB" && RANLIB=:
7065 test -z "$STRIP" && STRIP=:
7066 test -z "$ac_objext" && ac_objext=o
7067
7068 # Determine commands to create old-style static archives.
7069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7070 old_postinstall_cmds='chmod 644 $oldlib'
7071 old_postuninstall_cmds=
7072
7073 if test -n "$RANLIB"; then
7074   case $host_os in
7075   openbsd*)
7076     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7077     ;;
7078   *)
7079     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7080     ;;
7081   esac
7082   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7083 fi
7084
7085 for cc_temp in $compiler""; do
7086   case $cc_temp in
7087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7089     \-*) ;;
7090     *) break;;
7091   esac
7092 done
7093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7094
7095
7096 # Only perform the check for file, if the check method requires it
7097 case $deplibs_check_method in
7098 file_magic*)
7099   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7100     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7101 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7102 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   case $MAGIC_CMD in
7106 [\\/*] |  ?:[\\/]*)
7107   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7108   ;;
7109 *)
7110   lt_save_MAGIC_CMD="$MAGIC_CMD"
7111   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7112   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7113   for ac_dir in $ac_dummy; do
7114     IFS="$lt_save_ifs"
7115     test -z "$ac_dir" && ac_dir=.
7116     if test -f $ac_dir/${ac_tool_prefix}file; then
7117       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7118       if test -n "$file_magic_test_file"; then
7119         case $deplibs_check_method in
7120         "file_magic "*)
7121           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7122           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7123           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7124             $EGREP "$file_magic_regex" > /dev/null; then
7125             :
7126           else
7127             cat <<EOF 1>&2
7128
7129 *** Warning: the command libtool uses to detect shared libraries,
7130 *** $file_magic_cmd, produces output that libtool cannot recognize.
7131 *** The result is that libtool may fail to recognize shared libraries
7132 *** as such.  This will affect the creation of libtool libraries that
7133 *** depend on shared libraries, but programs linked with such libtool
7134 *** libraries will work regardless of this problem.  Nevertheless, you
7135 *** may want to report the problem to your system manager and/or to
7136 *** bug-libtool@gnu.org
7137
7138 EOF
7139           fi ;;
7140         esac
7141       fi
7142       break
7143     fi
7144   done
7145   IFS="$lt_save_ifs"
7146   MAGIC_CMD="$lt_save_MAGIC_CMD"
7147   ;;
7148 esac
7149 fi
7150
7151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7152 if test -n "$MAGIC_CMD"; then
7153   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7154 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160 if test -z "$lt_cv_path_MAGIC_CMD"; then
7161   if test -n "$ac_tool_prefix"; then
7162     { echo "$as_me:$LINENO: checking for file" >&5
7163 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7164 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $MAGIC_CMD in
7168 [\\/*] |  ?:[\\/]*)
7169   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7170   ;;
7171 *)
7172   lt_save_MAGIC_CMD="$MAGIC_CMD"
7173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7174   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7175   for ac_dir in $ac_dummy; do
7176     IFS="$lt_save_ifs"
7177     test -z "$ac_dir" && ac_dir=.
7178     if test -f $ac_dir/file; then
7179       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7180       if test -n "$file_magic_test_file"; then
7181         case $deplibs_check_method in
7182         "file_magic "*)
7183           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7184           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7185           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7186             $EGREP "$file_magic_regex" > /dev/null; then
7187             :
7188           else
7189             cat <<EOF 1>&2
7190
7191 *** Warning: the command libtool uses to detect shared libraries,
7192 *** $file_magic_cmd, produces output that libtool cannot recognize.
7193 *** The result is that libtool may fail to recognize shared libraries
7194 *** as such.  This will affect the creation of libtool libraries that
7195 *** depend on shared libraries, but programs linked with such libtool
7196 *** libraries will work regardless of this problem.  Nevertheless, you
7197 *** may want to report the problem to your system manager and/or to
7198 *** bug-libtool@gnu.org
7199
7200 EOF
7201           fi ;;
7202         esac
7203       fi
7204       break
7205     fi
7206   done
7207   IFS="$lt_save_ifs"
7208   MAGIC_CMD="$lt_save_MAGIC_CMD"
7209   ;;
7210 esac
7211 fi
7212
7213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7214 if test -n "$MAGIC_CMD"; then
7215   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7216 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7217 else
7218   { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7220 fi
7221
7222   else
7223     MAGIC_CMD=:
7224   fi
7225 fi
7226
7227   fi
7228   ;;
7229 esac
7230
7231 enable_dlopen=yes
7232 enable_win32_dll=no
7233
7234 # Check whether --enable-libtool-lock was given.
7235 if test "${enable_libtool_lock+set}" = set; then
7236   enableval=$enable_libtool_lock;
7237 fi
7238
7239 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7240
7241
7242 # Check whether --with-pic was given.
7243 if test "${with_pic+set}" = set; then
7244   withval=$with_pic; pic_mode="$withval"
7245 else
7246   pic_mode=default
7247 fi
7248
7249 test -z "$pic_mode" && pic_mode=default
7250
7251 # Use C for the default configuration in the libtool script
7252 tagname=
7253 lt_save_CC="$CC"
7254 ac_ext=c
7255 ac_cpp='$CPP $CPPFLAGS'
7256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259
7260
7261 # Source file extension for C test sources.
7262 ac_ext=c
7263
7264 # Object file extension for compiled C test sources.
7265 objext=o
7266 objext=$objext
7267
7268 # Code to be used in simple compile tests
7269 lt_simple_compile_test_code="int some_variable = 0;\n"
7270
7271 # Code to be used in simple link tests
7272 lt_simple_link_test_code='int main(){return(0);}\n'
7273
7274
7275 # If no C compiler was specified, use CC.
7276 LTCC=${LTCC-"$CC"}
7277
7278 # If no C compiler flags were specified, use CFLAGS.
7279 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7280
7281 # Allow CC to be a program name with arguments.
7282 compiler=$CC
7283
7284
7285 # save warnings/boilerplate of simple test code
7286 ac_outfile=conftest.$ac_objext
7287 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7288 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7289 _lt_compiler_boilerplate=`cat conftest.err`
7290 $rm conftest*
7291
7292 ac_outfile=conftest.$ac_objext
7293 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7294 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7295 _lt_linker_boilerplate=`cat conftest.err`
7296 $rm conftest*
7297
7298
7299 ## CAVEAT EMPTOR:
7300 ## There is no encapsulation within the following macros, do not change
7301 ## the running order or otherwise move them around unless you know exactly
7302 ## what you are doing...
7303
7304 lt_prog_compiler_no_builtin_flag=
7305
7306 if test "$GCC" = yes; then
7307   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7308
7309
7310 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7311 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7312 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   lt_cv_prog_compiler_rtti_exceptions=no
7316   ac_outfile=conftest.$ac_objext
7317    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7318    lt_compiler_flag="-fno-rtti -fno-exceptions"
7319    # Insert the option either (1) after the last *FLAGS variable, or
7320    # (2) before a word containing "conftest.", or (3) at the end.
7321    # Note that $ac_compile itself does not contain backslashes and begins
7322    # with a dollar sign (not a hyphen), so the echo should work correctly.
7323    # The option is referenced via a variable to avoid confusing sed.
7324    lt_compile=`echo "$ac_compile" | $SED \
7325    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7327    -e 's:$: $lt_compiler_flag:'`
7328    (eval echo "\"\$as_me:7328: $lt_compile\"" >&5)
7329    (eval "$lt_compile" 2>conftest.err)
7330    ac_status=$?
7331    cat conftest.err >&5
7332    echo "$as_me:7332: \$? = $ac_status" >&5
7333    if (exit $ac_status) && test -s "$ac_outfile"; then
7334      # The compiler can only warn and ignore the option if not recognized
7335      # So say no if there are warnings other than the usual output.
7336      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7337      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7338      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7339        lt_cv_prog_compiler_rtti_exceptions=yes
7340      fi
7341    fi
7342    $rm conftest*
7343
7344 fi
7345 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7346 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7347
7348 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7349     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7350 else
7351     :
7352 fi
7353
7354 fi
7355
7356 lt_prog_compiler_wl=
7357 lt_prog_compiler_pic=
7358 lt_prog_compiler_static=
7359
7360 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7361 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7362
7363   if test "$GCC" = yes; then
7364     lt_prog_compiler_wl='-Wl,'
7365     lt_prog_compiler_static='-static'
7366
7367     case $host_os in
7368       aix*)
7369       # All AIX code is PIC.
7370       if test "$host_cpu" = ia64; then
7371         # AIX 5 now supports IA64 processor
7372         lt_prog_compiler_static='-Bstatic'
7373       fi
7374       ;;
7375
7376     amigaos*)
7377       # FIXME: we need at least 68020 code to build shared libraries, but
7378       # adding the `-m68020' flag to GCC prevents building anything better,
7379       # like `-m68040'.
7380       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7381       ;;
7382
7383     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7384       # PIC is the default for these OSes.
7385       ;;
7386
7387     mingw* | pw32* | os2*)
7388       # This hack is so that the source file can tell whether it is being
7389       # built for inclusion in a dll (and should export symbols for example).
7390       lt_prog_compiler_pic='-DDLL_EXPORT'
7391       ;;
7392
7393     darwin* | rhapsody*)
7394       # PIC is the default on this platform
7395       # Common symbols not allowed in MH_DYLIB files
7396       lt_prog_compiler_pic='-fno-common'
7397       ;;
7398
7399     interix3*)
7400       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7401       # Instead, we relocate shared libraries at runtime.
7402       ;;
7403
7404     msdosdjgpp*)
7405       # Just because we use GCC doesn't mean we suddenly get shared libraries
7406       # on systems that don't support them.
7407       lt_prog_compiler_can_build_shared=no
7408       enable_shared=no
7409       ;;
7410
7411     sysv4*MP*)
7412       if test -d /usr/nec; then
7413         lt_prog_compiler_pic=-Kconform_pic
7414       fi
7415       ;;
7416
7417     hpux*)
7418       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7419       # not for PA HP-UX.
7420       case $host_cpu in
7421       hppa*64*|ia64*)
7422         # +Z the default
7423         ;;
7424       *)
7425         lt_prog_compiler_pic='-fPIC'
7426         ;;
7427       esac
7428       ;;
7429
7430     *)
7431       lt_prog_compiler_pic='-fPIC'
7432       ;;
7433     esac
7434   else
7435     # PORTME Check for flag to pass linker flags through the system compiler.
7436     case $host_os in
7437     aix*)
7438       lt_prog_compiler_wl='-Wl,'
7439       if test "$host_cpu" = ia64; then
7440         # AIX 5 now supports IA64 processor
7441         lt_prog_compiler_static='-Bstatic'
7442       else
7443         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7444       fi
7445       ;;
7446       darwin*)
7447         # PIC is the default on this platform
7448         # Common symbols not allowed in MH_DYLIB files
7449        case $cc_basename in
7450          xlc*)
7451          lt_prog_compiler_pic='-qnocommon'
7452          lt_prog_compiler_wl='-Wl,'
7453          ;;
7454        esac
7455        ;;
7456
7457     mingw* | pw32* | os2*)
7458       # This hack is so that the source file can tell whether it is being
7459       # built for inclusion in a dll (and should export symbols for example).
7460       lt_prog_compiler_pic='-DDLL_EXPORT'
7461       ;;
7462
7463     hpux9* | hpux10* | hpux11*)
7464       lt_prog_compiler_wl='-Wl,'
7465       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7466       # not for PA HP-UX.
7467       case $host_cpu in
7468       hppa*64*|ia64*)
7469         # +Z the default
7470         ;;
7471       *)
7472         lt_prog_compiler_pic='+Z'
7473         ;;
7474       esac
7475       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7476       lt_prog_compiler_static='${wl}-a ${wl}archive'
7477       ;;
7478
7479     irix5* | irix6* | nonstopux*)
7480       lt_prog_compiler_wl='-Wl,'
7481       # PIC (with -KPIC) is the default.
7482       lt_prog_compiler_static='-non_shared'
7483       ;;
7484
7485     newsos6)
7486       lt_prog_compiler_pic='-KPIC'
7487       lt_prog_compiler_static='-Bstatic'
7488       ;;
7489
7490     linux*)
7491       case $cc_basename in
7492       icc* | ecc*)
7493         lt_prog_compiler_wl='-Wl,'
7494         lt_prog_compiler_pic='-KPIC'
7495         lt_prog_compiler_static='-static'
7496         ;;
7497       pgcc* | pgf77* | pgf90* | pgf95*)
7498         # Portland Group compilers (*not* the Pentium gcc compiler,
7499         # which looks to be a dead project)
7500         lt_prog_compiler_wl='-Wl,'
7501         lt_prog_compiler_pic='-fpic'
7502         lt_prog_compiler_static='-Bstatic'
7503         ;;
7504       ccc*)
7505         lt_prog_compiler_wl='-Wl,'
7506         # All Alpha code is PIC.
7507         lt_prog_compiler_static='-non_shared'
7508         ;;
7509       esac
7510       ;;
7511
7512     osf3* | osf4* | osf5*)
7513       lt_prog_compiler_wl='-Wl,'
7514       # All OSF/1 code is PIC.
7515       lt_prog_compiler_static='-non_shared'
7516       ;;
7517
7518     solaris*)
7519       lt_prog_compiler_pic='-KPIC'
7520       lt_prog_compiler_static='-Bstatic'
7521       case $cc_basename in
7522       f77* | f90* | f95*)
7523         lt_prog_compiler_wl='-Qoption ld ';;
7524       *)
7525         lt_prog_compiler_wl='-Wl,';;
7526       esac
7527       ;;
7528
7529     sunos4*)
7530       lt_prog_compiler_wl='-Qoption ld '
7531       lt_prog_compiler_pic='-PIC'
7532       lt_prog_compiler_static='-Bstatic'
7533       ;;
7534
7535     sysv4 | sysv4.2uw2* | sysv4.3*)
7536       lt_prog_compiler_wl='-Wl,'
7537       lt_prog_compiler_pic='-KPIC'
7538       lt_prog_compiler_static='-Bstatic'
7539       ;;
7540
7541     sysv4*MP*)
7542       if test -d /usr/nec ;then
7543         lt_prog_compiler_pic='-Kconform_pic'
7544         lt_prog_compiler_static='-Bstatic'
7545       fi
7546       ;;
7547
7548     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7549       lt_prog_compiler_wl='-Wl,'
7550       lt_prog_compiler_pic='-KPIC'
7551       lt_prog_compiler_static='-Bstatic'
7552       ;;
7553
7554     unicos*)
7555       lt_prog_compiler_wl='-Wl,'
7556       lt_prog_compiler_can_build_shared=no
7557       ;;
7558
7559     uts4*)
7560       lt_prog_compiler_pic='-pic'
7561       lt_prog_compiler_static='-Bstatic'
7562       ;;
7563
7564     *)
7565       lt_prog_compiler_can_build_shared=no
7566       ;;
7567     esac
7568   fi
7569
7570 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7571 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7572
7573 #
7574 # Check to make sure the PIC flag actually works.
7575 #
7576 if test -n "$lt_prog_compiler_pic"; then
7577
7578 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7579 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7580 if test "${lt_prog_compiler_pic_works+set}" = set; then
7581   echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583   lt_prog_compiler_pic_works=no
7584   ac_outfile=conftest.$ac_objext
7585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7586    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7587    # Insert the option either (1) after the last *FLAGS variable, or
7588    # (2) before a word containing "conftest.", or (3) at the end.
7589    # Note that $ac_compile itself does not contain backslashes and begins
7590    # with a dollar sign (not a hyphen), so the echo should work correctly.
7591    # The option is referenced via a variable to avoid confusing sed.
7592    lt_compile=`echo "$ac_compile" | $SED \
7593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595    -e 's:$: $lt_compiler_flag:'`
7596    (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
7597    (eval "$lt_compile" 2>conftest.err)
7598    ac_status=$?
7599    cat conftest.err >&5
7600    echo "$as_me:7600: \$? = $ac_status" >&5
7601    if (exit $ac_status) && test -s "$ac_outfile"; then
7602      # The compiler can only warn and ignore the option if not recognized
7603      # So say no if there are warnings other than the usual output.
7604      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7605      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7606      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7607        lt_prog_compiler_pic_works=yes
7608      fi
7609    fi
7610    $rm conftest*
7611
7612 fi
7613 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7614 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7615
7616 if test x"$lt_prog_compiler_pic_works" = xyes; then
7617     case $lt_prog_compiler_pic in
7618      "" | " "*) ;;
7619      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7620      esac
7621 else
7622     lt_prog_compiler_pic=
7623      lt_prog_compiler_can_build_shared=no
7624 fi
7625
7626 fi
7627 case $host_os in
7628   # For platforms which do not support PIC, -DPIC is meaningless:
7629   *djgpp*)
7630     lt_prog_compiler_pic=
7631     ;;
7632   *)
7633     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7634     ;;
7635 esac
7636
7637 #
7638 # Check to make sure the static flag actually works.
7639 #
7640 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7641 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7642 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7643 if test "${lt_prog_compiler_static_works+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   lt_prog_compiler_static_works=no
7647    save_LDFLAGS="$LDFLAGS"
7648    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7649    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7650    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7651      # The linker can only warn and ignore the option if not recognized
7652      # So say no if there are warnings
7653      if test -s conftest.err; then
7654        # Append any errors to the config.log.
7655        cat conftest.err 1>&5
7656        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7657        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7658        if diff conftest.exp conftest.er2 >/dev/null; then
7659          lt_prog_compiler_static_works=yes
7660        fi
7661      else
7662        lt_prog_compiler_static_works=yes
7663      fi
7664    fi
7665    $rm conftest*
7666    LDFLAGS="$save_LDFLAGS"
7667
7668 fi
7669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7670 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7671
7672 if test x"$lt_prog_compiler_static_works" = xyes; then
7673     :
7674 else
7675     lt_prog_compiler_static=
7676 fi
7677
7678
7679 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7680 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7681 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   lt_cv_prog_compiler_c_o=no
7685    $rm -r conftest 2>/dev/null
7686    mkdir conftest
7687    cd conftest
7688    mkdir out
7689    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7690
7691    lt_compiler_flag="-o out/conftest2.$ac_objext"
7692    # Insert the option either (1) after the last *FLAGS variable, or
7693    # (2) before a word containing "conftest.", or (3) at the end.
7694    # Note that $ac_compile itself does not contain backslashes and begins
7695    # with a dollar sign (not a hyphen), so the echo should work correctly.
7696    lt_compile=`echo "$ac_compile" | $SED \
7697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7699    -e 's:$: $lt_compiler_flag:'`
7700    (eval echo "\"\$as_me:7700: $lt_compile\"" >&5)
7701    (eval "$lt_compile" 2>out/conftest.err)
7702    ac_status=$?
7703    cat out/conftest.err >&5
7704    echo "$as_me:7704: \$? = $ac_status" >&5
7705    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7706    then
7707      # The compiler can only warn and ignore the option if not recognized
7708      # So say no if there are warnings
7709      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7710      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7711      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7712        lt_cv_prog_compiler_c_o=yes
7713      fi
7714    fi
7715    chmod u+w . 2>&5
7716    $rm conftest*
7717    # SGI C++ compiler will create directory out/ii_files/ for
7718    # template instantiation
7719    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7720    $rm out/* && rmdir out
7721    cd ..
7722    rmdir conftest
7723    $rm conftest*
7724
7725 fi
7726 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7727 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7728
7729
7730 hard_links="nottested"
7731 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7732   # do not overwrite the value of need_locks provided by the user
7733   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7734 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7735   hard_links=yes
7736   $rm conftest*
7737   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7738   touch conftest.a
7739   ln conftest.a conftest.b 2>&5 || hard_links=no
7740   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7741   { echo "$as_me:$LINENO: result: $hard_links" >&5
7742 echo "${ECHO_T}$hard_links" >&6; }
7743   if test "$hard_links" = no; then
7744     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7745 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7746     need_locks=warn
7747   fi
7748 else
7749   need_locks=no
7750 fi
7751
7752 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7753 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7754
7755   runpath_var=
7756   allow_undefined_flag=
7757   enable_shared_with_static_runtimes=no
7758   archive_cmds=
7759   archive_expsym_cmds=
7760   old_archive_From_new_cmds=
7761   old_archive_from_expsyms_cmds=
7762   export_dynamic_flag_spec=
7763   whole_archive_flag_spec=
7764   thread_safe_flag_spec=
7765   hardcode_libdir_flag_spec=
7766   hardcode_libdir_flag_spec_ld=
7767   hardcode_libdir_separator=
7768   hardcode_direct=no
7769   hardcode_minus_L=no
7770   hardcode_shlibpath_var=unsupported
7771   link_all_deplibs=unknown
7772   hardcode_automatic=no
7773   module_cmds=
7774   module_expsym_cmds=
7775   always_export_symbols=no
7776   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7777   # include_expsyms should be a list of space-separated symbols to be *always*
7778   # included in the symbol list
7779   include_expsyms=
7780   # exclude_expsyms can be an extended regexp of symbols to exclude
7781   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7782   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7783   # as well as any symbol that contains `d'.
7784   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7785   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7786   # platforms (ab)use it in PIC code, but their linkers get confused if
7787   # the symbol is explicitly referenced.  Since portable code cannot
7788   # rely on this symbol name, it's probably fine to never include it in
7789   # preloaded symbol tables.
7790   extract_expsyms_cmds=
7791   # Just being paranoid about ensuring that cc_basename is set.
7792   for cc_temp in $compiler""; do
7793   case $cc_temp in
7794     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7795     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7796     \-*) ;;
7797     *) break;;
7798   esac
7799 done
7800 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7801
7802   case $host_os in
7803   cygwin* | mingw* | pw32*)
7804     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7805     # When not using gcc, we currently assume that we are using
7806     # Microsoft Visual C++.
7807     if test "$GCC" != yes; then
7808       with_gnu_ld=no
7809     fi
7810     ;;
7811   interix*)
7812     # we just hope/assume this is gcc and not c89 (= MSVC++)
7813     with_gnu_ld=yes
7814     ;;
7815   openbsd*)
7816     with_gnu_ld=no
7817     ;;
7818   esac
7819
7820   ld_shlibs=yes
7821   if test "$with_gnu_ld" = yes; then
7822     # If archive_cmds runs LD, not CC, wlarc should be empty
7823     wlarc='${wl}'
7824
7825     # Set some defaults for GNU ld with shared library support. These
7826     # are reset later if shared libraries are not supported. Putting them
7827     # here allows them to be overridden if necessary.
7828     runpath_var=LD_RUN_PATH
7829     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7830     export_dynamic_flag_spec='${wl}--export-dynamic'
7831     # ancient GNU ld didn't support --whole-archive et. al.
7832     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7833         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7834       else
7835         whole_archive_flag_spec=
7836     fi
7837     supports_anon_versioning=no
7838     case `$LD -v 2>/dev/null` in
7839       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7840       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7841       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7842       *\ 2.11.*) ;; # other 2.11 versions
7843       *) supports_anon_versioning=yes ;;
7844     esac
7845
7846     # See if GNU ld supports shared libraries.
7847     case $host_os in
7848     aix3* | aix4* | aix5*)
7849       # On AIX/PPC, the GNU linker is very broken
7850       if test "$host_cpu" != ia64; then
7851         ld_shlibs=no
7852         cat <<EOF 1>&2
7853
7854 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7855 *** to be unable to reliably create shared libraries on AIX.
7856 *** Therefore, libtool is disabling shared libraries support.  If you
7857 *** really care for shared libraries, you may want to modify your PATH
7858 *** so that a non-GNU linker is found, and then restart.
7859
7860 EOF
7861       fi
7862       ;;
7863
7864     amigaos*)
7865       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7866       hardcode_libdir_flag_spec='-L$libdir'
7867       hardcode_minus_L=yes
7868
7869       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7870       # that the semantics of dynamic libraries on AmigaOS, at least up
7871       # to version 4, is to share data among multiple programs linked
7872       # with the same dynamic library.  Since this doesn't match the
7873       # behavior of shared libraries on other platforms, we can't use
7874       # them.
7875       ld_shlibs=no
7876       ;;
7877
7878     beos*)
7879       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7880         allow_undefined_flag=unsupported
7881         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7882         # support --undefined.  This deserves some investigation.  FIXME
7883         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7884       else
7885         ld_shlibs=no
7886       fi
7887       ;;
7888
7889     cygwin* | mingw* | pw32*)
7890       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7891       # as there is no search path for DLLs.
7892       hardcode_libdir_flag_spec='-L$libdir'
7893       allow_undefined_flag=unsupported
7894       always_export_symbols=no
7895       enable_shared_with_static_runtimes=yes
7896       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7897
7898       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7899         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7900         # If the export-symbols file already is a .def file (1st line
7901         # is EXPORTS), use it as is; otherwise, prepend...
7902         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7903           cp $export_symbols $output_objdir/$soname.def;
7904         else
7905           echo EXPORTS > $output_objdir/$soname.def;
7906           cat $export_symbols >> $output_objdir/$soname.def;
7907         fi~
7908         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7909       else
7910         ld_shlibs=no
7911       fi
7912       ;;
7913
7914     interix3*)
7915       hardcode_direct=no
7916       hardcode_shlibpath_var=no
7917       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7918       export_dynamic_flag_spec='${wl}-E'
7919       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7920       # Instead, shared libraries are loaded at an image base (0x10000000 by
7921       # default) and relocated if they conflict, which is a slow very memory
7922       # consuming and fragmenting process.  To avoid this, we pick a random,
7923       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7924       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7925       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7926       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7927       ;;
7928
7929     linux*)
7930       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7931         tmp_addflag=
7932         case $cc_basename,$host_cpu in
7933         pgcc*)                          # Portland Group C compiler
7934           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7935           tmp_addflag=' $pic_flag'
7936           ;;
7937         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7938           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7939           tmp_addflag=' $pic_flag -Mnomain' ;;
7940         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7941           tmp_addflag=' -i_dynamic' ;;
7942         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7943           tmp_addflag=' -i_dynamic -nofor_main' ;;
7944         ifc* | ifort*)                  # Intel Fortran compiler
7945           tmp_addflag=' -nofor_main' ;;
7946         esac
7947         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7948
7949         if test $supports_anon_versioning = yes; then
7950           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7951   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7952   $echo "local: *; };" >> $output_objdir/$libname.ver~
7953           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7954         fi
7955       else
7956         ld_shlibs=no
7957       fi
7958       ;;
7959
7960     netbsd*)
7961       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7962         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7963         wlarc=
7964       else
7965         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7967       fi
7968       ;;
7969
7970     solaris*)
7971       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7972         ld_shlibs=no
7973         cat <<EOF 1>&2
7974
7975 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7976 *** create shared libraries on Solaris systems.  Therefore, libtool
7977 *** is disabling shared libraries support.  We urge you to upgrade GNU
7978 *** binutils to release 2.9.1 or newer.  Another option is to modify
7979 *** your PATH or compiler configuration so that the native linker is
7980 *** used, and then restart.
7981
7982 EOF
7983       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7984         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7986       else
7987         ld_shlibs=no
7988       fi
7989       ;;
7990
7991     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7992       case `$LD -v 2>&1` in
7993         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7994         ld_shlibs=no
7995         cat <<_LT_EOF 1>&2
7996
7997 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7998 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7999 *** is disabling shared libraries support.  We urge you to upgrade GNU
8000 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8001 *** your PATH or compiler configuration so that the native linker is
8002 *** used, and then restart.
8003
8004 _LT_EOF
8005         ;;
8006         *)
8007           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8008             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8009             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8010             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8011           else
8012             ld_shlibs=no
8013           fi
8014         ;;
8015       esac
8016       ;;
8017
8018     sunos4*)
8019       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8020       wlarc=
8021       hardcode_direct=yes
8022       hardcode_shlibpath_var=no
8023       ;;
8024
8025     *)
8026       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8027         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8028         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8029       else
8030         ld_shlibs=no
8031       fi
8032       ;;
8033     esac
8034
8035     if test "$ld_shlibs" = no; then
8036       runpath_var=
8037       hardcode_libdir_flag_spec=
8038       export_dynamic_flag_spec=
8039       whole_archive_flag_spec=
8040     fi
8041   else
8042     # PORTME fill in a description of your system's linker (not GNU ld)
8043     case $host_os in
8044     aix3*)
8045       allow_undefined_flag=unsupported
8046       always_export_symbols=yes
8047       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8048       # Note: this linker hardcodes the directories in LIBPATH if there
8049       # are no directories specified by -L.
8050       hardcode_minus_L=yes
8051       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8052         # Neither direct hardcoding nor static linking is supported with a
8053         # broken collect2.
8054         hardcode_direct=unsupported
8055       fi
8056       ;;
8057
8058     aix4* | aix5*)
8059       if test "$host_cpu" = ia64; then
8060         # On IA64, the linker does run time linking by default, so we don't
8061         # have to do anything special.
8062         aix_use_runtimelinking=no
8063         exp_sym_flag='-Bexport'
8064         no_entry_flag=""
8065       else
8066         # If we're using GNU nm, then we don't want the "-C" option.
8067         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8068         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8069           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8070         else
8071           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8072         fi
8073         aix_use_runtimelinking=no
8074
8075         # Test if we are trying to use run time linking or normal
8076         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8077         # need to do runtime linking.
8078         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8079           for ld_flag in $LDFLAGS; do
8080           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8081             aix_use_runtimelinking=yes
8082             break
8083           fi
8084           done
8085           ;;
8086         esac
8087
8088         exp_sym_flag='-bexport'
8089         no_entry_flag='-bnoentry'
8090       fi
8091
8092       # When large executables or shared objects are built, AIX ld can
8093       # have problems creating the table of contents.  If linking a library
8094       # or program results in "error TOC overflow" add -mminimal-toc to
8095       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8096       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8097
8098       archive_cmds=''
8099       hardcode_direct=yes
8100       hardcode_libdir_separator=':'
8101       link_all_deplibs=yes
8102
8103       if test "$GCC" = yes; then
8104         case $host_os in aix4.[012]|aix4.[012].*)
8105         # We only want to do this on AIX 4.2 and lower, the check
8106         # below for broken collect2 doesn't work under 4.3+
8107           collect2name=`${CC} -print-prog-name=collect2`
8108           if test -f "$collect2name" && \
8109            strings "$collect2name" | grep resolve_lib_name >/dev/null
8110           then
8111           # We have reworked collect2
8112           hardcode_direct=yes
8113           else
8114           # We have old collect2
8115           hardcode_direct=unsupported
8116           # It fails to find uninstalled libraries when the uninstalled
8117           # path is not listed in the libpath.  Setting hardcode_minus_L
8118           # to unsupported forces relinking
8119           hardcode_minus_L=yes
8120           hardcode_libdir_flag_spec='-L$libdir'
8121           hardcode_libdir_separator=
8122           fi
8123           ;;
8124         esac
8125         shared_flag='-shared'
8126         if test "$aix_use_runtimelinking" = yes; then
8127           shared_flag="$shared_flag "'${wl}-G'
8128         fi
8129       else
8130         # not using gcc
8131         if test "$host_cpu" = ia64; then
8132         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8133         # chokes on -Wl,-G. The following line is correct:
8134           shared_flag='-G'
8135         else
8136           if test "$aix_use_runtimelinking" = yes; then
8137             shared_flag='${wl}-G'
8138           else
8139             shared_flag='${wl}-bM:SRE'
8140           fi
8141         fi
8142       fi
8143
8144       # It seems that -bexpall does not export symbols beginning with
8145       # underscore (_), so it is better to generate a list of symbols to export.
8146       always_export_symbols=yes
8147       if test "$aix_use_runtimelinking" = yes; then
8148         # Warning - without using the other runtime loading flags (-brtl),
8149         # -berok will link without error, but may produce a broken library.
8150         allow_undefined_flag='-berok'
8151        # Determine the default libpath from the value encoded in an empty executable.
8152        cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158
8159 int
8160 main ()
8161 {
8162
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8169 case "(($ac_try" in
8170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171   *) ac_try_echo=$ac_try;;
8172 esac
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174   (eval "$ac_link") 2>conftest.er1
8175   ac_status=$?
8176   grep -v '^ *+' conftest.er1 >conftest.err
8177   rm -f conftest.er1
8178   cat conftest.err >&5
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } && {
8181          test -z "$ac_c_werror_flag" ||
8182          test ! -s conftest.err
8183        } && test -s conftest$ac_exeext &&
8184        $as_test_x conftest$ac_exeext; then
8185
8186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8187 }'`
8188 # Check for a 64-bit object if we didn't find anything.
8189 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8190 }'`; fi
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195
8196 fi
8197
8198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8199       conftest$ac_exeext conftest.$ac_ext
8200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8201
8202        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8203         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8204        else
8205         if test "$host_cpu" = ia64; then
8206           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8207           allow_undefined_flag="-z nodefs"
8208           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8209         else
8210          # Determine the default libpath from the value encoded in an empty executable.
8211          cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 int
8219 main ()
8220 {
8221
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8228 case "(($ac_try" in
8229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230   *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233   (eval "$ac_link") 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } && {
8240          test -z "$ac_c_werror_flag" ||
8241          test ! -s conftest.err
8242        } && test -s conftest$ac_exeext &&
8243        $as_test_x conftest$ac_exeext; then
8244
8245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8246 }'`
8247 # Check for a 64-bit object if we didn't find anything.
8248 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8249 }'`; fi
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254
8255 fi
8256
8257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8258       conftest$ac_exeext conftest.$ac_ext
8259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8260
8261          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8262           # Warning - without using the other run time loading flags,
8263           # -berok will link without error, but may produce a broken library.
8264           no_undefined_flag=' ${wl}-bernotok'
8265           allow_undefined_flag=' ${wl}-berok'
8266           # Exported symbols can be pulled into shared objects from archives
8267           whole_archive_flag_spec='$convenience'
8268           archive_cmds_need_lc=yes
8269           # This is similar to how AIX traditionally builds its shared libraries.
8270           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8271         fi
8272       fi
8273       ;;
8274
8275     amigaos*)
8276       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8277       hardcode_libdir_flag_spec='-L$libdir'
8278       hardcode_minus_L=yes
8279       # see comment about different semantics on the GNU ld section
8280       ld_shlibs=no
8281       ;;
8282
8283     bsdi[45]*)
8284       export_dynamic_flag_spec=-rdynamic
8285       ;;
8286
8287     cygwin* | mingw* | pw32*)
8288       # When not using gcc, we currently assume that we are using
8289       # Microsoft Visual C++.
8290       # hardcode_libdir_flag_spec is actually meaningless, as there is
8291       # no search path for DLLs.
8292       hardcode_libdir_flag_spec=' '
8293       allow_undefined_flag=unsupported
8294       # Tell ltmain to make .lib files, not .a files.
8295       libext=lib
8296       # Tell ltmain to make .dll files, not .so files.
8297       shrext_cmds=".dll"
8298       # FIXME: Setting linknames here is a bad hack.
8299       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8300       # The linker will automatically build a .lib file if we build a DLL.
8301       old_archive_From_new_cmds='true'
8302       # FIXME: Should let the user specify the lib program.
8303       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8304       fix_srcfile_path='`cygpath -w "$srcfile"`'
8305       enable_shared_with_static_runtimes=yes
8306       ;;
8307
8308     darwin* | rhapsody*)
8309       case $host_os in
8310         rhapsody* | darwin1.[012])
8311          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8312          ;;
8313        *) # Darwin 1.3 on
8314          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8315            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8316          else
8317            case ${MACOSX_DEPLOYMENT_TARGET} in
8318              10.[012])
8319                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8320                ;;
8321              10.*)
8322                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8323                ;;
8324            esac
8325          fi
8326          ;;
8327       esac
8328       archive_cmds_need_lc=no
8329       hardcode_direct=no
8330       hardcode_automatic=yes
8331       hardcode_shlibpath_var=unsupported
8332       whole_archive_flag_spec=''
8333       link_all_deplibs=yes
8334     if test "$GCC" = yes ; then
8335         output_verbose_link_cmd='echo'
8336         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8337       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8338       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8339       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8340       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8341     else
8342       case $cc_basename in
8343         xlc*)
8344          output_verbose_link_cmd='echo'
8345          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8346          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8347           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8348          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8349           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8350           ;;
8351        *)
8352          ld_shlibs=no
8353           ;;
8354       esac
8355     fi
8356       ;;
8357
8358     dgux*)
8359       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8360       hardcode_libdir_flag_spec='-L$libdir'
8361       hardcode_shlibpath_var=no
8362       ;;
8363
8364     freebsd1*)
8365       ld_shlibs=no
8366       ;;
8367
8368     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8369     # support.  Future versions do this automatically, but an explicit c++rt0.o
8370     # does not break anything, and helps significantly (at the cost of a little
8371     # extra space).
8372     freebsd2.2*)
8373       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8374       hardcode_libdir_flag_spec='-R$libdir'
8375       hardcode_direct=yes
8376       hardcode_shlibpath_var=no
8377       ;;
8378
8379     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8380     freebsd2*)
8381       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8382       hardcode_direct=yes
8383       hardcode_minus_L=yes
8384       hardcode_shlibpath_var=no
8385       ;;
8386
8387     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8388     freebsd* | kfreebsd*-gnu | dragonfly*)
8389       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8390       hardcode_libdir_flag_spec='-R$libdir'
8391       hardcode_direct=yes
8392       hardcode_shlibpath_var=no
8393       ;;
8394
8395     hpux9*)
8396       if test "$GCC" = yes; then
8397         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8398       else
8399         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8400       fi
8401       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8402       hardcode_libdir_separator=:
8403       hardcode_direct=yes
8404
8405       # hardcode_minus_L: Not really in the search PATH,
8406       # but as the default location of the library.
8407       hardcode_minus_L=yes
8408       export_dynamic_flag_spec='${wl}-E'
8409       ;;
8410
8411     hpux10*)
8412       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8413         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8414       else
8415         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8416       fi
8417       if test "$with_gnu_ld" = no; then
8418         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8419         hardcode_libdir_separator=:
8420
8421         hardcode_direct=yes
8422         export_dynamic_flag_spec='${wl}-E'
8423
8424         # hardcode_minus_L: Not really in the search PATH,
8425         # but as the default location of the library.
8426         hardcode_minus_L=yes
8427       fi
8428       ;;
8429
8430     hpux11*)
8431       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8432         case $host_cpu in
8433         hppa*64*)
8434           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8435           ;;
8436         ia64*)
8437           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8438           ;;
8439         *)
8440           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8441           ;;
8442         esac
8443       else
8444         case $host_cpu in
8445         hppa*64*)
8446           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8447           ;;
8448         ia64*)
8449           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8450           ;;
8451         *)
8452           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8453           ;;
8454         esac
8455       fi
8456       if test "$with_gnu_ld" = no; then
8457         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8458         hardcode_libdir_separator=:
8459
8460         case $host_cpu in
8461         hppa*64*|ia64*)
8462           hardcode_libdir_flag_spec_ld='+b $libdir'
8463           hardcode_direct=no
8464           hardcode_shlibpath_var=no
8465           ;;
8466         *)
8467           hardcode_direct=yes
8468           export_dynamic_flag_spec='${wl}-E'
8469
8470           # hardcode_minus_L: Not really in the search PATH,
8471           # but as the default location of the library.
8472           hardcode_minus_L=yes
8473           ;;
8474         esac
8475       fi
8476       ;;
8477
8478     irix5* | irix6* | nonstopux*)
8479       if test "$GCC" = yes; then
8480         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8481       else
8482         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8483         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8484       fi
8485       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486       hardcode_libdir_separator=:
8487       link_all_deplibs=yes
8488       ;;
8489
8490     netbsd*)
8491       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8492         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8493       else
8494         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8495       fi
8496       hardcode_libdir_flag_spec='-R$libdir'
8497       hardcode_direct=yes
8498       hardcode_shlibpath_var=no
8499       ;;
8500
8501     newsos6)
8502       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8503       hardcode_direct=yes
8504       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8505       hardcode_libdir_separator=:
8506       hardcode_shlibpath_var=no
8507       ;;
8508
8509     openbsd*)
8510       hardcode_direct=yes
8511       hardcode_shlibpath_var=no
8512       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8513         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8514         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8515         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8516         export_dynamic_flag_spec='${wl}-E'
8517       else
8518        case $host_os in
8519          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8520            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8521            hardcode_libdir_flag_spec='-R$libdir'
8522            ;;
8523          *)
8524            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8525            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8526            ;;
8527        esac
8528       fi
8529       ;;
8530
8531     os2*)
8532       hardcode_libdir_flag_spec='-L$libdir'
8533       hardcode_minus_L=yes
8534       allow_undefined_flag=unsupported
8535       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8536       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8537       ;;
8538
8539     osf3*)
8540       if test "$GCC" = yes; then
8541         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8542         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8543       else
8544         allow_undefined_flag=' -expect_unresolved \*'
8545         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8546       fi
8547       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8548       hardcode_libdir_separator=:
8549       ;;
8550
8551     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8552       if test "$GCC" = yes; then
8553         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8554         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8555         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8556       else
8557         allow_undefined_flag=' -expect_unresolved \*'
8558         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8559         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8560         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8561
8562         # Both c and cxx compiler support -rpath directly
8563         hardcode_libdir_flag_spec='-rpath $libdir'
8564       fi
8565       hardcode_libdir_separator=:
8566       ;;
8567
8568     solaris*)
8569       no_undefined_flag=' -z text'
8570       if test "$GCC" = yes; then
8571         wlarc='${wl}'
8572         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8573         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8574           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8575       else
8576         wlarc=''
8577         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8578         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8579         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8580       fi
8581       hardcode_libdir_flag_spec='-R$libdir'
8582       hardcode_shlibpath_var=no
8583       case $host_os in
8584       solaris2.[0-5] | solaris2.[0-5].*) ;;
8585       *)
8586         # The compiler driver will combine linker options so we
8587         # cannot just pass the convience library names through
8588         # without $wl, iff we do not link with $LD.
8589         # Luckily, gcc supports the same syntax we need for Sun Studio.
8590         # Supported since Solaris 2.6 (maybe 2.5.1?)
8591         case $wlarc in
8592         '')
8593           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8594         *)
8595           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8596         esac ;;
8597       esac
8598       link_all_deplibs=yes
8599       ;;
8600
8601     sunos4*)
8602       if test "x$host_vendor" = xsequent; then
8603         # Use $CC to link under sequent, because it throws in some extra .o
8604         # files that make .init and .fini sections work.
8605         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8606       else
8607         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8608       fi
8609       hardcode_libdir_flag_spec='-L$libdir'
8610       hardcode_direct=yes
8611       hardcode_minus_L=yes
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     sysv4)
8616       case $host_vendor in
8617         sni)
8618           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8619           hardcode_direct=yes # is this really true???
8620         ;;
8621         siemens)
8622           ## LD is ld it makes a PLAMLIB
8623           ## CC just makes a GrossModule.
8624           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8625           reload_cmds='$CC -r -o $output$reload_objs'
8626           hardcode_direct=no
8627         ;;
8628         motorola)
8629           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8630           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8631         ;;
8632       esac
8633       runpath_var='LD_RUN_PATH'
8634       hardcode_shlibpath_var=no
8635       ;;
8636
8637     sysv4.3*)
8638       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639       hardcode_shlibpath_var=no
8640       export_dynamic_flag_spec='-Bexport'
8641       ;;
8642
8643     sysv4*MP*)
8644       if test -d /usr/nec; then
8645         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646         hardcode_shlibpath_var=no
8647         runpath_var=LD_RUN_PATH
8648         hardcode_runpath_var=yes
8649         ld_shlibs=yes
8650       fi
8651       ;;
8652
8653     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8654       no_undefined_flag='${wl}-z,text'
8655       archive_cmds_need_lc=no
8656       hardcode_shlibpath_var=no
8657       runpath_var='LD_RUN_PATH'
8658
8659       if test "$GCC" = yes; then
8660         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8661         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8662       else
8663         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8664         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8665       fi
8666       ;;
8667
8668     sysv5* | sco3.2v5* | sco5v6*)
8669       # Note: We can NOT use -z defs as we might desire, because we do not
8670       # link with -lc, and that would cause any symbols used from libc to
8671       # always be unresolved, which means just about no library would
8672       # ever link correctly.  If we're not using GNU ld we use -z text
8673       # though, which does catch some bad symbols but isn't as heavy-handed
8674       # as -z defs.
8675       no_undefined_flag='${wl}-z,text'
8676       allow_undefined_flag='${wl}-z,nodefs'
8677       archive_cmds_need_lc=no
8678       hardcode_shlibpath_var=no
8679       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8680       hardcode_libdir_separator=':'
8681       link_all_deplibs=yes
8682       export_dynamic_flag_spec='${wl}-Bexport'
8683       runpath_var='LD_RUN_PATH'
8684
8685       if test "$GCC" = yes; then
8686         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8688       else
8689         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8690         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691       fi
8692       ;;
8693
8694     uts4*)
8695       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696       hardcode_libdir_flag_spec='-L$libdir'
8697       hardcode_shlibpath_var=no
8698       ;;
8699
8700     *)
8701       ld_shlibs=no
8702       ;;
8703     esac
8704   fi
8705
8706 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8707 echo "${ECHO_T}$ld_shlibs" >&6; }
8708 test "$ld_shlibs" = no && can_build_shared=no
8709
8710 #
8711 # Do we need to explicitly link libc?
8712 #
8713 case "x$archive_cmds_need_lc" in
8714 x|xyes)
8715   # Assume -lc should be added
8716   archive_cmds_need_lc=yes
8717
8718   if test "$enable_shared" = yes && test "$GCC" = yes; then
8719     case $archive_cmds in
8720     *'~'*)
8721       # FIXME: we may have to deal with multi-command sequences.
8722       ;;
8723     '$CC '*)
8724       # Test whether the compiler implicitly links with -lc since on some
8725       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8726       # to ld, don't add -lc before -lgcc.
8727       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8729       $rm conftest*
8730       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8731
8732       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8733   (eval $ac_compile) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } 2>conftest.err; then
8737         soname=conftest
8738         lib=conftest
8739         libobjs=conftest.$ac_objext
8740         deplibs=
8741         wl=$lt_prog_compiler_wl
8742         pic_flag=$lt_prog_compiler_pic
8743         compiler_flags=-v
8744         linker_flags=-v
8745         verstring=
8746         output_objdir=.
8747         libname=conftest
8748         lt_save_allow_undefined_flag=$allow_undefined_flag
8749         allow_undefined_flag=
8750         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8751   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8752   ac_status=$?
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); }
8755         then
8756           archive_cmds_need_lc=no
8757         else
8758           archive_cmds_need_lc=yes
8759         fi
8760         allow_undefined_flag=$lt_save_allow_undefined_flag
8761       else
8762         cat conftest.err 1>&5
8763       fi
8764       $rm conftest*
8765       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8766 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8767       ;;
8768     esac
8769   fi
8770   ;;
8771 esac
8772
8773 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8775 library_names_spec=
8776 libname_spec='lib$name'
8777 soname_spec=
8778 shrext_cmds=".so"
8779 postinstall_cmds=
8780 postuninstall_cmds=
8781 finish_cmds=
8782 finish_eval=
8783 shlibpath_var=
8784 shlibpath_overrides_runpath=unknown
8785 version_type=none
8786 dynamic_linker="$host_os ld.so"
8787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8788 if test "$GCC" = yes; then
8789   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8790   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8791     # if the path contains ";" then we assume it to be the separator
8792     # otherwise default to the standard path separator (i.e. ":") - it is
8793     # assumed that no part of a normal pathname contains ";" but that should
8794     # okay in the real world where ";" in dirpaths is itself problematic.
8795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8796   else
8797     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8798   fi
8799 else
8800   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8801 fi
8802 need_lib_prefix=unknown
8803 hardcode_into_libs=no
8804
8805 # when you set need_version to no, make sure it does not cause -set_version
8806 # flags to be left without arguments
8807 need_version=unknown
8808
8809 case $host_os in
8810 aix3*)
8811   version_type=linux
8812   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8813   shlibpath_var=LIBPATH
8814
8815   # AIX 3 has no versioning support, so we append a major version to the name.
8816   soname_spec='${libname}${release}${shared_ext}$major'
8817   ;;
8818
8819 aix4* | aix5*)
8820   version_type=linux
8821   need_lib_prefix=no
8822   need_version=no
8823   hardcode_into_libs=yes
8824   if test "$host_cpu" = ia64; then
8825     # AIX 5 supports IA64
8826     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8827     shlibpath_var=LD_LIBRARY_PATH
8828   else
8829     # With GCC up to 2.95.x, collect2 would create an import file
8830     # for dependence libraries.  The import file would start with
8831     # the line `#! .'.  This would cause the generated library to
8832     # depend on `.', always an invalid library.  This was fixed in
8833     # development snapshots of GCC prior to 3.0.
8834     case $host_os in
8835       aix4 | aix4.[01] | aix4.[01].*)
8836       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8837            echo ' yes '
8838            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8839         :
8840       else
8841         can_build_shared=no
8842       fi
8843       ;;
8844     esac
8845     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8846     # soname into executable. Probably we can add versioning support to
8847     # collect2, so additional links can be useful in future.
8848     if test "$aix_use_runtimelinking" = yes; then
8849       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8850       # instead of lib<name>.a to let people know that these are not
8851       # typical AIX shared libraries.
8852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853     else
8854       # We preserve .a as extension for shared libraries through AIX4.2
8855       # and later when we are not doing run time linking.
8856       library_names_spec='${libname}${release}.a $libname.a'
8857       soname_spec='${libname}${release}${shared_ext}$major'
8858     fi
8859     shlibpath_var=LIBPATH
8860   fi
8861   ;;
8862
8863 amigaos*)
8864   library_names_spec='$libname.ixlibrary $libname.a'
8865   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8866   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8867   ;;
8868
8869 beos*)
8870   library_names_spec='${libname}${shared_ext}'
8871   dynamic_linker="$host_os ld.so"
8872   shlibpath_var=LIBRARY_PATH
8873   ;;
8874
8875 bsdi[45]*)
8876   version_type=linux
8877   need_version=no
8878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879   soname_spec='${libname}${release}${shared_ext}$major'
8880   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8881   shlibpath_var=LD_LIBRARY_PATH
8882   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8883   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8884   # the default ld.so.conf also contains /usr/contrib/lib and
8885   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8886   # libtool to hard-code these into programs
8887   ;;
8888
8889 cygwin* | mingw* | pw32*)
8890   version_type=windows
8891   shrext_cmds=".dll"
8892   need_version=no
8893   need_lib_prefix=no
8894
8895   case $GCC,$host_os in
8896   yes,cygwin* | yes,mingw* | yes,pw32*)
8897     library_names_spec='$libname.dll.a'
8898     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8899     postinstall_cmds='base_file=`basename \${file}`~
8900       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8901       dldir=$destdir/`dirname \$dlpath`~
8902       test -d \$dldir || mkdir -p \$dldir~
8903       $install_prog $dir/$dlname \$dldir/$dlname~
8904       chmod a+x \$dldir/$dlname'
8905     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8906       dlpath=$dir/\$dldll~
8907        $rm \$dlpath'
8908     shlibpath_overrides_runpath=yes
8909
8910     case $host_os in
8911     cygwin*)
8912       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8913       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8914       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8915       ;;
8916     mingw*)
8917       # MinGW DLLs use traditional 'lib' prefix
8918       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8919       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8920       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8921         # It is most probably a Windows format PATH printed by
8922         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8923         # path with ; separators, and with drive letters. We can handle the
8924         # drive letters (cygwin fileutils understands them), so leave them,
8925         # especially as we might pass files found there to a mingw objdump,
8926         # which wouldn't understand a cygwinified path. Ahh.
8927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8928       else
8929         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8930       fi
8931       ;;
8932     pw32*)
8933       # pw32 DLLs use 'pw' prefix rather than 'lib'
8934       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8935       ;;
8936     esac
8937     ;;
8938
8939   *)
8940     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8941     ;;
8942   esac
8943   dynamic_linker='Win32 ld.exe'
8944   # FIXME: first we should search . and the directory the executable is in
8945   shlibpath_var=PATH
8946   ;;
8947
8948 darwin* | rhapsody*)
8949   dynamic_linker="$host_os dyld"
8950   version_type=darwin
8951   need_lib_prefix=no
8952   need_version=no
8953   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8954   soname_spec='${libname}${release}${major}$shared_ext'
8955   shlibpath_overrides_runpath=yes
8956   shlibpath_var=DYLD_LIBRARY_PATH
8957   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8958   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8959   if test "$GCC" = yes; then
8960     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8961   else
8962     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8963   fi
8964   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8965   ;;
8966
8967 dgux*)
8968   version_type=linux
8969   need_lib_prefix=no
8970   need_version=no
8971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8972   soname_spec='${libname}${release}${shared_ext}$major'
8973   shlibpath_var=LD_LIBRARY_PATH
8974   ;;
8975
8976 freebsd1*)
8977   dynamic_linker=no
8978   ;;
8979
8980 kfreebsd*-gnu)
8981   version_type=linux
8982   need_lib_prefix=no
8983   need_version=no
8984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8985   soname_spec='${libname}${release}${shared_ext}$major'
8986   shlibpath_var=LD_LIBRARY_PATH
8987   shlibpath_overrides_runpath=no
8988   hardcode_into_libs=yes
8989   dynamic_linker='GNU ld.so'
8990   ;;
8991
8992 freebsd* | dragonfly*)
8993   # DragonFly does not have aout.  When/if they implement a new
8994   # versioning mechanism, adjust this.
8995   if test -x /usr/bin/objformat; then
8996     objformat=`/usr/bin/objformat`
8997   else
8998     case $host_os in
8999     freebsd[123]*) objformat=aout ;;
9000     *) objformat=elf ;;
9001     esac
9002   fi
9003   version_type=freebsd-$objformat
9004   case $version_type in
9005     freebsd-elf*)
9006       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9007       need_version=no
9008       need_lib_prefix=no
9009       ;;
9010     freebsd-*)
9011       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9012       need_version=yes
9013       ;;
9014   esac
9015   shlibpath_var=LD_LIBRARY_PATH
9016   case $host_os in
9017   freebsd2*)
9018     shlibpath_overrides_runpath=yes
9019     ;;
9020   freebsd3.[01]* | freebsdelf3.[01]*)
9021     shlibpath_overrides_runpath=yes
9022     hardcode_into_libs=yes
9023     ;;
9024   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9025   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9026     shlibpath_overrides_runpath=no
9027     hardcode_into_libs=yes
9028     ;;
9029   freebsd*) # from 4.6 on
9030     shlibpath_overrides_runpath=yes
9031     hardcode_into_libs=yes
9032     ;;
9033   esac
9034   ;;
9035
9036 gnu*)
9037   version_type=linux
9038   need_lib_prefix=no
9039   need_version=no
9040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9041   soname_spec='${libname}${release}${shared_ext}$major'
9042   shlibpath_var=LD_LIBRARY_PATH
9043   hardcode_into_libs=yes
9044   ;;
9045
9046 hpux9* | hpux10* | hpux11*)
9047   # Give a soname corresponding to the major version so that dld.sl refuses to
9048   # link against other versions.
9049   version_type=sunos
9050   need_lib_prefix=no
9051   need_version=no
9052   case $host_cpu in
9053   ia64*)
9054     shrext_cmds='.so'
9055     hardcode_into_libs=yes
9056     dynamic_linker="$host_os dld.so"
9057     shlibpath_var=LD_LIBRARY_PATH
9058     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060     soname_spec='${libname}${release}${shared_ext}$major'
9061     if test "X$HPUX_IA64_MODE" = X32; then
9062       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9063     else
9064       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9065     fi
9066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9067     ;;
9068    hppa*64*)
9069      shrext_cmds='.sl'
9070      hardcode_into_libs=yes
9071      dynamic_linker="$host_os dld.sl"
9072      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9073      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9074      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075      soname_spec='${libname}${release}${shared_ext}$major'
9076      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9077      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9078      ;;
9079    *)
9080     shrext_cmds='.sl'
9081     dynamic_linker="$host_os dld.sl"
9082     shlibpath_var=SHLIB_PATH
9083     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085     soname_spec='${libname}${release}${shared_ext}$major'
9086     ;;
9087   esac
9088   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9089   postinstall_cmds='chmod 555 $lib'
9090   ;;
9091
9092 interix3*)
9093   version_type=linux
9094   need_lib_prefix=no
9095   need_version=no
9096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9097   soname_spec='${libname}${release}${shared_ext}$major'
9098   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9099   shlibpath_var=LD_LIBRARY_PATH
9100   shlibpath_overrides_runpath=no
9101   hardcode_into_libs=yes
9102   ;;
9103
9104 irix5* | irix6* | nonstopux*)
9105   case $host_os in
9106     nonstopux*) version_type=nonstopux ;;
9107     *)
9108         if test "$lt_cv_prog_gnu_ld" = yes; then
9109                 version_type=linux
9110         else
9111                 version_type=irix
9112         fi ;;
9113   esac
9114   need_lib_prefix=no
9115   need_version=no
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9118   case $host_os in
9119   irix5* | nonstopux*)
9120     libsuff= shlibsuff=
9121     ;;
9122   *)
9123     case $LD in # libtool.m4 will add one of these switches to LD
9124     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9125       libsuff= shlibsuff= libmagic=32-bit;;
9126     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9127       libsuff=32 shlibsuff=N32 libmagic=N32;;
9128     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9129       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9130     *) libsuff= shlibsuff= libmagic=never-match;;
9131     esac
9132     ;;
9133   esac
9134   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9135   shlibpath_overrides_runpath=no
9136   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9137   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9138   hardcode_into_libs=yes
9139   ;;
9140
9141 # No shared lib support for Linux oldld, aout, or coff.
9142 linux*oldld* | linux*aout* | linux*coff*)
9143   dynamic_linker=no
9144   ;;
9145
9146 # This must be Linux ELF.
9147 linux*)
9148   version_type=linux
9149   need_lib_prefix=no
9150   need_version=no
9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   shlibpath_overrides_runpath=no
9156   # This implies no fast_install, which is unacceptable.
9157   # Some rework will be needed to allow for fast_install
9158   # before this can be enabled.
9159   hardcode_into_libs=yes
9160
9161   # Append ld.so.conf contents to the search path
9162   if test -f /etc/ld.so.conf; then
9163     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9164     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9165   fi
9166
9167   # We used to test for /lib/ld.so.1 and disable shared libraries on
9168   # powerpc, because MkLinux only supported shared libraries with the
9169   # GNU dynamic linker.  Since this was broken with cross compilers,
9170   # most powerpc-linux boxes support dynamic linking these days and
9171   # people can always --disable-shared, the test was removed, and we
9172   # assume the GNU/Linux dynamic linker is in use.
9173   dynamic_linker='GNU/Linux ld.so'
9174   ;;
9175
9176 knetbsd*-gnu)
9177   version_type=linux
9178   need_lib_prefix=no
9179   need_version=no
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9181   soname_spec='${libname}${release}${shared_ext}$major'
9182   shlibpath_var=LD_LIBRARY_PATH
9183   shlibpath_overrides_runpath=no
9184   hardcode_into_libs=yes
9185   dynamic_linker='GNU ld.so'
9186   ;;
9187
9188 netbsd*)
9189   version_type=sunos
9190   need_lib_prefix=no
9191   need_version=no
9192   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195     dynamic_linker='NetBSD (a.out) ld.so'
9196   else
9197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198     soname_spec='${libname}${release}${shared_ext}$major'
9199     dynamic_linker='NetBSD ld.elf_so'
9200   fi
9201   shlibpath_var=LD_LIBRARY_PATH
9202   shlibpath_overrides_runpath=yes
9203   hardcode_into_libs=yes
9204   ;;
9205
9206 newsos6)
9207   version_type=linux
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209   shlibpath_var=LD_LIBRARY_PATH
9210   shlibpath_overrides_runpath=yes
9211   ;;
9212
9213 nto-qnx*)
9214   version_type=linux
9215   need_lib_prefix=no
9216   need_version=no
9217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218   soname_spec='${libname}${release}${shared_ext}$major'
9219   shlibpath_var=LD_LIBRARY_PATH
9220   shlibpath_overrides_runpath=yes
9221   ;;
9222
9223 openbsd*)
9224   version_type=sunos
9225   sys_lib_dlsearch_path_spec="/usr/lib"
9226   need_lib_prefix=no
9227   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9228   case $host_os in
9229     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9230     *)                         need_version=no  ;;
9231   esac
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9233   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9234   shlibpath_var=LD_LIBRARY_PATH
9235   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9236     case $host_os in
9237       openbsd2.[89] | openbsd2.[89].*)
9238         shlibpath_overrides_runpath=no
9239         ;;
9240       *)
9241         shlibpath_overrides_runpath=yes
9242         ;;
9243       esac
9244   else
9245     shlibpath_overrides_runpath=yes
9246   fi
9247   ;;
9248
9249 os2*)
9250   libname_spec='$name'
9251   shrext_cmds=".dll"
9252   need_lib_prefix=no
9253   library_names_spec='$libname${shared_ext} $libname.a'
9254   dynamic_linker='OS/2 ld.exe'
9255   shlibpath_var=LIBPATH
9256   ;;
9257
9258 osf3* | osf4* | osf5*)
9259   version_type=osf
9260   need_lib_prefix=no
9261   need_version=no
9262   soname_spec='${libname}${release}${shared_ext}$major'
9263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264   shlibpath_var=LD_LIBRARY_PATH
9265   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9266   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9267   ;;
9268
9269 solaris*)
9270   version_type=linux
9271   need_lib_prefix=no
9272   need_version=no
9273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274   soname_spec='${libname}${release}${shared_ext}$major'
9275   shlibpath_var=LD_LIBRARY_PATH
9276   shlibpath_overrides_runpath=yes
9277   hardcode_into_libs=yes
9278   # ldd complains unless libraries are executable
9279   postinstall_cmds='chmod +x $lib'
9280   ;;
9281
9282 sunos4*)
9283   version_type=sunos
9284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9285   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9286   shlibpath_var=LD_LIBRARY_PATH
9287   shlibpath_overrides_runpath=yes
9288   if test "$with_gnu_ld" = yes; then
9289     need_lib_prefix=no
9290   fi
9291   need_version=yes
9292   ;;
9293
9294 sysv4 | sysv4.3*)
9295   version_type=linux
9296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297   soname_spec='${libname}${release}${shared_ext}$major'
9298   shlibpath_var=LD_LIBRARY_PATH
9299   case $host_vendor in
9300     sni)
9301       shlibpath_overrides_runpath=no
9302       need_lib_prefix=no
9303       export_dynamic_flag_spec='${wl}-Blargedynsym'
9304       runpath_var=LD_RUN_PATH
9305       ;;
9306     siemens)
9307       need_lib_prefix=no
9308       ;;
9309     motorola)
9310       need_lib_prefix=no
9311       need_version=no
9312       shlibpath_overrides_runpath=no
9313       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9314       ;;
9315   esac
9316   ;;
9317
9318 sysv4*MP*)
9319   if test -d /usr/nec ;then
9320     version_type=linux
9321     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9322     soname_spec='$libname${shared_ext}.$major'
9323     shlibpath_var=LD_LIBRARY_PATH
9324   fi
9325   ;;
9326
9327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9328   version_type=freebsd-elf
9329   need_lib_prefix=no
9330   need_version=no
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9332   soname_spec='${libname}${release}${shared_ext}$major'
9333   shlibpath_var=LD_LIBRARY_PATH
9334   hardcode_into_libs=yes
9335   if test "$with_gnu_ld" = yes; then
9336     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9337     shlibpath_overrides_runpath=no
9338   else
9339     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9340     shlibpath_overrides_runpath=yes
9341     case $host_os in
9342       sco3.2v5*)
9343         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9344         ;;
9345     esac
9346   fi
9347   sys_lib_dlsearch_path_spec='/usr/lib'
9348   ;;
9349
9350 uts4*)
9351   version_type=linux
9352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353   soname_spec='${libname}${release}${shared_ext}$major'
9354   shlibpath_var=LD_LIBRARY_PATH
9355   ;;
9356
9357 *)
9358   dynamic_linker=no
9359   ;;
9360 esac
9361 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9362 echo "${ECHO_T}$dynamic_linker" >&6; }
9363 test "$dynamic_linker" = no && can_build_shared=no
9364
9365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9366 if test "$GCC" = yes; then
9367   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9368 fi
9369
9370 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9371 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9372 hardcode_action=
9373 if test -n "$hardcode_libdir_flag_spec" || \
9374    test -n "$runpath_var" || \
9375    test "X$hardcode_automatic" = "Xyes" ; then
9376
9377   # We can hardcode non-existant directories.
9378   if test "$hardcode_direct" != no &&
9379      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9380      # have to relink, otherwise we might link with an installed library
9381      # when we should be linking with a yet-to-be-installed one
9382      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9383      test "$hardcode_minus_L" != no; then
9384     # Linking always hardcodes the temporary library directory.
9385     hardcode_action=relink
9386   else
9387     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9388     hardcode_action=immediate
9389   fi
9390 else
9391   # We cannot hardcode anything, or else we can only hardcode existing
9392   # directories.
9393   hardcode_action=unsupported
9394 fi
9395 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9396 echo "${ECHO_T}$hardcode_action" >&6; }
9397
9398 if test "$hardcode_action" = relink; then
9399   # Fast installation is not supported
9400   enable_fast_install=no
9401 elif test "$shlibpath_overrides_runpath" = yes ||
9402      test "$enable_shared" = no; then
9403   # Fast installation is not necessary
9404   enable_fast_install=needless
9405 fi
9406
9407 striplib=
9408 old_striplib=
9409 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9410 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9411 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9412   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9413   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9414   { echo "$as_me:$LINENO: result: yes" >&5
9415 echo "${ECHO_T}yes" >&6; }
9416 else
9417 # FIXME - insert some real tests, host_os isn't really good enough
9418   case $host_os in
9419    darwin*)
9420        if test -n "$STRIP" ; then
9421          striplib="$STRIP -x"
9422          { echo "$as_me:$LINENO: result: yes" >&5
9423 echo "${ECHO_T}yes" >&6; }
9424        else
9425   { echo "$as_me:$LINENO: result: no" >&5
9426 echo "${ECHO_T}no" >&6; }
9427 fi
9428        ;;
9429    *)
9430   { echo "$as_me:$LINENO: result: no" >&5
9431 echo "${ECHO_T}no" >&6; }
9432     ;;
9433   esac
9434 fi
9435
9436 if test "x$enable_dlopen" != xyes; then
9437   enable_dlopen=unknown
9438   enable_dlopen_self=unknown
9439   enable_dlopen_self_static=unknown
9440 else
9441   lt_cv_dlopen=no
9442   lt_cv_dlopen_libs=
9443
9444   case $host_os in
9445   beos*)
9446     lt_cv_dlopen="load_add_on"
9447     lt_cv_dlopen_libs=
9448     lt_cv_dlopen_self=yes
9449     ;;
9450
9451   mingw* | pw32*)
9452     lt_cv_dlopen="LoadLibrary"
9453     lt_cv_dlopen_libs=
9454    ;;
9455
9456   cygwin*)
9457     lt_cv_dlopen="dlopen"
9458     lt_cv_dlopen_libs=
9459    ;;
9460
9461   darwin*)
9462   # if libdl is installed we need to link against it
9463     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9464 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9465 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   ac_check_lib_save_LIBS=$LIBS
9469 LIBS="-ldl  $LIBS"
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h.  */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h.  */
9476
9477 /* Override any GCC internal prototype to avoid an error.
9478    Use char because int might match the return type of a GCC
9479    builtin and then its argument prototype would still apply.  */
9480 #ifdef __cplusplus
9481 extern "C"
9482 #endif
9483 char dlopen ();
9484 int
9485 main ()
9486 {
9487 return dlopen ();
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (ac_try="$ac_link"
9494 case "(($ac_try" in
9495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496   *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499   (eval "$ac_link") 2>conftest.er1
9500   ac_status=$?
9501   grep -v '^ *+' conftest.er1 >conftest.err
9502   rm -f conftest.er1
9503   cat conftest.err >&5
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); } && {
9506          test -z "$ac_c_werror_flag" ||
9507          test ! -s conftest.err
9508        } && test -s conftest$ac_exeext &&
9509        $as_test_x conftest$ac_exeext; then
9510   ac_cv_lib_dl_dlopen=yes
9511 else
9512   echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515         ac_cv_lib_dl_dlopen=no
9516 fi
9517
9518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9519       conftest$ac_exeext conftest.$ac_ext
9520 LIBS=$ac_check_lib_save_LIBS
9521 fi
9522 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9524 if test $ac_cv_lib_dl_dlopen = yes; then
9525   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9526 else
9527
9528     lt_cv_dlopen="dyld"
9529     lt_cv_dlopen_libs=
9530     lt_cv_dlopen_self=yes
9531
9532 fi
9533
9534    ;;
9535
9536   *)
9537     { echo "$as_me:$LINENO: checking for shl_load" >&5
9538 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9539 if test "${ac_cv_func_shl_load+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   cat >conftest.$ac_ext <<_ACEOF
9543 /* confdefs.h.  */
9544 _ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h.  */
9548 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9550 #define shl_load innocuous_shl_load
9551
9552 /* System header to define __stub macros and hopefully few prototypes,
9553     which can conflict with char shl_load (); below.
9554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9555     <limits.h> exists even on freestanding compilers.  */
9556
9557 #ifdef __STDC__
9558 # include <limits.h>
9559 #else
9560 # include <assert.h>
9561 #endif
9562
9563 #undef shl_load
9564
9565 /* Override any GCC internal prototype to avoid an error.
9566    Use char because int might match the return type of a GCC
9567    builtin and then its argument prototype would still apply.  */
9568 #ifdef __cplusplus
9569 extern "C"
9570 #endif
9571 char shl_load ();
9572 /* The GNU C library defines this for functions which it implements
9573     to always fail with ENOSYS.  Some functions are actually named
9574     something starting with __ and the normal name is an alias.  */
9575 #if defined __stub_shl_load || defined __stub___shl_load
9576 choke me
9577 #endif
9578
9579 int
9580 main ()
9581 {
9582 return shl_load ();
9583   ;
9584   return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9589 case "(($ac_try" in
9590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591   *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594   (eval "$ac_link") 2>conftest.er1
9595   ac_status=$?
9596   grep -v '^ *+' conftest.er1 >conftest.err
9597   rm -f conftest.er1
9598   cat conftest.err >&5
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } && {
9601          test -z "$ac_c_werror_flag" ||
9602          test ! -s conftest.err
9603        } && test -s conftest$ac_exeext &&
9604        $as_test_x conftest$ac_exeext; then
9605   ac_cv_func_shl_load=yes
9606 else
9607   echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610         ac_cv_func_shl_load=no
9611 fi
9612
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9614       conftest$ac_exeext conftest.$ac_ext
9615 fi
9616 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9618 if test $ac_cv_func_shl_load = yes; then
9619   lt_cv_dlopen="shl_load"
9620 else
9621   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626   ac_check_lib_save_LIBS=$LIBS
9627 LIBS="-ldld  $LIBS"
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634
9635 /* Override any GCC internal prototype to avoid an error.
9636    Use char because int might match the return type of a GCC
9637    builtin and then its argument prototype would still apply.  */
9638 #ifdef __cplusplus
9639 extern "C"
9640 #endif
9641 char shl_load ();
9642 int
9643 main ()
9644 {
9645 return shl_load ();
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9652 case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657   (eval "$ac_link") 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } && {
9664          test -z "$ac_c_werror_flag" ||
9665          test ! -s conftest.err
9666        } && test -s conftest$ac_exeext &&
9667        $as_test_x conftest$ac_exeext; then
9668   ac_cv_lib_dld_shl_load=yes
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673         ac_cv_lib_dld_shl_load=no
9674 fi
9675
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677       conftest$ac_exeext conftest.$ac_ext
9678 LIBS=$ac_check_lib_save_LIBS
9679 fi
9680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9682 if test $ac_cv_lib_dld_shl_load = yes; then
9683   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9684 else
9685   { echo "$as_me:$LINENO: checking for dlopen" >&5
9686 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9687 if test "${ac_cv_func_dlopen+set}" = set; then
9688   echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690   cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9698 #define dlopen innocuous_dlopen
9699
9700 /* System header to define __stub macros and hopefully few prototypes,
9701     which can conflict with char dlopen (); below.
9702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703     <limits.h> exists even on freestanding compilers.  */
9704
9705 #ifdef __STDC__
9706 # include <limits.h>
9707 #else
9708 # include <assert.h>
9709 #endif
9710
9711 #undef dlopen
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char dlopen ();
9720 /* The GNU C library defines this for functions which it implements
9721     to always fail with ENOSYS.  Some functions are actually named
9722     something starting with __ and the normal name is an alias.  */
9723 #if defined __stub_dlopen || defined __stub___dlopen
9724 choke me
9725 #endif
9726
9727 int
9728 main ()
9729 {
9730 return dlopen ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9737 case "(($ac_try" in
9738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739   *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742   (eval "$ac_link") 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } && {
9749          test -z "$ac_c_werror_flag" ||
9750          test ! -s conftest.err
9751        } && test -s conftest$ac_exeext &&
9752        $as_test_x conftest$ac_exeext; then
9753   ac_cv_func_dlopen=yes
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758         ac_cv_func_dlopen=no
9759 fi
9760
9761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9762       conftest$ac_exeext conftest.$ac_ext
9763 fi
9764 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9766 if test $ac_cv_func_dlopen = yes; then
9767   lt_cv_dlopen="dlopen"
9768 else
9769   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   ac_check_lib_save_LIBS=$LIBS
9775 LIBS="-ldl  $LIBS"
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782
9783 /* Override any GCC internal prototype to avoid an error.
9784    Use char because int might match the return type of a GCC
9785    builtin and then its argument prototype would still apply.  */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 char dlopen ();
9790 int
9791 main ()
9792 {
9793 return dlopen ();
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (ac_try="$ac_link"
9800 case "(($ac_try" in
9801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802   *) ac_try_echo=$ac_try;;
9803 esac
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805   (eval "$ac_link") 2>conftest.er1
9806   ac_status=$?
9807   grep -v '^ *+' conftest.er1 >conftest.err
9808   rm -f conftest.er1
9809   cat conftest.err >&5
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } && {
9812          test -z "$ac_c_werror_flag" ||
9813          test ! -s conftest.err
9814        } && test -s conftest$ac_exeext &&
9815        $as_test_x conftest$ac_exeext; then
9816   ac_cv_lib_dl_dlopen=yes
9817 else
9818   echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821         ac_cv_lib_dl_dlopen=no
9822 fi
9823
9824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9825       conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9827 fi
9828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9830 if test $ac_cv_lib_dl_dlopen = yes; then
9831   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9832 else
9833   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   ac_check_lib_save_LIBS=$LIBS
9839 LIBS="-lsvld  $LIBS"
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h.  */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h.  */
9846
9847 /* Override any GCC internal prototype to avoid an error.
9848    Use char because int might match the return type of a GCC
9849    builtin and then its argument prototype would still apply.  */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 char dlopen ();
9854 int
9855 main ()
9856 {
9857 return dlopen ();
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869   (eval "$ac_link") 2>conftest.er1
9870   ac_status=$?
9871   grep -v '^ *+' conftest.er1 >conftest.err
9872   rm -f conftest.er1
9873   cat conftest.err >&5
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } && {
9876          test -z "$ac_c_werror_flag" ||
9877          test ! -s conftest.err
9878        } && test -s conftest$ac_exeext &&
9879        $as_test_x conftest$ac_exeext; then
9880   ac_cv_lib_svld_dlopen=yes
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885         ac_cv_lib_svld_dlopen=no
9886 fi
9887
9888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9889       conftest$ac_exeext conftest.$ac_ext
9890 LIBS=$ac_check_lib_save_LIBS
9891 fi
9892 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9893 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9894 if test $ac_cv_lib_svld_dlopen = yes; then
9895   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9896 else
9897   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9898 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9899 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9900   echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902   ac_check_lib_save_LIBS=$LIBS
9903 LIBS="-ldld  $LIBS"
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h.  */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h.  */
9910
9911 /* Override any GCC internal prototype to avoid an error.
9912    Use char because int might match the return type of a GCC
9913    builtin and then its argument prototype would still apply.  */
9914 #ifdef __cplusplus
9915 extern "C"
9916 #endif
9917 char dld_link ();
9918 int
9919 main ()
9920 {
9921 return dld_link ();
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (ac_try="$ac_link"
9928 case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_link") 2>conftest.er1
9934   ac_status=$?
9935   grep -v '^ *+' conftest.er1 >conftest.err
9936   rm -f conftest.er1
9937   cat conftest.err >&5
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } && {
9940          test -z "$ac_c_werror_flag" ||
9941          test ! -s conftest.err
9942        } && test -s conftest$ac_exeext &&
9943        $as_test_x conftest$ac_exeext; then
9944   ac_cv_lib_dld_dld_link=yes
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949         ac_cv_lib_dld_dld_link=no
9950 fi
9951
9952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953       conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_lib_save_LIBS
9955 fi
9956 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9957 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9958 if test $ac_cv_lib_dld_dld_link = yes; then
9959   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9960 fi
9961
9962
9963 fi
9964
9965
9966 fi
9967
9968
9969 fi
9970
9971
9972 fi
9973
9974
9975 fi
9976
9977     ;;
9978   esac
9979
9980   if test "x$lt_cv_dlopen" != xno; then
9981     enable_dlopen=yes
9982   else
9983     enable_dlopen=no
9984   fi
9985
9986   case $lt_cv_dlopen in
9987   dlopen)
9988     save_CPPFLAGS="$CPPFLAGS"
9989     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9990
9991     save_LDFLAGS="$LDFLAGS"
9992     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9993
9994     save_LIBS="$LIBS"
9995     LIBS="$lt_cv_dlopen_libs $LIBS"
9996
9997     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9998 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9999 if test "${lt_cv_dlopen_self+set}" = set; then
10000   echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002           if test "$cross_compiling" = yes; then :
10003   lt_cv_dlopen_self=cross
10004 else
10005   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10006   lt_status=$lt_dlunknown
10007   cat > conftest.$ac_ext <<EOF
10008 #line 10008 "configure"
10009 #include "confdefs.h"
10010
10011 #if HAVE_DLFCN_H
10012 #include <dlfcn.h>
10013 #endif
10014
10015 #include <stdio.h>
10016
10017 #ifdef RTLD_GLOBAL
10018 #  define LT_DLGLOBAL           RTLD_GLOBAL
10019 #else
10020 #  ifdef DL_GLOBAL
10021 #    define LT_DLGLOBAL         DL_GLOBAL
10022 #  else
10023 #    define LT_DLGLOBAL         0
10024 #  endif
10025 #endif
10026
10027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10028    find out it does not work in some platform. */
10029 #ifndef LT_DLLAZY_OR_NOW
10030 #  ifdef RTLD_LAZY
10031 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10032 #  else
10033 #    ifdef DL_LAZY
10034 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10035 #    else
10036 #      ifdef RTLD_NOW
10037 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10038 #      else
10039 #        ifdef DL_NOW
10040 #          define LT_DLLAZY_OR_NOW      DL_NOW
10041 #        else
10042 #          define LT_DLLAZY_OR_NOW      0
10043 #        endif
10044 #      endif
10045 #    endif
10046 #  endif
10047 #endif
10048
10049 #ifdef __cplusplus
10050 extern "C" void exit (int);
10051 #endif
10052
10053 void fnord() { int i=42;}
10054 int main ()
10055 {
10056   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10057   int status = $lt_dlunknown;
10058
10059   if (self)
10060     {
10061       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10062       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10063       /* dlclose (self); */
10064     }
10065   else
10066     puts (dlerror ());
10067
10068     exit (status);
10069 }
10070 EOF
10071   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10072   (eval $ac_link) 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10076     (./conftest; exit; ) >&5 2>/dev/null
10077     lt_status=$?
10078     case x$lt_status in
10079       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10080       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10081       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10082     esac
10083   else :
10084     # compilation failed
10085     lt_cv_dlopen_self=no
10086   fi
10087 fi
10088 rm -fr conftest*
10089
10090
10091 fi
10092 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10093 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10094
10095     if test "x$lt_cv_dlopen_self" = xyes; then
10096       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10097       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10098 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10099 if test "${lt_cv_dlopen_self_static+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102           if test "$cross_compiling" = yes; then :
10103   lt_cv_dlopen_self_static=cross
10104 else
10105   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10106   lt_status=$lt_dlunknown
10107   cat > conftest.$ac_ext <<EOF
10108 #line 10108 "configure"
10109 #include "confdefs.h"
10110
10111 #if HAVE_DLFCN_H
10112 #include <dlfcn.h>
10113 #endif
10114
10115 #include <stdio.h>
10116
10117 #ifdef RTLD_GLOBAL
10118 #  define LT_DLGLOBAL           RTLD_GLOBAL
10119 #else
10120 #  ifdef DL_GLOBAL
10121 #    define LT_DLGLOBAL         DL_GLOBAL
10122 #  else
10123 #    define LT_DLGLOBAL         0
10124 #  endif
10125 #endif
10126
10127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10128    find out it does not work in some platform. */
10129 #ifndef LT_DLLAZY_OR_NOW
10130 #  ifdef RTLD_LAZY
10131 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10132 #  else
10133 #    ifdef DL_LAZY
10134 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10135 #    else
10136 #      ifdef RTLD_NOW
10137 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10138 #      else
10139 #        ifdef DL_NOW
10140 #          define LT_DLLAZY_OR_NOW      DL_NOW
10141 #        else
10142 #          define LT_DLLAZY_OR_NOW      0
10143 #        endif
10144 #      endif
10145 #    endif
10146 #  endif
10147 #endif
10148
10149 #ifdef __cplusplus
10150 extern "C" void exit (int);
10151 #endif
10152
10153 void fnord() { int i=42;}
10154 int main ()
10155 {
10156   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10157   int status = $lt_dlunknown;
10158
10159   if (self)
10160     {
10161       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10162       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10163       /* dlclose (self); */
10164     }
10165   else
10166     puts (dlerror ());
10167
10168     exit (status);
10169 }
10170 EOF
10171   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172   (eval $ac_link) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10176     (./conftest; exit; ) >&5 2>/dev/null
10177     lt_status=$?
10178     case x$lt_status in
10179       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10180       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10181       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10182     esac
10183   else :
10184     # compilation failed
10185     lt_cv_dlopen_self_static=no
10186   fi
10187 fi
10188 rm -fr conftest*
10189
10190
10191 fi
10192 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10193 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10194     fi
10195
10196     CPPFLAGS="$save_CPPFLAGS"
10197     LDFLAGS="$save_LDFLAGS"
10198     LIBS="$save_LIBS"
10199     ;;
10200   esac
10201
10202   case $lt_cv_dlopen_self in
10203   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10204   *) enable_dlopen_self=unknown ;;
10205   esac
10206
10207   case $lt_cv_dlopen_self_static in
10208   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10209   *) enable_dlopen_self_static=unknown ;;
10210   esac
10211 fi
10212
10213
10214 # Report which library types will actually be built
10215 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10216 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10217 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10218 echo "${ECHO_T}$can_build_shared" >&6; }
10219
10220 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10221 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10222 test "$can_build_shared" = "no" && enable_shared=no
10223
10224 # On AIX, shared libraries and static libraries use the same namespace, and
10225 # are all built from PIC.
10226 case $host_os in
10227 aix3*)
10228   test "$enable_shared" = yes && enable_static=no
10229   if test -n "$RANLIB"; then
10230     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10231     postinstall_cmds='$RANLIB $lib'
10232   fi
10233   ;;
10234
10235 aix4* | aix5*)
10236   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10237     test "$enable_shared" = yes && enable_static=no
10238   fi
10239     ;;
10240 esac
10241 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10242 echo "${ECHO_T}$enable_shared" >&6; }
10243
10244 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10245 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10246 # Make sure either enable_shared or enable_static is yes.
10247 test "$enable_shared" = yes || enable_static=yes
10248 { echo "$as_me:$LINENO: result: $enable_static" >&5
10249 echo "${ECHO_T}$enable_static" >&6; }
10250
10251 # The else clause should only fire when bootstrapping the
10252 # libtool distribution, otherwise you forgot to ship ltmain.sh
10253 # with your package, and you will get complaints that there are
10254 # no rules to generate ltmain.sh.
10255 if test -f "$ltmain"; then
10256   # See if we are running on zsh, and set the options which allow our commands through
10257   # without removal of \ escapes.
10258   if test -n "${ZSH_VERSION+set}" ; then
10259     setopt NO_GLOB_SUBST
10260   fi
10261   # Now quote all the things that may contain metacharacters while being
10262   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10263   # variables and quote the copies for generation of the libtool script.
10264   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10265     SED SHELL STRIP \
10266     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10267     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10268     deplibs_check_method reload_flag reload_cmds need_locks \
10269     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10270     lt_cv_sys_global_symbol_to_c_name_address \
10271     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10272     old_postinstall_cmds old_postuninstall_cmds \
10273     compiler \
10274     CC \
10275     LD \
10276     lt_prog_compiler_wl \
10277     lt_prog_compiler_pic \
10278     lt_prog_compiler_static \
10279     lt_prog_compiler_no_builtin_flag \
10280     export_dynamic_flag_spec \
10281     thread_safe_flag_spec \
10282     whole_archive_flag_spec \
10283     enable_shared_with_static_runtimes \
10284     old_archive_cmds \
10285     old_archive_from_new_cmds \
10286     predep_objects \
10287     postdep_objects \
10288     predeps \
10289     postdeps \
10290     compiler_lib_search_path \
10291     archive_cmds \
10292     archive_expsym_cmds \
10293     postinstall_cmds \
10294     postuninstall_cmds \
10295     old_archive_from_expsyms_cmds \
10296     allow_undefined_flag \
10297     no_undefined_flag \
10298     export_symbols_cmds \
10299     hardcode_libdir_flag_spec \
10300     hardcode_libdir_flag_spec_ld \
10301     hardcode_libdir_separator \
10302     hardcode_automatic \
10303     module_cmds \
10304     module_expsym_cmds \
10305     lt_cv_prog_compiler_c_o \
10306     exclude_expsyms \
10307     include_expsyms; do
10308
10309     case $var in
10310     old_archive_cmds | \
10311     old_archive_from_new_cmds | \
10312     archive_cmds | \
10313     archive_expsym_cmds | \
10314     module_cmds | \
10315     module_expsym_cmds | \
10316     old_archive_from_expsyms_cmds | \
10317     export_symbols_cmds | \
10318     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10319     postinstall_cmds | postuninstall_cmds | \
10320     old_postinstall_cmds | old_postuninstall_cmds | \
10321     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10322       # Double-quote double-evaled strings.
10323       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10324       ;;
10325     *)
10326       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10327       ;;
10328     esac
10329   done
10330
10331   case $lt_echo in
10332   *'\$0 --fallback-echo"')
10333     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10334     ;;
10335   esac
10336
10337 cfgfile="${ofile}T"
10338   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10339   $rm -f "$cfgfile"
10340   { echo "$as_me:$LINENO: creating $ofile" >&5
10341 echo "$as_me: creating $ofile" >&6;}
10342
10343   cat <<__EOF__ >> "$cfgfile"
10344 #! $SHELL
10345
10346 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10347 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10348 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10349 #
10350 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10351 # Free Software Foundation, Inc.
10352 #
10353 # This file is part of GNU Libtool:
10354 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10355 #
10356 # This program is free software; you can redistribute it and/or modify
10357 # it under the terms of the GNU General Public License as published by
10358 # the Free Software Foundation; either version 2 of the License, or
10359 # (at your option) any later version.
10360 #
10361 # This program is distributed in the hope that it will be useful, but
10362 # WITHOUT ANY WARRANTY; without even the implied warranty of
10363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10364 # General Public License for more details.
10365 #
10366 # You should have received a copy of the GNU General Public License
10367 # along with this program; if not, write to the Free Software
10368 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10369 #
10370 # As a special exception to the GNU General Public License, if you
10371 # distribute this file as part of a program that contains a
10372 # configuration script generated by Autoconf, you may include it under
10373 # the same distribution terms that you use for the rest of that program.
10374
10375 # A sed program that does not truncate output.
10376 SED=$lt_SED
10377
10378 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10379 Xsed="$SED -e 1s/^X//"
10380
10381 # The HP-UX ksh and POSIX shell print the target directory to stdout
10382 # if CDPATH is set.
10383 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10384
10385 # The names of the tagged configurations supported by this script.
10386 available_tags=
10387
10388 # ### BEGIN LIBTOOL CONFIG
10389
10390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10391
10392 # Shell to use when invoking shell scripts.
10393 SHELL=$lt_SHELL
10394
10395 # Whether or not to build shared libraries.
10396 build_libtool_libs=$enable_shared
10397
10398 # Whether or not to build static libraries.
10399 build_old_libs=$enable_static
10400
10401 # Whether or not to add -lc for building shared libraries.
10402 build_libtool_need_lc=$archive_cmds_need_lc
10403
10404 # Whether or not to disallow shared libs when runtime libs are static
10405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10406
10407 # Whether or not to optimize for fast installation.
10408 fast_install=$enable_fast_install
10409
10410 # The host system.
10411 host_alias=$host_alias
10412 host=$host
10413 host_os=$host_os
10414
10415 # The build system.
10416 build_alias=$build_alias
10417 build=$build
10418 build_os=$build_os
10419
10420 # An echo program that does not interpret backslashes.
10421 echo=$lt_echo
10422
10423 # The archiver.
10424 AR=$lt_AR
10425 AR_FLAGS=$lt_AR_FLAGS
10426
10427 # A C compiler.
10428 LTCC=$lt_LTCC
10429
10430 # LTCC compiler flags.
10431 LTCFLAGS=$lt_LTCFLAGS
10432
10433 # A language-specific compiler.
10434 CC=$lt_compiler
10435
10436 # Is the compiler the GNU C compiler?
10437 with_gcc=$GCC
10438
10439 # An ERE matcher.
10440 EGREP=$lt_EGREP
10441
10442 # The linker used to build libraries.
10443 LD=$lt_LD
10444
10445 # Whether we need hard or soft links.
10446 LN_S=$lt_LN_S
10447
10448 # A BSD-compatible nm program.
10449 NM=$lt_NM
10450
10451 # A symbol stripping program
10452 STRIP=$lt_STRIP
10453
10454 # Used to examine libraries when file_magic_cmd begins "file"
10455 MAGIC_CMD=$MAGIC_CMD
10456
10457 # Used on cygwin: DLL creation program.
10458 DLLTOOL="$DLLTOOL"
10459
10460 # Used on cygwin: object dumper.
10461 OBJDUMP="$OBJDUMP"
10462
10463 # Used on cygwin: assembler.
10464 AS="$AS"
10465
10466 # The name of the directory that contains temporary libtool files.
10467 objdir=$objdir
10468
10469 # How to create reloadable object files.
10470 reload_flag=$lt_reload_flag
10471 reload_cmds=$lt_reload_cmds
10472
10473 # How to pass a linker flag through the compiler.
10474 wl=$lt_lt_prog_compiler_wl
10475
10476 # Object file suffix (normally "o").
10477 objext="$ac_objext"
10478
10479 # Old archive suffix (normally "a").
10480 libext="$libext"
10481
10482 # Shared library suffix (normally ".so").
10483 shrext_cmds='$shrext_cmds'
10484
10485 # Executable file suffix (normally "").
10486 exeext="$exeext"
10487
10488 # Additional compiler flags for building library objects.
10489 pic_flag=$lt_lt_prog_compiler_pic
10490 pic_mode=$pic_mode
10491
10492 # What is the maximum length of a command?
10493 max_cmd_len=$lt_cv_sys_max_cmd_len
10494
10495 # Does compiler simultaneously support -c and -o options?
10496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10497
10498 # Must we lock files when doing compilation?
10499 need_locks=$lt_need_locks
10500
10501 # Do we need the lib prefix for modules?
10502 need_lib_prefix=$need_lib_prefix
10503
10504 # Do we need a version for libraries?
10505 need_version=$need_version
10506
10507 # Whether dlopen is supported.
10508 dlopen_support=$enable_dlopen
10509
10510 # Whether dlopen of programs is supported.
10511 dlopen_self=$enable_dlopen_self
10512
10513 # Whether dlopen of statically linked programs is supported.
10514 dlopen_self_static=$enable_dlopen_self_static
10515
10516 # Compiler flag to prevent dynamic linking.
10517 link_static_flag=$lt_lt_prog_compiler_static
10518
10519 # Compiler flag to turn off builtin functions.
10520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10521
10522 # Compiler flag to allow reflexive dlopens.
10523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10524
10525 # Compiler flag to generate shared objects directly from archives.
10526 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10527
10528 # Compiler flag to generate thread-safe objects.
10529 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10530
10531 # Library versioning type.
10532 version_type=$version_type
10533
10534 # Format of library name prefix.
10535 libname_spec=$lt_libname_spec
10536
10537 # List of archive names.  First name is the real one, the rest are links.
10538 # The last name is the one that the linker finds with -lNAME.
10539 library_names_spec=$lt_library_names_spec
10540
10541 # The coded name of the library, if different from the real name.
10542 soname_spec=$lt_soname_spec
10543
10544 # Commands used to build and install an old-style archive.
10545 RANLIB=$lt_RANLIB
10546 old_archive_cmds=$lt_old_archive_cmds
10547 old_postinstall_cmds=$lt_old_postinstall_cmds
10548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10549
10550 # Create an old-style archive from a shared archive.
10551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10552
10553 # Create a temporary old-style archive to link instead of a shared archive.
10554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10555
10556 # Commands used to build and install a shared archive.
10557 archive_cmds=$lt_archive_cmds
10558 archive_expsym_cmds=$lt_archive_expsym_cmds
10559 postinstall_cmds=$lt_postinstall_cmds
10560 postuninstall_cmds=$lt_postuninstall_cmds
10561
10562 # Commands used to build a loadable module (assumed same as above if empty)
10563 module_cmds=$lt_module_cmds
10564 module_expsym_cmds=$lt_module_expsym_cmds
10565
10566 # Commands to strip libraries.
10567 old_striplib=$lt_old_striplib
10568 striplib=$lt_striplib
10569
10570 # Dependencies to place before the objects being linked to create a
10571 # shared library.
10572 predep_objects=$lt_predep_objects
10573
10574 # Dependencies to place after the objects being linked to create a
10575 # shared library.
10576 postdep_objects=$lt_postdep_objects
10577
10578 # Dependencies to place before the objects being linked to create a
10579 # shared library.
10580 predeps=$lt_predeps
10581
10582 # Dependencies to place after the objects being linked to create a
10583 # shared library.
10584 postdeps=$lt_postdeps
10585
10586 # The library search path used internally by the compiler when linking
10587 # a shared library.
10588 compiler_lib_search_path=$lt_compiler_lib_search_path
10589
10590 # Method to check whether dependent libraries are shared objects.
10591 deplibs_check_method=$lt_deplibs_check_method
10592
10593 # Command to use when deplibs_check_method == file_magic.
10594 file_magic_cmd=$lt_file_magic_cmd
10595
10596 # Flag that allows shared libraries with undefined symbols to be built.
10597 allow_undefined_flag=$lt_allow_undefined_flag
10598
10599 # Flag that forces no undefined symbols.
10600 no_undefined_flag=$lt_no_undefined_flag
10601
10602 # Commands used to finish a libtool library installation in a directory.
10603 finish_cmds=$lt_finish_cmds
10604
10605 # Same as above, but a single script fragment to be evaled but not shown.
10606 finish_eval=$lt_finish_eval
10607
10608 # Take the output of nm and produce a listing of raw symbols and C names.
10609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10610
10611 # Transform the output of nm in a proper C declaration
10612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10613
10614 # Transform the output of nm in a C name address pair
10615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10616
10617 # This is the shared library runtime path variable.
10618 runpath_var=$runpath_var
10619
10620 # This is the shared library path variable.
10621 shlibpath_var=$shlibpath_var
10622
10623 # Is shlibpath searched before the hard-coded library search path?
10624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10625
10626 # How to hardcode a shared library path into an executable.
10627 hardcode_action=$hardcode_action
10628
10629 # Whether we should hardcode library paths into libraries.
10630 hardcode_into_libs=$hardcode_into_libs
10631
10632 # Flag to hardcode \$libdir into a binary during linking.
10633 # This must work even if \$libdir does not exist.
10634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10635
10636 # If ld is used when linking, flag to hardcode \$libdir into
10637 # a binary during linking. This must work even if \$libdir does
10638 # not exist.
10639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10640
10641 # Whether we need a single -rpath flag with a separated argument.
10642 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10643
10644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10645 # resulting binary.
10646 hardcode_direct=$hardcode_direct
10647
10648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10649 # resulting binary.
10650 hardcode_minus_L=$hardcode_minus_L
10651
10652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10653 # the resulting binary.
10654 hardcode_shlibpath_var=$hardcode_shlibpath_var
10655
10656 # Set to yes if building a shared library automatically hardcodes DIR into the library
10657 # and all subsequent libraries and executables linked against it.
10658 hardcode_automatic=$hardcode_automatic
10659
10660 # Variables whose values should be saved in libtool wrapper scripts and
10661 # restored at relink time.
10662 variables_saved_for_relink="$variables_saved_for_relink"
10663
10664 # Whether libtool must link a program against all its dependency libraries.
10665 link_all_deplibs=$link_all_deplibs
10666
10667 # Compile-time system search path for libraries
10668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10669
10670 # Run-time system search path for libraries
10671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10672
10673 # Fix the shell variable \$srcfile for the compiler.
10674 fix_srcfile_path="$fix_srcfile_path"
10675
10676 # Set to yes if exported symbols are required.
10677 always_export_symbols=$always_export_symbols
10678
10679 # The commands to list exported symbols.
10680 export_symbols_cmds=$lt_export_symbols_cmds
10681
10682 # The commands to extract the exported symbol list from a shared archive.
10683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10684
10685 # Symbols that should not be listed in the preloaded symbols.
10686 exclude_expsyms=$lt_exclude_expsyms
10687
10688 # Symbols that must always be exported.
10689 include_expsyms=$lt_include_expsyms
10690
10691 # ### END LIBTOOL CONFIG
10692
10693 __EOF__
10694
10695
10696   case $host_os in
10697   aix3*)
10698     cat <<\EOF >> "$cfgfile"
10699
10700 # AIX sometimes has problems with the GCC collect2 program.  For some
10701 # reason, if we set the COLLECT_NAMES environment variable, the problems
10702 # vanish in a puff of smoke.
10703 if test "X${COLLECT_NAMES+set}" != Xset; then
10704   COLLECT_NAMES=
10705   export COLLECT_NAMES
10706 fi
10707 EOF
10708     ;;
10709   esac
10710
10711   # We use sed instead of cat because bash on DJGPP gets confused if
10712   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10713   # text mode, it properly converts lines to CR/LF.  This bash problem
10714   # is reportedly fixed, but why not run on old versions too?
10715   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10716
10717   mv -f "$cfgfile" "$ofile" || \
10718     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10719   chmod +x "$ofile"
10720
10721 else
10722   # If there is no Makefile yet, we rely on a make rule to execute
10723   # `config.status --recheck' to rerun these tests and create the
10724   # libtool script then.
10725   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10726   if test -f "$ltmain_in"; then
10727     test -f Makefile && make "$ltmain"
10728   fi
10729 fi
10730
10731
10732 ac_ext=c
10733 ac_cpp='$CPP $CPPFLAGS'
10734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10737
10738 CC="$lt_save_CC"
10739
10740
10741 # Check whether --with-tags was given.
10742 if test "${with_tags+set}" = set; then
10743   withval=$with_tags; tagnames="$withval"
10744 fi
10745
10746
10747 if test -f "$ltmain" && test -n "$tagnames"; then
10748   if test ! -f "${ofile}"; then
10749     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10750 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10751   fi
10752
10753   if test -z "$LTCC"; then
10754     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10755     if test -z "$LTCC"; then
10756       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10757 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10758     else
10759       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10760 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10761     fi
10762   fi
10763   if test -z "$LTCFLAGS"; then
10764     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10765   fi
10766
10767   # Extract list of available tagged configurations in $ofile.
10768   # Note that this assumes the entire list is on one line.
10769   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10770
10771   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10772   for tagname in $tagnames; do
10773     IFS="$lt_save_ifs"
10774     # Check whether tagname contains only valid characters
10775     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10776     "") ;;
10777     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10778 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10779    { (exit 1); exit 1; }; }
10780         ;;
10781     esac
10782
10783     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10784     then
10785       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10786 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10787    { (exit 1); exit 1; }; }
10788     fi
10789
10790     # Update the list of available tags.
10791     if test -n "$tagname"; then
10792       echo appending configuration tag \"$tagname\" to $ofile
10793
10794       case $tagname in
10795       CXX)
10796         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10797             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10798             (test "X$CXX" != "Xg++"))) ; then
10799           ac_ext=cpp
10800 ac_cpp='$CXXCPP $CPPFLAGS'
10801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10804
10805
10806
10807
10808 archive_cmds_need_lc_CXX=no
10809 allow_undefined_flag_CXX=
10810 always_export_symbols_CXX=no
10811 archive_expsym_cmds_CXX=
10812 export_dynamic_flag_spec_CXX=
10813 hardcode_direct_CXX=no
10814 hardcode_libdir_flag_spec_CXX=
10815 hardcode_libdir_flag_spec_ld_CXX=
10816 hardcode_libdir_separator_CXX=
10817 hardcode_minus_L_CXX=no
10818 hardcode_shlibpath_var_CXX=unsupported
10819 hardcode_automatic_CXX=no
10820 module_cmds_CXX=
10821 module_expsym_cmds_CXX=
10822 link_all_deplibs_CXX=unknown
10823 old_archive_cmds_CXX=$old_archive_cmds
10824 no_undefined_flag_CXX=
10825 whole_archive_flag_spec_CXX=
10826 enable_shared_with_static_runtimes_CXX=no
10827
10828 # Dependencies to place before and after the object being linked:
10829 predep_objects_CXX=
10830 postdep_objects_CXX=
10831 predeps_CXX=
10832 postdeps_CXX=
10833 compiler_lib_search_path_CXX=
10834
10835 # Source file extension for C++ test sources.
10836 ac_ext=cpp
10837
10838 # Object file extension for compiled C++ test sources.
10839 objext=o
10840 objext_CXX=$objext
10841
10842 # Code to be used in simple compile tests
10843 lt_simple_compile_test_code="int some_variable = 0;\n"
10844
10845 # Code to be used in simple link tests
10846 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10847
10848 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10849
10850 # If no C compiler was specified, use CC.
10851 LTCC=${LTCC-"$CC"}
10852
10853 # If no C compiler flags were specified, use CFLAGS.
10854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10855
10856 # Allow CC to be a program name with arguments.
10857 compiler=$CC
10858
10859
10860 # save warnings/boilerplate of simple test code
10861 ac_outfile=conftest.$ac_objext
10862 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10863 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10864 _lt_compiler_boilerplate=`cat conftest.err`
10865 $rm conftest*
10866
10867 ac_outfile=conftest.$ac_objext
10868 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10869 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10870 _lt_linker_boilerplate=`cat conftest.err`
10871 $rm conftest*
10872
10873
10874 # Allow CC to be a program name with arguments.
10875 lt_save_CC=$CC
10876 lt_save_LD=$LD
10877 lt_save_GCC=$GCC
10878 GCC=$GXX
10879 lt_save_with_gnu_ld=$with_gnu_ld
10880 lt_save_path_LD=$lt_cv_path_LD
10881 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10882   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10883 else
10884   $as_unset lt_cv_prog_gnu_ld
10885 fi
10886 if test -n "${lt_cv_path_LDCXX+set}"; then
10887   lt_cv_path_LD=$lt_cv_path_LDCXX
10888 else
10889   $as_unset lt_cv_path_LD
10890 fi
10891 test -z "${LDCXX+set}" || LD=$LDCXX
10892 CC=${CXX-"c++"}
10893 compiler=$CC
10894 compiler_CXX=$CC
10895 for cc_temp in $compiler""; do
10896   case $cc_temp in
10897     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10898     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10899     \-*) ;;
10900     *) break;;
10901   esac
10902 done
10903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10904
10905
10906 # We don't want -fno-exception wen compiling C++ code, so set the
10907 # no_builtin_flag separately
10908 if test "$GXX" = yes; then
10909   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10910 else
10911   lt_prog_compiler_no_builtin_flag_CXX=
10912 fi
10913
10914 if test "$GXX" = yes; then
10915   # Set up default GNU C++ configuration
10916
10917
10918 # Check whether --with-gnu-ld was given.
10919 if test "${with_gnu_ld+set}" = set; then
10920   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10921 else
10922   with_gnu_ld=no
10923 fi
10924
10925 ac_prog=ld
10926 if test "$GCC" = yes; then
10927   # Check if gcc -print-prog-name=ld gives a path.
10928   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10929 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10930   case $host in
10931   *-*-mingw*)
10932     # gcc leaves a trailing carriage return which upsets mingw
10933     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10934   *)
10935     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10936   esac
10937   case $ac_prog in
10938     # Accept absolute paths.
10939     [\\/]* | ?:[\\/]*)
10940       re_direlt='/[^/][^/]*/\.\./'
10941       # Canonicalize the pathname of ld
10942       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10943       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10944         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10945       done
10946       test -z "$LD" && LD="$ac_prog"
10947       ;;
10948   "")
10949     # If it fails, then pretend we aren't using GCC.
10950     ac_prog=ld
10951     ;;
10952   *)
10953     # If it is relative, then search for the first ld in PATH.
10954     with_gnu_ld=unknown
10955     ;;
10956   esac
10957 elif test "$with_gnu_ld" = yes; then
10958   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10959 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10960 else
10961   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10962 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10963 fi
10964 if test "${lt_cv_path_LD+set}" = set; then
10965   echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967   if test -z "$LD"; then
10968   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10969   for ac_dir in $PATH; do
10970     IFS="$lt_save_ifs"
10971     test -z "$ac_dir" && ac_dir=.
10972     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10973       lt_cv_path_LD="$ac_dir/$ac_prog"
10974       # Check to see if the program is GNU ld.  I'd rather use --version,
10975       # but apparently some variants of GNU ld only accept -v.
10976       # Break only if it was the GNU/non-GNU ld that we prefer.
10977       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10978       *GNU* | *'with BFD'*)
10979         test "$with_gnu_ld" != no && break
10980         ;;
10981       *)
10982         test "$with_gnu_ld" != yes && break
10983         ;;
10984       esac
10985     fi
10986   done
10987   IFS="$lt_save_ifs"
10988 else
10989   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10990 fi
10991 fi
10992
10993 LD="$lt_cv_path_LD"
10994 if test -n "$LD"; then
10995   { echo "$as_me:$LINENO: result: $LD" >&5
10996 echo "${ECHO_T}$LD" >&6; }
10997 else
10998   { echo "$as_me:$LINENO: result: no" >&5
10999 echo "${ECHO_T}no" >&6; }
11000 fi
11001 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11002 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11003    { (exit 1); exit 1; }; }
11004 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11005 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11006 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11010 case `$LD -v 2>&1 </dev/null` in
11011 *GNU* | *'with BFD'*)
11012   lt_cv_prog_gnu_ld=yes
11013   ;;
11014 *)
11015   lt_cv_prog_gnu_ld=no
11016   ;;
11017 esac
11018 fi
11019 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11020 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11021 with_gnu_ld=$lt_cv_prog_gnu_ld
11022
11023
11024
11025   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11026   # archiving commands below assume that GNU ld is being used.
11027   if test "$with_gnu_ld" = yes; then
11028     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11029     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11030
11031     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11032     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11033
11034     # If archive_cmds runs LD, not CC, wlarc should be empty
11035     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11036     #     investigate it a little bit more. (MM)
11037     wlarc='${wl}'
11038
11039     # ancient GNU ld didn't support --whole-archive et. al.
11040     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11041         grep 'no-whole-archive' > /dev/null; then
11042       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11043     else
11044       whole_archive_flag_spec_CXX=
11045     fi
11046   else
11047     with_gnu_ld=no
11048     wlarc=
11049
11050     # A generic and very simple default shared library creation
11051     # command for GNU C++ for the case where it uses the native
11052     # linker, instead of GNU ld.  If possible, this setting should
11053     # overridden to take advantage of the native linker features on
11054     # the platform it is being used on.
11055     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11056   fi
11057
11058   # Commands to make compiler produce verbose output that lists
11059   # what "hidden" libraries, object files and flags are used when
11060   # linking a shared library.
11061   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11062
11063 else
11064   GXX=no
11065   with_gnu_ld=no
11066   wlarc=
11067 fi
11068
11069 # PORTME: fill in a description of your system's C++ link characteristics
11070 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11072 ld_shlibs_CXX=yes
11073 case $host_os in
11074   aix3*)
11075     # FIXME: insert proper C++ library support
11076     ld_shlibs_CXX=no
11077     ;;
11078   aix4* | aix5*)
11079     if test "$host_cpu" = ia64; then
11080       # On IA64, the linker does run time linking by default, so we don't
11081       # have to do anything special.
11082       aix_use_runtimelinking=no
11083       exp_sym_flag='-Bexport'
11084       no_entry_flag=""
11085     else
11086       aix_use_runtimelinking=no
11087
11088       # Test if we are trying to use run time linking or normal
11089       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11090       # need to do runtime linking.
11091       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11092         for ld_flag in $LDFLAGS; do
11093           case $ld_flag in
11094           *-brtl*)
11095             aix_use_runtimelinking=yes
11096             break
11097             ;;
11098           esac
11099         done
11100         ;;
11101       esac
11102
11103       exp_sym_flag='-bexport'
11104       no_entry_flag='-bnoentry'
11105     fi
11106
11107     # When large executables or shared objects are built, AIX ld can
11108     # have problems creating the table of contents.  If linking a library
11109     # or program results in "error TOC overflow" add -mminimal-toc to
11110     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11111     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11112
11113     archive_cmds_CXX=''
11114     hardcode_direct_CXX=yes
11115     hardcode_libdir_separator_CXX=':'
11116     link_all_deplibs_CXX=yes
11117
11118     if test "$GXX" = yes; then
11119       case $host_os in aix4.[012]|aix4.[012].*)
11120       # We only want to do this on AIX 4.2 and lower, the check
11121       # below for broken collect2 doesn't work under 4.3+
11122         collect2name=`${CC} -print-prog-name=collect2`
11123         if test -f "$collect2name" && \
11124            strings "$collect2name" | grep resolve_lib_name >/dev/null
11125         then
11126           # We have reworked collect2
11127           hardcode_direct_CXX=yes
11128         else
11129           # We have old collect2
11130           hardcode_direct_CXX=unsupported
11131           # It fails to find uninstalled libraries when the uninstalled
11132           # path is not listed in the libpath.  Setting hardcode_minus_L
11133           # to unsupported forces relinking
11134           hardcode_minus_L_CXX=yes
11135           hardcode_libdir_flag_spec_CXX='-L$libdir'
11136           hardcode_libdir_separator_CXX=
11137         fi
11138         ;;
11139       esac
11140       shared_flag='-shared'
11141       if test "$aix_use_runtimelinking" = yes; then
11142         shared_flag="$shared_flag "'${wl}-G'
11143       fi
11144     else
11145       # not using gcc
11146       if test "$host_cpu" = ia64; then
11147         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11148         # chokes on -Wl,-G. The following line is correct:
11149         shared_flag='-G'
11150       else
11151         if test "$aix_use_runtimelinking" = yes; then
11152           shared_flag='${wl}-G'
11153         else
11154           shared_flag='${wl}-bM:SRE'
11155         fi
11156       fi
11157     fi
11158
11159     # It seems that -bexpall does not export symbols beginning with
11160     # underscore (_), so it is better to generate a list of symbols to export.
11161     always_export_symbols_CXX=yes
11162     if test "$aix_use_runtimelinking" = yes; then
11163       # Warning - without using the other runtime loading flags (-brtl),
11164       # -berok will link without error, but may produce a broken library.
11165       allow_undefined_flag_CXX='-berok'
11166       # Determine the default libpath from the value encoded in an empty executable.
11167       cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173
11174 int
11175 main ()
11176 {
11177
11178   ;
11179   return 0;
11180 }
11181 _ACEOF
11182 rm -f conftest.$ac_objext conftest$ac_exeext
11183 if { (ac_try="$ac_link"
11184 case "(($ac_try" in
11185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186   *) ac_try_echo=$ac_try;;
11187 esac
11188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11189   (eval "$ac_link") 2>conftest.er1
11190   ac_status=$?
11191   grep -v '^ *+' conftest.er1 >conftest.err
11192   rm -f conftest.er1
11193   cat conftest.err >&5
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } && {
11196          test -z "$ac_cxx_werror_flag" ||
11197          test ! -s conftest.err
11198        } && test -s conftest$ac_exeext &&
11199        $as_test_x conftest$ac_exeext; then
11200
11201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11202 }'`
11203 # Check for a 64-bit object if we didn't find anything.
11204 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11205 }'`; fi
11206 else
11207   echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210
11211 fi
11212
11213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11214       conftest$ac_exeext conftest.$ac_ext
11215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11216
11217       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11218
11219       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11220      else
11221       if test "$host_cpu" = ia64; then
11222         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11223         allow_undefined_flag_CXX="-z nodefs"
11224         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11225       else
11226         # Determine the default libpath from the value encoded in an empty executable.
11227         cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h.  */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h.  */
11233
11234 int
11235 main ()
11236 {
11237
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_link") 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } && {
11256          test -z "$ac_cxx_werror_flag" ||
11257          test ! -s conftest.err
11258        } && test -s conftest$ac_exeext &&
11259        $as_test_x conftest$ac_exeext; then
11260
11261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11262 }'`
11263 # Check for a 64-bit object if we didn't find anything.
11264 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11265 }'`; fi
11266 else
11267   echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270
11271 fi
11272
11273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11274       conftest$ac_exeext conftest.$ac_ext
11275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11276
11277         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11278         # Warning - without using the other run time loading flags,
11279         # -berok will link without error, but may produce a broken library.
11280         no_undefined_flag_CXX=' ${wl}-bernotok'
11281         allow_undefined_flag_CXX=' ${wl}-berok'
11282         # Exported symbols can be pulled into shared objects from archives
11283         whole_archive_flag_spec_CXX='$convenience'
11284         archive_cmds_need_lc_CXX=yes
11285         # This is similar to how AIX traditionally builds its shared libraries.
11286         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11287       fi
11288     fi
11289     ;;
11290
11291   beos*)
11292     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11293       allow_undefined_flag_CXX=unsupported
11294       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11295       # support --undefined.  This deserves some investigation.  FIXME
11296       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11297     else
11298       ld_shlibs_CXX=no
11299     fi
11300     ;;
11301
11302   chorus*)
11303     case $cc_basename in
11304       *)
11305         # FIXME: insert proper C++ library support
11306         ld_shlibs_CXX=no
11307         ;;
11308     esac
11309     ;;
11310
11311   cygwin* | mingw* | pw32*)
11312     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11313     # as there is no search path for DLLs.
11314     hardcode_libdir_flag_spec_CXX='-L$libdir'
11315     allow_undefined_flag_CXX=unsupported
11316     always_export_symbols_CXX=no
11317     enable_shared_with_static_runtimes_CXX=yes
11318
11319     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11320       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11321       # If the export-symbols file already is a .def file (1st line
11322       # is EXPORTS), use it as is; otherwise, prepend...
11323       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11324         cp $export_symbols $output_objdir/$soname.def;
11325       else
11326         echo EXPORTS > $output_objdir/$soname.def;
11327         cat $export_symbols >> $output_objdir/$soname.def;
11328       fi~
11329       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11330     else
11331       ld_shlibs_CXX=no
11332     fi
11333   ;;
11334       darwin* | rhapsody*)
11335         case $host_os in
11336         rhapsody* | darwin1.[012])
11337          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11338          ;;
11339        *) # Darwin 1.3 on
11340          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11341            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11342          else
11343            case ${MACOSX_DEPLOYMENT_TARGET} in
11344              10.[012])
11345                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11346                ;;
11347              10.*)
11348                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11349                ;;
11350            esac
11351          fi
11352          ;;
11353         esac
11354       archive_cmds_need_lc_CXX=no
11355       hardcode_direct_CXX=no
11356       hardcode_automatic_CXX=yes
11357       hardcode_shlibpath_var_CXX=unsupported
11358       whole_archive_flag_spec_CXX=''
11359       link_all_deplibs_CXX=yes
11360
11361     if test "$GXX" = yes ; then
11362       lt_int_apple_cc_single_mod=no
11363       output_verbose_link_cmd='echo'
11364       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11365        lt_int_apple_cc_single_mod=yes
11366       fi
11367       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11368        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11369       else
11370           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11371         fi
11372         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11373         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11374           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11375             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11376           else
11377             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11378           fi
11379             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11380       else
11381       case $cc_basename in
11382         xlc*)
11383          output_verbose_link_cmd='echo'
11384           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11385           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11386           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11387           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11388           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11389           ;;
11390        *)
11391          ld_shlibs_CXX=no
11392           ;;
11393       esac
11394       fi
11395         ;;
11396
11397   dgux*)
11398     case $cc_basename in
11399       ec++*)
11400         # FIXME: insert proper C++ library support
11401         ld_shlibs_CXX=no
11402         ;;
11403       ghcx*)
11404         # Green Hills C++ Compiler
11405         # FIXME: insert proper C++ library support
11406         ld_shlibs_CXX=no
11407         ;;
11408       *)
11409         # FIXME: insert proper C++ library support
11410         ld_shlibs_CXX=no
11411         ;;
11412     esac
11413     ;;
11414   freebsd[12]*)
11415     # C++ shared libraries reported to be fairly broken before switch to ELF
11416     ld_shlibs_CXX=no
11417     ;;
11418   freebsd-elf*)
11419     archive_cmds_need_lc_CXX=no
11420     ;;
11421   freebsd* | kfreebsd*-gnu | dragonfly*)
11422     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11423     # conventions
11424     ld_shlibs_CXX=yes
11425     ;;
11426   gnu*)
11427     ;;
11428   hpux9*)
11429     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11430     hardcode_libdir_separator_CXX=:
11431     export_dynamic_flag_spec_CXX='${wl}-E'
11432     hardcode_direct_CXX=yes
11433     hardcode_minus_L_CXX=yes # Not in the search PATH,
11434                                 # but as the default
11435                                 # location of the library.
11436
11437     case $cc_basename in
11438     CC*)
11439       # FIXME: insert proper C++ library support
11440       ld_shlibs_CXX=no
11441       ;;
11442     aCC*)
11443       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11444       # Commands to make compiler produce verbose output that lists
11445       # what "hidden" libraries, object files and flags are used when
11446       # linking a shared library.
11447       #
11448       # There doesn't appear to be a way to prevent this compiler from
11449       # explicitly linking system object files so we need to strip them
11450       # from the output so that they don't get included in the library
11451       # dependencies.
11452       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11453       ;;
11454     *)
11455       if test "$GXX" = yes; then
11456         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11457       else
11458         # FIXME: insert proper C++ library support
11459         ld_shlibs_CXX=no
11460       fi
11461       ;;
11462     esac
11463     ;;
11464   hpux10*|hpux11*)
11465     if test $with_gnu_ld = no; then
11466       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11467       hardcode_libdir_separator_CXX=:
11468
11469       case $host_cpu in
11470       hppa*64*|ia64*)
11471         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11472         ;;
11473       *)
11474         export_dynamic_flag_spec_CXX='${wl}-E'
11475         ;;
11476       esac
11477     fi
11478     case $host_cpu in
11479     hppa*64*|ia64*)
11480       hardcode_direct_CXX=no
11481       hardcode_shlibpath_var_CXX=no
11482       ;;
11483     *)
11484       hardcode_direct_CXX=yes
11485       hardcode_minus_L_CXX=yes # Not in the search PATH,
11486                                               # but as the default
11487                                               # location of the library.
11488       ;;
11489     esac
11490
11491     case $cc_basename in
11492       CC*)
11493         # FIXME: insert proper C++ library support
11494         ld_shlibs_CXX=no
11495         ;;
11496       aCC*)
11497         case $host_cpu in
11498         hppa*64*)
11499           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11500           ;;
11501         ia64*)
11502           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11503           ;;
11504         *)
11505           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11506           ;;
11507         esac
11508         # Commands to make compiler produce verbose output that lists
11509         # what "hidden" libraries, object files and flags are used when
11510         # linking a shared library.
11511         #
11512         # There doesn't appear to be a way to prevent this compiler from
11513         # explicitly linking system object files so we need to strip them
11514         # from the output so that they don't get included in the library
11515         # dependencies.
11516         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11517         ;;
11518       *)
11519         if test "$GXX" = yes; then
11520           if test $with_gnu_ld = no; then
11521             case $host_cpu in
11522             hppa*64*)
11523               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11524               ;;
11525             ia64*)
11526               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11527               ;;
11528             *)
11529               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11530               ;;
11531             esac
11532           fi
11533         else
11534           # FIXME: insert proper C++ library support
11535           ld_shlibs_CXX=no
11536         fi
11537         ;;
11538     esac
11539     ;;
11540   interix3*)
11541     hardcode_direct_CXX=no
11542     hardcode_shlibpath_var_CXX=no
11543     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11544     export_dynamic_flag_spec_CXX='${wl}-E'
11545     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11546     # Instead, shared libraries are loaded at an image base (0x10000000 by
11547     # default) and relocated if they conflict, which is a slow very memory
11548     # consuming and fragmenting process.  To avoid this, we pick a random,
11549     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11550     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11551     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11552     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11553     ;;
11554   irix5* | irix6*)
11555     case $cc_basename in
11556       CC*)
11557         # SGI C++
11558         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11559
11560         # Archives containing C++ object files must be created using
11561         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11562         # necessary to make sure instantiated templates are included
11563         # in the archive.
11564         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11565         ;;
11566       *)
11567         if test "$GXX" = yes; then
11568           if test "$with_gnu_ld" = no; then
11569             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11570           else
11571             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11572           fi
11573         fi
11574         link_all_deplibs_CXX=yes
11575         ;;
11576     esac
11577     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11578     hardcode_libdir_separator_CXX=:
11579     ;;
11580   linux*)
11581     case $cc_basename in
11582       KCC*)
11583         # Kuck and Associates, Inc. (KAI) C++ Compiler
11584
11585         # KCC will only create a shared library if the output file
11586         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11587         # to its proper name (with version) after linking.
11588         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11589         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11590         # Commands to make compiler produce verbose output that lists
11591         # what "hidden" libraries, object files and flags are used when
11592         # linking a shared library.
11593         #
11594         # There doesn't appear to be a way to prevent this compiler from
11595         # explicitly linking system object files so we need to strip them
11596         # from the output so that they don't get included in the library
11597         # dependencies.
11598         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11599
11600         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11601         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11602
11603         # Archives containing C++ object files must be created using
11604         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11605         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11606         ;;
11607       icpc*)
11608         # Intel C++
11609         with_gnu_ld=yes
11610         # version 8.0 and above of icpc choke on multiply defined symbols
11611         # if we add $predep_objects and $postdep_objects, however 7.1 and
11612         # earlier do not add the objects themselves.
11613         case `$CC -V 2>&1` in
11614         *"Version 7."*)
11615           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11616           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11617           ;;
11618         *)  # Version 8.0 or newer
11619           tmp_idyn=
11620           case $host_cpu in
11621             ia64*) tmp_idyn=' -i_dynamic';;
11622           esac
11623           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11624           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11625           ;;
11626         esac
11627         archive_cmds_need_lc_CXX=no
11628         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11629         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11630         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11631         ;;
11632       pgCC*)
11633         # Portland Group C++ compiler
11634         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11635         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11636
11637         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11638         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11639         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11640         ;;
11641       cxx*)
11642         # Compaq C++
11643         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11644         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11645
11646         runpath_var=LD_RUN_PATH
11647         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11648         hardcode_libdir_separator_CXX=:
11649
11650         # Commands to make compiler produce verbose output that lists
11651         # what "hidden" libraries, object files and flags are used when
11652         # linking a shared library.
11653         #
11654         # There doesn't appear to be a way to prevent this compiler from
11655         # explicitly linking system object files so we need to strip them
11656         # from the output so that they don't get included in the library
11657         # dependencies.
11658         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11659         ;;
11660     esac
11661     ;;
11662   lynxos*)
11663     # FIXME: insert proper C++ library support
11664     ld_shlibs_CXX=no
11665     ;;
11666   m88k*)
11667     # FIXME: insert proper C++ library support
11668     ld_shlibs_CXX=no
11669     ;;
11670   mvs*)
11671     case $cc_basename in
11672       cxx*)
11673         # FIXME: insert proper C++ library support
11674         ld_shlibs_CXX=no
11675         ;;
11676       *)
11677         # FIXME: insert proper C++ library support
11678         ld_shlibs_CXX=no
11679         ;;
11680     esac
11681     ;;
11682   netbsd*)
11683     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11684       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11685       wlarc=
11686       hardcode_libdir_flag_spec_CXX='-R$libdir'
11687       hardcode_direct_CXX=yes
11688       hardcode_shlibpath_var_CXX=no
11689     fi
11690     # Workaround some broken pre-1.5 toolchains
11691     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11692     ;;
11693   openbsd2*)
11694     # C++ shared libraries are fairly broken
11695     ld_shlibs_CXX=no
11696     ;;
11697   openbsd*)
11698     hardcode_direct_CXX=yes
11699     hardcode_shlibpath_var_CXX=no
11700     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11701     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11702     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11703       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11704       export_dynamic_flag_spec_CXX='${wl}-E'
11705       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11706     fi
11707     output_verbose_link_cmd='echo'
11708     ;;
11709   osf3*)
11710     case $cc_basename in
11711       KCC*)
11712         # Kuck and Associates, Inc. (KAI) C++ Compiler
11713
11714         # KCC will only create a shared library if the output file
11715         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11716         # to its proper name (with version) after linking.
11717         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11718
11719         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11720         hardcode_libdir_separator_CXX=:
11721
11722         # Archives containing C++ object files must be created using
11723         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11724         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11725
11726         ;;
11727       RCC*)
11728         # Rational C++ 2.4.1
11729         # FIXME: insert proper C++ library support
11730         ld_shlibs_CXX=no
11731         ;;
11732       cxx*)
11733         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11734         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11735
11736         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11737         hardcode_libdir_separator_CXX=:
11738
11739         # Commands to make compiler produce verbose output that lists
11740         # what "hidden" libraries, object files and flags are used when
11741         # linking a shared library.
11742         #
11743         # There doesn't appear to be a way to prevent this compiler from
11744         # explicitly linking system object files so we need to strip them
11745         # from the output so that they don't get included in the library
11746         # dependencies.
11747         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11748         ;;
11749       *)
11750         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11751           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11752           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11753
11754           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11755           hardcode_libdir_separator_CXX=:
11756
11757           # Commands to make compiler produce verbose output that lists
11758           # what "hidden" libraries, object files and flags are used when
11759           # linking a shared library.
11760           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11761
11762         else
11763           # FIXME: insert proper C++ library support
11764           ld_shlibs_CXX=no
11765         fi
11766         ;;
11767     esac
11768     ;;
11769   osf4* | osf5*)
11770     case $cc_basename in
11771       KCC*)
11772         # Kuck and Associates, Inc. (KAI) C++ Compiler
11773
11774         # KCC will only create a shared library if the output file
11775         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11776         # to its proper name (with version) after linking.
11777         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11778
11779         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11780         hardcode_libdir_separator_CXX=:
11781
11782         # Archives containing C++ object files must be created using
11783         # the KAI C++ compiler.
11784         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11785         ;;
11786       RCC*)
11787         # Rational C++ 2.4.1
11788         # FIXME: insert proper C++ library support
11789         ld_shlibs_CXX=no
11790         ;;
11791       cxx*)
11792         allow_undefined_flag_CXX=' -expect_unresolved \*'
11793         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11794         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11795           echo "-hidden">> $lib.exp~
11796           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11797           $rm $lib.exp'
11798
11799         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11800         hardcode_libdir_separator_CXX=:
11801
11802         # Commands to make compiler produce verbose output that lists
11803         # what "hidden" libraries, object files and flags are used when
11804         # linking a shared library.
11805         #
11806         # There doesn't appear to be a way to prevent this compiler from
11807         # explicitly linking system object files so we need to strip them
11808         # from the output so that they don't get included in the library
11809         # dependencies.
11810         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11811         ;;
11812       *)
11813         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11814           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11815          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11816
11817           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11818           hardcode_libdir_separator_CXX=:
11819
11820           # Commands to make compiler produce verbose output that lists
11821           # what "hidden" libraries, object files and flags are used when
11822           # linking a shared library.
11823           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11824
11825         else
11826           # FIXME: insert proper C++ library support
11827           ld_shlibs_CXX=no
11828         fi
11829         ;;
11830     esac
11831     ;;
11832   psos*)
11833     # FIXME: insert proper C++ library support
11834     ld_shlibs_CXX=no
11835     ;;
11836   sunos4*)
11837     case $cc_basename in
11838       CC*)
11839         # Sun C++ 4.x
11840         # FIXME: insert proper C++ library support
11841         ld_shlibs_CXX=no
11842         ;;
11843       lcc*)
11844         # Lucid
11845         # FIXME: insert proper C++ library support
11846         ld_shlibs_CXX=no
11847         ;;
11848       *)
11849         # FIXME: insert proper C++ library support
11850         ld_shlibs_CXX=no
11851         ;;
11852     esac
11853     ;;
11854   solaris*)
11855     case $cc_basename in
11856       CC*)
11857         # Sun C++ 4.2, 5.x and Centerline C++
11858         archive_cmds_need_lc_CXX=yes
11859         no_undefined_flag_CXX=' -zdefs'
11860         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11861         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11862         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11863
11864         hardcode_libdir_flag_spec_CXX='-R$libdir'
11865         hardcode_shlibpath_var_CXX=no
11866         case $host_os in
11867           solaris2.[0-5] | solaris2.[0-5].*) ;;
11868           *)
11869             # The C++ compiler is used as linker so we must use $wl
11870             # flag to pass the commands to the underlying system
11871             # linker. We must also pass each convience library through
11872             # to the system linker between allextract/defaultextract.
11873             # The C++ compiler will combine linker options so we
11874             # cannot just pass the convience library names through
11875             # without $wl.
11876             # Supported since Solaris 2.6 (maybe 2.5.1?)
11877             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11878             ;;
11879         esac
11880         link_all_deplibs_CXX=yes
11881
11882         output_verbose_link_cmd='echo'
11883
11884         # Archives containing C++ object files must be created using
11885         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11886         # necessary to make sure instantiated templates are included
11887         # in the archive.
11888         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11889         ;;
11890       gcx*)
11891         # Green Hills C++ Compiler
11892         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11893
11894         # The C++ compiler must be used to create the archive.
11895         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11896         ;;
11897       *)
11898         # GNU C++ compiler with Solaris linker
11899         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11901           if $CC --version | grep -v '^2\.7' > /dev/null; then
11902             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11903             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11904                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11905
11906             # Commands to make compiler produce verbose output that lists
11907             # what "hidden" libraries, object files and flags are used when
11908             # linking a shared library.
11909             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11910           else
11911             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11912             # platform.
11913             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11914             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11915                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11916
11917             # Commands to make compiler produce verbose output that lists
11918             # what "hidden" libraries, object files and flags are used when
11919             # linking a shared library.
11920             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11921           fi
11922
11923           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11924         fi
11925         ;;
11926     esac
11927     ;;
11928   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11929     no_undefined_flag_CXX='${wl}-z,text'
11930     archive_cmds_need_lc_CXX=no
11931     hardcode_shlibpath_var_CXX=no
11932     runpath_var='LD_RUN_PATH'
11933
11934     case $cc_basename in
11935       CC*)
11936         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938         ;;
11939       *)
11940         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942         ;;
11943     esac
11944     ;;
11945   sysv5* | sco3.2v5* | sco5v6*)
11946     # Note: We can NOT use -z defs as we might desire, because we do not
11947     # link with -lc, and that would cause any symbols used from libc to
11948     # always be unresolved, which means just about no library would
11949     # ever link correctly.  If we're not using GNU ld we use -z text
11950     # though, which does catch some bad symbols but isn't as heavy-handed
11951     # as -z defs.
11952     # For security reasons, it is highly recommended that you always
11953     # use absolute paths for naming shared libraries, and exclude the
11954     # DT_RUNPATH tag from executables and libraries.  But doing so
11955     # requires that you compile everything twice, which is a pain.
11956     # So that behaviour is only enabled if SCOABSPATH is set to a
11957     # non-empty value in the environment.  Most likely only useful for
11958     # creating official distributions of packages.
11959     # This is a hack until libtool officially supports absolute path
11960     # names for shared libraries.
11961     no_undefined_flag_CXX='${wl}-z,text'
11962     allow_undefined_flag_CXX='${wl}-z,nodefs'
11963     archive_cmds_need_lc_CXX=no
11964     hardcode_shlibpath_var_CXX=no
11965     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11966     hardcode_libdir_separator_CXX=':'
11967     link_all_deplibs_CXX=yes
11968     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11969     runpath_var='LD_RUN_PATH'
11970
11971     case $cc_basename in
11972       CC*)
11973         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11974         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11975         ;;
11976       *)
11977         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11978         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11979         ;;
11980     esac
11981     ;;
11982   tandem*)
11983     case $cc_basename in
11984       NCC*)
11985         # NonStop-UX NCC 3.20
11986         # FIXME: insert proper C++ library support
11987         ld_shlibs_CXX=no
11988         ;;
11989       *)
11990         # FIXME: insert proper C++ library support
11991         ld_shlibs_CXX=no
11992         ;;
11993     esac
11994     ;;
11995   vxworks*)
11996     # FIXME: insert proper C++ library support
11997     ld_shlibs_CXX=no
11998     ;;
11999   *)
12000     # FIXME: insert proper C++ library support
12001     ld_shlibs_CXX=no
12002     ;;
12003 esac
12004 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12005 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12006 test "$ld_shlibs_CXX" = no && can_build_shared=no
12007
12008 GCC_CXX="$GXX"
12009 LD_CXX="$LD"
12010
12011 ## CAVEAT EMPTOR:
12012 ## There is no encapsulation within the following macros, do not change
12013 ## the running order or otherwise move them around unless you know exactly
12014 ## what you are doing...
12015
12016 cat > conftest.$ac_ext <<EOF
12017 class Foo
12018 {
12019 public:
12020   Foo (void) { a = 0; }
12021 private:
12022   int a;
12023 };
12024 EOF
12025
12026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12027   (eval $ac_compile) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; then
12031   # Parse the compiler output and extract the necessary
12032   # objects, libraries and library flags.
12033
12034   # Sentinel used to keep track of whether or not we are before
12035   # the conftest object file.
12036   pre_test_object_deps_done=no
12037
12038   # The `*' in the case matches for architectures that use `case' in
12039   # $output_verbose_cmd can trigger glob expansion during the loop
12040   # eval without this substitution.
12041   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12042
12043   for p in `eval $output_verbose_link_cmd`; do
12044     case $p in
12045
12046     -L* | -R* | -l*)
12047        # Some compilers place space between "-{L,R}" and the path.
12048        # Remove the space.
12049        if test $p = "-L" \
12050           || test $p = "-R"; then
12051          prev=$p
12052          continue
12053        else
12054          prev=
12055        fi
12056
12057        if test "$pre_test_object_deps_done" = no; then
12058          case $p in
12059          -L* | -R*)
12060            # Internal compiler library paths should come after those
12061            # provided the user.  The postdeps already come after the
12062            # user supplied libs so there is no need to process them.
12063            if test -z "$compiler_lib_search_path_CXX"; then
12064              compiler_lib_search_path_CXX="${prev}${p}"
12065            else
12066              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12067            fi
12068            ;;
12069          # The "-l" case would never come before the object being
12070          # linked, so don't bother handling this case.
12071          esac
12072        else
12073          if test -z "$postdeps_CXX"; then
12074            postdeps_CXX="${prev}${p}"
12075          else
12076            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12077          fi
12078        fi
12079        ;;
12080
12081     *.$objext)
12082        # This assumes that the test object file only shows up
12083        # once in the compiler output.
12084        if test "$p" = "conftest.$objext"; then
12085          pre_test_object_deps_done=yes
12086          continue
12087        fi
12088
12089        if test "$pre_test_object_deps_done" = no; then
12090          if test -z "$predep_objects_CXX"; then
12091            predep_objects_CXX="$p"
12092          else
12093            predep_objects_CXX="$predep_objects_CXX $p"
12094          fi
12095        else
12096          if test -z "$postdep_objects_CXX"; then
12097            postdep_objects_CXX="$p"
12098          else
12099            postdep_objects_CXX="$postdep_objects_CXX $p"
12100          fi
12101        fi
12102        ;;
12103
12104     *) ;; # Ignore the rest.
12105
12106     esac
12107   done
12108
12109   # Clean up.
12110   rm -f a.out a.exe
12111 else
12112   echo "libtool.m4: error: problem compiling CXX test program"
12113 fi
12114
12115 $rm -f confest.$objext
12116
12117 # PORTME: override above test on systems where it is broken
12118 case $host_os in
12119 interix3*)
12120   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12121   # hack all around it, let's just trust "g++" to DTRT.
12122   predep_objects_CXX=
12123   postdep_objects_CXX=
12124   postdeps_CXX=
12125   ;;
12126
12127 solaris*)
12128   case $cc_basename in
12129   CC*)
12130     # Adding this requires a known-good setup of shared libraries for
12131     # Sun compiler versions before 5.6, else PIC objects from an old
12132     # archive will be linked into the output, leading to subtle bugs.
12133     postdeps_CXX='-lCstd -lCrun'
12134     ;;
12135   esac
12136   ;;
12137 esac
12138
12139
12140 case " $postdeps_CXX " in
12141 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12142 esac
12143
12144 lt_prog_compiler_wl_CXX=
12145 lt_prog_compiler_pic_CXX=
12146 lt_prog_compiler_static_CXX=
12147
12148 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12150
12151   # C++ specific cases for pic, static, wl, etc.
12152   if test "$GXX" = yes; then
12153     lt_prog_compiler_wl_CXX='-Wl,'
12154     lt_prog_compiler_static_CXX='-static'
12155
12156     case $host_os in
12157     aix*)
12158       # All AIX code is PIC.
12159       if test "$host_cpu" = ia64; then
12160         # AIX 5 now supports IA64 processor
12161         lt_prog_compiler_static_CXX='-Bstatic'
12162       fi
12163       ;;
12164     amigaos*)
12165       # FIXME: we need at least 68020 code to build shared libraries, but
12166       # adding the `-m68020' flag to GCC prevents building anything better,
12167       # like `-m68040'.
12168       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12169       ;;
12170     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12171       # PIC is the default for these OSes.
12172       ;;
12173     mingw* | os2* | pw32*)
12174       # This hack is so that the source file can tell whether it is being
12175       # built for inclusion in a dll (and should export symbols for example).
12176       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12177       ;;
12178     darwin* | rhapsody*)
12179       # PIC is the default on this platform
12180       # Common symbols not allowed in MH_DYLIB files
12181       lt_prog_compiler_pic_CXX='-fno-common'
12182       ;;
12183     *djgpp*)
12184       # DJGPP does not support shared libraries at all
12185       lt_prog_compiler_pic_CXX=
12186       ;;
12187     interix3*)
12188       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12189       # Instead, we relocate shared libraries at runtime.
12190       ;;
12191     sysv4*MP*)
12192       if test -d /usr/nec; then
12193         lt_prog_compiler_pic_CXX=-Kconform_pic
12194       fi
12195       ;;
12196     hpux*)
12197       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12198       # not for PA HP-UX.
12199       case $host_cpu in
12200       hppa*64*|ia64*)
12201         ;;
12202       *)
12203         lt_prog_compiler_pic_CXX='-fPIC'
12204         ;;
12205       esac
12206       ;;
12207     *)
12208       lt_prog_compiler_pic_CXX='-fPIC'
12209       ;;
12210     esac
12211   else
12212     case $host_os in
12213       aix4* | aix5*)
12214         # All AIX code is PIC.
12215         if test "$host_cpu" = ia64; then
12216           # AIX 5 now supports IA64 processor
12217           lt_prog_compiler_static_CXX='-Bstatic'
12218         else
12219           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12220         fi
12221         ;;
12222       chorus*)
12223         case $cc_basename in
12224         cxch68*)
12225           # Green Hills C++ Compiler
12226           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12227           ;;
12228         esac
12229         ;;
12230        darwin*)
12231          # PIC is the default on this platform
12232          # Common symbols not allowed in MH_DYLIB files
12233          case $cc_basename in
12234            xlc*)
12235            lt_prog_compiler_pic_CXX='-qnocommon'
12236            lt_prog_compiler_wl_CXX='-Wl,'
12237            ;;
12238          esac
12239        ;;
12240       dgux*)
12241         case $cc_basename in
12242           ec++*)
12243             lt_prog_compiler_pic_CXX='-KPIC'
12244             ;;
12245           ghcx*)
12246             # Green Hills C++ Compiler
12247             lt_prog_compiler_pic_CXX='-pic'
12248             ;;
12249           *)
12250             ;;
12251         esac
12252         ;;
12253       freebsd* | kfreebsd*-gnu | dragonfly*)
12254         # FreeBSD uses GNU C++
12255         ;;
12256       hpux9* | hpux10* | hpux11*)
12257         case $cc_basename in
12258           CC*)
12259             lt_prog_compiler_wl_CXX='-Wl,'
12260             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12261             if test "$host_cpu" != ia64; then
12262               lt_prog_compiler_pic_CXX='+Z'
12263             fi
12264             ;;
12265           aCC*)
12266             lt_prog_compiler_wl_CXX='-Wl,'
12267             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12268             case $host_cpu in
12269             hppa*64*|ia64*)
12270               # +Z the default
12271               ;;
12272             *)
12273               lt_prog_compiler_pic_CXX='+Z'
12274               ;;
12275             esac
12276             ;;
12277           *)
12278             ;;
12279         esac
12280         ;;
12281       interix*)
12282         # This is c89, which is MS Visual C++ (no shared libs)
12283         # Anyone wants to do a port?
12284         ;;
12285       irix5* | irix6* | nonstopux*)
12286         case $cc_basename in
12287           CC*)
12288             lt_prog_compiler_wl_CXX='-Wl,'
12289             lt_prog_compiler_static_CXX='-non_shared'
12290             # CC pic flag -KPIC is the default.
12291             ;;
12292           *)
12293             ;;
12294         esac
12295         ;;
12296       linux*)
12297         case $cc_basename in
12298           KCC*)
12299             # KAI C++ Compiler
12300             lt_prog_compiler_wl_CXX='--backend -Wl,'
12301             lt_prog_compiler_pic_CXX='-fPIC'
12302             ;;
12303           icpc* | ecpc*)
12304             # Intel C++
12305             lt_prog_compiler_wl_CXX='-Wl,'
12306             lt_prog_compiler_pic_CXX='-KPIC'
12307             lt_prog_compiler_static_CXX='-static'
12308             ;;
12309           pgCC*)
12310             # Portland Group C++ compiler.
12311             lt_prog_compiler_wl_CXX='-Wl,'
12312             lt_prog_compiler_pic_CXX='-fpic'
12313             lt_prog_compiler_static_CXX='-Bstatic'
12314             ;;
12315           cxx*)
12316             # Compaq C++
12317             # Make sure the PIC flag is empty.  It appears that all Alpha
12318             # Linux and Compaq Tru64 Unix objects are PIC.
12319             lt_prog_compiler_pic_CXX=
12320             lt_prog_compiler_static_CXX='-non_shared'
12321             ;;
12322           *)
12323             ;;
12324         esac
12325         ;;
12326       lynxos*)
12327         ;;
12328       m88k*)
12329         ;;
12330       mvs*)
12331         case $cc_basename in
12332           cxx*)
12333             lt_prog_compiler_pic_CXX='-W c,exportall'
12334             ;;
12335           *)
12336             ;;
12337         esac
12338         ;;
12339       netbsd*)
12340         ;;
12341       osf3* | osf4* | osf5*)
12342         case $cc_basename in
12343           KCC*)
12344             lt_prog_compiler_wl_CXX='--backend -Wl,'
12345             ;;
12346           RCC*)
12347             # Rational C++ 2.4.1
12348             lt_prog_compiler_pic_CXX='-pic'
12349             ;;
12350           cxx*)
12351             # Digital/Compaq C++
12352             lt_prog_compiler_wl_CXX='-Wl,'
12353             # Make sure the PIC flag is empty.  It appears that all Alpha
12354             # Linux and Compaq Tru64 Unix objects are PIC.
12355             lt_prog_compiler_pic_CXX=
12356             lt_prog_compiler_static_CXX='-non_shared'
12357             ;;
12358           *)
12359             ;;
12360         esac
12361         ;;
12362       psos*)
12363         ;;
12364       solaris*)
12365         case $cc_basename in
12366           CC*)
12367             # Sun C++ 4.2, 5.x and Centerline C++
12368             lt_prog_compiler_pic_CXX='-KPIC'
12369             lt_prog_compiler_static_CXX='-Bstatic'
12370             lt_prog_compiler_wl_CXX='-Qoption ld '
12371             ;;
12372           gcx*)
12373             # Green Hills C++ Compiler
12374             lt_prog_compiler_pic_CXX='-PIC'
12375             ;;
12376           *)
12377             ;;
12378         esac
12379         ;;
12380       sunos4*)
12381         case $cc_basename in
12382           CC*)
12383             # Sun C++ 4.x
12384             lt_prog_compiler_pic_CXX='-pic'
12385             lt_prog_compiler_static_CXX='-Bstatic'
12386             ;;
12387           lcc*)
12388             # Lucid
12389             lt_prog_compiler_pic_CXX='-pic'
12390             ;;
12391           *)
12392             ;;
12393         esac
12394         ;;
12395       tandem*)
12396         case $cc_basename in
12397           NCC*)
12398             # NonStop-UX NCC 3.20
12399             lt_prog_compiler_pic_CXX='-KPIC'
12400             ;;
12401           *)
12402             ;;
12403         esac
12404         ;;
12405       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12406         case $cc_basename in
12407           CC*)
12408             lt_prog_compiler_wl_CXX='-Wl,'
12409             lt_prog_compiler_pic_CXX='-KPIC'
12410             lt_prog_compiler_static_CXX='-Bstatic'
12411             ;;
12412         esac
12413         ;;
12414       vxworks*)
12415         ;;
12416       *)
12417         lt_prog_compiler_can_build_shared_CXX=no
12418         ;;
12419     esac
12420   fi
12421
12422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12423 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12424
12425 #
12426 # Check to make sure the PIC flag actually works.
12427 #
12428 if test -n "$lt_prog_compiler_pic_CXX"; then
12429
12430 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12431 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12432 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12433   echo $ECHO_N "(cached) $ECHO_C" >&6
12434 else
12435   lt_prog_compiler_pic_works_CXX=no
12436   ac_outfile=conftest.$ac_objext
12437    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12438    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12439    # Insert the option either (1) after the last *FLAGS variable, or
12440    # (2) before a word containing "conftest.", or (3) at the end.
12441    # Note that $ac_compile itself does not contain backslashes and begins
12442    # with a dollar sign (not a hyphen), so the echo should work correctly.
12443    # The option is referenced via a variable to avoid confusing sed.
12444    lt_compile=`echo "$ac_compile" | $SED \
12445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12447    -e 's:$: $lt_compiler_flag:'`
12448    (eval echo "\"\$as_me:12448: $lt_compile\"" >&5)
12449    (eval "$lt_compile" 2>conftest.err)
12450    ac_status=$?
12451    cat conftest.err >&5
12452    echo "$as_me:12452: \$? = $ac_status" >&5
12453    if (exit $ac_status) && test -s "$ac_outfile"; then
12454      # The compiler can only warn and ignore the option if not recognized
12455      # So say no if there are warnings other than the usual output.
12456      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12457      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12458      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12459        lt_prog_compiler_pic_works_CXX=yes
12460      fi
12461    fi
12462    $rm conftest*
12463
12464 fi
12465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12466 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12467
12468 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12469     case $lt_prog_compiler_pic_CXX in
12470      "" | " "*) ;;
12471      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12472      esac
12473 else
12474     lt_prog_compiler_pic_CXX=
12475      lt_prog_compiler_can_build_shared_CXX=no
12476 fi
12477
12478 fi
12479 case $host_os in
12480   # For platforms which do not support PIC, -DPIC is meaningless:
12481   *djgpp*)
12482     lt_prog_compiler_pic_CXX=
12483     ;;
12484   *)
12485     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12486     ;;
12487 esac
12488
12489 #
12490 # Check to make sure the static flag actually works.
12491 #
12492 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12493 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12494 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12495 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   lt_prog_compiler_static_works_CXX=no
12499    save_LDFLAGS="$LDFLAGS"
12500    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12501    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12502    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12503      # The linker can only warn and ignore the option if not recognized
12504      # So say no if there are warnings
12505      if test -s conftest.err; then
12506        # Append any errors to the config.log.
12507        cat conftest.err 1>&5
12508        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12509        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12510        if diff conftest.exp conftest.er2 >/dev/null; then
12511          lt_prog_compiler_static_works_CXX=yes
12512        fi
12513      else
12514        lt_prog_compiler_static_works_CXX=yes
12515      fi
12516    fi
12517    $rm conftest*
12518    LDFLAGS="$save_LDFLAGS"
12519
12520 fi
12521 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12522 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12523
12524 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12525     :
12526 else
12527     lt_prog_compiler_static_CXX=
12528 fi
12529
12530
12531 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12532 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12533 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536   lt_cv_prog_compiler_c_o_CXX=no
12537    $rm -r conftest 2>/dev/null
12538    mkdir conftest
12539    cd conftest
12540    mkdir out
12541    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12542
12543    lt_compiler_flag="-o out/conftest2.$ac_objext"
12544    # Insert the option either (1) after the last *FLAGS variable, or
12545    # (2) before a word containing "conftest.", or (3) at the end.
12546    # Note that $ac_compile itself does not contain backslashes and begins
12547    # with a dollar sign (not a hyphen), so the echo should work correctly.
12548    lt_compile=`echo "$ac_compile" | $SED \
12549    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12551    -e 's:$: $lt_compiler_flag:'`
12552    (eval echo "\"\$as_me:12552: $lt_compile\"" >&5)
12553    (eval "$lt_compile" 2>out/conftest.err)
12554    ac_status=$?
12555    cat out/conftest.err >&5
12556    echo "$as_me:12556: \$? = $ac_status" >&5
12557    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12558    then
12559      # The compiler can only warn and ignore the option if not recognized
12560      # So say no if there are warnings
12561      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12562      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12563      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12564        lt_cv_prog_compiler_c_o_CXX=yes
12565      fi
12566    fi
12567    chmod u+w . 2>&5
12568    $rm conftest*
12569    # SGI C++ compiler will create directory out/ii_files/ for
12570    # template instantiation
12571    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12572    $rm out/* && rmdir out
12573    cd ..
12574    rmdir conftest
12575    $rm conftest*
12576
12577 fi
12578 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12580
12581
12582 hard_links="nottested"
12583 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12584   # do not overwrite the value of need_locks provided by the user
12585   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12587   hard_links=yes
12588   $rm conftest*
12589   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12590   touch conftest.a
12591   ln conftest.a conftest.b 2>&5 || hard_links=no
12592   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12593   { echo "$as_me:$LINENO: result: $hard_links" >&5
12594 echo "${ECHO_T}$hard_links" >&6; }
12595   if test "$hard_links" = no; then
12596     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12598     need_locks=warn
12599   fi
12600 else
12601   need_locks=no
12602 fi
12603
12604 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12606
12607   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12608   case $host_os in
12609   aix4* | aix5*)
12610     # If we're using GNU nm, then we don't want the "-C" option.
12611     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12612     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12613       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12614     else
12615       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12616     fi
12617     ;;
12618   pw32*)
12619     export_symbols_cmds_CXX="$ltdll_cmds"
12620   ;;
12621   cygwin* | mingw*)
12622     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12623   ;;
12624   *)
12625     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12626   ;;
12627   esac
12628
12629 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12630 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12631 test "$ld_shlibs_CXX" = no && can_build_shared=no
12632
12633 #
12634 # Do we need to explicitly link libc?
12635 #
12636 case "x$archive_cmds_need_lc_CXX" in
12637 x|xyes)
12638   # Assume -lc should be added
12639   archive_cmds_need_lc_CXX=yes
12640
12641   if test "$enable_shared" = yes && test "$GCC" = yes; then
12642     case $archive_cmds_CXX in
12643     *'~'*)
12644       # FIXME: we may have to deal with multi-command sequences.
12645       ;;
12646     '$CC '*)
12647       # Test whether the compiler implicitly links with -lc since on some
12648       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12649       # to ld, don't add -lc before -lgcc.
12650       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12651 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12652       $rm conftest*
12653       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12654
12655       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656   (eval $ac_compile) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } 2>conftest.err; then
12660         soname=conftest
12661         lib=conftest
12662         libobjs=conftest.$ac_objext
12663         deplibs=
12664         wl=$lt_prog_compiler_wl_CXX
12665         pic_flag=$lt_prog_compiler_pic_CXX
12666         compiler_flags=-v
12667         linker_flags=-v
12668         verstring=
12669         output_objdir=.
12670         libname=conftest
12671         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12672         allow_undefined_flag_CXX=
12673         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12674   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }
12678         then
12679           archive_cmds_need_lc_CXX=no
12680         else
12681           archive_cmds_need_lc_CXX=yes
12682         fi
12683         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12684       else
12685         cat conftest.err 1>&5
12686       fi
12687       $rm conftest*
12688       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12689 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12690       ;;
12691     esac
12692   fi
12693   ;;
12694 esac
12695
12696 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12697 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12698 library_names_spec=
12699 libname_spec='lib$name'
12700 soname_spec=
12701 shrext_cmds=".so"
12702 postinstall_cmds=
12703 postuninstall_cmds=
12704 finish_cmds=
12705 finish_eval=
12706 shlibpath_var=
12707 shlibpath_overrides_runpath=unknown
12708 version_type=none
12709 dynamic_linker="$host_os ld.so"
12710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12711 if test "$GCC" = yes; then
12712   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12713   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12714     # if the path contains ";" then we assume it to be the separator
12715     # otherwise default to the standard path separator (i.e. ":") - it is
12716     # assumed that no part of a normal pathname contains ";" but that should
12717     # okay in the real world where ";" in dirpaths is itself problematic.
12718     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12719   else
12720     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12721   fi
12722 else
12723   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12724 fi
12725 need_lib_prefix=unknown
12726 hardcode_into_libs=no
12727
12728 # when you set need_version to no, make sure it does not cause -set_version
12729 # flags to be left without arguments
12730 need_version=unknown
12731
12732 case $host_os in
12733 aix3*)
12734   version_type=linux
12735   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12736   shlibpath_var=LIBPATH
12737
12738   # AIX 3 has no versioning support, so we append a major version to the name.
12739   soname_spec='${libname}${release}${shared_ext}$major'
12740   ;;
12741
12742 aix4* | aix5*)
12743   version_type=linux
12744   need_lib_prefix=no
12745   need_version=no
12746   hardcode_into_libs=yes
12747   if test "$host_cpu" = ia64; then
12748     # AIX 5 supports IA64
12749     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12750     shlibpath_var=LD_LIBRARY_PATH
12751   else
12752     # With GCC up to 2.95.x, collect2 would create an import file
12753     # for dependence libraries.  The import file would start with
12754     # the line `#! .'.  This would cause the generated library to
12755     # depend on `.', always an invalid library.  This was fixed in
12756     # development snapshots of GCC prior to 3.0.
12757     case $host_os in
12758       aix4 | aix4.[01] | aix4.[01].*)
12759       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12760            echo ' yes '
12761            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12762         :
12763       else
12764         can_build_shared=no
12765       fi
12766       ;;
12767     esac
12768     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12769     # soname into executable. Probably we can add versioning support to
12770     # collect2, so additional links can be useful in future.
12771     if test "$aix_use_runtimelinking" = yes; then
12772       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12773       # instead of lib<name>.a to let people know that these are not
12774       # typical AIX shared libraries.
12775       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776     else
12777       # We preserve .a as extension for shared libraries through AIX4.2
12778       # and later when we are not doing run time linking.
12779       library_names_spec='${libname}${release}.a $libname.a'
12780       soname_spec='${libname}${release}${shared_ext}$major'
12781     fi
12782     shlibpath_var=LIBPATH
12783   fi
12784   ;;
12785
12786 amigaos*)
12787   library_names_spec='$libname.ixlibrary $libname.a'
12788   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12789   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12790   ;;
12791
12792 beos*)
12793   library_names_spec='${libname}${shared_ext}'
12794   dynamic_linker="$host_os ld.so"
12795   shlibpath_var=LIBRARY_PATH
12796   ;;
12797
12798 bsdi[45]*)
12799   version_type=linux
12800   need_version=no
12801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802   soname_spec='${libname}${release}${shared_ext}$major'
12803   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12804   shlibpath_var=LD_LIBRARY_PATH
12805   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12806   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12807   # the default ld.so.conf also contains /usr/contrib/lib and
12808   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12809   # libtool to hard-code these into programs
12810   ;;
12811
12812 cygwin* | mingw* | pw32*)
12813   version_type=windows
12814   shrext_cmds=".dll"
12815   need_version=no
12816   need_lib_prefix=no
12817
12818   case $GCC,$host_os in
12819   yes,cygwin* | yes,mingw* | yes,pw32*)
12820     library_names_spec='$libname.dll.a'
12821     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12822     postinstall_cmds='base_file=`basename \${file}`~
12823       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12824       dldir=$destdir/`dirname \$dlpath`~
12825       test -d \$dldir || mkdir -p \$dldir~
12826       $install_prog $dir/$dlname \$dldir/$dlname~
12827       chmod a+x \$dldir/$dlname'
12828     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12829       dlpath=$dir/\$dldll~
12830        $rm \$dlpath'
12831     shlibpath_overrides_runpath=yes
12832
12833     case $host_os in
12834     cygwin*)
12835       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12836       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12837       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12838       ;;
12839     mingw*)
12840       # MinGW DLLs use traditional 'lib' prefix
12841       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12842       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12843       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12844         # It is most probably a Windows format PATH printed by
12845         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12846         # path with ; separators, and with drive letters. We can handle the
12847         # drive letters (cygwin fileutils understands them), so leave them,
12848         # especially as we might pass files found there to a mingw objdump,
12849         # which wouldn't understand a cygwinified path. Ahh.
12850         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12851       else
12852         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12853       fi
12854       ;;
12855     pw32*)
12856       # pw32 DLLs use 'pw' prefix rather than 'lib'
12857       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12858       ;;
12859     esac
12860     ;;
12861
12862   *)
12863     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12864     ;;
12865   esac
12866   dynamic_linker='Win32 ld.exe'
12867   # FIXME: first we should search . and the directory the executable is in
12868   shlibpath_var=PATH
12869   ;;
12870
12871 darwin* | rhapsody*)
12872   dynamic_linker="$host_os dyld"
12873   version_type=darwin
12874   need_lib_prefix=no
12875   need_version=no
12876   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12877   soname_spec='${libname}${release}${major}$shared_ext'
12878   shlibpath_overrides_runpath=yes
12879   shlibpath_var=DYLD_LIBRARY_PATH
12880   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12881   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12882   if test "$GCC" = yes; then
12883     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12884   else
12885     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12886   fi
12887   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12888   ;;
12889
12890 dgux*)
12891   version_type=linux
12892   need_lib_prefix=no
12893   need_version=no
12894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12895   soname_spec='${libname}${release}${shared_ext}$major'
12896   shlibpath_var=LD_LIBRARY_PATH
12897   ;;
12898
12899 freebsd1*)
12900   dynamic_linker=no
12901   ;;
12902
12903 kfreebsd*-gnu)
12904   version_type=linux
12905   need_lib_prefix=no
12906   need_version=no
12907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12908   soname_spec='${libname}${release}${shared_ext}$major'
12909   shlibpath_var=LD_LIBRARY_PATH
12910   shlibpath_overrides_runpath=no
12911   hardcode_into_libs=yes
12912   dynamic_linker='GNU ld.so'
12913   ;;
12914
12915 freebsd* | dragonfly*)
12916   # DragonFly does not have aout.  When/if they implement a new
12917   # versioning mechanism, adjust this.
12918   if test -x /usr/bin/objformat; then
12919     objformat=`/usr/bin/objformat`
12920   else
12921     case $host_os in
12922     freebsd[123]*) objformat=aout ;;
12923     *) objformat=elf ;;
12924     esac
12925   fi
12926   version_type=freebsd-$objformat
12927   case $version_type in
12928     freebsd-elf*)
12929       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12930       need_version=no
12931       need_lib_prefix=no
12932       ;;
12933     freebsd-*)
12934       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12935       need_version=yes
12936       ;;
12937   esac
12938   shlibpath_var=LD_LIBRARY_PATH
12939   case $host_os in
12940   freebsd2*)
12941     shlibpath_overrides_runpath=yes
12942     ;;
12943   freebsd3.[01]* | freebsdelf3.[01]*)
12944     shlibpath_overrides_runpath=yes
12945     hardcode_into_libs=yes
12946     ;;
12947   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12948   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12949     shlibpath_overrides_runpath=no
12950     hardcode_into_libs=yes
12951     ;;
12952   freebsd*) # from 4.6 on
12953     shlibpath_overrides_runpath=yes
12954     hardcode_into_libs=yes
12955     ;;
12956   esac
12957   ;;
12958
12959 gnu*)
12960   version_type=linux
12961   need_lib_prefix=no
12962   need_version=no
12963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12964   soname_spec='${libname}${release}${shared_ext}$major'
12965   shlibpath_var=LD_LIBRARY_PATH
12966   hardcode_into_libs=yes
12967   ;;
12968
12969 hpux9* | hpux10* | hpux11*)
12970   # Give a soname corresponding to the major version so that dld.sl refuses to
12971   # link against other versions.
12972   version_type=sunos
12973   need_lib_prefix=no
12974   need_version=no
12975   case $host_cpu in
12976   ia64*)
12977     shrext_cmds='.so'
12978     hardcode_into_libs=yes
12979     dynamic_linker="$host_os dld.so"
12980     shlibpath_var=LD_LIBRARY_PATH
12981     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12983     soname_spec='${libname}${release}${shared_ext}$major'
12984     if test "X$HPUX_IA64_MODE" = X32; then
12985       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12986     else
12987       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12988     fi
12989     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12990     ;;
12991    hppa*64*)
12992      shrext_cmds='.sl'
12993      hardcode_into_libs=yes
12994      dynamic_linker="$host_os dld.sl"
12995      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12996      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998      soname_spec='${libname}${release}${shared_ext}$major'
12999      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13000      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13001      ;;
13002    *)
13003     shrext_cmds='.sl'
13004     dynamic_linker="$host_os dld.sl"
13005     shlibpath_var=SHLIB_PATH
13006     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13008     soname_spec='${libname}${release}${shared_ext}$major'
13009     ;;
13010   esac
13011   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13012   postinstall_cmds='chmod 555 $lib'
13013   ;;
13014
13015 interix3*)
13016   version_type=linux
13017   need_lib_prefix=no
13018   need_version=no
13019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13020   soname_spec='${libname}${release}${shared_ext}$major'
13021   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13022   shlibpath_var=LD_LIBRARY_PATH
13023   shlibpath_overrides_runpath=no
13024   hardcode_into_libs=yes
13025   ;;
13026
13027 irix5* | irix6* | nonstopux*)
13028   case $host_os in
13029     nonstopux*) version_type=nonstopux ;;
13030     *)
13031         if test "$lt_cv_prog_gnu_ld" = yes; then
13032                 version_type=linux
13033         else
13034                 version_type=irix
13035         fi ;;
13036   esac
13037   need_lib_prefix=no
13038   need_version=no
13039   soname_spec='${libname}${release}${shared_ext}$major'
13040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13041   case $host_os in
13042   irix5* | nonstopux*)
13043     libsuff= shlibsuff=
13044     ;;
13045   *)
13046     case $LD in # libtool.m4 will add one of these switches to LD
13047     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13048       libsuff= shlibsuff= libmagic=32-bit;;
13049     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13050       libsuff=32 shlibsuff=N32 libmagic=N32;;
13051     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13052       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13053     *) libsuff= shlibsuff= libmagic=never-match;;
13054     esac
13055     ;;
13056   esac
13057   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13058   shlibpath_overrides_runpath=no
13059   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13060   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13061   hardcode_into_libs=yes
13062   ;;
13063
13064 # No shared lib support for Linux oldld, aout, or coff.
13065 linux*oldld* | linux*aout* | linux*coff*)
13066   dynamic_linker=no
13067   ;;
13068
13069 # This must be Linux ELF.
13070 linux*)
13071   version_type=linux
13072   need_lib_prefix=no
13073   need_version=no
13074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13075   soname_spec='${libname}${release}${shared_ext}$major'
13076   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13077   shlibpath_var=LD_LIBRARY_PATH
13078   shlibpath_overrides_runpath=no
13079   # This implies no fast_install, which is unacceptable.
13080   # Some rework will be needed to allow for fast_install
13081   # before this can be enabled.
13082   hardcode_into_libs=yes
13083
13084   # Append ld.so.conf contents to the search path
13085   if test -f /etc/ld.so.conf; then
13086     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13087     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13088   fi
13089
13090   # We used to test for /lib/ld.so.1 and disable shared libraries on
13091   # powerpc, because MkLinux only supported shared libraries with the
13092   # GNU dynamic linker.  Since this was broken with cross compilers,
13093   # most powerpc-linux boxes support dynamic linking these days and
13094   # people can always --disable-shared, the test was removed, and we
13095   # assume the GNU/Linux dynamic linker is in use.
13096   dynamic_linker='GNU/Linux ld.so'
13097   ;;
13098
13099 knetbsd*-gnu)
13100   version_type=linux
13101   need_lib_prefix=no
13102   need_version=no
13103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13104   soname_spec='${libname}${release}${shared_ext}$major'
13105   shlibpath_var=LD_LIBRARY_PATH
13106   shlibpath_overrides_runpath=no
13107   hardcode_into_libs=yes
13108   dynamic_linker='GNU ld.so'
13109   ;;
13110
13111 netbsd*)
13112   version_type=sunos
13113   need_lib_prefix=no
13114   need_version=no
13115   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13117     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13118     dynamic_linker='NetBSD (a.out) ld.so'
13119   else
13120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13121     soname_spec='${libname}${release}${shared_ext}$major'
13122     dynamic_linker='NetBSD ld.elf_so'
13123   fi
13124   shlibpath_var=LD_LIBRARY_PATH
13125   shlibpath_overrides_runpath=yes
13126   hardcode_into_libs=yes
13127   ;;
13128
13129 newsos6)
13130   version_type=linux
13131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132   shlibpath_var=LD_LIBRARY_PATH
13133   shlibpath_overrides_runpath=yes
13134   ;;
13135
13136 nto-qnx*)
13137   version_type=linux
13138   need_lib_prefix=no
13139   need_version=no
13140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141   soname_spec='${libname}${release}${shared_ext}$major'
13142   shlibpath_var=LD_LIBRARY_PATH
13143   shlibpath_overrides_runpath=yes
13144   ;;
13145
13146 openbsd*)
13147   version_type=sunos
13148   sys_lib_dlsearch_path_spec="/usr/lib"
13149   need_lib_prefix=no
13150   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13151   case $host_os in
13152     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13153     *)                         need_version=no  ;;
13154   esac
13155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13156   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13157   shlibpath_var=LD_LIBRARY_PATH
13158   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13159     case $host_os in
13160       openbsd2.[89] | openbsd2.[89].*)
13161         shlibpath_overrides_runpath=no
13162         ;;
13163       *)
13164         shlibpath_overrides_runpath=yes
13165         ;;
13166       esac
13167   else
13168     shlibpath_overrides_runpath=yes
13169   fi
13170   ;;
13171
13172 os2*)
13173   libname_spec='$name'
13174   shrext_cmds=".dll"
13175   need_lib_prefix=no
13176   library_names_spec='$libname${shared_ext} $libname.a'
13177   dynamic_linker='OS/2 ld.exe'
13178   shlibpath_var=LIBPATH
13179   ;;
13180
13181 osf3* | osf4* | osf5*)
13182   version_type=osf
13183   need_lib_prefix=no
13184   need_version=no
13185   soname_spec='${libname}${release}${shared_ext}$major'
13186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187   shlibpath_var=LD_LIBRARY_PATH
13188   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13189   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13190   ;;
13191
13192 solaris*)
13193   version_type=linux
13194   need_lib_prefix=no
13195   need_version=no
13196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197   soname_spec='${libname}${release}${shared_ext}$major'
13198   shlibpath_var=LD_LIBRARY_PATH
13199   shlibpath_overrides_runpath=yes
13200   hardcode_into_libs=yes
13201   # ldd complains unless libraries are executable
13202   postinstall_cmds='chmod +x $lib'
13203   ;;
13204
13205 sunos4*)
13206   version_type=sunos
13207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13208   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13209   shlibpath_var=LD_LIBRARY_PATH
13210   shlibpath_overrides_runpath=yes
13211   if test "$with_gnu_ld" = yes; then
13212     need_lib_prefix=no
13213   fi
13214   need_version=yes
13215   ;;
13216
13217 sysv4 | sysv4.3*)
13218   version_type=linux
13219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220   soname_spec='${libname}${release}${shared_ext}$major'
13221   shlibpath_var=LD_LIBRARY_PATH
13222   case $host_vendor in
13223     sni)
13224       shlibpath_overrides_runpath=no
13225       need_lib_prefix=no
13226       export_dynamic_flag_spec='${wl}-Blargedynsym'
13227       runpath_var=LD_RUN_PATH
13228       ;;
13229     siemens)
13230       need_lib_prefix=no
13231       ;;
13232     motorola)
13233       need_lib_prefix=no
13234       need_version=no
13235       shlibpath_overrides_runpath=no
13236       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13237       ;;
13238   esac
13239   ;;
13240
13241 sysv4*MP*)
13242   if test -d /usr/nec ;then
13243     version_type=linux
13244     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13245     soname_spec='$libname${shared_ext}.$major'
13246     shlibpath_var=LD_LIBRARY_PATH
13247   fi
13248   ;;
13249
13250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13251   version_type=freebsd-elf
13252   need_lib_prefix=no
13253   need_version=no
13254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13255   soname_spec='${libname}${release}${shared_ext}$major'
13256   shlibpath_var=LD_LIBRARY_PATH
13257   hardcode_into_libs=yes
13258   if test "$with_gnu_ld" = yes; then
13259     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13260     shlibpath_overrides_runpath=no
13261   else
13262     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13263     shlibpath_overrides_runpath=yes
13264     case $host_os in
13265       sco3.2v5*)
13266         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13267         ;;
13268     esac
13269   fi
13270   sys_lib_dlsearch_path_spec='/usr/lib'
13271   ;;
13272
13273 uts4*)
13274   version_type=linux
13275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276   soname_spec='${libname}${release}${shared_ext}$major'
13277   shlibpath_var=LD_LIBRARY_PATH
13278   ;;
13279
13280 *)
13281   dynamic_linker=no
13282   ;;
13283 esac
13284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13285 echo "${ECHO_T}$dynamic_linker" >&6; }
13286 test "$dynamic_linker" = no && can_build_shared=no
13287
13288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13289 if test "$GCC" = yes; then
13290   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13291 fi
13292
13293 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13294 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13295 hardcode_action_CXX=
13296 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13297    test -n "$runpath_var_CXX" || \
13298    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13299
13300   # We can hardcode non-existant directories.
13301   if test "$hardcode_direct_CXX" != no &&
13302      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13303      # have to relink, otherwise we might link with an installed library
13304      # when we should be linking with a yet-to-be-installed one
13305      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13306      test "$hardcode_minus_L_CXX" != no; then
13307     # Linking always hardcodes the temporary library directory.
13308     hardcode_action_CXX=relink
13309   else
13310     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13311     hardcode_action_CXX=immediate
13312   fi
13313 else
13314   # We cannot hardcode anything, or else we can only hardcode existing
13315   # directories.
13316   hardcode_action_CXX=unsupported
13317 fi
13318 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13319 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13320
13321 if test "$hardcode_action_CXX" = relink; then
13322   # Fast installation is not supported
13323   enable_fast_install=no
13324 elif test "$shlibpath_overrides_runpath" = yes ||
13325      test "$enable_shared" = no; then
13326   # Fast installation is not necessary
13327   enable_fast_install=needless
13328 fi
13329
13330
13331 # The else clause should only fire when bootstrapping the
13332 # libtool distribution, otherwise you forgot to ship ltmain.sh
13333 # with your package, and you will get complaints that there are
13334 # no rules to generate ltmain.sh.
13335 if test -f "$ltmain"; then
13336   # See if we are running on zsh, and set the options which allow our commands through
13337   # without removal of \ escapes.
13338   if test -n "${ZSH_VERSION+set}" ; then
13339     setopt NO_GLOB_SUBST
13340   fi
13341   # Now quote all the things that may contain metacharacters while being
13342   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13343   # variables and quote the copies for generation of the libtool script.
13344   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13345     SED SHELL STRIP \
13346     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13347     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13348     deplibs_check_method reload_flag reload_cmds need_locks \
13349     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13350     lt_cv_sys_global_symbol_to_c_name_address \
13351     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13352     old_postinstall_cmds old_postuninstall_cmds \
13353     compiler_CXX \
13354     CC_CXX \
13355     LD_CXX \
13356     lt_prog_compiler_wl_CXX \
13357     lt_prog_compiler_pic_CXX \
13358     lt_prog_compiler_static_CXX \
13359     lt_prog_compiler_no_builtin_flag_CXX \
13360     export_dynamic_flag_spec_CXX \
13361     thread_safe_flag_spec_CXX \
13362     whole_archive_flag_spec_CXX \
13363     enable_shared_with_static_runtimes_CXX \
13364     old_archive_cmds_CXX \
13365     old_archive_from_new_cmds_CXX \
13366     predep_objects_CXX \
13367     postdep_objects_CXX \
13368     predeps_CXX \
13369     postdeps_CXX \
13370     compiler_lib_search_path_CXX \
13371     archive_cmds_CXX \
13372     archive_expsym_cmds_CXX \
13373     postinstall_cmds_CXX \
13374     postuninstall_cmds_CXX \
13375     old_archive_from_expsyms_cmds_CXX \
13376     allow_undefined_flag_CXX \
13377     no_undefined_flag_CXX \
13378     export_symbols_cmds_CXX \
13379     hardcode_libdir_flag_spec_CXX \
13380     hardcode_libdir_flag_spec_ld_CXX \
13381     hardcode_libdir_separator_CXX \
13382     hardcode_automatic_CXX \
13383     module_cmds_CXX \
13384     module_expsym_cmds_CXX \
13385     lt_cv_prog_compiler_c_o_CXX \
13386     exclude_expsyms_CXX \
13387     include_expsyms_CXX; do
13388
13389     case $var in
13390     old_archive_cmds_CXX | \
13391     old_archive_from_new_cmds_CXX | \
13392     archive_cmds_CXX | \
13393     archive_expsym_cmds_CXX | \
13394     module_cmds_CXX | \
13395     module_expsym_cmds_CXX | \
13396     old_archive_from_expsyms_cmds_CXX | \
13397     export_symbols_cmds_CXX | \
13398     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13399     postinstall_cmds | postuninstall_cmds | \
13400     old_postinstall_cmds | old_postuninstall_cmds | \
13401     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13402       # Double-quote double-evaled strings.
13403       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13404       ;;
13405     *)
13406       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13407       ;;
13408     esac
13409   done
13410
13411   case $lt_echo in
13412   *'\$0 --fallback-echo"')
13413     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13414     ;;
13415   esac
13416
13417 cfgfile="$ofile"
13418
13419   cat <<__EOF__ >> "$cfgfile"
13420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13421
13422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13423
13424 # Shell to use when invoking shell scripts.
13425 SHELL=$lt_SHELL
13426
13427 # Whether or not to build shared libraries.
13428 build_libtool_libs=$enable_shared
13429
13430 # Whether or not to build static libraries.
13431 build_old_libs=$enable_static
13432
13433 # Whether or not to add -lc for building shared libraries.
13434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13435
13436 # Whether or not to disallow shared libs when runtime libs are static
13437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13438
13439 # Whether or not to optimize for fast installation.
13440 fast_install=$enable_fast_install
13441
13442 # The host system.
13443 host_alias=$host_alias
13444 host=$host
13445 host_os=$host_os
13446
13447 # The build system.
13448 build_alias=$build_alias
13449 build=$build
13450 build_os=$build_os
13451
13452 # An echo program that does not interpret backslashes.
13453 echo=$lt_echo
13454
13455 # The archiver.
13456 AR=$lt_AR
13457 AR_FLAGS=$lt_AR_FLAGS
13458
13459 # A C compiler.
13460 LTCC=$lt_LTCC
13461
13462 # LTCC compiler flags.
13463 LTCFLAGS=$lt_LTCFLAGS
13464
13465 # A language-specific compiler.
13466 CC=$lt_compiler_CXX
13467
13468 # Is the compiler the GNU C compiler?
13469 with_gcc=$GCC_CXX
13470
13471 # An ERE matcher.
13472 EGREP=$lt_EGREP
13473
13474 # The linker used to build libraries.
13475 LD=$lt_LD_CXX
13476
13477 # Whether we need hard or soft links.
13478 LN_S=$lt_LN_S
13479
13480 # A BSD-compatible nm program.
13481 NM=$lt_NM
13482
13483 # A symbol stripping program
13484 STRIP=$lt_STRIP
13485
13486 # Used to examine libraries when file_magic_cmd begins "file"
13487 MAGIC_CMD=$MAGIC_CMD
13488
13489 # Used on cygwin: DLL creation program.
13490 DLLTOOL="$DLLTOOL"
13491
13492 # Used on cygwin: object dumper.
13493 OBJDUMP="$OBJDUMP"
13494
13495 # Used on cygwin: assembler.
13496 AS="$AS"
13497
13498 # The name of the directory that contains temporary libtool files.
13499 objdir=$objdir
13500
13501 # How to create reloadable object files.
13502 reload_flag=$lt_reload_flag
13503 reload_cmds=$lt_reload_cmds
13504
13505 # How to pass a linker flag through the compiler.
13506 wl=$lt_lt_prog_compiler_wl_CXX
13507
13508 # Object file suffix (normally "o").
13509 objext="$ac_objext"
13510
13511 # Old archive suffix (normally "a").
13512 libext="$libext"
13513
13514 # Shared library suffix (normally ".so").
13515 shrext_cmds='$shrext_cmds'
13516
13517 # Executable file suffix (normally "").
13518 exeext="$exeext"
13519
13520 # Additional compiler flags for building library objects.
13521 pic_flag=$lt_lt_prog_compiler_pic_CXX
13522 pic_mode=$pic_mode
13523
13524 # What is the maximum length of a command?
13525 max_cmd_len=$lt_cv_sys_max_cmd_len
13526
13527 # Does compiler simultaneously support -c and -o options?
13528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13529
13530 # Must we lock files when doing compilation?
13531 need_locks=$lt_need_locks
13532
13533 # Do we need the lib prefix for modules?
13534 need_lib_prefix=$need_lib_prefix
13535
13536 # Do we need a version for libraries?
13537 need_version=$need_version
13538
13539 # Whether dlopen is supported.
13540 dlopen_support=$enable_dlopen
13541
13542 # Whether dlopen of programs is supported.
13543 dlopen_self=$enable_dlopen_self
13544
13545 # Whether dlopen of statically linked programs is supported.
13546 dlopen_self_static=$enable_dlopen_self_static
13547
13548 # Compiler flag to prevent dynamic linking.
13549 link_static_flag=$lt_lt_prog_compiler_static_CXX
13550
13551 # Compiler flag to turn off builtin functions.
13552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13553
13554 # Compiler flag to allow reflexive dlopens.
13555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13556
13557 # Compiler flag to generate shared objects directly from archives.
13558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13559
13560 # Compiler flag to generate thread-safe objects.
13561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13562
13563 # Library versioning type.
13564 version_type=$version_type
13565
13566 # Format of library name prefix.
13567 libname_spec=$lt_libname_spec
13568
13569 # List of archive names.  First name is the real one, the rest are links.
13570 # The last name is the one that the linker finds with -lNAME.
13571 library_names_spec=$lt_library_names_spec
13572
13573 # The coded name of the library, if different from the real name.
13574 soname_spec=$lt_soname_spec
13575
13576 # Commands used to build and install an old-style archive.
13577 RANLIB=$lt_RANLIB
13578 old_archive_cmds=$lt_old_archive_cmds_CXX
13579 old_postinstall_cmds=$lt_old_postinstall_cmds
13580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13581
13582 # Create an old-style archive from a shared archive.
13583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13584
13585 # Create a temporary old-style archive to link instead of a shared archive.
13586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13587
13588 # Commands used to build and install a shared archive.
13589 archive_cmds=$lt_archive_cmds_CXX
13590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13591 postinstall_cmds=$lt_postinstall_cmds
13592 postuninstall_cmds=$lt_postuninstall_cmds
13593
13594 # Commands used to build a loadable module (assumed same as above if empty)
13595 module_cmds=$lt_module_cmds_CXX
13596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13597
13598 # Commands to strip libraries.
13599 old_striplib=$lt_old_striplib
13600 striplib=$lt_striplib
13601
13602 # Dependencies to place before the objects being linked to create a
13603 # shared library.
13604 predep_objects=$lt_predep_objects_CXX
13605
13606 # Dependencies to place after the objects being linked to create a
13607 # shared library.
13608 postdep_objects=$lt_postdep_objects_CXX
13609
13610 # Dependencies to place before the objects being linked to create a
13611 # shared library.
13612 predeps=$lt_predeps_CXX
13613
13614 # Dependencies to place after the objects being linked to create a
13615 # shared library.
13616 postdeps=$lt_postdeps_CXX
13617
13618 # The library search path used internally by the compiler when linking
13619 # a shared library.
13620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13621
13622 # Method to check whether dependent libraries are shared objects.
13623 deplibs_check_method=$lt_deplibs_check_method
13624
13625 # Command to use when deplibs_check_method == file_magic.
13626 file_magic_cmd=$lt_file_magic_cmd
13627
13628 # Flag that allows shared libraries with undefined symbols to be built.
13629 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13630
13631 # Flag that forces no undefined symbols.
13632 no_undefined_flag=$lt_no_undefined_flag_CXX
13633
13634 # Commands used to finish a libtool library installation in a directory.
13635 finish_cmds=$lt_finish_cmds
13636
13637 # Same as above, but a single script fragment to be evaled but not shown.
13638 finish_eval=$lt_finish_eval
13639
13640 # Take the output of nm and produce a listing of raw symbols and C names.
13641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13642
13643 # Transform the output of nm in a proper C declaration
13644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13645
13646 # Transform the output of nm in a C name address pair
13647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13648
13649 # This is the shared library runtime path variable.
13650 runpath_var=$runpath_var
13651
13652 # This is the shared library path variable.
13653 shlibpath_var=$shlibpath_var
13654
13655 # Is shlibpath searched before the hard-coded library search path?
13656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13657
13658 # How to hardcode a shared library path into an executable.
13659 hardcode_action=$hardcode_action_CXX
13660
13661 # Whether we should hardcode library paths into libraries.
13662 hardcode_into_libs=$hardcode_into_libs
13663
13664 # Flag to hardcode \$libdir into a binary during linking.
13665 # This must work even if \$libdir does not exist.
13666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13667
13668 # If ld is used when linking, flag to hardcode \$libdir into
13669 # a binary during linking. This must work even if \$libdir does
13670 # not exist.
13671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13672
13673 # Whether we need a single -rpath flag with a separated argument.
13674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13675
13676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13677 # resulting binary.
13678 hardcode_direct=$hardcode_direct_CXX
13679
13680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13681 # resulting binary.
13682 hardcode_minus_L=$hardcode_minus_L_CXX
13683
13684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13685 # the resulting binary.
13686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13687
13688 # Set to yes if building a shared library automatically hardcodes DIR into the library
13689 # and all subsequent libraries and executables linked against it.
13690 hardcode_automatic=$hardcode_automatic_CXX
13691
13692 # Variables whose values should be saved in libtool wrapper scripts and
13693 # restored at relink time.
13694 variables_saved_for_relink="$variables_saved_for_relink"
13695
13696 # Whether libtool must link a program against all its dependency libraries.
13697 link_all_deplibs=$link_all_deplibs_CXX
13698
13699 # Compile-time system search path for libraries
13700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13701
13702 # Run-time system search path for libraries
13703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13704
13705 # Fix the shell variable \$srcfile for the compiler.
13706 fix_srcfile_path="$fix_srcfile_path_CXX"
13707
13708 # Set to yes if exported symbols are required.
13709 always_export_symbols=$always_export_symbols_CXX
13710
13711 # The commands to list exported symbols.
13712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13713
13714 # The commands to extract the exported symbol list from a shared archive.
13715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13716
13717 # Symbols that should not be listed in the preloaded symbols.
13718 exclude_expsyms=$lt_exclude_expsyms_CXX
13719
13720 # Symbols that must always be exported.
13721 include_expsyms=$lt_include_expsyms_CXX
13722
13723 # ### END LIBTOOL TAG CONFIG: $tagname
13724
13725 __EOF__
13726
13727
13728 else
13729   # If there is no Makefile yet, we rely on a make rule to execute
13730   # `config.status --recheck' to rerun these tests and create the
13731   # libtool script then.
13732   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13733   if test -f "$ltmain_in"; then
13734     test -f Makefile && make "$ltmain"
13735   fi
13736 fi
13737
13738
13739 ac_ext=c
13740 ac_cpp='$CPP $CPPFLAGS'
13741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13744
13745 CC=$lt_save_CC
13746 LDCXX=$LD
13747 LD=$lt_save_LD
13748 GCC=$lt_save_GCC
13749 with_gnu_ldcxx=$with_gnu_ld
13750 with_gnu_ld=$lt_save_with_gnu_ld
13751 lt_cv_path_LDCXX=$lt_cv_path_LD
13752 lt_cv_path_LD=$lt_save_path_LD
13753 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13754 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13755
13756         else
13757           tagname=""
13758         fi
13759         ;;
13760
13761       F77)
13762         if test -n "$F77" && test "X$F77" != "Xno"; then
13763
13764 ac_ext=f
13765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13768
13769
13770 archive_cmds_need_lc_F77=no
13771 allow_undefined_flag_F77=
13772 always_export_symbols_F77=no
13773 archive_expsym_cmds_F77=
13774 export_dynamic_flag_spec_F77=
13775 hardcode_direct_F77=no
13776 hardcode_libdir_flag_spec_F77=
13777 hardcode_libdir_flag_spec_ld_F77=
13778 hardcode_libdir_separator_F77=
13779 hardcode_minus_L_F77=no
13780 hardcode_automatic_F77=no
13781 module_cmds_F77=
13782 module_expsym_cmds_F77=
13783 link_all_deplibs_F77=unknown
13784 old_archive_cmds_F77=$old_archive_cmds
13785 no_undefined_flag_F77=
13786 whole_archive_flag_spec_F77=
13787 enable_shared_with_static_runtimes_F77=no
13788
13789 # Source file extension for f77 test sources.
13790 ac_ext=f
13791
13792 # Object file extension for compiled f77 test sources.
13793 objext=o
13794 objext_F77=$objext
13795
13796 # Code to be used in simple compile tests
13797 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13798
13799 # Code to be used in simple link tests
13800 lt_simple_link_test_code="      program t\n      end\n"
13801
13802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13803
13804 # If no C compiler was specified, use CC.
13805 LTCC=${LTCC-"$CC"}
13806
13807 # If no C compiler flags were specified, use CFLAGS.
13808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13809
13810 # Allow CC to be a program name with arguments.
13811 compiler=$CC
13812
13813
13814 # save warnings/boilerplate of simple test code
13815 ac_outfile=conftest.$ac_objext
13816 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13818 _lt_compiler_boilerplate=`cat conftest.err`
13819 $rm conftest*
13820
13821 ac_outfile=conftest.$ac_objext
13822 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13824 _lt_linker_boilerplate=`cat conftest.err`
13825 $rm conftest*
13826
13827
13828 # Allow CC to be a program name with arguments.
13829 lt_save_CC="$CC"
13830 CC=${F77-"f77"}
13831 compiler=$CC
13832 compiler_F77=$CC
13833 for cc_temp in $compiler""; do
13834   case $cc_temp in
13835     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13836     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13837     \-*) ;;
13838     *) break;;
13839   esac
13840 done
13841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13842
13843
13844 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13845 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13846 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13847 echo "${ECHO_T}$can_build_shared" >&6; }
13848
13849 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13850 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13851 test "$can_build_shared" = "no" && enable_shared=no
13852
13853 # On AIX, shared libraries and static libraries use the same namespace, and
13854 # are all built from PIC.
13855 case $host_os in
13856 aix3*)
13857   test "$enable_shared" = yes && enable_static=no
13858   if test -n "$RANLIB"; then
13859     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13860     postinstall_cmds='$RANLIB $lib'
13861   fi
13862   ;;
13863 aix4* | aix5*)
13864   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13865     test "$enable_shared" = yes && enable_static=no
13866   fi
13867   ;;
13868 esac
13869 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13870 echo "${ECHO_T}$enable_shared" >&6; }
13871
13872 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13873 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13874 # Make sure either enable_shared or enable_static is yes.
13875 test "$enable_shared" = yes || enable_static=yes
13876 { echo "$as_me:$LINENO: result: $enable_static" >&5
13877 echo "${ECHO_T}$enable_static" >&6; }
13878
13879 GCC_F77="$G77"
13880 LD_F77="$LD"
13881
13882 lt_prog_compiler_wl_F77=
13883 lt_prog_compiler_pic_F77=
13884 lt_prog_compiler_static_F77=
13885
13886 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13887 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13888
13889   if test "$GCC" = yes; then
13890     lt_prog_compiler_wl_F77='-Wl,'
13891     lt_prog_compiler_static_F77='-static'
13892
13893     case $host_os in
13894       aix*)
13895       # All AIX code is PIC.
13896       if test "$host_cpu" = ia64; then
13897         # AIX 5 now supports IA64 processor
13898         lt_prog_compiler_static_F77='-Bstatic'
13899       fi
13900       ;;
13901
13902     amigaos*)
13903       # FIXME: we need at least 68020 code to build shared libraries, but
13904       # adding the `-m68020' flag to GCC prevents building anything better,
13905       # like `-m68040'.
13906       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13907       ;;
13908
13909     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13910       # PIC is the default for these OSes.
13911       ;;
13912
13913     mingw* | pw32* | os2*)
13914       # This hack is so that the source file can tell whether it is being
13915       # built for inclusion in a dll (and should export symbols for example).
13916       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13917       ;;
13918
13919     darwin* | rhapsody*)
13920       # PIC is the default on this platform
13921       # Common symbols not allowed in MH_DYLIB files
13922       lt_prog_compiler_pic_F77='-fno-common'
13923       ;;
13924
13925     interix3*)
13926       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13927       # Instead, we relocate shared libraries at runtime.
13928       ;;
13929
13930     msdosdjgpp*)
13931       # Just because we use GCC doesn't mean we suddenly get shared libraries
13932       # on systems that don't support them.
13933       lt_prog_compiler_can_build_shared_F77=no
13934       enable_shared=no
13935       ;;
13936
13937     sysv4*MP*)
13938       if test -d /usr/nec; then
13939         lt_prog_compiler_pic_F77=-Kconform_pic
13940       fi
13941       ;;
13942
13943     hpux*)
13944       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13945       # not for PA HP-UX.
13946       case $host_cpu in
13947       hppa*64*|ia64*)
13948         # +Z the default
13949         ;;
13950       *)
13951         lt_prog_compiler_pic_F77='-fPIC'
13952         ;;
13953       esac
13954       ;;
13955
13956     *)
13957       lt_prog_compiler_pic_F77='-fPIC'
13958       ;;
13959     esac
13960   else
13961     # PORTME Check for flag to pass linker flags through the system compiler.
13962     case $host_os in
13963     aix*)
13964       lt_prog_compiler_wl_F77='-Wl,'
13965       if test "$host_cpu" = ia64; then
13966         # AIX 5 now supports IA64 processor
13967         lt_prog_compiler_static_F77='-Bstatic'
13968       else
13969         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13970       fi
13971       ;;
13972       darwin*)
13973         # PIC is the default on this platform
13974         # Common symbols not allowed in MH_DYLIB files
13975        case $cc_basename in
13976          xlc*)
13977          lt_prog_compiler_pic_F77='-qnocommon'
13978          lt_prog_compiler_wl_F77='-Wl,'
13979          ;;
13980        esac
13981        ;;
13982
13983     mingw* | pw32* | os2*)
13984       # This hack is so that the source file can tell whether it is being
13985       # built for inclusion in a dll (and should export symbols for example).
13986       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13987       ;;
13988
13989     hpux9* | hpux10* | hpux11*)
13990       lt_prog_compiler_wl_F77='-Wl,'
13991       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13992       # not for PA HP-UX.
13993       case $host_cpu in
13994       hppa*64*|ia64*)
13995         # +Z the default
13996         ;;
13997       *)
13998         lt_prog_compiler_pic_F77='+Z'
13999         ;;
14000       esac
14001       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14002       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14003       ;;
14004
14005     irix5* | irix6* | nonstopux*)
14006       lt_prog_compiler_wl_F77='-Wl,'
14007       # PIC (with -KPIC) is the default.
14008       lt_prog_compiler_static_F77='-non_shared'
14009       ;;
14010
14011     newsos6)
14012       lt_prog_compiler_pic_F77='-KPIC'
14013       lt_prog_compiler_static_F77='-Bstatic'
14014       ;;
14015
14016     linux*)
14017       case $cc_basename in
14018       icc* | ecc*)
14019         lt_prog_compiler_wl_F77='-Wl,'
14020         lt_prog_compiler_pic_F77='-KPIC'
14021         lt_prog_compiler_static_F77='-static'
14022         ;;
14023       pgcc* | pgf77* | pgf90* | pgf95*)
14024         # Portland Group compilers (*not* the Pentium gcc compiler,
14025         # which looks to be a dead project)
14026         lt_prog_compiler_wl_F77='-Wl,'
14027         lt_prog_compiler_pic_F77='-fpic'
14028         lt_prog_compiler_static_F77='-Bstatic'
14029         ;;
14030       ccc*)
14031         lt_prog_compiler_wl_F77='-Wl,'
14032         # All Alpha code is PIC.
14033         lt_prog_compiler_static_F77='-non_shared'
14034         ;;
14035       esac
14036       ;;
14037
14038     osf3* | osf4* | osf5*)
14039       lt_prog_compiler_wl_F77='-Wl,'
14040       # All OSF/1 code is PIC.
14041       lt_prog_compiler_static_F77='-non_shared'
14042       ;;
14043
14044     solaris*)
14045       lt_prog_compiler_pic_F77='-KPIC'
14046       lt_prog_compiler_static_F77='-Bstatic'
14047       case $cc_basename in
14048       f77* | f90* | f95*)
14049         lt_prog_compiler_wl_F77='-Qoption ld ';;
14050       *)
14051         lt_prog_compiler_wl_F77='-Wl,';;
14052       esac
14053       ;;
14054
14055     sunos4*)
14056       lt_prog_compiler_wl_F77='-Qoption ld '
14057       lt_prog_compiler_pic_F77='-PIC'
14058       lt_prog_compiler_static_F77='-Bstatic'
14059       ;;
14060
14061     sysv4 | sysv4.2uw2* | sysv4.3*)
14062       lt_prog_compiler_wl_F77='-Wl,'
14063       lt_prog_compiler_pic_F77='-KPIC'
14064       lt_prog_compiler_static_F77='-Bstatic'
14065       ;;
14066
14067     sysv4*MP*)
14068       if test -d /usr/nec ;then
14069         lt_prog_compiler_pic_F77='-Kconform_pic'
14070         lt_prog_compiler_static_F77='-Bstatic'
14071       fi
14072       ;;
14073
14074     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14075       lt_prog_compiler_wl_F77='-Wl,'
14076       lt_prog_compiler_pic_F77='-KPIC'
14077       lt_prog_compiler_static_F77='-Bstatic'
14078       ;;
14079
14080     unicos*)
14081       lt_prog_compiler_wl_F77='-Wl,'
14082       lt_prog_compiler_can_build_shared_F77=no
14083       ;;
14084
14085     uts4*)
14086       lt_prog_compiler_pic_F77='-pic'
14087       lt_prog_compiler_static_F77='-Bstatic'
14088       ;;
14089
14090     *)
14091       lt_prog_compiler_can_build_shared_F77=no
14092       ;;
14093     esac
14094   fi
14095
14096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14097 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14098
14099 #
14100 # Check to make sure the PIC flag actually works.
14101 #
14102 if test -n "$lt_prog_compiler_pic_F77"; then
14103
14104 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14106 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14107   echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109   lt_prog_compiler_pic_works_F77=no
14110   ac_outfile=conftest.$ac_objext
14111    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14112    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14113    # Insert the option either (1) after the last *FLAGS variable, or
14114    # (2) before a word containing "conftest.", or (3) at the end.
14115    # Note that $ac_compile itself does not contain backslashes and begins
14116    # with a dollar sign (not a hyphen), so the echo should work correctly.
14117    # The option is referenced via a variable to avoid confusing sed.
14118    lt_compile=`echo "$ac_compile" | $SED \
14119    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14121    -e 's:$: $lt_compiler_flag:'`
14122    (eval echo "\"\$as_me:14122: $lt_compile\"" >&5)
14123    (eval "$lt_compile" 2>conftest.err)
14124    ac_status=$?
14125    cat conftest.err >&5
14126    echo "$as_me:14126: \$? = $ac_status" >&5
14127    if (exit $ac_status) && test -s "$ac_outfile"; then
14128      # The compiler can only warn and ignore the option if not recognized
14129      # So say no if there are warnings other than the usual output.
14130      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14131      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14132      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14133        lt_prog_compiler_pic_works_F77=yes
14134      fi
14135    fi
14136    $rm conftest*
14137
14138 fi
14139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14140 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14141
14142 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14143     case $lt_prog_compiler_pic_F77 in
14144      "" | " "*) ;;
14145      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14146      esac
14147 else
14148     lt_prog_compiler_pic_F77=
14149      lt_prog_compiler_can_build_shared_F77=no
14150 fi
14151
14152 fi
14153 case $host_os in
14154   # For platforms which do not support PIC, -DPIC is meaningless:
14155   *djgpp*)
14156     lt_prog_compiler_pic_F77=
14157     ;;
14158   *)
14159     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14160     ;;
14161 esac
14162
14163 #
14164 # Check to make sure the static flag actually works.
14165 #
14166 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14167 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14168 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14169 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14170   echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172   lt_prog_compiler_static_works_F77=no
14173    save_LDFLAGS="$LDFLAGS"
14174    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14175    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14176    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14177      # The linker can only warn and ignore the option if not recognized
14178      # So say no if there are warnings
14179      if test -s conftest.err; then
14180        # Append any errors to the config.log.
14181        cat conftest.err 1>&5
14182        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14183        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14184        if diff conftest.exp conftest.er2 >/dev/null; then
14185          lt_prog_compiler_static_works_F77=yes
14186        fi
14187      else
14188        lt_prog_compiler_static_works_F77=yes
14189      fi
14190    fi
14191    $rm conftest*
14192    LDFLAGS="$save_LDFLAGS"
14193
14194 fi
14195 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14196 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14197
14198 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14199     :
14200 else
14201     lt_prog_compiler_static_F77=
14202 fi
14203
14204
14205 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14207 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   lt_cv_prog_compiler_c_o_F77=no
14211    $rm -r conftest 2>/dev/null
14212    mkdir conftest
14213    cd conftest
14214    mkdir out
14215    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14216
14217    lt_compiler_flag="-o out/conftest2.$ac_objext"
14218    # Insert the option either (1) after the last *FLAGS variable, or
14219    # (2) before a word containing "conftest.", or (3) at the end.
14220    # Note that $ac_compile itself does not contain backslashes and begins
14221    # with a dollar sign (not a hyphen), so the echo should work correctly.
14222    lt_compile=`echo "$ac_compile" | $SED \
14223    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14225    -e 's:$: $lt_compiler_flag:'`
14226    (eval echo "\"\$as_me:14226: $lt_compile\"" >&5)
14227    (eval "$lt_compile" 2>out/conftest.err)
14228    ac_status=$?
14229    cat out/conftest.err >&5
14230    echo "$as_me:14230: \$? = $ac_status" >&5
14231    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14232    then
14233      # The compiler can only warn and ignore the option if not recognized
14234      # So say no if there are warnings
14235      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14236      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14237      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14238        lt_cv_prog_compiler_c_o_F77=yes
14239      fi
14240    fi
14241    chmod u+w . 2>&5
14242    $rm conftest*
14243    # SGI C++ compiler will create directory out/ii_files/ for
14244    # template instantiation
14245    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14246    $rm out/* && rmdir out
14247    cd ..
14248    rmdir conftest
14249    $rm conftest*
14250
14251 fi
14252 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14254
14255
14256 hard_links="nottested"
14257 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14258   # do not overwrite the value of need_locks provided by the user
14259   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14260 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14261   hard_links=yes
14262   $rm conftest*
14263   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14264   touch conftest.a
14265   ln conftest.a conftest.b 2>&5 || hard_links=no
14266   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14267   { echo "$as_me:$LINENO: result: $hard_links" >&5
14268 echo "${ECHO_T}$hard_links" >&6; }
14269   if test "$hard_links" = no; then
14270     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14271 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14272     need_locks=warn
14273   fi
14274 else
14275   need_locks=no
14276 fi
14277
14278 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14280
14281   runpath_var=
14282   allow_undefined_flag_F77=
14283   enable_shared_with_static_runtimes_F77=no
14284   archive_cmds_F77=
14285   archive_expsym_cmds_F77=
14286   old_archive_From_new_cmds_F77=
14287   old_archive_from_expsyms_cmds_F77=
14288   export_dynamic_flag_spec_F77=
14289   whole_archive_flag_spec_F77=
14290   thread_safe_flag_spec_F77=
14291   hardcode_libdir_flag_spec_F77=
14292   hardcode_libdir_flag_spec_ld_F77=
14293   hardcode_libdir_separator_F77=
14294   hardcode_direct_F77=no
14295   hardcode_minus_L_F77=no
14296   hardcode_shlibpath_var_F77=unsupported
14297   link_all_deplibs_F77=unknown
14298   hardcode_automatic_F77=no
14299   module_cmds_F77=
14300   module_expsym_cmds_F77=
14301   always_export_symbols_F77=no
14302   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14303   # include_expsyms should be a list of space-separated symbols to be *always*
14304   # included in the symbol list
14305   include_expsyms_F77=
14306   # exclude_expsyms can be an extended regexp of symbols to exclude
14307   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14308   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14309   # as well as any symbol that contains `d'.
14310   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14311   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14312   # platforms (ab)use it in PIC code, but their linkers get confused if
14313   # the symbol is explicitly referenced.  Since portable code cannot
14314   # rely on this symbol name, it's probably fine to never include it in
14315   # preloaded symbol tables.
14316   extract_expsyms_cmds=
14317   # Just being paranoid about ensuring that cc_basename is set.
14318   for cc_temp in $compiler""; do
14319   case $cc_temp in
14320     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14321     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14322     \-*) ;;
14323     *) break;;
14324   esac
14325 done
14326 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14327
14328   case $host_os in
14329   cygwin* | mingw* | pw32*)
14330     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14331     # When not using gcc, we currently assume that we are using
14332     # Microsoft Visual C++.
14333     if test "$GCC" != yes; then
14334       with_gnu_ld=no
14335     fi
14336     ;;
14337   interix*)
14338     # we just hope/assume this is gcc and not c89 (= MSVC++)
14339     with_gnu_ld=yes
14340     ;;
14341   openbsd*)
14342     with_gnu_ld=no
14343     ;;
14344   esac
14345
14346   ld_shlibs_F77=yes
14347   if test "$with_gnu_ld" = yes; then
14348     # If archive_cmds runs LD, not CC, wlarc should be empty
14349     wlarc='${wl}'
14350
14351     # Set some defaults for GNU ld with shared library support. These
14352     # are reset later if shared libraries are not supported. Putting them
14353     # here allows them to be overridden if necessary.
14354     runpath_var=LD_RUN_PATH
14355     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14356     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14357     # ancient GNU ld didn't support --whole-archive et. al.
14358     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14359         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14360       else
14361         whole_archive_flag_spec_F77=
14362     fi
14363     supports_anon_versioning=no
14364     case `$LD -v 2>/dev/null` in
14365       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14366       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14367       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14368       *\ 2.11.*) ;; # other 2.11 versions
14369       *) supports_anon_versioning=yes ;;
14370     esac
14371
14372     # See if GNU ld supports shared libraries.
14373     case $host_os in
14374     aix3* | aix4* | aix5*)
14375       # On AIX/PPC, the GNU linker is very broken
14376       if test "$host_cpu" != ia64; then
14377         ld_shlibs_F77=no
14378         cat <<EOF 1>&2
14379
14380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14381 *** to be unable to reliably create shared libraries on AIX.
14382 *** Therefore, libtool is disabling shared libraries support.  If you
14383 *** really care for shared libraries, you may want to modify your PATH
14384 *** so that a non-GNU linker is found, and then restart.
14385
14386 EOF
14387       fi
14388       ;;
14389
14390     amigaos*)
14391       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14392       hardcode_libdir_flag_spec_F77='-L$libdir'
14393       hardcode_minus_L_F77=yes
14394
14395       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14396       # that the semantics of dynamic libraries on AmigaOS, at least up
14397       # to version 4, is to share data among multiple programs linked
14398       # with the same dynamic library.  Since this doesn't match the
14399       # behavior of shared libraries on other platforms, we can't use
14400       # them.
14401       ld_shlibs_F77=no
14402       ;;
14403
14404     beos*)
14405       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14406         allow_undefined_flag_F77=unsupported
14407         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14408         # support --undefined.  This deserves some investigation.  FIXME
14409         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14410       else
14411         ld_shlibs_F77=no
14412       fi
14413       ;;
14414
14415     cygwin* | mingw* | pw32*)
14416       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14417       # as there is no search path for DLLs.
14418       hardcode_libdir_flag_spec_F77='-L$libdir'
14419       allow_undefined_flag_F77=unsupported
14420       always_export_symbols_F77=no
14421       enable_shared_with_static_runtimes_F77=yes
14422       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14423
14424       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14425         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14426         # If the export-symbols file already is a .def file (1st line
14427         # is EXPORTS), use it as is; otherwise, prepend...
14428         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14429           cp $export_symbols $output_objdir/$soname.def;
14430         else
14431           echo EXPORTS > $output_objdir/$soname.def;
14432           cat $export_symbols >> $output_objdir/$soname.def;
14433         fi~
14434         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14435       else
14436         ld_shlibs_F77=no
14437       fi
14438       ;;
14439
14440     interix3*)
14441       hardcode_direct_F77=no
14442       hardcode_shlibpath_var_F77=no
14443       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14444       export_dynamic_flag_spec_F77='${wl}-E'
14445       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14446       # Instead, shared libraries are loaded at an image base (0x10000000 by
14447       # default) and relocated if they conflict, which is a slow very memory
14448       # consuming and fragmenting process.  To avoid this, we pick a random,
14449       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14450       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14451       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14452       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14453       ;;
14454
14455     linux*)
14456       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14457         tmp_addflag=
14458         case $cc_basename,$host_cpu in
14459         pgcc*)                          # Portland Group C compiler
14460           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14461           tmp_addflag=' $pic_flag'
14462           ;;
14463         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14464           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14465           tmp_addflag=' $pic_flag -Mnomain' ;;
14466         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14467           tmp_addflag=' -i_dynamic' ;;
14468         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14469           tmp_addflag=' -i_dynamic -nofor_main' ;;
14470         ifc* | ifort*)                  # Intel Fortran compiler
14471           tmp_addflag=' -nofor_main' ;;
14472         esac
14473         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14474
14475         if test $supports_anon_versioning = yes; then
14476           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14477   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14478   $echo "local: *; };" >> $output_objdir/$libname.ver~
14479           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14480         fi
14481       else
14482         ld_shlibs_F77=no
14483       fi
14484       ;;
14485
14486     netbsd*)
14487       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14489         wlarc=
14490       else
14491         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14493       fi
14494       ;;
14495
14496     solaris*)
14497       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14498         ld_shlibs_F77=no
14499         cat <<EOF 1>&2
14500
14501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14502 *** create shared libraries on Solaris systems.  Therefore, libtool
14503 *** is disabling shared libraries support.  We urge you to upgrade GNU
14504 *** binutils to release 2.9.1 or newer.  Another option is to modify
14505 *** your PATH or compiler configuration so that the native linker is
14506 *** used, and then restart.
14507
14508 EOF
14509       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14510         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14511         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14512       else
14513         ld_shlibs_F77=no
14514       fi
14515       ;;
14516
14517     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14518       case `$LD -v 2>&1` in
14519         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14520         ld_shlibs_F77=no
14521         cat <<_LT_EOF 1>&2
14522
14523 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14524 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14525 *** is disabling shared libraries support.  We urge you to upgrade GNU
14526 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14527 *** your PATH or compiler configuration so that the native linker is
14528 *** used, and then restart.
14529
14530 _LT_EOF
14531         ;;
14532         *)
14533           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14535             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14536             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14537           else
14538             ld_shlibs_F77=no
14539           fi
14540         ;;
14541       esac
14542       ;;
14543
14544     sunos4*)
14545       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14546       wlarc=
14547       hardcode_direct_F77=yes
14548       hardcode_shlibpath_var_F77=no
14549       ;;
14550
14551     *)
14552       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14555       else
14556         ld_shlibs_F77=no
14557       fi
14558       ;;
14559     esac
14560
14561     if test "$ld_shlibs_F77" = no; then
14562       runpath_var=
14563       hardcode_libdir_flag_spec_F77=
14564       export_dynamic_flag_spec_F77=
14565       whole_archive_flag_spec_F77=
14566     fi
14567   else
14568     # PORTME fill in a description of your system's linker (not GNU ld)
14569     case $host_os in
14570     aix3*)
14571       allow_undefined_flag_F77=unsupported
14572       always_export_symbols_F77=yes
14573       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14574       # Note: this linker hardcodes the directories in LIBPATH if there
14575       # are no directories specified by -L.
14576       hardcode_minus_L_F77=yes
14577       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14578         # Neither direct hardcoding nor static linking is supported with a
14579         # broken collect2.
14580         hardcode_direct_F77=unsupported
14581       fi
14582       ;;
14583
14584     aix4* | aix5*)
14585       if test "$host_cpu" = ia64; then
14586         # On IA64, the linker does run time linking by default, so we don't
14587         # have to do anything special.
14588         aix_use_runtimelinking=no
14589         exp_sym_flag='-Bexport'
14590         no_entry_flag=""
14591       else
14592         # If we're using GNU nm, then we don't want the "-C" option.
14593         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14594         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14595           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14596         else
14597           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14598         fi
14599         aix_use_runtimelinking=no
14600
14601         # Test if we are trying to use run time linking or normal
14602         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14603         # need to do runtime linking.
14604         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14605           for ld_flag in $LDFLAGS; do
14606           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14607             aix_use_runtimelinking=yes
14608             break
14609           fi
14610           done
14611           ;;
14612         esac
14613
14614         exp_sym_flag='-bexport'
14615         no_entry_flag='-bnoentry'
14616       fi
14617
14618       # When large executables or shared objects are built, AIX ld can
14619       # have problems creating the table of contents.  If linking a library
14620       # or program results in "error TOC overflow" add -mminimal-toc to
14621       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14622       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14623
14624       archive_cmds_F77=''
14625       hardcode_direct_F77=yes
14626       hardcode_libdir_separator_F77=':'
14627       link_all_deplibs_F77=yes
14628
14629       if test "$GCC" = yes; then
14630         case $host_os in aix4.[012]|aix4.[012].*)
14631         # We only want to do this on AIX 4.2 and lower, the check
14632         # below for broken collect2 doesn't work under 4.3+
14633           collect2name=`${CC} -print-prog-name=collect2`
14634           if test -f "$collect2name" && \
14635            strings "$collect2name" | grep resolve_lib_name >/dev/null
14636           then
14637           # We have reworked collect2
14638           hardcode_direct_F77=yes
14639           else
14640           # We have old collect2
14641           hardcode_direct_F77=unsupported
14642           # It fails to find uninstalled libraries when the uninstalled
14643           # path is not listed in the libpath.  Setting hardcode_minus_L
14644           # to unsupported forces relinking
14645           hardcode_minus_L_F77=yes
14646           hardcode_libdir_flag_spec_F77='-L$libdir'
14647           hardcode_libdir_separator_F77=
14648           fi
14649           ;;
14650         esac
14651         shared_flag='-shared'
14652         if test "$aix_use_runtimelinking" = yes; then
14653           shared_flag="$shared_flag "'${wl}-G'
14654         fi
14655       else
14656         # not using gcc
14657         if test "$host_cpu" = ia64; then
14658         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14659         # chokes on -Wl,-G. The following line is correct:
14660           shared_flag='-G'
14661         else
14662           if test "$aix_use_runtimelinking" = yes; then
14663             shared_flag='${wl}-G'
14664           else
14665             shared_flag='${wl}-bM:SRE'
14666           fi
14667         fi
14668       fi
14669
14670       # It seems that -bexpall does not export symbols beginning with
14671       # underscore (_), so it is better to generate a list of symbols to export.
14672       always_export_symbols_F77=yes
14673       if test "$aix_use_runtimelinking" = yes; then
14674         # Warning - without using the other runtime loading flags (-brtl),
14675         # -berok will link without error, but may produce a broken library.
14676         allow_undefined_flag_F77='-berok'
14677        # Determine the default libpath from the value encoded in an empty executable.
14678        cat >conftest.$ac_ext <<_ACEOF
14679       program main
14680
14681       end
14682 _ACEOF
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (ac_try="$ac_link"
14685 case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_link") 2>conftest.er1
14691   ac_status=$?
14692   grep -v '^ *+' conftest.er1 >conftest.err
14693   rm -f conftest.er1
14694   cat conftest.err >&5
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); } && {
14697          test -z "$ac_f77_werror_flag" ||
14698          test ! -s conftest.err
14699        } && test -s conftest$ac_exeext &&
14700        $as_test_x conftest$ac_exeext; then
14701
14702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14703 }'`
14704 # Check for a 64-bit object if we didn't find anything.
14705 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14706 }'`; fi
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711
14712 fi
14713
14714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14715       conftest$ac_exeext conftest.$ac_ext
14716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14717
14718        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14719         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14720        else
14721         if test "$host_cpu" = ia64; then
14722           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14723           allow_undefined_flag_F77="-z nodefs"
14724           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14725         else
14726          # Determine the default libpath from the value encoded in an empty executable.
14727          cat >conftest.$ac_ext <<_ACEOF
14728       program main
14729
14730       end
14731 _ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_link") 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } && {
14746          test -z "$ac_f77_werror_flag" ||
14747          test ! -s conftest.err
14748        } && test -s conftest$ac_exeext &&
14749        $as_test_x conftest$ac_exeext; then
14750
14751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14752 }'`
14753 # Check for a 64-bit object if we didn't find anything.
14754 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14755 }'`; fi
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760
14761 fi
14762
14763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14764       conftest$ac_exeext conftest.$ac_ext
14765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14766
14767          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14768           # Warning - without using the other run time loading flags,
14769           # -berok will link without error, but may produce a broken library.
14770           no_undefined_flag_F77=' ${wl}-bernotok'
14771           allow_undefined_flag_F77=' ${wl}-berok'
14772           # Exported symbols can be pulled into shared objects from archives
14773           whole_archive_flag_spec_F77='$convenience'
14774           archive_cmds_need_lc_F77=yes
14775           # This is similar to how AIX traditionally builds its shared libraries.
14776           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14777         fi
14778       fi
14779       ;;
14780
14781     amigaos*)
14782       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14783       hardcode_libdir_flag_spec_F77='-L$libdir'
14784       hardcode_minus_L_F77=yes
14785       # see comment about different semantics on the GNU ld section
14786       ld_shlibs_F77=no
14787       ;;
14788
14789     bsdi[45]*)
14790       export_dynamic_flag_spec_F77=-rdynamic
14791       ;;
14792
14793     cygwin* | mingw* | pw32*)
14794       # When not using gcc, we currently assume that we are using
14795       # Microsoft Visual C++.
14796       # hardcode_libdir_flag_spec is actually meaningless, as there is
14797       # no search path for DLLs.
14798       hardcode_libdir_flag_spec_F77=' '
14799       allow_undefined_flag_F77=unsupported
14800       # Tell ltmain to make .lib files, not .a files.
14801       libext=lib
14802       # Tell ltmain to make .dll files, not .so files.
14803       shrext_cmds=".dll"
14804       # FIXME: Setting linknames here is a bad hack.
14805       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14806       # The linker will automatically build a .lib file if we build a DLL.
14807       old_archive_From_new_cmds_F77='true'
14808       # FIXME: Should let the user specify the lib program.
14809       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14810       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14811       enable_shared_with_static_runtimes_F77=yes
14812       ;;
14813
14814     darwin* | rhapsody*)
14815       case $host_os in
14816         rhapsody* | darwin1.[012])
14817          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14818          ;;
14819        *) # Darwin 1.3 on
14820          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14821            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14822          else
14823            case ${MACOSX_DEPLOYMENT_TARGET} in
14824              10.[012])
14825                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14826                ;;
14827              10.*)
14828                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14829                ;;
14830            esac
14831          fi
14832          ;;
14833       esac
14834       archive_cmds_need_lc_F77=no
14835       hardcode_direct_F77=no
14836       hardcode_automatic_F77=yes
14837       hardcode_shlibpath_var_F77=unsupported
14838       whole_archive_flag_spec_F77=''
14839       link_all_deplibs_F77=yes
14840     if test "$GCC" = yes ; then
14841         output_verbose_link_cmd='echo'
14842         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14843       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14844       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14845       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14846       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14847     else
14848       case $cc_basename in
14849         xlc*)
14850          output_verbose_link_cmd='echo'
14851          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14852          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14853           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14854          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14855           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14856           ;;
14857        *)
14858          ld_shlibs_F77=no
14859           ;;
14860       esac
14861     fi
14862       ;;
14863
14864     dgux*)
14865       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14866       hardcode_libdir_flag_spec_F77='-L$libdir'
14867       hardcode_shlibpath_var_F77=no
14868       ;;
14869
14870     freebsd1*)
14871       ld_shlibs_F77=no
14872       ;;
14873
14874     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14875     # support.  Future versions do this automatically, but an explicit c++rt0.o
14876     # does not break anything, and helps significantly (at the cost of a little
14877     # extra space).
14878     freebsd2.2*)
14879       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14880       hardcode_libdir_flag_spec_F77='-R$libdir'
14881       hardcode_direct_F77=yes
14882       hardcode_shlibpath_var_F77=no
14883       ;;
14884
14885     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14886     freebsd2*)
14887       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14888       hardcode_direct_F77=yes
14889       hardcode_minus_L_F77=yes
14890       hardcode_shlibpath_var_F77=no
14891       ;;
14892
14893     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14894     freebsd* | kfreebsd*-gnu | dragonfly*)
14895       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14896       hardcode_libdir_flag_spec_F77='-R$libdir'
14897       hardcode_direct_F77=yes
14898       hardcode_shlibpath_var_F77=no
14899       ;;
14900
14901     hpux9*)
14902       if test "$GCC" = yes; then
14903         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14904       else
14905         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14906       fi
14907       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14908       hardcode_libdir_separator_F77=:
14909       hardcode_direct_F77=yes
14910
14911       # hardcode_minus_L: Not really in the search PATH,
14912       # but as the default location of the library.
14913       hardcode_minus_L_F77=yes
14914       export_dynamic_flag_spec_F77='${wl}-E'
14915       ;;
14916
14917     hpux10*)
14918       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14919         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14920       else
14921         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14922       fi
14923       if test "$with_gnu_ld" = no; then
14924         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14925         hardcode_libdir_separator_F77=:
14926
14927         hardcode_direct_F77=yes
14928         export_dynamic_flag_spec_F77='${wl}-E'
14929
14930         # hardcode_minus_L: Not really in the search PATH,
14931         # but as the default location of the library.
14932         hardcode_minus_L_F77=yes
14933       fi
14934       ;;
14935
14936     hpux11*)
14937       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14938         case $host_cpu in
14939         hppa*64*)
14940           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14941           ;;
14942         ia64*)
14943           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14944           ;;
14945         *)
14946           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14947           ;;
14948         esac
14949       else
14950         case $host_cpu in
14951         hppa*64*)
14952           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14953           ;;
14954         ia64*)
14955           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14956           ;;
14957         *)
14958           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14959           ;;
14960         esac
14961       fi
14962       if test "$with_gnu_ld" = no; then
14963         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14964         hardcode_libdir_separator_F77=:
14965
14966         case $host_cpu in
14967         hppa*64*|ia64*)
14968           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14969           hardcode_direct_F77=no
14970           hardcode_shlibpath_var_F77=no
14971           ;;
14972         *)
14973           hardcode_direct_F77=yes
14974           export_dynamic_flag_spec_F77='${wl}-E'
14975
14976           # hardcode_minus_L: Not really in the search PATH,
14977           # but as the default location of the library.
14978           hardcode_minus_L_F77=yes
14979           ;;
14980         esac
14981       fi
14982       ;;
14983
14984     irix5* | irix6* | nonstopux*)
14985       if test "$GCC" = yes; then
14986         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14987       else
14988         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14989         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14990       fi
14991       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14992       hardcode_libdir_separator_F77=:
14993       link_all_deplibs_F77=yes
14994       ;;
14995
14996     netbsd*)
14997       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14998         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14999       else
15000         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15001       fi
15002       hardcode_libdir_flag_spec_F77='-R$libdir'
15003       hardcode_direct_F77=yes
15004       hardcode_shlibpath_var_F77=no
15005       ;;
15006
15007     newsos6)
15008       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15009       hardcode_direct_F77=yes
15010       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15011       hardcode_libdir_separator_F77=:
15012       hardcode_shlibpath_var_F77=no
15013       ;;
15014
15015     openbsd*)
15016       hardcode_direct_F77=yes
15017       hardcode_shlibpath_var_F77=no
15018       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15019         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15020         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15021         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15022         export_dynamic_flag_spec_F77='${wl}-E'
15023       else
15024        case $host_os in
15025          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15026            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15027            hardcode_libdir_flag_spec_F77='-R$libdir'
15028            ;;
15029          *)
15030            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15031            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15032            ;;
15033        esac
15034       fi
15035       ;;
15036
15037     os2*)
15038       hardcode_libdir_flag_spec_F77='-L$libdir'
15039       hardcode_minus_L_F77=yes
15040       allow_undefined_flag_F77=unsupported
15041       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15042       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15043       ;;
15044
15045     osf3*)
15046       if test "$GCC" = yes; then
15047         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15048         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15049       else
15050         allow_undefined_flag_F77=' -expect_unresolved \*'
15051         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15052       fi
15053       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15054       hardcode_libdir_separator_F77=:
15055       ;;
15056
15057     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15058       if test "$GCC" = yes; then
15059         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15060         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15061         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15062       else
15063         allow_undefined_flag_F77=' -expect_unresolved \*'
15064         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15065         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15066         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15067
15068         # Both c and cxx compiler support -rpath directly
15069         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15070       fi
15071       hardcode_libdir_separator_F77=:
15072       ;;
15073
15074     solaris*)
15075       no_undefined_flag_F77=' -z text'
15076       if test "$GCC" = yes; then
15077         wlarc='${wl}'
15078         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15079         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15080           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15081       else
15082         wlarc=''
15083         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15085         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15086       fi
15087       hardcode_libdir_flag_spec_F77='-R$libdir'
15088       hardcode_shlibpath_var_F77=no
15089       case $host_os in
15090       solaris2.[0-5] | solaris2.[0-5].*) ;;
15091       *)
15092         # The compiler driver will combine linker options so we
15093         # cannot just pass the convience library names through
15094         # without $wl, iff we do not link with $LD.
15095         # Luckily, gcc supports the same syntax we need for Sun Studio.
15096         # Supported since Solaris 2.6 (maybe 2.5.1?)
15097         case $wlarc in
15098         '')
15099           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15100         *)
15101           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15102         esac ;;
15103       esac
15104       link_all_deplibs_F77=yes
15105       ;;
15106
15107     sunos4*)
15108       if test "x$host_vendor" = xsequent; then
15109         # Use $CC to link under sequent, because it throws in some extra .o
15110         # files that make .init and .fini sections work.
15111         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15112       else
15113         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15114       fi
15115       hardcode_libdir_flag_spec_F77='-L$libdir'
15116       hardcode_direct_F77=yes
15117       hardcode_minus_L_F77=yes
15118       hardcode_shlibpath_var_F77=no
15119       ;;
15120
15121     sysv4)
15122       case $host_vendor in
15123         sni)
15124           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125           hardcode_direct_F77=yes # is this really true???
15126         ;;
15127         siemens)
15128           ## LD is ld it makes a PLAMLIB
15129           ## CC just makes a GrossModule.
15130           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15131           reload_cmds_F77='$CC -r -o $output$reload_objs'
15132           hardcode_direct_F77=no
15133         ;;
15134         motorola)
15135           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15137         ;;
15138       esac
15139       runpath_var='LD_RUN_PATH'
15140       hardcode_shlibpath_var_F77=no
15141       ;;
15142
15143     sysv4.3*)
15144       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145       hardcode_shlibpath_var_F77=no
15146       export_dynamic_flag_spec_F77='-Bexport'
15147       ;;
15148
15149     sysv4*MP*)
15150       if test -d /usr/nec; then
15151         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152         hardcode_shlibpath_var_F77=no
15153         runpath_var=LD_RUN_PATH
15154         hardcode_runpath_var=yes
15155         ld_shlibs_F77=yes
15156       fi
15157       ;;
15158
15159     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15160       no_undefined_flag_F77='${wl}-z,text'
15161       archive_cmds_need_lc_F77=no
15162       hardcode_shlibpath_var_F77=no
15163       runpath_var='LD_RUN_PATH'
15164
15165       if test "$GCC" = yes; then
15166         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168       else
15169         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171       fi
15172       ;;
15173
15174     sysv5* | sco3.2v5* | sco5v6*)
15175       # Note: We can NOT use -z defs as we might desire, because we do not
15176       # link with -lc, and that would cause any symbols used from libc to
15177       # always be unresolved, which means just about no library would
15178       # ever link correctly.  If we're not using GNU ld we use -z text
15179       # though, which does catch some bad symbols but isn't as heavy-handed
15180       # as -z defs.
15181       no_undefined_flag_F77='${wl}-z,text'
15182       allow_undefined_flag_F77='${wl}-z,nodefs'
15183       archive_cmds_need_lc_F77=no
15184       hardcode_shlibpath_var_F77=no
15185       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15186       hardcode_libdir_separator_F77=':'
15187       link_all_deplibs_F77=yes
15188       export_dynamic_flag_spec_F77='${wl}-Bexport'
15189       runpath_var='LD_RUN_PATH'
15190
15191       if test "$GCC" = yes; then
15192         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194       else
15195         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197       fi
15198       ;;
15199
15200     uts4*)
15201       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202       hardcode_libdir_flag_spec_F77='-L$libdir'
15203       hardcode_shlibpath_var_F77=no
15204       ;;
15205
15206     *)
15207       ld_shlibs_F77=no
15208       ;;
15209     esac
15210   fi
15211
15212 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15213 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15214 test "$ld_shlibs_F77" = no && can_build_shared=no
15215
15216 #
15217 # Do we need to explicitly link libc?
15218 #
15219 case "x$archive_cmds_need_lc_F77" in
15220 x|xyes)
15221   # Assume -lc should be added
15222   archive_cmds_need_lc_F77=yes
15223
15224   if test "$enable_shared" = yes && test "$GCC" = yes; then
15225     case $archive_cmds_F77 in
15226     *'~'*)
15227       # FIXME: we may have to deal with multi-command sequences.
15228       ;;
15229     '$CC '*)
15230       # Test whether the compiler implicitly links with -lc since on some
15231       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15232       # to ld, don't add -lc before -lgcc.
15233       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15234 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15235       $rm conftest*
15236       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15237
15238       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239   (eval $ac_compile) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); } 2>conftest.err; then
15243         soname=conftest
15244         lib=conftest
15245         libobjs=conftest.$ac_objext
15246         deplibs=
15247         wl=$lt_prog_compiler_wl_F77
15248         pic_flag=$lt_prog_compiler_pic_F77
15249         compiler_flags=-v
15250         linker_flags=-v
15251         verstring=
15252         output_objdir=.
15253         libname=conftest
15254         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15255         allow_undefined_flag_F77=
15256         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15257   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }
15261         then
15262           archive_cmds_need_lc_F77=no
15263         else
15264           archive_cmds_need_lc_F77=yes
15265         fi
15266         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15267       else
15268         cat conftest.err 1>&5
15269       fi
15270       $rm conftest*
15271       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15272 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15273       ;;
15274     esac
15275   fi
15276   ;;
15277 esac
15278
15279 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15281 library_names_spec=
15282 libname_spec='lib$name'
15283 soname_spec=
15284 shrext_cmds=".so"
15285 postinstall_cmds=
15286 postuninstall_cmds=
15287 finish_cmds=
15288 finish_eval=
15289 shlibpath_var=
15290 shlibpath_overrides_runpath=unknown
15291 version_type=none
15292 dynamic_linker="$host_os ld.so"
15293 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15294 if test "$GCC" = yes; then
15295   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15296   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15297     # if the path contains ";" then we assume it to be the separator
15298     # otherwise default to the standard path separator (i.e. ":") - it is
15299     # assumed that no part of a normal pathname contains ";" but that should
15300     # okay in the real world where ";" in dirpaths is itself problematic.
15301     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302   else
15303     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15304   fi
15305 else
15306   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15307 fi
15308 need_lib_prefix=unknown
15309 hardcode_into_libs=no
15310
15311 # when you set need_version to no, make sure it does not cause -set_version
15312 # flags to be left without arguments
15313 need_version=unknown
15314
15315 case $host_os in
15316 aix3*)
15317   version_type=linux
15318   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15319   shlibpath_var=LIBPATH
15320
15321   # AIX 3 has no versioning support, so we append a major version to the name.
15322   soname_spec='${libname}${release}${shared_ext}$major'
15323   ;;
15324
15325 aix4* | aix5*)
15326   version_type=linux
15327   need_lib_prefix=no
15328   need_version=no
15329   hardcode_into_libs=yes
15330   if test "$host_cpu" = ia64; then
15331     # AIX 5 supports IA64
15332     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15333     shlibpath_var=LD_LIBRARY_PATH
15334   else
15335     # With GCC up to 2.95.x, collect2 would create an import file
15336     # for dependence libraries.  The import file would start with
15337     # the line `#! .'.  This would cause the generated library to
15338     # depend on `.', always an invalid library.  This was fixed in
15339     # development snapshots of GCC prior to 3.0.
15340     case $host_os in
15341       aix4 | aix4.[01] | aix4.[01].*)
15342       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15343            echo ' yes '
15344            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15345         :
15346       else
15347         can_build_shared=no
15348       fi
15349       ;;
15350     esac
15351     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15352     # soname into executable. Probably we can add versioning support to
15353     # collect2, so additional links can be useful in future.
15354     if test "$aix_use_runtimelinking" = yes; then
15355       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15356       # instead of lib<name>.a to let people know that these are not
15357       # typical AIX shared libraries.
15358       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359     else
15360       # We preserve .a as extension for shared libraries through AIX4.2
15361       # and later when we are not doing run time linking.
15362       library_names_spec='${libname}${release}.a $libname.a'
15363       soname_spec='${libname}${release}${shared_ext}$major'
15364     fi
15365     shlibpath_var=LIBPATH
15366   fi
15367   ;;
15368
15369 amigaos*)
15370   library_names_spec='$libname.ixlibrary $libname.a'
15371   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15372   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15373   ;;
15374
15375 beos*)
15376   library_names_spec='${libname}${shared_ext}'
15377   dynamic_linker="$host_os ld.so"
15378   shlibpath_var=LIBRARY_PATH
15379   ;;
15380
15381 bsdi[45]*)
15382   version_type=linux
15383   need_version=no
15384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385   soname_spec='${libname}${release}${shared_ext}$major'
15386   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15387   shlibpath_var=LD_LIBRARY_PATH
15388   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15389   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15390   # the default ld.so.conf also contains /usr/contrib/lib and
15391   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15392   # libtool to hard-code these into programs
15393   ;;
15394
15395 cygwin* | mingw* | pw32*)
15396   version_type=windows
15397   shrext_cmds=".dll"
15398   need_version=no
15399   need_lib_prefix=no
15400
15401   case $GCC,$host_os in
15402   yes,cygwin* | yes,mingw* | yes,pw32*)
15403     library_names_spec='$libname.dll.a'
15404     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15405     postinstall_cmds='base_file=`basename \${file}`~
15406       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15407       dldir=$destdir/`dirname \$dlpath`~
15408       test -d \$dldir || mkdir -p \$dldir~
15409       $install_prog $dir/$dlname \$dldir/$dlname~
15410       chmod a+x \$dldir/$dlname'
15411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15412       dlpath=$dir/\$dldll~
15413        $rm \$dlpath'
15414     shlibpath_overrides_runpath=yes
15415
15416     case $host_os in
15417     cygwin*)
15418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15420       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15421       ;;
15422     mingw*)
15423       # MinGW DLLs use traditional 'lib' prefix
15424       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15425       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15426       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15427         # It is most probably a Windows format PATH printed by
15428         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15429         # path with ; separators, and with drive letters. We can handle the
15430         # drive letters (cygwin fileutils understands them), so leave them,
15431         # especially as we might pass files found there to a mingw objdump,
15432         # which wouldn't understand a cygwinified path. Ahh.
15433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15434       else
15435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15436       fi
15437       ;;
15438     pw32*)
15439       # pw32 DLLs use 'pw' prefix rather than 'lib'
15440       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15441       ;;
15442     esac
15443     ;;
15444
15445   *)
15446     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15447     ;;
15448   esac
15449   dynamic_linker='Win32 ld.exe'
15450   # FIXME: first we should search . and the directory the executable is in
15451   shlibpath_var=PATH
15452   ;;
15453
15454 darwin* | rhapsody*)
15455   dynamic_linker="$host_os dyld"
15456   version_type=darwin
15457   need_lib_prefix=no
15458   need_version=no
15459   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15460   soname_spec='${libname}${release}${major}$shared_ext'
15461   shlibpath_overrides_runpath=yes
15462   shlibpath_var=DYLD_LIBRARY_PATH
15463   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15464   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15465   if test "$GCC" = yes; then
15466     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15467   else
15468     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15469   fi
15470   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15471   ;;
15472
15473 dgux*)
15474   version_type=linux
15475   need_lib_prefix=no
15476   need_version=no
15477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15478   soname_spec='${libname}${release}${shared_ext}$major'
15479   shlibpath_var=LD_LIBRARY_PATH
15480   ;;
15481
15482 freebsd1*)
15483   dynamic_linker=no
15484   ;;
15485
15486 kfreebsd*-gnu)
15487   version_type=linux
15488   need_lib_prefix=no
15489   need_version=no
15490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   shlibpath_var=LD_LIBRARY_PATH
15493   shlibpath_overrides_runpath=no
15494   hardcode_into_libs=yes
15495   dynamic_linker='GNU ld.so'
15496   ;;
15497
15498 freebsd* | dragonfly*)
15499   # DragonFly does not have aout.  When/if they implement a new
15500   # versioning mechanism, adjust this.
15501   if test -x /usr/bin/objformat; then
15502     objformat=`/usr/bin/objformat`
15503   else
15504     case $host_os in
15505     freebsd[123]*) objformat=aout ;;
15506     *) objformat=elf ;;
15507     esac
15508   fi
15509   version_type=freebsd-$objformat
15510   case $version_type in
15511     freebsd-elf*)
15512       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15513       need_version=no
15514       need_lib_prefix=no
15515       ;;
15516     freebsd-*)
15517       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15518       need_version=yes
15519       ;;
15520   esac
15521   shlibpath_var=LD_LIBRARY_PATH
15522   case $host_os in
15523   freebsd2*)
15524     shlibpath_overrides_runpath=yes
15525     ;;
15526   freebsd3.[01]* | freebsdelf3.[01]*)
15527     shlibpath_overrides_runpath=yes
15528     hardcode_into_libs=yes
15529     ;;
15530   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15531   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15532     shlibpath_overrides_runpath=no
15533     hardcode_into_libs=yes
15534     ;;
15535   freebsd*) # from 4.6 on
15536     shlibpath_overrides_runpath=yes
15537     hardcode_into_libs=yes
15538     ;;
15539   esac
15540   ;;
15541
15542 gnu*)
15543   version_type=linux
15544   need_lib_prefix=no
15545   need_version=no
15546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15547   soname_spec='${libname}${release}${shared_ext}$major'
15548   shlibpath_var=LD_LIBRARY_PATH
15549   hardcode_into_libs=yes
15550   ;;
15551
15552 hpux9* | hpux10* | hpux11*)
15553   # Give a soname corresponding to the major version so that dld.sl refuses to
15554   # link against other versions.
15555   version_type=sunos
15556   need_lib_prefix=no
15557   need_version=no
15558   case $host_cpu in
15559   ia64*)
15560     shrext_cmds='.so'
15561     hardcode_into_libs=yes
15562     dynamic_linker="$host_os dld.so"
15563     shlibpath_var=LD_LIBRARY_PATH
15564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566     soname_spec='${libname}${release}${shared_ext}$major'
15567     if test "X$HPUX_IA64_MODE" = X32; then
15568       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15569     else
15570       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15571     fi
15572     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15573     ;;
15574    hppa*64*)
15575      shrext_cmds='.sl'
15576      hardcode_into_libs=yes
15577      dynamic_linker="$host_os dld.sl"
15578      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15579      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15580      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581      soname_spec='${libname}${release}${shared_ext}$major'
15582      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15583      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15584      ;;
15585    *)
15586     shrext_cmds='.sl'
15587     dynamic_linker="$host_os dld.sl"
15588     shlibpath_var=SHLIB_PATH
15589     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15591     soname_spec='${libname}${release}${shared_ext}$major'
15592     ;;
15593   esac
15594   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15595   postinstall_cmds='chmod 555 $lib'
15596   ;;
15597
15598 interix3*)
15599   version_type=linux
15600   need_lib_prefix=no
15601   need_version=no
15602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15603   soname_spec='${libname}${release}${shared_ext}$major'
15604   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15605   shlibpath_var=LD_LIBRARY_PATH
15606   shlibpath_overrides_runpath=no
15607   hardcode_into_libs=yes
15608   ;;
15609
15610 irix5* | irix6* | nonstopux*)
15611   case $host_os in
15612     nonstopux*) version_type=nonstopux ;;
15613     *)
15614         if test "$lt_cv_prog_gnu_ld" = yes; then
15615                 version_type=linux
15616         else
15617                 version_type=irix
15618         fi ;;
15619   esac
15620   need_lib_prefix=no
15621   need_version=no
15622   soname_spec='${libname}${release}${shared_ext}$major'
15623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15624   case $host_os in
15625   irix5* | nonstopux*)
15626     libsuff= shlibsuff=
15627     ;;
15628   *)
15629     case $LD in # libtool.m4 will add one of these switches to LD
15630     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15631       libsuff= shlibsuff= libmagic=32-bit;;
15632     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15633       libsuff=32 shlibsuff=N32 libmagic=N32;;
15634     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15635       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15636     *) libsuff= shlibsuff= libmagic=never-match;;
15637     esac
15638     ;;
15639   esac
15640   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15641   shlibpath_overrides_runpath=no
15642   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15643   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15644   hardcode_into_libs=yes
15645   ;;
15646
15647 # No shared lib support for Linux oldld, aout, or coff.
15648 linux*oldld* | linux*aout* | linux*coff*)
15649   dynamic_linker=no
15650   ;;
15651
15652 # This must be Linux ELF.
15653 linux*)
15654   version_type=linux
15655   need_lib_prefix=no
15656   need_version=no
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658   soname_spec='${libname}${release}${shared_ext}$major'
15659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15660   shlibpath_var=LD_LIBRARY_PATH
15661   shlibpath_overrides_runpath=no
15662   # This implies no fast_install, which is unacceptable.
15663   # Some rework will be needed to allow for fast_install
15664   # before this can be enabled.
15665   hardcode_into_libs=yes
15666
15667   # Append ld.so.conf contents to the search path
15668   if test -f /etc/ld.so.conf; then
15669     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15670     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15671   fi
15672
15673   # We used to test for /lib/ld.so.1 and disable shared libraries on
15674   # powerpc, because MkLinux only supported shared libraries with the
15675   # GNU dynamic linker.  Since this was broken with cross compilers,
15676   # most powerpc-linux boxes support dynamic linking these days and
15677   # people can always --disable-shared, the test was removed, and we
15678   # assume the GNU/Linux dynamic linker is in use.
15679   dynamic_linker='GNU/Linux ld.so'
15680   ;;
15681
15682 knetbsd*-gnu)
15683   version_type=linux
15684   need_lib_prefix=no
15685   need_version=no
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15687   soname_spec='${libname}${release}${shared_ext}$major'
15688   shlibpath_var=LD_LIBRARY_PATH
15689   shlibpath_overrides_runpath=no
15690   hardcode_into_libs=yes
15691   dynamic_linker='GNU ld.so'
15692   ;;
15693
15694 netbsd*)
15695   version_type=sunos
15696   need_lib_prefix=no
15697   need_version=no
15698   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15700     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15701     dynamic_linker='NetBSD (a.out) ld.so'
15702   else
15703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15704     soname_spec='${libname}${release}${shared_ext}$major'
15705     dynamic_linker='NetBSD ld.elf_so'
15706   fi
15707   shlibpath_var=LD_LIBRARY_PATH
15708   shlibpath_overrides_runpath=yes
15709   hardcode_into_libs=yes
15710   ;;
15711
15712 newsos6)
15713   version_type=linux
15714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   shlibpath_overrides_runpath=yes
15717   ;;
15718
15719 nto-qnx*)
15720   version_type=linux
15721   need_lib_prefix=no
15722   need_version=no
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   soname_spec='${libname}${release}${shared_ext}$major'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   shlibpath_overrides_runpath=yes
15727   ;;
15728
15729 openbsd*)
15730   version_type=sunos
15731   sys_lib_dlsearch_path_spec="/usr/lib"
15732   need_lib_prefix=no
15733   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15734   case $host_os in
15735     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15736     *)                         need_version=no  ;;
15737   esac
15738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15739   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15740   shlibpath_var=LD_LIBRARY_PATH
15741   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15742     case $host_os in
15743       openbsd2.[89] | openbsd2.[89].*)
15744         shlibpath_overrides_runpath=no
15745         ;;
15746       *)
15747         shlibpath_overrides_runpath=yes
15748         ;;
15749       esac
15750   else
15751     shlibpath_overrides_runpath=yes
15752   fi
15753   ;;
15754
15755 os2*)
15756   libname_spec='$name'
15757   shrext_cmds=".dll"
15758   need_lib_prefix=no
15759   library_names_spec='$libname${shared_ext} $libname.a'
15760   dynamic_linker='OS/2 ld.exe'
15761   shlibpath_var=LIBPATH
15762   ;;
15763
15764 osf3* | osf4* | osf5*)
15765   version_type=osf
15766   need_lib_prefix=no
15767   need_version=no
15768   soname_spec='${libname}${release}${shared_ext}$major'
15769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770   shlibpath_var=LD_LIBRARY_PATH
15771   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15772   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15773   ;;
15774
15775 solaris*)
15776   version_type=linux
15777   need_lib_prefix=no
15778   need_version=no
15779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780   soname_spec='${libname}${release}${shared_ext}$major'
15781   shlibpath_var=LD_LIBRARY_PATH
15782   shlibpath_overrides_runpath=yes
15783   hardcode_into_libs=yes
15784   # ldd complains unless libraries are executable
15785   postinstall_cmds='chmod +x $lib'
15786   ;;
15787
15788 sunos4*)
15789   version_type=sunos
15790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15791   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15792   shlibpath_var=LD_LIBRARY_PATH
15793   shlibpath_overrides_runpath=yes
15794   if test "$with_gnu_ld" = yes; then
15795     need_lib_prefix=no
15796   fi
15797   need_version=yes
15798   ;;
15799
15800 sysv4 | sysv4.3*)
15801   version_type=linux
15802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15803   soname_spec='${libname}${release}${shared_ext}$major'
15804   shlibpath_var=LD_LIBRARY_PATH
15805   case $host_vendor in
15806     sni)
15807       shlibpath_overrides_runpath=no
15808       need_lib_prefix=no
15809       export_dynamic_flag_spec='${wl}-Blargedynsym'
15810       runpath_var=LD_RUN_PATH
15811       ;;
15812     siemens)
15813       need_lib_prefix=no
15814       ;;
15815     motorola)
15816       need_lib_prefix=no
15817       need_version=no
15818       shlibpath_overrides_runpath=no
15819       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15820       ;;
15821   esac
15822   ;;
15823
15824 sysv4*MP*)
15825   if test -d /usr/nec ;then
15826     version_type=linux
15827     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15828     soname_spec='$libname${shared_ext}.$major'
15829     shlibpath_var=LD_LIBRARY_PATH
15830   fi
15831   ;;
15832
15833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15834   version_type=freebsd-elf
15835   need_lib_prefix=no
15836   need_version=no
15837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15838   soname_spec='${libname}${release}${shared_ext}$major'
15839   shlibpath_var=LD_LIBRARY_PATH
15840   hardcode_into_libs=yes
15841   if test "$with_gnu_ld" = yes; then
15842     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15843     shlibpath_overrides_runpath=no
15844   else
15845     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15846     shlibpath_overrides_runpath=yes
15847     case $host_os in
15848       sco3.2v5*)
15849         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15850         ;;
15851     esac
15852   fi
15853   sys_lib_dlsearch_path_spec='/usr/lib'
15854   ;;
15855
15856 uts4*)
15857   version_type=linux
15858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859   soname_spec='${libname}${release}${shared_ext}$major'
15860   shlibpath_var=LD_LIBRARY_PATH
15861   ;;
15862
15863 *)
15864   dynamic_linker=no
15865   ;;
15866 esac
15867 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15868 echo "${ECHO_T}$dynamic_linker" >&6; }
15869 test "$dynamic_linker" = no && can_build_shared=no
15870
15871 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15872 if test "$GCC" = yes; then
15873   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15874 fi
15875
15876 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15877 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15878 hardcode_action_F77=
15879 if test -n "$hardcode_libdir_flag_spec_F77" || \
15880    test -n "$runpath_var_F77" || \
15881    test "X$hardcode_automatic_F77" = "Xyes" ; then
15882
15883   # We can hardcode non-existant directories.
15884   if test "$hardcode_direct_F77" != no &&
15885      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15886      # have to relink, otherwise we might link with an installed library
15887      # when we should be linking with a yet-to-be-installed one
15888      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15889      test "$hardcode_minus_L_F77" != no; then
15890     # Linking always hardcodes the temporary library directory.
15891     hardcode_action_F77=relink
15892   else
15893     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15894     hardcode_action_F77=immediate
15895   fi
15896 else
15897   # We cannot hardcode anything, or else we can only hardcode existing
15898   # directories.
15899   hardcode_action_F77=unsupported
15900 fi
15901 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15902 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15903
15904 if test "$hardcode_action_F77" = relink; then
15905   # Fast installation is not supported
15906   enable_fast_install=no
15907 elif test "$shlibpath_overrides_runpath" = yes ||
15908      test "$enable_shared" = no; then
15909   # Fast installation is not necessary
15910   enable_fast_install=needless
15911 fi
15912
15913
15914 # The else clause should only fire when bootstrapping the
15915 # libtool distribution, otherwise you forgot to ship ltmain.sh
15916 # with your package, and you will get complaints that there are
15917 # no rules to generate ltmain.sh.
15918 if test -f "$ltmain"; then
15919   # See if we are running on zsh, and set the options which allow our commands through
15920   # without removal of \ escapes.
15921   if test -n "${ZSH_VERSION+set}" ; then
15922     setopt NO_GLOB_SUBST
15923   fi
15924   # Now quote all the things that may contain metacharacters while being
15925   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15926   # variables and quote the copies for generation of the libtool script.
15927   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15928     SED SHELL STRIP \
15929     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15930     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15931     deplibs_check_method reload_flag reload_cmds need_locks \
15932     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15933     lt_cv_sys_global_symbol_to_c_name_address \
15934     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15935     old_postinstall_cmds old_postuninstall_cmds \
15936     compiler_F77 \
15937     CC_F77 \
15938     LD_F77 \
15939     lt_prog_compiler_wl_F77 \
15940     lt_prog_compiler_pic_F77 \
15941     lt_prog_compiler_static_F77 \
15942     lt_prog_compiler_no_builtin_flag_F77 \
15943     export_dynamic_flag_spec_F77 \
15944     thread_safe_flag_spec_F77 \
15945     whole_archive_flag_spec_F77 \
15946     enable_shared_with_static_runtimes_F77 \
15947     old_archive_cmds_F77 \
15948     old_archive_from_new_cmds_F77 \
15949     predep_objects_F77 \
15950     postdep_objects_F77 \
15951     predeps_F77 \
15952     postdeps_F77 \
15953     compiler_lib_search_path_F77 \
15954     archive_cmds_F77 \
15955     archive_expsym_cmds_F77 \
15956     postinstall_cmds_F77 \
15957     postuninstall_cmds_F77 \
15958     old_archive_from_expsyms_cmds_F77 \
15959     allow_undefined_flag_F77 \
15960     no_undefined_flag_F77 \
15961     export_symbols_cmds_F77 \
15962     hardcode_libdir_flag_spec_F77 \
15963     hardcode_libdir_flag_spec_ld_F77 \
15964     hardcode_libdir_separator_F77 \
15965     hardcode_automatic_F77 \
15966     module_cmds_F77 \
15967     module_expsym_cmds_F77 \
15968     lt_cv_prog_compiler_c_o_F77 \
15969     exclude_expsyms_F77 \
15970     include_expsyms_F77; do
15971
15972     case $var in
15973     old_archive_cmds_F77 | \
15974     old_archive_from_new_cmds_F77 | \
15975     archive_cmds_F77 | \
15976     archive_expsym_cmds_F77 | \
15977     module_cmds_F77 | \
15978     module_expsym_cmds_F77 | \
15979     old_archive_from_expsyms_cmds_F77 | \
15980     export_symbols_cmds_F77 | \
15981     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15982     postinstall_cmds | postuninstall_cmds | \
15983     old_postinstall_cmds | old_postuninstall_cmds | \
15984     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15985       # Double-quote double-evaled strings.
15986       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15987       ;;
15988     *)
15989       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15990       ;;
15991     esac
15992   done
15993
15994   case $lt_echo in
15995   *'\$0 --fallback-echo"')
15996     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15997     ;;
15998   esac
15999
16000 cfgfile="$ofile"
16001
16002   cat <<__EOF__ >> "$cfgfile"
16003 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16004
16005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16006
16007 # Shell to use when invoking shell scripts.
16008 SHELL=$lt_SHELL
16009
16010 # Whether or not to build shared libraries.
16011 build_libtool_libs=$enable_shared
16012
16013 # Whether or not to build static libraries.
16014 build_old_libs=$enable_static
16015
16016 # Whether or not to add -lc for building shared libraries.
16017 build_libtool_need_lc=$archive_cmds_need_lc_F77
16018
16019 # Whether or not to disallow shared libs when runtime libs are static
16020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16021
16022 # Whether or not to optimize for fast installation.
16023 fast_install=$enable_fast_install
16024
16025 # The host system.
16026 host_alias=$host_alias
16027 host=$host
16028 host_os=$host_os
16029
16030 # The build system.
16031 build_alias=$build_alias
16032 build=$build
16033 build_os=$build_os
16034
16035 # An echo program that does not interpret backslashes.
16036 echo=$lt_echo
16037
16038 # The archiver.
16039 AR=$lt_AR
16040 AR_FLAGS=$lt_AR_FLAGS
16041
16042 # A C compiler.
16043 LTCC=$lt_LTCC
16044
16045 # LTCC compiler flags.
16046 LTCFLAGS=$lt_LTCFLAGS
16047
16048 # A language-specific compiler.
16049 CC=$lt_compiler_F77
16050
16051 # Is the compiler the GNU C compiler?
16052 with_gcc=$GCC_F77
16053
16054 # An ERE matcher.
16055 EGREP=$lt_EGREP
16056
16057 # The linker used to build libraries.
16058 LD=$lt_LD_F77
16059
16060 # Whether we need hard or soft links.
16061 LN_S=$lt_LN_S
16062
16063 # A BSD-compatible nm program.
16064 NM=$lt_NM
16065
16066 # A symbol stripping program
16067 STRIP=$lt_STRIP
16068
16069 # Used to examine libraries when file_magic_cmd begins "file"
16070 MAGIC_CMD=$MAGIC_CMD
16071
16072 # Used on cygwin: DLL creation program.
16073 DLLTOOL="$DLLTOOL"
16074
16075 # Used on cygwin: object dumper.
16076 OBJDUMP="$OBJDUMP"
16077
16078 # Used on cygwin: assembler.
16079 AS="$AS"
16080
16081 # The name of the directory that contains temporary libtool files.
16082 objdir=$objdir
16083
16084 # How to create reloadable object files.
16085 reload_flag=$lt_reload_flag
16086 reload_cmds=$lt_reload_cmds
16087
16088 # How to pass a linker flag through the compiler.
16089 wl=$lt_lt_prog_compiler_wl_F77
16090
16091 # Object file suffix (normally "o").
16092 objext="$ac_objext"
16093
16094 # Old archive suffix (normally "a").
16095 libext="$libext"
16096
16097 # Shared library suffix (normally ".so").
16098 shrext_cmds='$shrext_cmds'
16099
16100 # Executable file suffix (normally "").
16101 exeext="$exeext"
16102
16103 # Additional compiler flags for building library objects.
16104 pic_flag=$lt_lt_prog_compiler_pic_F77
16105 pic_mode=$pic_mode
16106
16107 # What is the maximum length of a command?
16108 max_cmd_len=$lt_cv_sys_max_cmd_len
16109
16110 # Does compiler simultaneously support -c and -o options?
16111 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16112
16113 # Must we lock files when doing compilation?
16114 need_locks=$lt_need_locks
16115
16116 # Do we need the lib prefix for modules?
16117 need_lib_prefix=$need_lib_prefix
16118
16119 # Do we need a version for libraries?
16120 need_version=$need_version
16121
16122 # Whether dlopen is supported.
16123 dlopen_support=$enable_dlopen
16124
16125 # Whether dlopen of programs is supported.
16126 dlopen_self=$enable_dlopen_self
16127
16128 # Whether dlopen of statically linked programs is supported.
16129 dlopen_self_static=$enable_dlopen_self_static
16130
16131 # Compiler flag to prevent dynamic linking.
16132 link_static_flag=$lt_lt_prog_compiler_static_F77
16133
16134 # Compiler flag to turn off builtin functions.
16135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16136
16137 # Compiler flag to allow reflexive dlopens.
16138 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16139
16140 # Compiler flag to generate shared objects directly from archives.
16141 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16142
16143 # Compiler flag to generate thread-safe objects.
16144 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16145
16146 # Library versioning type.
16147 version_type=$version_type
16148
16149 # Format of library name prefix.
16150 libname_spec=$lt_libname_spec
16151
16152 # List of archive names.  First name is the real one, the rest are links.
16153 # The last name is the one that the linker finds with -lNAME.
16154 library_names_spec=$lt_library_names_spec
16155
16156 # The coded name of the library, if different from the real name.
16157 soname_spec=$lt_soname_spec
16158
16159 # Commands used to build and install an old-style archive.
16160 RANLIB=$lt_RANLIB
16161 old_archive_cmds=$lt_old_archive_cmds_F77
16162 old_postinstall_cmds=$lt_old_postinstall_cmds
16163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16164
16165 # Create an old-style archive from a shared archive.
16166 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16167
16168 # Create a temporary old-style archive to link instead of a shared archive.
16169 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16170
16171 # Commands used to build and install a shared archive.
16172 archive_cmds=$lt_archive_cmds_F77
16173 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16174 postinstall_cmds=$lt_postinstall_cmds
16175 postuninstall_cmds=$lt_postuninstall_cmds
16176
16177 # Commands used to build a loadable module (assumed same as above if empty)
16178 module_cmds=$lt_module_cmds_F77
16179 module_expsym_cmds=$lt_module_expsym_cmds_F77
16180
16181 # Commands to strip libraries.
16182 old_striplib=$lt_old_striplib
16183 striplib=$lt_striplib
16184
16185 # Dependencies to place before the objects being linked to create a
16186 # shared library.
16187 predep_objects=$lt_predep_objects_F77
16188
16189 # Dependencies to place after the objects being linked to create a
16190 # shared library.
16191 postdep_objects=$lt_postdep_objects_F77
16192
16193 # Dependencies to place before the objects being linked to create a
16194 # shared library.
16195 predeps=$lt_predeps_F77
16196
16197 # Dependencies to place after the objects being linked to create a
16198 # shared library.
16199 postdeps=$lt_postdeps_F77
16200
16201 # The library search path used internally by the compiler when linking
16202 # a shared library.
16203 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16204
16205 # Method to check whether dependent libraries are shared objects.
16206 deplibs_check_method=$lt_deplibs_check_method
16207
16208 # Command to use when deplibs_check_method == file_magic.
16209 file_magic_cmd=$lt_file_magic_cmd
16210
16211 # Flag that allows shared libraries with undefined symbols to be built.
16212 allow_undefined_flag=$lt_allow_undefined_flag_F77
16213
16214 # Flag that forces no undefined symbols.
16215 no_undefined_flag=$lt_no_undefined_flag_F77
16216
16217 # Commands used to finish a libtool library installation in a directory.
16218 finish_cmds=$lt_finish_cmds
16219
16220 # Same as above, but a single script fragment to be evaled but not shown.
16221 finish_eval=$lt_finish_eval
16222
16223 # Take the output of nm and produce a listing of raw symbols and C names.
16224 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16225
16226 # Transform the output of nm in a proper C declaration
16227 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16228
16229 # Transform the output of nm in a C name address pair
16230 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16231
16232 # This is the shared library runtime path variable.
16233 runpath_var=$runpath_var
16234
16235 # This is the shared library path variable.
16236 shlibpath_var=$shlibpath_var
16237
16238 # Is shlibpath searched before the hard-coded library search path?
16239 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16240
16241 # How to hardcode a shared library path into an executable.
16242 hardcode_action=$hardcode_action_F77
16243
16244 # Whether we should hardcode library paths into libraries.
16245 hardcode_into_libs=$hardcode_into_libs
16246
16247 # Flag to hardcode \$libdir into a binary during linking.
16248 # This must work even if \$libdir does not exist.
16249 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16250
16251 # If ld is used when linking, flag to hardcode \$libdir into
16252 # a binary during linking. This must work even if \$libdir does
16253 # not exist.
16254 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16255
16256 # Whether we need a single -rpath flag with a separated argument.
16257 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16258
16259 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16260 # resulting binary.
16261 hardcode_direct=$hardcode_direct_F77
16262
16263 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16264 # resulting binary.
16265 hardcode_minus_L=$hardcode_minus_L_F77
16266
16267 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16268 # the resulting binary.
16269 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16270
16271 # Set to yes if building a shared library automatically hardcodes DIR into the library
16272 # and all subsequent libraries and executables linked against it.
16273 hardcode_automatic=$hardcode_automatic_F77
16274
16275 # Variables whose values should be saved in libtool wrapper scripts and
16276 # restored at relink time.
16277 variables_saved_for_relink="$variables_saved_for_relink"
16278
16279 # Whether libtool must link a program against all its dependency libraries.
16280 link_all_deplibs=$link_all_deplibs_F77
16281
16282 # Compile-time system search path for libraries
16283 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16284
16285 # Run-time system search path for libraries
16286 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16287
16288 # Fix the shell variable \$srcfile for the compiler.
16289 fix_srcfile_path="$fix_srcfile_path_F77"
16290
16291 # Set to yes if exported symbols are required.
16292 always_export_symbols=$always_export_symbols_F77
16293
16294 # The commands to list exported symbols.
16295 export_symbols_cmds=$lt_export_symbols_cmds_F77
16296
16297 # The commands to extract the exported symbol list from a shared archive.
16298 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16299
16300 # Symbols that should not be listed in the preloaded symbols.
16301 exclude_expsyms=$lt_exclude_expsyms_F77
16302
16303 # Symbols that must always be exported.
16304 include_expsyms=$lt_include_expsyms_F77
16305
16306 # ### END LIBTOOL TAG CONFIG: $tagname
16307
16308 __EOF__
16309
16310
16311 else
16312   # If there is no Makefile yet, we rely on a make rule to execute
16313   # `config.status --recheck' to rerun these tests and create the
16314   # libtool script then.
16315   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16316   if test -f "$ltmain_in"; then
16317     test -f Makefile && make "$ltmain"
16318   fi
16319 fi
16320
16321
16322 ac_ext=c
16323 ac_cpp='$CPP $CPPFLAGS'
16324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16327
16328 CC="$lt_save_CC"
16329
16330         else
16331           tagname=""
16332         fi
16333         ;;
16334
16335       GCJ)
16336         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16337
16338
16339 # Source file extension for Java test sources.
16340 ac_ext=java
16341
16342 # Object file extension for compiled Java test sources.
16343 objext=o
16344 objext_GCJ=$objext
16345
16346 # Code to be used in simple compile tests
16347 lt_simple_compile_test_code="class foo {}\n"
16348
16349 # Code to be used in simple link tests
16350 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16351
16352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16353
16354 # If no C compiler was specified, use CC.
16355 LTCC=${LTCC-"$CC"}
16356
16357 # If no C compiler flags were specified, use CFLAGS.
16358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16359
16360 # Allow CC to be a program name with arguments.
16361 compiler=$CC
16362
16363
16364 # save warnings/boilerplate of simple test code
16365 ac_outfile=conftest.$ac_objext
16366 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16368 _lt_compiler_boilerplate=`cat conftest.err`
16369 $rm conftest*
16370
16371 ac_outfile=conftest.$ac_objext
16372 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16374 _lt_linker_boilerplate=`cat conftest.err`
16375 $rm conftest*
16376
16377
16378 # Allow CC to be a program name with arguments.
16379 lt_save_CC="$CC"
16380 CC=${GCJ-"gcj"}
16381 compiler=$CC
16382 compiler_GCJ=$CC
16383 for cc_temp in $compiler""; do
16384   case $cc_temp in
16385     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16386     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16387     \-*) ;;
16388     *) break;;
16389   esac
16390 done
16391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16392
16393
16394 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16395 archive_cmds_need_lc_GCJ=no
16396
16397 old_archive_cmds_GCJ=$old_archive_cmds
16398
16399 ## CAVEAT EMPTOR:
16400 ## There is no encapsulation within the following macros, do not change
16401 ## the running order or otherwise move them around unless you know exactly
16402 ## what you are doing...
16403
16404 lt_prog_compiler_no_builtin_flag_GCJ=
16405
16406 if test "$GCC" = yes; then
16407   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16408
16409
16410 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16411 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16412 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   lt_cv_prog_compiler_rtti_exceptions=no
16416   ac_outfile=conftest.$ac_objext
16417    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16418    lt_compiler_flag="-fno-rtti -fno-exceptions"
16419    # Insert the option either (1) after the last *FLAGS variable, or
16420    # (2) before a word containing "conftest.", or (3) at the end.
16421    # Note that $ac_compile itself does not contain backslashes and begins
16422    # with a dollar sign (not a hyphen), so the echo should work correctly.
16423    # The option is referenced via a variable to avoid confusing sed.
16424    lt_compile=`echo "$ac_compile" | $SED \
16425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16427    -e 's:$: $lt_compiler_flag:'`
16428    (eval echo "\"\$as_me:16428: $lt_compile\"" >&5)
16429    (eval "$lt_compile" 2>conftest.err)
16430    ac_status=$?
16431    cat conftest.err >&5
16432    echo "$as_me:16432: \$? = $ac_status" >&5
16433    if (exit $ac_status) && test -s "$ac_outfile"; then
16434      # The compiler can only warn and ignore the option if not recognized
16435      # So say no if there are warnings other than the usual output.
16436      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16439        lt_cv_prog_compiler_rtti_exceptions=yes
16440      fi
16441    fi
16442    $rm conftest*
16443
16444 fi
16445 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16446 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16447
16448 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16449     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16450 else
16451     :
16452 fi
16453
16454 fi
16455
16456 lt_prog_compiler_wl_GCJ=
16457 lt_prog_compiler_pic_GCJ=
16458 lt_prog_compiler_static_GCJ=
16459
16460 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16461 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16462
16463   if test "$GCC" = yes; then
16464     lt_prog_compiler_wl_GCJ='-Wl,'
16465     lt_prog_compiler_static_GCJ='-static'
16466
16467     case $host_os in
16468       aix*)
16469       # All AIX code is PIC.
16470       if test "$host_cpu" = ia64; then
16471         # AIX 5 now supports IA64 processor
16472         lt_prog_compiler_static_GCJ='-Bstatic'
16473       fi
16474       ;;
16475
16476     amigaos*)
16477       # FIXME: we need at least 68020 code to build shared libraries, but
16478       # adding the `-m68020' flag to GCC prevents building anything better,
16479       # like `-m68040'.
16480       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16481       ;;
16482
16483     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16484       # PIC is the default for these OSes.
16485       ;;
16486
16487     mingw* | pw32* | os2*)
16488       # This hack is so that the source file can tell whether it is being
16489       # built for inclusion in a dll (and should export symbols for example).
16490       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16491       ;;
16492
16493     darwin* | rhapsody*)
16494       # PIC is the default on this platform
16495       # Common symbols not allowed in MH_DYLIB files
16496       lt_prog_compiler_pic_GCJ='-fno-common'
16497       ;;
16498
16499     interix3*)
16500       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16501       # Instead, we relocate shared libraries at runtime.
16502       ;;
16503
16504     msdosdjgpp*)
16505       # Just because we use GCC doesn't mean we suddenly get shared libraries
16506       # on systems that don't support them.
16507       lt_prog_compiler_can_build_shared_GCJ=no
16508       enable_shared=no
16509       ;;
16510
16511     sysv4*MP*)
16512       if test -d /usr/nec; then
16513         lt_prog_compiler_pic_GCJ=-Kconform_pic
16514       fi
16515       ;;
16516
16517     hpux*)
16518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16519       # not for PA HP-UX.
16520       case $host_cpu in
16521       hppa*64*|ia64*)
16522         # +Z the default
16523         ;;
16524       *)
16525         lt_prog_compiler_pic_GCJ='-fPIC'
16526         ;;
16527       esac
16528       ;;
16529
16530     *)
16531       lt_prog_compiler_pic_GCJ='-fPIC'
16532       ;;
16533     esac
16534   else
16535     # PORTME Check for flag to pass linker flags through the system compiler.
16536     case $host_os in
16537     aix*)
16538       lt_prog_compiler_wl_GCJ='-Wl,'
16539       if test "$host_cpu" = ia64; then
16540         # AIX 5 now supports IA64 processor
16541         lt_prog_compiler_static_GCJ='-Bstatic'
16542       else
16543         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16544       fi
16545       ;;
16546       darwin*)
16547         # PIC is the default on this platform
16548         # Common symbols not allowed in MH_DYLIB files
16549        case $cc_basename in
16550          xlc*)
16551          lt_prog_compiler_pic_GCJ='-qnocommon'
16552          lt_prog_compiler_wl_GCJ='-Wl,'
16553          ;;
16554        esac
16555        ;;
16556
16557     mingw* | pw32* | os2*)
16558       # This hack is so that the source file can tell whether it is being
16559       # built for inclusion in a dll (and should export symbols for example).
16560       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16561       ;;
16562
16563     hpux9* | hpux10* | hpux11*)
16564       lt_prog_compiler_wl_GCJ='-Wl,'
16565       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16566       # not for PA HP-UX.
16567       case $host_cpu in
16568       hppa*64*|ia64*)
16569         # +Z the default
16570         ;;
16571       *)
16572         lt_prog_compiler_pic_GCJ='+Z'
16573         ;;
16574       esac
16575       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16576       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16577       ;;
16578
16579     irix5* | irix6* | nonstopux*)
16580       lt_prog_compiler_wl_GCJ='-Wl,'
16581       # PIC (with -KPIC) is the default.
16582       lt_prog_compiler_static_GCJ='-non_shared'
16583       ;;
16584
16585     newsos6)
16586       lt_prog_compiler_pic_GCJ='-KPIC'
16587       lt_prog_compiler_static_GCJ='-Bstatic'
16588       ;;
16589
16590     linux*)
16591       case $cc_basename in
16592       icc* | ecc*)
16593         lt_prog_compiler_wl_GCJ='-Wl,'
16594         lt_prog_compiler_pic_GCJ='-KPIC'
16595         lt_prog_compiler_static_GCJ='-static'
16596         ;;
16597       pgcc* | pgf77* | pgf90* | pgf95*)
16598         # Portland Group compilers (*not* the Pentium gcc compiler,
16599         # which looks to be a dead project)
16600         lt_prog_compiler_wl_GCJ='-Wl,'
16601         lt_prog_compiler_pic_GCJ='-fpic'
16602         lt_prog_compiler_static_GCJ='-Bstatic'
16603         ;;
16604       ccc*)
16605         lt_prog_compiler_wl_GCJ='-Wl,'
16606         # All Alpha code is PIC.
16607         lt_prog_compiler_static_GCJ='-non_shared'
16608         ;;
16609       esac
16610       ;;
16611
16612     osf3* | osf4* | osf5*)
16613       lt_prog_compiler_wl_GCJ='-Wl,'
16614       # All OSF/1 code is PIC.
16615       lt_prog_compiler_static_GCJ='-non_shared'
16616       ;;
16617
16618     solaris*)
16619       lt_prog_compiler_pic_GCJ='-KPIC'
16620       lt_prog_compiler_static_GCJ='-Bstatic'
16621       case $cc_basename in
16622       f77* | f90* | f95*)
16623         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16624       *)
16625         lt_prog_compiler_wl_GCJ='-Wl,';;
16626       esac
16627       ;;
16628
16629     sunos4*)
16630       lt_prog_compiler_wl_GCJ='-Qoption ld '
16631       lt_prog_compiler_pic_GCJ='-PIC'
16632       lt_prog_compiler_static_GCJ='-Bstatic'
16633       ;;
16634
16635     sysv4 | sysv4.2uw2* | sysv4.3*)
16636       lt_prog_compiler_wl_GCJ='-Wl,'
16637       lt_prog_compiler_pic_GCJ='-KPIC'
16638       lt_prog_compiler_static_GCJ='-Bstatic'
16639       ;;
16640
16641     sysv4*MP*)
16642       if test -d /usr/nec ;then
16643         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16644         lt_prog_compiler_static_GCJ='-Bstatic'
16645       fi
16646       ;;
16647
16648     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16649       lt_prog_compiler_wl_GCJ='-Wl,'
16650       lt_prog_compiler_pic_GCJ='-KPIC'
16651       lt_prog_compiler_static_GCJ='-Bstatic'
16652       ;;
16653
16654     unicos*)
16655       lt_prog_compiler_wl_GCJ='-Wl,'
16656       lt_prog_compiler_can_build_shared_GCJ=no
16657       ;;
16658
16659     uts4*)
16660       lt_prog_compiler_pic_GCJ='-pic'
16661       lt_prog_compiler_static_GCJ='-Bstatic'
16662       ;;
16663
16664     *)
16665       lt_prog_compiler_can_build_shared_GCJ=no
16666       ;;
16667     esac
16668   fi
16669
16670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16671 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16672
16673 #
16674 # Check to make sure the PIC flag actually works.
16675 #
16676 if test -n "$lt_prog_compiler_pic_GCJ"; then
16677
16678 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16679 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16680 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16681   echo $ECHO_N "(cached) $ECHO_C" >&6
16682 else
16683   lt_prog_compiler_pic_works_GCJ=no
16684   ac_outfile=conftest.$ac_objext
16685    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16686    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16687    # Insert the option either (1) after the last *FLAGS variable, or
16688    # (2) before a word containing "conftest.", or (3) at the end.
16689    # Note that $ac_compile itself does not contain backslashes and begins
16690    # with a dollar sign (not a hyphen), so the echo should work correctly.
16691    # The option is referenced via a variable to avoid confusing sed.
16692    lt_compile=`echo "$ac_compile" | $SED \
16693    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695    -e 's:$: $lt_compiler_flag:'`
16696    (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
16697    (eval "$lt_compile" 2>conftest.err)
16698    ac_status=$?
16699    cat conftest.err >&5
16700    echo "$as_me:16700: \$? = $ac_status" >&5
16701    if (exit $ac_status) && test -s "$ac_outfile"; then
16702      # The compiler can only warn and ignore the option if not recognized
16703      # So say no if there are warnings other than the usual output.
16704      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16705      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16706      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16707        lt_prog_compiler_pic_works_GCJ=yes
16708      fi
16709    fi
16710    $rm conftest*
16711
16712 fi
16713 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16714 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16715
16716 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16717     case $lt_prog_compiler_pic_GCJ in
16718      "" | " "*) ;;
16719      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16720      esac
16721 else
16722     lt_prog_compiler_pic_GCJ=
16723      lt_prog_compiler_can_build_shared_GCJ=no
16724 fi
16725
16726 fi
16727 case $host_os in
16728   # For platforms which do not support PIC, -DPIC is meaningless:
16729   *djgpp*)
16730     lt_prog_compiler_pic_GCJ=
16731     ;;
16732   *)
16733     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16734     ;;
16735 esac
16736
16737 #
16738 # Check to make sure the static flag actually works.
16739 #
16740 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16741 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16742 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16743 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746   lt_prog_compiler_static_works_GCJ=no
16747    save_LDFLAGS="$LDFLAGS"
16748    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16749    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16750    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16751      # The linker can only warn and ignore the option if not recognized
16752      # So say no if there are warnings
16753      if test -s conftest.err; then
16754        # Append any errors to the config.log.
16755        cat conftest.err 1>&5
16756        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16757        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16758        if diff conftest.exp conftest.er2 >/dev/null; then
16759          lt_prog_compiler_static_works_GCJ=yes
16760        fi
16761      else
16762        lt_prog_compiler_static_works_GCJ=yes
16763      fi
16764    fi
16765    $rm conftest*
16766    LDFLAGS="$save_LDFLAGS"
16767
16768 fi
16769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16770 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16771
16772 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16773     :
16774 else
16775     lt_prog_compiler_static_GCJ=
16776 fi
16777
16778
16779 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16781 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16782   echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784   lt_cv_prog_compiler_c_o_GCJ=no
16785    $rm -r conftest 2>/dev/null
16786    mkdir conftest
16787    cd conftest
16788    mkdir out
16789    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16790
16791    lt_compiler_flag="-o out/conftest2.$ac_objext"
16792    # Insert the option either (1) after the last *FLAGS variable, or
16793    # (2) before a word containing "conftest.", or (3) at the end.
16794    # Note that $ac_compile itself does not contain backslashes and begins
16795    # with a dollar sign (not a hyphen), so the echo should work correctly.
16796    lt_compile=`echo "$ac_compile" | $SED \
16797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16799    -e 's:$: $lt_compiler_flag:'`
16800    (eval echo "\"\$as_me:16800: $lt_compile\"" >&5)
16801    (eval "$lt_compile" 2>out/conftest.err)
16802    ac_status=$?
16803    cat out/conftest.err >&5
16804    echo "$as_me:16804: \$? = $ac_status" >&5
16805    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16806    then
16807      # The compiler can only warn and ignore the option if not recognized
16808      # So say no if there are warnings
16809      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16810      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16811      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16812        lt_cv_prog_compiler_c_o_GCJ=yes
16813      fi
16814    fi
16815    chmod u+w . 2>&5
16816    $rm conftest*
16817    # SGI C++ compiler will create directory out/ii_files/ for
16818    # template instantiation
16819    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16820    $rm out/* && rmdir out
16821    cd ..
16822    rmdir conftest
16823    $rm conftest*
16824
16825 fi
16826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16827 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16828
16829
16830 hard_links="nottested"
16831 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16832   # do not overwrite the value of need_locks provided by the user
16833   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16834 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16835   hard_links=yes
16836   $rm conftest*
16837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16838   touch conftest.a
16839   ln conftest.a conftest.b 2>&5 || hard_links=no
16840   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16841   { echo "$as_me:$LINENO: result: $hard_links" >&5
16842 echo "${ECHO_T}$hard_links" >&6; }
16843   if test "$hard_links" = no; then
16844     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16845 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16846     need_locks=warn
16847   fi
16848 else
16849   need_locks=no
16850 fi
16851
16852 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16854
16855   runpath_var=
16856   allow_undefined_flag_GCJ=
16857   enable_shared_with_static_runtimes_GCJ=no
16858   archive_cmds_GCJ=
16859   archive_expsym_cmds_GCJ=
16860   old_archive_From_new_cmds_GCJ=
16861   old_archive_from_expsyms_cmds_GCJ=
16862   export_dynamic_flag_spec_GCJ=
16863   whole_archive_flag_spec_GCJ=
16864   thread_safe_flag_spec_GCJ=
16865   hardcode_libdir_flag_spec_GCJ=
16866   hardcode_libdir_flag_spec_ld_GCJ=
16867   hardcode_libdir_separator_GCJ=
16868   hardcode_direct_GCJ=no
16869   hardcode_minus_L_GCJ=no
16870   hardcode_shlibpath_var_GCJ=unsupported
16871   link_all_deplibs_GCJ=unknown
16872   hardcode_automatic_GCJ=no
16873   module_cmds_GCJ=
16874   module_expsym_cmds_GCJ=
16875   always_export_symbols_GCJ=no
16876   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16877   # include_expsyms should be a list of space-separated symbols to be *always*
16878   # included in the symbol list
16879   include_expsyms_GCJ=
16880   # exclude_expsyms can be an extended regexp of symbols to exclude
16881   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16882   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16883   # as well as any symbol that contains `d'.
16884   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16885   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16886   # platforms (ab)use it in PIC code, but their linkers get confused if
16887   # the symbol is explicitly referenced.  Since portable code cannot
16888   # rely on this symbol name, it's probably fine to never include it in
16889   # preloaded symbol tables.
16890   extract_expsyms_cmds=
16891   # Just being paranoid about ensuring that cc_basename is set.
16892   for cc_temp in $compiler""; do
16893   case $cc_temp in
16894     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16895     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16896     \-*) ;;
16897     *) break;;
16898   esac
16899 done
16900 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16901
16902   case $host_os in
16903   cygwin* | mingw* | pw32*)
16904     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16905     # When not using gcc, we currently assume that we are using
16906     # Microsoft Visual C++.
16907     if test "$GCC" != yes; then
16908       with_gnu_ld=no
16909     fi
16910     ;;
16911   interix*)
16912     # we just hope/assume this is gcc and not c89 (= MSVC++)
16913     with_gnu_ld=yes
16914     ;;
16915   openbsd*)
16916     with_gnu_ld=no
16917     ;;
16918   esac
16919
16920   ld_shlibs_GCJ=yes
16921   if test "$with_gnu_ld" = yes; then
16922     # If archive_cmds runs LD, not CC, wlarc should be empty
16923     wlarc='${wl}'
16924
16925     # Set some defaults for GNU ld with shared library support. These
16926     # are reset later if shared libraries are not supported. Putting them
16927     # here allows them to be overridden if necessary.
16928     runpath_var=LD_RUN_PATH
16929     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16930     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16931     # ancient GNU ld didn't support --whole-archive et. al.
16932     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16933         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16934       else
16935         whole_archive_flag_spec_GCJ=
16936     fi
16937     supports_anon_versioning=no
16938     case `$LD -v 2>/dev/null` in
16939       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16940       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16941       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16942       *\ 2.11.*) ;; # other 2.11 versions
16943       *) supports_anon_versioning=yes ;;
16944     esac
16945
16946     # See if GNU ld supports shared libraries.
16947     case $host_os in
16948     aix3* | aix4* | aix5*)
16949       # On AIX/PPC, the GNU linker is very broken
16950       if test "$host_cpu" != ia64; then
16951         ld_shlibs_GCJ=no
16952         cat <<EOF 1>&2
16953
16954 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16955 *** to be unable to reliably create shared libraries on AIX.
16956 *** Therefore, libtool is disabling shared libraries support.  If you
16957 *** really care for shared libraries, you may want to modify your PATH
16958 *** so that a non-GNU linker is found, and then restart.
16959
16960 EOF
16961       fi
16962       ;;
16963
16964     amigaos*)
16965       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16966       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16967       hardcode_minus_L_GCJ=yes
16968
16969       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16970       # that the semantics of dynamic libraries on AmigaOS, at least up
16971       # to version 4, is to share data among multiple programs linked
16972       # with the same dynamic library.  Since this doesn't match the
16973       # behavior of shared libraries on other platforms, we can't use
16974       # them.
16975       ld_shlibs_GCJ=no
16976       ;;
16977
16978     beos*)
16979       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16980         allow_undefined_flag_GCJ=unsupported
16981         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16982         # support --undefined.  This deserves some investigation.  FIXME
16983         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984       else
16985         ld_shlibs_GCJ=no
16986       fi
16987       ;;
16988
16989     cygwin* | mingw* | pw32*)
16990       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16991       # as there is no search path for DLLs.
16992       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16993       allow_undefined_flag_GCJ=unsupported
16994       always_export_symbols_GCJ=no
16995       enable_shared_with_static_runtimes_GCJ=yes
16996       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16997
16998       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16999         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17000         # If the export-symbols file already is a .def file (1st line
17001         # is EXPORTS), use it as is; otherwise, prepend...
17002         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17003           cp $export_symbols $output_objdir/$soname.def;
17004         else
17005           echo EXPORTS > $output_objdir/$soname.def;
17006           cat $export_symbols >> $output_objdir/$soname.def;
17007         fi~
17008         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17009       else
17010         ld_shlibs_GCJ=no
17011       fi
17012       ;;
17013
17014     interix3*)
17015       hardcode_direct_GCJ=no
17016       hardcode_shlibpath_var_GCJ=no
17017       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17018       export_dynamic_flag_spec_GCJ='${wl}-E'
17019       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17020       # Instead, shared libraries are loaded at an image base (0x10000000 by
17021       # default) and relocated if they conflict, which is a slow very memory
17022       # consuming and fragmenting process.  To avoid this, we pick a random,
17023       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17024       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17025       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17026       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17027       ;;
17028
17029     linux*)
17030       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17031         tmp_addflag=
17032         case $cc_basename,$host_cpu in
17033         pgcc*)                          # Portland Group C compiler
17034           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17035           tmp_addflag=' $pic_flag'
17036           ;;
17037         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17038           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17039           tmp_addflag=' $pic_flag -Mnomain' ;;
17040         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17041           tmp_addflag=' -i_dynamic' ;;
17042         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17043           tmp_addflag=' -i_dynamic -nofor_main' ;;
17044         ifc* | ifort*)                  # Intel Fortran compiler
17045           tmp_addflag=' -nofor_main' ;;
17046         esac
17047         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17048
17049         if test $supports_anon_versioning = yes; then
17050           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17051   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17052   $echo "local: *; };" >> $output_objdir/$libname.ver~
17053           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17054         fi
17055       else
17056         ld_shlibs_GCJ=no
17057       fi
17058       ;;
17059
17060     netbsd*)
17061       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17062         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17063         wlarc=
17064       else
17065         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17066         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17067       fi
17068       ;;
17069
17070     solaris*)
17071       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17072         ld_shlibs_GCJ=no
17073         cat <<EOF 1>&2
17074
17075 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17076 *** create shared libraries on Solaris systems.  Therefore, libtool
17077 *** is disabling shared libraries support.  We urge you to upgrade GNU
17078 *** binutils to release 2.9.1 or newer.  Another option is to modify
17079 *** your PATH or compiler configuration so that the native linker is
17080 *** used, and then restart.
17081
17082 EOF
17083       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17084         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17085         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17086       else
17087         ld_shlibs_GCJ=no
17088       fi
17089       ;;
17090
17091     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17092       case `$LD -v 2>&1` in
17093         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17094         ld_shlibs_GCJ=no
17095         cat <<_LT_EOF 1>&2
17096
17097 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17098 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17099 *** is disabling shared libraries support.  We urge you to upgrade GNU
17100 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17101 *** your PATH or compiler configuration so that the native linker is
17102 *** used, and then restart.
17103
17104 _LT_EOF
17105         ;;
17106         *)
17107           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17108             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17109             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17110             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17111           else
17112             ld_shlibs_GCJ=no
17113           fi
17114         ;;
17115       esac
17116       ;;
17117
17118     sunos4*)
17119       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17120       wlarc=
17121       hardcode_direct_GCJ=yes
17122       hardcode_shlibpath_var_GCJ=no
17123       ;;
17124
17125     *)
17126       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17127         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17128         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17129       else
17130         ld_shlibs_GCJ=no
17131       fi
17132       ;;
17133     esac
17134
17135     if test "$ld_shlibs_GCJ" = no; then
17136       runpath_var=
17137       hardcode_libdir_flag_spec_GCJ=
17138       export_dynamic_flag_spec_GCJ=
17139       whole_archive_flag_spec_GCJ=
17140     fi
17141   else
17142     # PORTME fill in a description of your system's linker (not GNU ld)
17143     case $host_os in
17144     aix3*)
17145       allow_undefined_flag_GCJ=unsupported
17146       always_export_symbols_GCJ=yes
17147       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17148       # Note: this linker hardcodes the directories in LIBPATH if there
17149       # are no directories specified by -L.
17150       hardcode_minus_L_GCJ=yes
17151       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17152         # Neither direct hardcoding nor static linking is supported with a
17153         # broken collect2.
17154         hardcode_direct_GCJ=unsupported
17155       fi
17156       ;;
17157
17158     aix4* | aix5*)
17159       if test "$host_cpu" = ia64; then
17160         # On IA64, the linker does run time linking by default, so we don't
17161         # have to do anything special.
17162         aix_use_runtimelinking=no
17163         exp_sym_flag='-Bexport'
17164         no_entry_flag=""
17165       else
17166         # If we're using GNU nm, then we don't want the "-C" option.
17167         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17168         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17169           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17170         else
17171           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17172         fi
17173         aix_use_runtimelinking=no
17174
17175         # Test if we are trying to use run time linking or normal
17176         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17177         # need to do runtime linking.
17178         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17179           for ld_flag in $LDFLAGS; do
17180           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17181             aix_use_runtimelinking=yes
17182             break
17183           fi
17184           done
17185           ;;
17186         esac
17187
17188         exp_sym_flag='-bexport'
17189         no_entry_flag='-bnoentry'
17190       fi
17191
17192       # When large executables or shared objects are built, AIX ld can
17193       # have problems creating the table of contents.  If linking a library
17194       # or program results in "error TOC overflow" add -mminimal-toc to
17195       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17196       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17197
17198       archive_cmds_GCJ=''
17199       hardcode_direct_GCJ=yes
17200       hardcode_libdir_separator_GCJ=':'
17201       link_all_deplibs_GCJ=yes
17202
17203       if test "$GCC" = yes; then
17204         case $host_os in aix4.[012]|aix4.[012].*)
17205         # We only want to do this on AIX 4.2 and lower, the check
17206         # below for broken collect2 doesn't work under 4.3+
17207           collect2name=`${CC} -print-prog-name=collect2`
17208           if test -f "$collect2name" && \
17209            strings "$collect2name" | grep resolve_lib_name >/dev/null
17210           then
17211           # We have reworked collect2
17212           hardcode_direct_GCJ=yes
17213           else
17214           # We have old collect2
17215           hardcode_direct_GCJ=unsupported
17216           # It fails to find uninstalled libraries when the uninstalled
17217           # path is not listed in the libpath.  Setting hardcode_minus_L
17218           # to unsupported forces relinking
17219           hardcode_minus_L_GCJ=yes
17220           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17221           hardcode_libdir_separator_GCJ=
17222           fi
17223           ;;
17224         esac
17225         shared_flag='-shared'
17226         if test "$aix_use_runtimelinking" = yes; then
17227           shared_flag="$shared_flag "'${wl}-G'
17228         fi
17229       else
17230         # not using gcc
17231         if test "$host_cpu" = ia64; then
17232         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17233         # chokes on -Wl,-G. The following line is correct:
17234           shared_flag='-G'
17235         else
17236           if test "$aix_use_runtimelinking" = yes; then
17237             shared_flag='${wl}-G'
17238           else
17239             shared_flag='${wl}-bM:SRE'
17240           fi
17241         fi
17242       fi
17243
17244       # It seems that -bexpall does not export symbols beginning with
17245       # underscore (_), so it is better to generate a list of symbols to export.
17246       always_export_symbols_GCJ=yes
17247       if test "$aix_use_runtimelinking" = yes; then
17248         # Warning - without using the other runtime loading flags (-brtl),
17249         # -berok will link without error, but may produce a broken library.
17250         allow_undefined_flag_GCJ='-berok'
17251        # Determine the default libpath from the value encoded in an empty executable.
17252        cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258
17259 int
17260 main ()
17261 {
17262
17263   ;
17264   return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (ac_try="$ac_link"
17269 case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_link") 2>conftest.er1
17275   ac_status=$?
17276   grep -v '^ *+' conftest.er1 >conftest.err
17277   rm -f conftest.er1
17278   cat conftest.err >&5
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } && {
17281          test -z "$ac_c_werror_flag" ||
17282          test ! -s conftest.err
17283        } && test -s conftest$ac_exeext &&
17284        $as_test_x conftest$ac_exeext; then
17285
17286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17287 }'`
17288 # Check for a 64-bit object if we didn't find anything.
17289 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17290 }'`; fi
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17299       conftest$ac_exeext conftest.$ac_ext
17300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17301
17302        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17303         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17304        else
17305         if test "$host_cpu" = ia64; then
17306           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17307           allow_undefined_flag_GCJ="-z nodefs"
17308           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17309         else
17310          # Determine the default libpath from the value encoded in an empty executable.
17311          cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317
17318 int
17319 main ()
17320 {
17321
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330   *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333   (eval "$ac_link") 2>conftest.er1
17334   ac_status=$?
17335   grep -v '^ *+' conftest.er1 >conftest.err
17336   rm -f conftest.er1
17337   cat conftest.err >&5
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } && {
17340          test -z "$ac_c_werror_flag" ||
17341          test ! -s conftest.err
17342        } && test -s conftest$ac_exeext &&
17343        $as_test_x conftest$ac_exeext; then
17344
17345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17346 }'`
17347 # Check for a 64-bit object if we didn't find anything.
17348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17349 }'`; fi
17350 else
17351   echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354
17355 fi
17356
17357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17358       conftest$ac_exeext conftest.$ac_ext
17359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17360
17361          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17362           # Warning - without using the other run time loading flags,
17363           # -berok will link without error, but may produce a broken library.
17364           no_undefined_flag_GCJ=' ${wl}-bernotok'
17365           allow_undefined_flag_GCJ=' ${wl}-berok'
17366           # Exported symbols can be pulled into shared objects from archives
17367           whole_archive_flag_spec_GCJ='$convenience'
17368           archive_cmds_need_lc_GCJ=yes
17369           # This is similar to how AIX traditionally builds its shared libraries.
17370           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17371         fi
17372       fi
17373       ;;
17374
17375     amigaos*)
17376       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17377       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17378       hardcode_minus_L_GCJ=yes
17379       # see comment about different semantics on the GNU ld section
17380       ld_shlibs_GCJ=no
17381       ;;
17382
17383     bsdi[45]*)
17384       export_dynamic_flag_spec_GCJ=-rdynamic
17385       ;;
17386
17387     cygwin* | mingw* | pw32*)
17388       # When not using gcc, we currently assume that we are using
17389       # Microsoft Visual C++.
17390       # hardcode_libdir_flag_spec is actually meaningless, as there is
17391       # no search path for DLLs.
17392       hardcode_libdir_flag_spec_GCJ=' '
17393       allow_undefined_flag_GCJ=unsupported
17394       # Tell ltmain to make .lib files, not .a files.
17395       libext=lib
17396       # Tell ltmain to make .dll files, not .so files.
17397       shrext_cmds=".dll"
17398       # FIXME: Setting linknames here is a bad hack.
17399       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17400       # The linker will automatically build a .lib file if we build a DLL.
17401       old_archive_From_new_cmds_GCJ='true'
17402       # FIXME: Should let the user specify the lib program.
17403       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17404       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17405       enable_shared_with_static_runtimes_GCJ=yes
17406       ;;
17407
17408     darwin* | rhapsody*)
17409       case $host_os in
17410         rhapsody* | darwin1.[012])
17411          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17412          ;;
17413        *) # Darwin 1.3 on
17414          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17415            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17416          else
17417            case ${MACOSX_DEPLOYMENT_TARGET} in
17418              10.[012])
17419                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17420                ;;
17421              10.*)
17422                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17423                ;;
17424            esac
17425          fi
17426          ;;
17427       esac
17428       archive_cmds_need_lc_GCJ=no
17429       hardcode_direct_GCJ=no
17430       hardcode_automatic_GCJ=yes
17431       hardcode_shlibpath_var_GCJ=unsupported
17432       whole_archive_flag_spec_GCJ=''
17433       link_all_deplibs_GCJ=yes
17434     if test "$GCC" = yes ; then
17435         output_verbose_link_cmd='echo'
17436         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17437       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17438       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17439       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17440       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17441     else
17442       case $cc_basename in
17443         xlc*)
17444          output_verbose_link_cmd='echo'
17445          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17446          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17447           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17448          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17449           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17450           ;;
17451        *)
17452          ld_shlibs_GCJ=no
17453           ;;
17454       esac
17455     fi
17456       ;;
17457
17458     dgux*)
17459       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17460       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17461       hardcode_shlibpath_var_GCJ=no
17462       ;;
17463
17464     freebsd1*)
17465       ld_shlibs_GCJ=no
17466       ;;
17467
17468     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17469     # support.  Future versions do this automatically, but an explicit c++rt0.o
17470     # does not break anything, and helps significantly (at the cost of a little
17471     # extra space).
17472     freebsd2.2*)
17473       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17474       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17475       hardcode_direct_GCJ=yes
17476       hardcode_shlibpath_var_GCJ=no
17477       ;;
17478
17479     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17480     freebsd2*)
17481       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17482       hardcode_direct_GCJ=yes
17483       hardcode_minus_L_GCJ=yes
17484       hardcode_shlibpath_var_GCJ=no
17485       ;;
17486
17487     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17488     freebsd* | kfreebsd*-gnu | dragonfly*)
17489       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17490       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17491       hardcode_direct_GCJ=yes
17492       hardcode_shlibpath_var_GCJ=no
17493       ;;
17494
17495     hpux9*)
17496       if test "$GCC" = yes; then
17497         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17498       else
17499         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17500       fi
17501       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17502       hardcode_libdir_separator_GCJ=:
17503       hardcode_direct_GCJ=yes
17504
17505       # hardcode_minus_L: Not really in the search PATH,
17506       # but as the default location of the library.
17507       hardcode_minus_L_GCJ=yes
17508       export_dynamic_flag_spec_GCJ='${wl}-E'
17509       ;;
17510
17511     hpux10*)
17512       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17513         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17514       else
17515         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17516       fi
17517       if test "$with_gnu_ld" = no; then
17518         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17519         hardcode_libdir_separator_GCJ=:
17520
17521         hardcode_direct_GCJ=yes
17522         export_dynamic_flag_spec_GCJ='${wl}-E'
17523
17524         # hardcode_minus_L: Not really in the search PATH,
17525         # but as the default location of the library.
17526         hardcode_minus_L_GCJ=yes
17527       fi
17528       ;;
17529
17530     hpux11*)
17531       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17532         case $host_cpu in
17533         hppa*64*)
17534           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17535           ;;
17536         ia64*)
17537           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17538           ;;
17539         *)
17540           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17541           ;;
17542         esac
17543       else
17544         case $host_cpu in
17545         hppa*64*)
17546           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17547           ;;
17548         ia64*)
17549           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17550           ;;
17551         *)
17552           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17553           ;;
17554         esac
17555       fi
17556       if test "$with_gnu_ld" = no; then
17557         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17558         hardcode_libdir_separator_GCJ=:
17559
17560         case $host_cpu in
17561         hppa*64*|ia64*)
17562           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17563           hardcode_direct_GCJ=no
17564           hardcode_shlibpath_var_GCJ=no
17565           ;;
17566         *)
17567           hardcode_direct_GCJ=yes
17568           export_dynamic_flag_spec_GCJ='${wl}-E'
17569
17570           # hardcode_minus_L: Not really in the search PATH,
17571           # but as the default location of the library.
17572           hardcode_minus_L_GCJ=yes
17573           ;;
17574         esac
17575       fi
17576       ;;
17577
17578     irix5* | irix6* | nonstopux*)
17579       if test "$GCC" = yes; then
17580         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17581       else
17582         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17583         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17584       fi
17585       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17586       hardcode_libdir_separator_GCJ=:
17587       link_all_deplibs_GCJ=yes
17588       ;;
17589
17590     netbsd*)
17591       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17592         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17593       else
17594         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17595       fi
17596       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17597       hardcode_direct_GCJ=yes
17598       hardcode_shlibpath_var_GCJ=no
17599       ;;
17600
17601     newsos6)
17602       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17603       hardcode_direct_GCJ=yes
17604       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17605       hardcode_libdir_separator_GCJ=:
17606       hardcode_shlibpath_var_GCJ=no
17607       ;;
17608
17609     openbsd*)
17610       hardcode_direct_GCJ=yes
17611       hardcode_shlibpath_var_GCJ=no
17612       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17613         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17614         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17615         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17616         export_dynamic_flag_spec_GCJ='${wl}-E'
17617       else
17618        case $host_os in
17619          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17620            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17621            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17622            ;;
17623          *)
17624            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17625            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17626            ;;
17627        esac
17628       fi
17629       ;;
17630
17631     os2*)
17632       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17633       hardcode_minus_L_GCJ=yes
17634       allow_undefined_flag_GCJ=unsupported
17635       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17636       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17637       ;;
17638
17639     osf3*)
17640       if test "$GCC" = yes; then
17641         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17642         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17643       else
17644         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17645         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17646       fi
17647       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17648       hardcode_libdir_separator_GCJ=:
17649       ;;
17650
17651     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17652       if test "$GCC" = yes; then
17653         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17654         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17655         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17656       else
17657         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17658         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17659         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17660         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17661
17662         # Both c and cxx compiler support -rpath directly
17663         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17664       fi
17665       hardcode_libdir_separator_GCJ=:
17666       ;;
17667
17668     solaris*)
17669       no_undefined_flag_GCJ=' -z text'
17670       if test "$GCC" = yes; then
17671         wlarc='${wl}'
17672         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17673         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17674           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17675       else
17676         wlarc=''
17677         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17678         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17679         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17680       fi
17681       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17682       hardcode_shlibpath_var_GCJ=no
17683       case $host_os in
17684       solaris2.[0-5] | solaris2.[0-5].*) ;;
17685       *)
17686         # The compiler driver will combine linker options so we
17687         # cannot just pass the convience library names through
17688         # without $wl, iff we do not link with $LD.
17689         # Luckily, gcc supports the same syntax we need for Sun Studio.
17690         # Supported since Solaris 2.6 (maybe 2.5.1?)
17691         case $wlarc in
17692         '')
17693           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17694         *)
17695           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17696         esac ;;
17697       esac
17698       link_all_deplibs_GCJ=yes
17699       ;;
17700
17701     sunos4*)
17702       if test "x$host_vendor" = xsequent; then
17703         # Use $CC to link under sequent, because it throws in some extra .o
17704         # files that make .init and .fini sections work.
17705         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17706       else
17707         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17708       fi
17709       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17710       hardcode_direct_GCJ=yes
17711       hardcode_minus_L_GCJ=yes
17712       hardcode_shlibpath_var_GCJ=no
17713       ;;
17714
17715     sysv4)
17716       case $host_vendor in
17717         sni)
17718           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719           hardcode_direct_GCJ=yes # is this really true???
17720         ;;
17721         siemens)
17722           ## LD is ld it makes a PLAMLIB
17723           ## CC just makes a GrossModule.
17724           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17725           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17726           hardcode_direct_GCJ=no
17727         ;;
17728         motorola)
17729           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17730           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17731         ;;
17732       esac
17733       runpath_var='LD_RUN_PATH'
17734       hardcode_shlibpath_var_GCJ=no
17735       ;;
17736
17737     sysv4.3*)
17738       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739       hardcode_shlibpath_var_GCJ=no
17740       export_dynamic_flag_spec_GCJ='-Bexport'
17741       ;;
17742
17743     sysv4*MP*)
17744       if test -d /usr/nec; then
17745         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17746         hardcode_shlibpath_var_GCJ=no
17747         runpath_var=LD_RUN_PATH
17748         hardcode_runpath_var=yes
17749         ld_shlibs_GCJ=yes
17750       fi
17751       ;;
17752
17753     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17754       no_undefined_flag_GCJ='${wl}-z,text'
17755       archive_cmds_need_lc_GCJ=no
17756       hardcode_shlibpath_var_GCJ=no
17757       runpath_var='LD_RUN_PATH'
17758
17759       if test "$GCC" = yes; then
17760         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17762       else
17763         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17764         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17765       fi
17766       ;;
17767
17768     sysv5* | sco3.2v5* | sco5v6*)
17769       # Note: We can NOT use -z defs as we might desire, because we do not
17770       # link with -lc, and that would cause any symbols used from libc to
17771       # always be unresolved, which means just about no library would
17772       # ever link correctly.  If we're not using GNU ld we use -z text
17773       # though, which does catch some bad symbols but isn't as heavy-handed
17774       # as -z defs.
17775       no_undefined_flag_GCJ='${wl}-z,text'
17776       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17777       archive_cmds_need_lc_GCJ=no
17778       hardcode_shlibpath_var_GCJ=no
17779       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17780       hardcode_libdir_separator_GCJ=':'
17781       link_all_deplibs_GCJ=yes
17782       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17783       runpath_var='LD_RUN_PATH'
17784
17785       if test "$GCC" = yes; then
17786         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17788       else
17789         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17790         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17791       fi
17792       ;;
17793
17794     uts4*)
17795       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17796       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797       hardcode_shlibpath_var_GCJ=no
17798       ;;
17799
17800     *)
17801       ld_shlibs_GCJ=no
17802       ;;
17803     esac
17804   fi
17805
17806 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17807 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17808 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17809
17810 #
17811 # Do we need to explicitly link libc?
17812 #
17813 case "x$archive_cmds_need_lc_GCJ" in
17814 x|xyes)
17815   # Assume -lc should be added
17816   archive_cmds_need_lc_GCJ=yes
17817
17818   if test "$enable_shared" = yes && test "$GCC" = yes; then
17819     case $archive_cmds_GCJ in
17820     *'~'*)
17821       # FIXME: we may have to deal with multi-command sequences.
17822       ;;
17823     '$CC '*)
17824       # Test whether the compiler implicitly links with -lc since on some
17825       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17826       # to ld, don't add -lc before -lgcc.
17827       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17828 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17829       $rm conftest*
17830       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17831
17832       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833   (eval $ac_compile) 2>&5
17834   ac_status=$?
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } 2>conftest.err; then
17837         soname=conftest
17838         lib=conftest
17839         libobjs=conftest.$ac_objext
17840         deplibs=
17841         wl=$lt_prog_compiler_wl_GCJ
17842         pic_flag=$lt_prog_compiler_pic_GCJ
17843         compiler_flags=-v
17844         linker_flags=-v
17845         verstring=
17846         output_objdir=.
17847         libname=conftest
17848         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17849         allow_undefined_flag_GCJ=
17850         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17851   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }
17855         then
17856           archive_cmds_need_lc_GCJ=no
17857         else
17858           archive_cmds_need_lc_GCJ=yes
17859         fi
17860         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17861       else
17862         cat conftest.err 1>&5
17863       fi
17864       $rm conftest*
17865       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17866 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17867       ;;
17868     esac
17869   fi
17870   ;;
17871 esac
17872
17873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17875 library_names_spec=
17876 libname_spec='lib$name'
17877 soname_spec=
17878 shrext_cmds=".so"
17879 postinstall_cmds=
17880 postuninstall_cmds=
17881 finish_cmds=
17882 finish_eval=
17883 shlibpath_var=
17884 shlibpath_overrides_runpath=unknown
17885 version_type=none
17886 dynamic_linker="$host_os ld.so"
17887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17888 if test "$GCC" = yes; then
17889   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17890   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17891     # if the path contains ";" then we assume it to be the separator
17892     # otherwise default to the standard path separator (i.e. ":") - it is
17893     # assumed that no part of a normal pathname contains ";" but that should
17894     # okay in the real world where ";" in dirpaths is itself problematic.
17895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17896   else
17897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17898   fi
17899 else
17900   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17901 fi
17902 need_lib_prefix=unknown
17903 hardcode_into_libs=no
17904
17905 # when you set need_version to no, make sure it does not cause -set_version
17906 # flags to be left without arguments
17907 need_version=unknown
17908
17909 case $host_os in
17910 aix3*)
17911   version_type=linux
17912   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17913   shlibpath_var=LIBPATH
17914
17915   # AIX 3 has no versioning support, so we append a major version to the name.
17916   soname_spec='${libname}${release}${shared_ext}$major'
17917   ;;
17918
17919 aix4* | aix5*)
17920   version_type=linux
17921   need_lib_prefix=no
17922   need_version=no
17923   hardcode_into_libs=yes
17924   if test "$host_cpu" = ia64; then
17925     # AIX 5 supports IA64
17926     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17927     shlibpath_var=LD_LIBRARY_PATH
17928   else
17929     # With GCC up to 2.95.x, collect2 would create an import file
17930     # for dependence libraries.  The import file would start with
17931     # the line `#! .'.  This would cause the generated library to
17932     # depend on `.', always an invalid library.  This was fixed in
17933     # development snapshots of GCC prior to 3.0.
17934     case $host_os in
17935       aix4 | aix4.[01] | aix4.[01].*)
17936       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17937            echo ' yes '
17938            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17939         :
17940       else
17941         can_build_shared=no
17942       fi
17943       ;;
17944     esac
17945     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17946     # soname into executable. Probably we can add versioning support to
17947     # collect2, so additional links can be useful in future.
17948     if test "$aix_use_runtimelinking" = yes; then
17949       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17950       # instead of lib<name>.a to let people know that these are not
17951       # typical AIX shared libraries.
17952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953     else
17954       # We preserve .a as extension for shared libraries through AIX4.2
17955       # and later when we are not doing run time linking.
17956       library_names_spec='${libname}${release}.a $libname.a'
17957       soname_spec='${libname}${release}${shared_ext}$major'
17958     fi
17959     shlibpath_var=LIBPATH
17960   fi
17961   ;;
17962
17963 amigaos*)
17964   library_names_spec='$libname.ixlibrary $libname.a'
17965   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17966   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17967   ;;
17968
17969 beos*)
17970   library_names_spec='${libname}${shared_ext}'
17971   dynamic_linker="$host_os ld.so"
17972   shlibpath_var=LIBRARY_PATH
17973   ;;
17974
17975 bsdi[45]*)
17976   version_type=linux
17977   need_version=no
17978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17979   soname_spec='${libname}${release}${shared_ext}$major'
17980   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17981   shlibpath_var=LD_LIBRARY_PATH
17982   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17983   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17984   # the default ld.so.conf also contains /usr/contrib/lib and
17985   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17986   # libtool to hard-code these into programs
17987   ;;
17988
17989 cygwin* | mingw* | pw32*)
17990   version_type=windows
17991   shrext_cmds=".dll"
17992   need_version=no
17993   need_lib_prefix=no
17994
17995   case $GCC,$host_os in
17996   yes,cygwin* | yes,mingw* | yes,pw32*)
17997     library_names_spec='$libname.dll.a'
17998     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17999     postinstall_cmds='base_file=`basename \${file}`~
18000       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18001       dldir=$destdir/`dirname \$dlpath`~
18002       test -d \$dldir || mkdir -p \$dldir~
18003       $install_prog $dir/$dlname \$dldir/$dlname~
18004       chmod a+x \$dldir/$dlname'
18005     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18006       dlpath=$dir/\$dldll~
18007        $rm \$dlpath'
18008     shlibpath_overrides_runpath=yes
18009
18010     case $host_os in
18011     cygwin*)
18012       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18013       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18014       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18015       ;;
18016     mingw*)
18017       # MinGW DLLs use traditional 'lib' prefix
18018       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18019       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18020       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18021         # It is most probably a Windows format PATH printed by
18022         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18023         # path with ; separators, and with drive letters. We can handle the
18024         # drive letters (cygwin fileutils understands them), so leave them,
18025         # especially as we might pass files found there to a mingw objdump,
18026         # which wouldn't understand a cygwinified path. Ahh.
18027         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18028       else
18029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18030       fi
18031       ;;
18032     pw32*)
18033       # pw32 DLLs use 'pw' prefix rather than 'lib'
18034       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18035       ;;
18036     esac
18037     ;;
18038
18039   *)
18040     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18041     ;;
18042   esac
18043   dynamic_linker='Win32 ld.exe'
18044   # FIXME: first we should search . and the directory the executable is in
18045   shlibpath_var=PATH
18046   ;;
18047
18048 darwin* | rhapsody*)
18049   dynamic_linker="$host_os dyld"
18050   version_type=darwin
18051   need_lib_prefix=no
18052   need_version=no
18053   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18054   soname_spec='${libname}${release}${major}$shared_ext'
18055   shlibpath_overrides_runpath=yes
18056   shlibpath_var=DYLD_LIBRARY_PATH
18057   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18058   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18059   if test "$GCC" = yes; then
18060     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18061   else
18062     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18063   fi
18064   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18065   ;;
18066
18067 dgux*)
18068   version_type=linux
18069   need_lib_prefix=no
18070   need_version=no
18071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18072   soname_spec='${libname}${release}${shared_ext}$major'
18073   shlibpath_var=LD_LIBRARY_PATH
18074   ;;
18075
18076 freebsd1*)
18077   dynamic_linker=no
18078   ;;
18079
18080 kfreebsd*-gnu)
18081   version_type=linux
18082   need_lib_prefix=no
18083   need_version=no
18084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085   soname_spec='${libname}${release}${shared_ext}$major'
18086   shlibpath_var=LD_LIBRARY_PATH
18087   shlibpath_overrides_runpath=no
18088   hardcode_into_libs=yes
18089   dynamic_linker='GNU ld.so'
18090   ;;
18091
18092 freebsd* | dragonfly*)
18093   # DragonFly does not have aout.  When/if they implement a new
18094   # versioning mechanism, adjust this.
18095   if test -x /usr/bin/objformat; then
18096     objformat=`/usr/bin/objformat`
18097   else
18098     case $host_os in
18099     freebsd[123]*) objformat=aout ;;
18100     *) objformat=elf ;;
18101     esac
18102   fi
18103   version_type=freebsd-$objformat
18104   case $version_type in
18105     freebsd-elf*)
18106       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18107       need_version=no
18108       need_lib_prefix=no
18109       ;;
18110     freebsd-*)
18111       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18112       need_version=yes
18113       ;;
18114   esac
18115   shlibpath_var=LD_LIBRARY_PATH
18116   case $host_os in
18117   freebsd2*)
18118     shlibpath_overrides_runpath=yes
18119     ;;
18120   freebsd3.[01]* | freebsdelf3.[01]*)
18121     shlibpath_overrides_runpath=yes
18122     hardcode_into_libs=yes
18123     ;;
18124   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18125   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18126     shlibpath_overrides_runpath=no
18127     hardcode_into_libs=yes
18128     ;;
18129   freebsd*) # from 4.6 on
18130     shlibpath_overrides_runpath=yes
18131     hardcode_into_libs=yes
18132     ;;
18133   esac
18134   ;;
18135
18136 gnu*)
18137   version_type=linux
18138   need_lib_prefix=no
18139   need_version=no
18140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18141   soname_spec='${libname}${release}${shared_ext}$major'
18142   shlibpath_var=LD_LIBRARY_PATH
18143   hardcode_into_libs=yes
18144   ;;
18145
18146 hpux9* | hpux10* | hpux11*)
18147   # Give a soname corresponding to the major version so that dld.sl refuses to
18148   # link against other versions.
18149   version_type=sunos
18150   need_lib_prefix=no
18151   need_version=no
18152   case $host_cpu in
18153   ia64*)
18154     shrext_cmds='.so'
18155     hardcode_into_libs=yes
18156     dynamic_linker="$host_os dld.so"
18157     shlibpath_var=LD_LIBRARY_PATH
18158     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160     soname_spec='${libname}${release}${shared_ext}$major'
18161     if test "X$HPUX_IA64_MODE" = X32; then
18162       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18163     else
18164       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18165     fi
18166     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18167     ;;
18168    hppa*64*)
18169      shrext_cmds='.sl'
18170      hardcode_into_libs=yes
18171      dynamic_linker="$host_os dld.sl"
18172      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18173      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18174      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175      soname_spec='${libname}${release}${shared_ext}$major'
18176      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18177      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18178      ;;
18179    *)
18180     shrext_cmds='.sl'
18181     dynamic_linker="$host_os dld.sl"
18182     shlibpath_var=SHLIB_PATH
18183     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185     soname_spec='${libname}${release}${shared_ext}$major'
18186     ;;
18187   esac
18188   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18189   postinstall_cmds='chmod 555 $lib'
18190   ;;
18191
18192 interix3*)
18193   version_type=linux
18194   need_lib_prefix=no
18195   need_version=no
18196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18197   soname_spec='${libname}${release}${shared_ext}$major'
18198   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18199   shlibpath_var=LD_LIBRARY_PATH
18200   shlibpath_overrides_runpath=no
18201   hardcode_into_libs=yes
18202   ;;
18203
18204 irix5* | irix6* | nonstopux*)
18205   case $host_os in
18206     nonstopux*) version_type=nonstopux ;;
18207     *)
18208         if test "$lt_cv_prog_gnu_ld" = yes; then
18209                 version_type=linux
18210         else
18211                 version_type=irix
18212         fi ;;
18213   esac
18214   need_lib_prefix=no
18215   need_version=no
18216   soname_spec='${libname}${release}${shared_ext}$major'
18217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18218   case $host_os in
18219   irix5* | nonstopux*)
18220     libsuff= shlibsuff=
18221     ;;
18222   *)
18223     case $LD in # libtool.m4 will add one of these switches to LD
18224     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18225       libsuff= shlibsuff= libmagic=32-bit;;
18226     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18227       libsuff=32 shlibsuff=N32 libmagic=N32;;
18228     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18229       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18230     *) libsuff= shlibsuff= libmagic=never-match;;
18231     esac
18232     ;;
18233   esac
18234   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18235   shlibpath_overrides_runpath=no
18236   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18237   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18238   hardcode_into_libs=yes
18239   ;;
18240
18241 # No shared lib support for Linux oldld, aout, or coff.
18242 linux*oldld* | linux*aout* | linux*coff*)
18243   dynamic_linker=no
18244   ;;
18245
18246 # This must be Linux ELF.
18247 linux*)
18248   version_type=linux
18249   need_lib_prefix=no
18250   need_version=no
18251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252   soname_spec='${libname}${release}${shared_ext}$major'
18253   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18254   shlibpath_var=LD_LIBRARY_PATH
18255   shlibpath_overrides_runpath=no
18256   # This implies no fast_install, which is unacceptable.
18257   # Some rework will be needed to allow for fast_install
18258   # before this can be enabled.
18259   hardcode_into_libs=yes
18260
18261   # Append ld.so.conf contents to the search path
18262   if test -f /etc/ld.so.conf; then
18263     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18264     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18265   fi
18266
18267   # We used to test for /lib/ld.so.1 and disable shared libraries on
18268   # powerpc, because MkLinux only supported shared libraries with the
18269   # GNU dynamic linker.  Since this was broken with cross compilers,
18270   # most powerpc-linux boxes support dynamic linking these days and
18271   # people can always --disable-shared, the test was removed, and we
18272   # assume the GNU/Linux dynamic linker is in use.
18273   dynamic_linker='GNU/Linux ld.so'
18274   ;;
18275
18276 knetbsd*-gnu)
18277   version_type=linux
18278   need_lib_prefix=no
18279   need_version=no
18280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18281   soname_spec='${libname}${release}${shared_ext}$major'
18282   shlibpath_var=LD_LIBRARY_PATH
18283   shlibpath_overrides_runpath=no
18284   hardcode_into_libs=yes
18285   dynamic_linker='GNU ld.so'
18286   ;;
18287
18288 netbsd*)
18289   version_type=sunos
18290   need_lib_prefix=no
18291   need_version=no
18292   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18294     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18295     dynamic_linker='NetBSD (a.out) ld.so'
18296   else
18297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18298     soname_spec='${libname}${release}${shared_ext}$major'
18299     dynamic_linker='NetBSD ld.elf_so'
18300   fi
18301   shlibpath_var=LD_LIBRARY_PATH
18302   shlibpath_overrides_runpath=yes
18303   hardcode_into_libs=yes
18304   ;;
18305
18306 newsos6)
18307   version_type=linux
18308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309   shlibpath_var=LD_LIBRARY_PATH
18310   shlibpath_overrides_runpath=yes
18311   ;;
18312
18313 nto-qnx*)
18314   version_type=linux
18315   need_lib_prefix=no
18316   need_version=no
18317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318   soname_spec='${libname}${release}${shared_ext}$major'
18319   shlibpath_var=LD_LIBRARY_PATH
18320   shlibpath_overrides_runpath=yes
18321   ;;
18322
18323 openbsd*)
18324   version_type=sunos
18325   sys_lib_dlsearch_path_spec="/usr/lib"
18326   need_lib_prefix=no
18327   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18328   case $host_os in
18329     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18330     *)                         need_version=no  ;;
18331   esac
18332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18333   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18334   shlibpath_var=LD_LIBRARY_PATH
18335   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18336     case $host_os in
18337       openbsd2.[89] | openbsd2.[89].*)
18338         shlibpath_overrides_runpath=no
18339         ;;
18340       *)
18341         shlibpath_overrides_runpath=yes
18342         ;;
18343       esac
18344   else
18345     shlibpath_overrides_runpath=yes
18346   fi
18347   ;;
18348
18349 os2*)
18350   libname_spec='$name'
18351   shrext_cmds=".dll"
18352   need_lib_prefix=no
18353   library_names_spec='$libname${shared_ext} $libname.a'
18354   dynamic_linker='OS/2 ld.exe'
18355   shlibpath_var=LIBPATH
18356   ;;
18357
18358 osf3* | osf4* | osf5*)
18359   version_type=osf
18360   need_lib_prefix=no
18361   need_version=no
18362   soname_spec='${libname}${release}${shared_ext}$major'
18363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364   shlibpath_var=LD_LIBRARY_PATH
18365   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18366   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18367   ;;
18368
18369 solaris*)
18370   version_type=linux
18371   need_lib_prefix=no
18372   need_version=no
18373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18374   soname_spec='${libname}${release}${shared_ext}$major'
18375   shlibpath_var=LD_LIBRARY_PATH
18376   shlibpath_overrides_runpath=yes
18377   hardcode_into_libs=yes
18378   # ldd complains unless libraries are executable
18379   postinstall_cmds='chmod +x $lib'
18380   ;;
18381
18382 sunos4*)
18383   version_type=sunos
18384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18385   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18386   shlibpath_var=LD_LIBRARY_PATH
18387   shlibpath_overrides_runpath=yes
18388   if test "$with_gnu_ld" = yes; then
18389     need_lib_prefix=no
18390   fi
18391   need_version=yes
18392   ;;
18393
18394 sysv4 | sysv4.3*)
18395   version_type=linux
18396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18397   soname_spec='${libname}${release}${shared_ext}$major'
18398   shlibpath_var=LD_LIBRARY_PATH
18399   case $host_vendor in
18400     sni)
18401       shlibpath_overrides_runpath=no
18402       need_lib_prefix=no
18403       export_dynamic_flag_spec='${wl}-Blargedynsym'
18404       runpath_var=LD_RUN_PATH
18405       ;;
18406     siemens)
18407       need_lib_prefix=no
18408       ;;
18409     motorola)
18410       need_lib_prefix=no
18411       need_version=no
18412       shlibpath_overrides_runpath=no
18413       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18414       ;;
18415   esac
18416   ;;
18417
18418 sysv4*MP*)
18419   if test -d /usr/nec ;then
18420     version_type=linux
18421     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18422     soname_spec='$libname${shared_ext}.$major'
18423     shlibpath_var=LD_LIBRARY_PATH
18424   fi
18425   ;;
18426
18427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18428   version_type=freebsd-elf
18429   need_lib_prefix=no
18430   need_version=no
18431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18432   soname_spec='${libname}${release}${shared_ext}$major'
18433   shlibpath_var=LD_LIBRARY_PATH
18434   hardcode_into_libs=yes
18435   if test "$with_gnu_ld" = yes; then
18436     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18437     shlibpath_overrides_runpath=no
18438   else
18439     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18440     shlibpath_overrides_runpath=yes
18441     case $host_os in
18442       sco3.2v5*)
18443         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18444         ;;
18445     esac
18446   fi
18447   sys_lib_dlsearch_path_spec='/usr/lib'
18448   ;;
18449
18450 uts4*)
18451   version_type=linux
18452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18453   soname_spec='${libname}${release}${shared_ext}$major'
18454   shlibpath_var=LD_LIBRARY_PATH
18455   ;;
18456
18457 *)
18458   dynamic_linker=no
18459   ;;
18460 esac
18461 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18462 echo "${ECHO_T}$dynamic_linker" >&6; }
18463 test "$dynamic_linker" = no && can_build_shared=no
18464
18465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18466 if test "$GCC" = yes; then
18467   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18468 fi
18469
18470 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18471 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18472 hardcode_action_GCJ=
18473 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18474    test -n "$runpath_var_GCJ" || \
18475    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18476
18477   # We can hardcode non-existant directories.
18478   if test "$hardcode_direct_GCJ" != no &&
18479      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18480      # have to relink, otherwise we might link with an installed library
18481      # when we should be linking with a yet-to-be-installed one
18482      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18483      test "$hardcode_minus_L_GCJ" != no; then
18484     # Linking always hardcodes the temporary library directory.
18485     hardcode_action_GCJ=relink
18486   else
18487     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18488     hardcode_action_GCJ=immediate
18489   fi
18490 else
18491   # We cannot hardcode anything, or else we can only hardcode existing
18492   # directories.
18493   hardcode_action_GCJ=unsupported
18494 fi
18495 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18496 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18497
18498 if test "$hardcode_action_GCJ" = relink; then
18499   # Fast installation is not supported
18500   enable_fast_install=no
18501 elif test "$shlibpath_overrides_runpath" = yes ||
18502      test "$enable_shared" = no; then
18503   # Fast installation is not necessary
18504   enable_fast_install=needless
18505 fi
18506
18507
18508 # The else clause should only fire when bootstrapping the
18509 # libtool distribution, otherwise you forgot to ship ltmain.sh
18510 # with your package, and you will get complaints that there are
18511 # no rules to generate ltmain.sh.
18512 if test -f "$ltmain"; then
18513   # See if we are running on zsh, and set the options which allow our commands through
18514   # without removal of \ escapes.
18515   if test -n "${ZSH_VERSION+set}" ; then
18516     setopt NO_GLOB_SUBST
18517   fi
18518   # Now quote all the things that may contain metacharacters while being
18519   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18520   # variables and quote the copies for generation of the libtool script.
18521   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18522     SED SHELL STRIP \
18523     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18524     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18525     deplibs_check_method reload_flag reload_cmds need_locks \
18526     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18527     lt_cv_sys_global_symbol_to_c_name_address \
18528     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18529     old_postinstall_cmds old_postuninstall_cmds \
18530     compiler_GCJ \
18531     CC_GCJ \
18532     LD_GCJ \
18533     lt_prog_compiler_wl_GCJ \
18534     lt_prog_compiler_pic_GCJ \
18535     lt_prog_compiler_static_GCJ \
18536     lt_prog_compiler_no_builtin_flag_GCJ \
18537     export_dynamic_flag_spec_GCJ \
18538     thread_safe_flag_spec_GCJ \
18539     whole_archive_flag_spec_GCJ \
18540     enable_shared_with_static_runtimes_GCJ \
18541     old_archive_cmds_GCJ \
18542     old_archive_from_new_cmds_GCJ \
18543     predep_objects_GCJ \
18544     postdep_objects_GCJ \
18545     predeps_GCJ \
18546     postdeps_GCJ \
18547     compiler_lib_search_path_GCJ \
18548     archive_cmds_GCJ \
18549     archive_expsym_cmds_GCJ \
18550     postinstall_cmds_GCJ \
18551     postuninstall_cmds_GCJ \
18552     old_archive_from_expsyms_cmds_GCJ \
18553     allow_undefined_flag_GCJ \
18554     no_undefined_flag_GCJ \
18555     export_symbols_cmds_GCJ \
18556     hardcode_libdir_flag_spec_GCJ \
18557     hardcode_libdir_flag_spec_ld_GCJ \
18558     hardcode_libdir_separator_GCJ \
18559     hardcode_automatic_GCJ \
18560     module_cmds_GCJ \
18561     module_expsym_cmds_GCJ \
18562     lt_cv_prog_compiler_c_o_GCJ \
18563     exclude_expsyms_GCJ \
18564     include_expsyms_GCJ; do
18565
18566     case $var in
18567     old_archive_cmds_GCJ | \
18568     old_archive_from_new_cmds_GCJ | \
18569     archive_cmds_GCJ | \
18570     archive_expsym_cmds_GCJ | \
18571     module_cmds_GCJ | \
18572     module_expsym_cmds_GCJ | \
18573     old_archive_from_expsyms_cmds_GCJ | \
18574     export_symbols_cmds_GCJ | \
18575     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18576     postinstall_cmds | postuninstall_cmds | \
18577     old_postinstall_cmds | old_postuninstall_cmds | \
18578     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18579       # Double-quote double-evaled strings.
18580       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18581       ;;
18582     *)
18583       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18584       ;;
18585     esac
18586   done
18587
18588   case $lt_echo in
18589   *'\$0 --fallback-echo"')
18590     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18591     ;;
18592   esac
18593
18594 cfgfile="$ofile"
18595
18596   cat <<__EOF__ >> "$cfgfile"
18597 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18598
18599 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18600
18601 # Shell to use when invoking shell scripts.
18602 SHELL=$lt_SHELL
18603
18604 # Whether or not to build shared libraries.
18605 build_libtool_libs=$enable_shared
18606
18607 # Whether or not to build static libraries.
18608 build_old_libs=$enable_static
18609
18610 # Whether or not to add -lc for building shared libraries.
18611 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18612
18613 # Whether or not to disallow shared libs when runtime libs are static
18614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18615
18616 # Whether or not to optimize for fast installation.
18617 fast_install=$enable_fast_install
18618
18619 # The host system.
18620 host_alias=$host_alias
18621 host=$host
18622 host_os=$host_os
18623
18624 # The build system.
18625 build_alias=$build_alias
18626 build=$build
18627 build_os=$build_os
18628
18629 # An echo program that does not interpret backslashes.
18630 echo=$lt_echo
18631
18632 # The archiver.
18633 AR=$lt_AR
18634 AR_FLAGS=$lt_AR_FLAGS
18635
18636 # A C compiler.
18637 LTCC=$lt_LTCC
18638
18639 # LTCC compiler flags.
18640 LTCFLAGS=$lt_LTCFLAGS
18641
18642 # A language-specific compiler.
18643 CC=$lt_compiler_GCJ
18644
18645 # Is the compiler the GNU C compiler?
18646 with_gcc=$GCC_GCJ
18647
18648 # An ERE matcher.
18649 EGREP=$lt_EGREP
18650
18651 # The linker used to build libraries.
18652 LD=$lt_LD_GCJ
18653
18654 # Whether we need hard or soft links.
18655 LN_S=$lt_LN_S
18656
18657 # A BSD-compatible nm program.
18658 NM=$lt_NM
18659
18660 # A symbol stripping program
18661 STRIP=$lt_STRIP
18662
18663 # Used to examine libraries when file_magic_cmd begins "file"
18664 MAGIC_CMD=$MAGIC_CMD
18665
18666 # Used on cygwin: DLL creation program.
18667 DLLTOOL="$DLLTOOL"
18668
18669 # Used on cygwin: object dumper.
18670 OBJDUMP="$OBJDUMP"
18671
18672 # Used on cygwin: assembler.
18673 AS="$AS"
18674
18675 # The name of the directory that contains temporary libtool files.
18676 objdir=$objdir
18677
18678 # How to create reloadable object files.
18679 reload_flag=$lt_reload_flag
18680 reload_cmds=$lt_reload_cmds
18681
18682 # How to pass a linker flag through the compiler.
18683 wl=$lt_lt_prog_compiler_wl_GCJ
18684
18685 # Object file suffix (normally "o").
18686 objext="$ac_objext"
18687
18688 # Old archive suffix (normally "a").
18689 libext="$libext"
18690
18691 # Shared library suffix (normally ".so").
18692 shrext_cmds='$shrext_cmds'
18693
18694 # Executable file suffix (normally "").
18695 exeext="$exeext"
18696
18697 # Additional compiler flags for building library objects.
18698 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18699 pic_mode=$pic_mode
18700
18701 # What is the maximum length of a command?
18702 max_cmd_len=$lt_cv_sys_max_cmd_len
18703
18704 # Does compiler simultaneously support -c and -o options?
18705 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18706
18707 # Must we lock files when doing compilation?
18708 need_locks=$lt_need_locks
18709
18710 # Do we need the lib prefix for modules?
18711 need_lib_prefix=$need_lib_prefix
18712
18713 # Do we need a version for libraries?
18714 need_version=$need_version
18715
18716 # Whether dlopen is supported.
18717 dlopen_support=$enable_dlopen
18718
18719 # Whether dlopen of programs is supported.
18720 dlopen_self=$enable_dlopen_self
18721
18722 # Whether dlopen of statically linked programs is supported.
18723 dlopen_self_static=$enable_dlopen_self_static
18724
18725 # Compiler flag to prevent dynamic linking.
18726 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18727
18728 # Compiler flag to turn off builtin functions.
18729 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18730
18731 # Compiler flag to allow reflexive dlopens.
18732 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18733
18734 # Compiler flag to generate shared objects directly from archives.
18735 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18736
18737 # Compiler flag to generate thread-safe objects.
18738 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18739
18740 # Library versioning type.
18741 version_type=$version_type
18742
18743 # Format of library name prefix.
18744 libname_spec=$lt_libname_spec
18745
18746 # List of archive names.  First name is the real one, the rest are links.
18747 # The last name is the one that the linker finds with -lNAME.
18748 library_names_spec=$lt_library_names_spec
18749
18750 # The coded name of the library, if different from the real name.
18751 soname_spec=$lt_soname_spec
18752
18753 # Commands used to build and install an old-style archive.
18754 RANLIB=$lt_RANLIB
18755 old_archive_cmds=$lt_old_archive_cmds_GCJ
18756 old_postinstall_cmds=$lt_old_postinstall_cmds
18757 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18758
18759 # Create an old-style archive from a shared archive.
18760 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18761
18762 # Create a temporary old-style archive to link instead of a shared archive.
18763 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18764
18765 # Commands used to build and install a shared archive.
18766 archive_cmds=$lt_archive_cmds_GCJ
18767 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18768 postinstall_cmds=$lt_postinstall_cmds
18769 postuninstall_cmds=$lt_postuninstall_cmds
18770
18771 # Commands used to build a loadable module (assumed same as above if empty)
18772 module_cmds=$lt_module_cmds_GCJ
18773 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18774
18775 # Commands to strip libraries.
18776 old_striplib=$lt_old_striplib
18777 striplib=$lt_striplib
18778
18779 # Dependencies to place before the objects being linked to create a
18780 # shared library.
18781 predep_objects=$lt_predep_objects_GCJ
18782
18783 # Dependencies to place after the objects being linked to create a
18784 # shared library.
18785 postdep_objects=$lt_postdep_objects_GCJ
18786
18787 # Dependencies to place before the objects being linked to create a
18788 # shared library.
18789 predeps=$lt_predeps_GCJ
18790
18791 # Dependencies to place after the objects being linked to create a
18792 # shared library.
18793 postdeps=$lt_postdeps_GCJ
18794
18795 # The library search path used internally by the compiler when linking
18796 # a shared library.
18797 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18798
18799 # Method to check whether dependent libraries are shared objects.
18800 deplibs_check_method=$lt_deplibs_check_method
18801
18802 # Command to use when deplibs_check_method == file_magic.
18803 file_magic_cmd=$lt_file_magic_cmd
18804
18805 # Flag that allows shared libraries with undefined symbols to be built.
18806 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18807
18808 # Flag that forces no undefined symbols.
18809 no_undefined_flag=$lt_no_undefined_flag_GCJ
18810
18811 # Commands used to finish a libtool library installation in a directory.
18812 finish_cmds=$lt_finish_cmds
18813
18814 # Same as above, but a single script fragment to be evaled but not shown.
18815 finish_eval=$lt_finish_eval
18816
18817 # Take the output of nm and produce a listing of raw symbols and C names.
18818 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18819
18820 # Transform the output of nm in a proper C declaration
18821 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18822
18823 # Transform the output of nm in a C name address pair
18824 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18825
18826 # This is the shared library runtime path variable.
18827 runpath_var=$runpath_var
18828
18829 # This is the shared library path variable.
18830 shlibpath_var=$shlibpath_var
18831
18832 # Is shlibpath searched before the hard-coded library search path?
18833 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18834
18835 # How to hardcode a shared library path into an executable.
18836 hardcode_action=$hardcode_action_GCJ
18837
18838 # Whether we should hardcode library paths into libraries.
18839 hardcode_into_libs=$hardcode_into_libs
18840
18841 # Flag to hardcode \$libdir into a binary during linking.
18842 # This must work even if \$libdir does not exist.
18843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18844
18845 # If ld is used when linking, flag to hardcode \$libdir into
18846 # a binary during linking. This must work even if \$libdir does
18847 # not exist.
18848 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18849
18850 # Whether we need a single -rpath flag with a separated argument.
18851 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18852
18853 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18854 # resulting binary.
18855 hardcode_direct=$hardcode_direct_GCJ
18856
18857 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18858 # resulting binary.
18859 hardcode_minus_L=$hardcode_minus_L_GCJ
18860
18861 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18862 # the resulting binary.
18863 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18864
18865 # Set to yes if building a shared library automatically hardcodes DIR into the library
18866 # and all subsequent libraries and executables linked against it.
18867 hardcode_automatic=$hardcode_automatic_GCJ
18868
18869 # Variables whose values should be saved in libtool wrapper scripts and
18870 # restored at relink time.
18871 variables_saved_for_relink="$variables_saved_for_relink"
18872
18873 # Whether libtool must link a program against all its dependency libraries.
18874 link_all_deplibs=$link_all_deplibs_GCJ
18875
18876 # Compile-time system search path for libraries
18877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18878
18879 # Run-time system search path for libraries
18880 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18881
18882 # Fix the shell variable \$srcfile for the compiler.
18883 fix_srcfile_path="$fix_srcfile_path_GCJ"
18884
18885 # Set to yes if exported symbols are required.
18886 always_export_symbols=$always_export_symbols_GCJ
18887
18888 # The commands to list exported symbols.
18889 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18890
18891 # The commands to extract the exported symbol list from a shared archive.
18892 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18893
18894 # Symbols that should not be listed in the preloaded symbols.
18895 exclude_expsyms=$lt_exclude_expsyms_GCJ
18896
18897 # Symbols that must always be exported.
18898 include_expsyms=$lt_include_expsyms_GCJ
18899
18900 # ### END LIBTOOL TAG CONFIG: $tagname
18901
18902 __EOF__
18903
18904
18905 else
18906   # If there is no Makefile yet, we rely on a make rule to execute
18907   # `config.status --recheck' to rerun these tests and create the
18908   # libtool script then.
18909   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18910   if test -f "$ltmain_in"; then
18911     test -f Makefile && make "$ltmain"
18912   fi
18913 fi
18914
18915
18916 ac_ext=c
18917 ac_cpp='$CPP $CPPFLAGS'
18918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18921
18922 CC="$lt_save_CC"
18923
18924         else
18925           tagname=""
18926         fi
18927         ;;
18928
18929       RC)
18930
18931
18932 # Source file extension for RC test sources.
18933 ac_ext=rc
18934
18935 # Object file extension for compiled RC test sources.
18936 objext=o
18937 objext_RC=$objext
18938
18939 # Code to be used in simple compile tests
18940 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18941
18942 # Code to be used in simple link tests
18943 lt_simple_link_test_code="$lt_simple_compile_test_code"
18944
18945 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18946
18947 # If no C compiler was specified, use CC.
18948 LTCC=${LTCC-"$CC"}
18949
18950 # If no C compiler flags were specified, use CFLAGS.
18951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18952
18953 # Allow CC to be a program name with arguments.
18954 compiler=$CC
18955
18956
18957 # save warnings/boilerplate of simple test code
18958 ac_outfile=conftest.$ac_objext
18959 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18960 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18961 _lt_compiler_boilerplate=`cat conftest.err`
18962 $rm conftest*
18963
18964 ac_outfile=conftest.$ac_objext
18965 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18966 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18967 _lt_linker_boilerplate=`cat conftest.err`
18968 $rm conftest*
18969
18970
18971 # Allow CC to be a program name with arguments.
18972 lt_save_CC="$CC"
18973 CC=${RC-"windres"}
18974 compiler=$CC
18975 compiler_RC=$CC
18976 for cc_temp in $compiler""; do
18977   case $cc_temp in
18978     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18979     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18980     \-*) ;;
18981     *) break;;
18982   esac
18983 done
18984 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18985
18986 lt_cv_prog_compiler_c_o_RC=yes
18987
18988 # The else clause should only fire when bootstrapping the
18989 # libtool distribution, otherwise you forgot to ship ltmain.sh
18990 # with your package, and you will get complaints that there are
18991 # no rules to generate ltmain.sh.
18992 if test -f "$ltmain"; then
18993   # See if we are running on zsh, and set the options which allow our commands through
18994   # without removal of \ escapes.
18995   if test -n "${ZSH_VERSION+set}" ; then
18996     setopt NO_GLOB_SUBST
18997   fi
18998   # Now quote all the things that may contain metacharacters while being
18999   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19000   # variables and quote the copies for generation of the libtool script.
19001   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19002     SED SHELL STRIP \
19003     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19004     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19005     deplibs_check_method reload_flag reload_cmds need_locks \
19006     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19007     lt_cv_sys_global_symbol_to_c_name_address \
19008     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19009     old_postinstall_cmds old_postuninstall_cmds \
19010     compiler_RC \
19011     CC_RC \
19012     LD_RC \
19013     lt_prog_compiler_wl_RC \
19014     lt_prog_compiler_pic_RC \
19015     lt_prog_compiler_static_RC \
19016     lt_prog_compiler_no_builtin_flag_RC \
19017     export_dynamic_flag_spec_RC \
19018     thread_safe_flag_spec_RC \
19019     whole_archive_flag_spec_RC \
19020     enable_shared_with_static_runtimes_RC \
19021     old_archive_cmds_RC \
19022     old_archive_from_new_cmds_RC \
19023     predep_objects_RC \
19024     postdep_objects_RC \
19025     predeps_RC \
19026     postdeps_RC \
19027     compiler_lib_search_path_RC \
19028     archive_cmds_RC \
19029     archive_expsym_cmds_RC \
19030     postinstall_cmds_RC \
19031     postuninstall_cmds_RC \
19032     old_archive_from_expsyms_cmds_RC \
19033     allow_undefined_flag_RC \
19034     no_undefined_flag_RC \
19035     export_symbols_cmds_RC \
19036     hardcode_libdir_flag_spec_RC \
19037     hardcode_libdir_flag_spec_ld_RC \
19038     hardcode_libdir_separator_RC \
19039     hardcode_automatic_RC \
19040     module_cmds_RC \
19041     module_expsym_cmds_RC \
19042     lt_cv_prog_compiler_c_o_RC \
19043     exclude_expsyms_RC \
19044     include_expsyms_RC; do
19045
19046     case $var in
19047     old_archive_cmds_RC | \
19048     old_archive_from_new_cmds_RC | \
19049     archive_cmds_RC | \
19050     archive_expsym_cmds_RC | \
19051     module_cmds_RC | \
19052     module_expsym_cmds_RC | \
19053     old_archive_from_expsyms_cmds_RC | \
19054     export_symbols_cmds_RC | \
19055     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19056     postinstall_cmds | postuninstall_cmds | \
19057     old_postinstall_cmds | old_postuninstall_cmds | \
19058     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19059       # Double-quote double-evaled strings.
19060       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19061       ;;
19062     *)
19063       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19064       ;;
19065     esac
19066   done
19067
19068   case $lt_echo in
19069   *'\$0 --fallback-echo"')
19070     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19071     ;;
19072   esac
19073
19074 cfgfile="$ofile"
19075
19076   cat <<__EOF__ >> "$cfgfile"
19077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19078
19079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19080
19081 # Shell to use when invoking shell scripts.
19082 SHELL=$lt_SHELL
19083
19084 # Whether or not to build shared libraries.
19085 build_libtool_libs=$enable_shared
19086
19087 # Whether or not to build static libraries.
19088 build_old_libs=$enable_static
19089
19090 # Whether or not to add -lc for building shared libraries.
19091 build_libtool_need_lc=$archive_cmds_need_lc_RC
19092
19093 # Whether or not to disallow shared libs when runtime libs are static
19094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19095
19096 # Whether or not to optimize for fast installation.
19097 fast_install=$enable_fast_install
19098
19099 # The host system.
19100 host_alias=$host_alias
19101 host=$host
19102 host_os=$host_os
19103
19104 # The build system.
19105 build_alias=$build_alias
19106 build=$build
19107 build_os=$build_os
19108
19109 # An echo program that does not interpret backslashes.
19110 echo=$lt_echo
19111
19112 # The archiver.
19113 AR=$lt_AR
19114 AR_FLAGS=$lt_AR_FLAGS
19115
19116 # A C compiler.
19117 LTCC=$lt_LTCC
19118
19119 # LTCC compiler flags.
19120 LTCFLAGS=$lt_LTCFLAGS
19121
19122 # A language-specific compiler.
19123 CC=$lt_compiler_RC
19124
19125 # Is the compiler the GNU C compiler?
19126 with_gcc=$GCC_RC
19127
19128 # An ERE matcher.
19129 EGREP=$lt_EGREP
19130
19131 # The linker used to build libraries.
19132 LD=$lt_LD_RC
19133
19134 # Whether we need hard or soft links.
19135 LN_S=$lt_LN_S
19136
19137 # A BSD-compatible nm program.
19138 NM=$lt_NM
19139
19140 # A symbol stripping program
19141 STRIP=$lt_STRIP
19142
19143 # Used to examine libraries when file_magic_cmd begins "file"
19144 MAGIC_CMD=$MAGIC_CMD
19145
19146 # Used on cygwin: DLL creation program.
19147 DLLTOOL="$DLLTOOL"
19148
19149 # Used on cygwin: object dumper.
19150 OBJDUMP="$OBJDUMP"
19151
19152 # Used on cygwin: assembler.
19153 AS="$AS"
19154
19155 # The name of the directory that contains temporary libtool files.
19156 objdir=$objdir
19157
19158 # How to create reloadable object files.
19159 reload_flag=$lt_reload_flag
19160 reload_cmds=$lt_reload_cmds
19161
19162 # How to pass a linker flag through the compiler.
19163 wl=$lt_lt_prog_compiler_wl_RC
19164
19165 # Object file suffix (normally "o").
19166 objext="$ac_objext"
19167
19168 # Old archive suffix (normally "a").
19169 libext="$libext"
19170
19171 # Shared library suffix (normally ".so").
19172 shrext_cmds='$shrext_cmds'
19173
19174 # Executable file suffix (normally "").
19175 exeext="$exeext"
19176
19177 # Additional compiler flags for building library objects.
19178 pic_flag=$lt_lt_prog_compiler_pic_RC
19179 pic_mode=$pic_mode
19180
19181 # What is the maximum length of a command?
19182 max_cmd_len=$lt_cv_sys_max_cmd_len
19183
19184 # Does compiler simultaneously support -c and -o options?
19185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19186
19187 # Must we lock files when doing compilation?
19188 need_locks=$lt_need_locks
19189
19190 # Do we need the lib prefix for modules?
19191 need_lib_prefix=$need_lib_prefix
19192
19193 # Do we need a version for libraries?
19194 need_version=$need_version
19195
19196 # Whether dlopen is supported.
19197 dlopen_support=$enable_dlopen
19198
19199 # Whether dlopen of programs is supported.
19200 dlopen_self=$enable_dlopen_self
19201
19202 # Whether dlopen of statically linked programs is supported.
19203 dlopen_self_static=$enable_dlopen_self_static
19204
19205 # Compiler flag to prevent dynamic linking.
19206 link_static_flag=$lt_lt_prog_compiler_static_RC
19207
19208 # Compiler flag to turn off builtin functions.
19209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19210
19211 # Compiler flag to allow reflexive dlopens.
19212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19213
19214 # Compiler flag to generate shared objects directly from archives.
19215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19216
19217 # Compiler flag to generate thread-safe objects.
19218 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19219
19220 # Library versioning type.
19221 version_type=$version_type
19222
19223 # Format of library name prefix.
19224 libname_spec=$lt_libname_spec
19225
19226 # List of archive names.  First name is the real one, the rest are links.
19227 # The last name is the one that the linker finds with -lNAME.
19228 library_names_spec=$lt_library_names_spec
19229
19230 # The coded name of the library, if different from the real name.
19231 soname_spec=$lt_soname_spec
19232
19233 # Commands used to build and install an old-style archive.
19234 RANLIB=$lt_RANLIB
19235 old_archive_cmds=$lt_old_archive_cmds_RC
19236 old_postinstall_cmds=$lt_old_postinstall_cmds
19237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19238
19239 # Create an old-style archive from a shared archive.
19240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19241
19242 # Create a temporary old-style archive to link instead of a shared archive.
19243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19244
19245 # Commands used to build and install a shared archive.
19246 archive_cmds=$lt_archive_cmds_RC
19247 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19248 postinstall_cmds=$lt_postinstall_cmds
19249 postuninstall_cmds=$lt_postuninstall_cmds
19250
19251 # Commands used to build a loadable module (assumed same as above if empty)
19252 module_cmds=$lt_module_cmds_RC
19253 module_expsym_cmds=$lt_module_expsym_cmds_RC
19254
19255 # Commands to strip libraries.
19256 old_striplib=$lt_old_striplib
19257 striplib=$lt_striplib
19258
19259 # Dependencies to place before the objects being linked to create a
19260 # shared library.
19261 predep_objects=$lt_predep_objects_RC
19262
19263 # Dependencies to place after the objects being linked to create a
19264 # shared library.
19265 postdep_objects=$lt_postdep_objects_RC
19266
19267 # Dependencies to place before the objects being linked to create a
19268 # shared library.
19269 predeps=$lt_predeps_RC
19270
19271 # Dependencies to place after the objects being linked to create a
19272 # shared library.
19273 postdeps=$lt_postdeps_RC
19274
19275 # The library search path used internally by the compiler when linking
19276 # a shared library.
19277 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19278
19279 # Method to check whether dependent libraries are shared objects.
19280 deplibs_check_method=$lt_deplibs_check_method
19281
19282 # Command to use when deplibs_check_method == file_magic.
19283 file_magic_cmd=$lt_file_magic_cmd
19284
19285 # Flag that allows shared libraries with undefined symbols to be built.
19286 allow_undefined_flag=$lt_allow_undefined_flag_RC
19287
19288 # Flag that forces no undefined symbols.
19289 no_undefined_flag=$lt_no_undefined_flag_RC
19290
19291 # Commands used to finish a libtool library installation in a directory.
19292 finish_cmds=$lt_finish_cmds
19293
19294 # Same as above, but a single script fragment to be evaled but not shown.
19295 finish_eval=$lt_finish_eval
19296
19297 # Take the output of nm and produce a listing of raw symbols and C names.
19298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19299
19300 # Transform the output of nm in a proper C declaration
19301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19302
19303 # Transform the output of nm in a C name address pair
19304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19305
19306 # This is the shared library runtime path variable.
19307 runpath_var=$runpath_var
19308
19309 # This is the shared library path variable.
19310 shlibpath_var=$shlibpath_var
19311
19312 # Is shlibpath searched before the hard-coded library search path?
19313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19314
19315 # How to hardcode a shared library path into an executable.
19316 hardcode_action=$hardcode_action_RC
19317
19318 # Whether we should hardcode library paths into libraries.
19319 hardcode_into_libs=$hardcode_into_libs
19320
19321 # Flag to hardcode \$libdir into a binary during linking.
19322 # This must work even if \$libdir does not exist.
19323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19324
19325 # If ld is used when linking, flag to hardcode \$libdir into
19326 # a binary during linking. This must work even if \$libdir does
19327 # not exist.
19328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19329
19330 # Whether we need a single -rpath flag with a separated argument.
19331 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19332
19333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19334 # resulting binary.
19335 hardcode_direct=$hardcode_direct_RC
19336
19337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19338 # resulting binary.
19339 hardcode_minus_L=$hardcode_minus_L_RC
19340
19341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19342 # the resulting binary.
19343 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19344
19345 # Set to yes if building a shared library automatically hardcodes DIR into the library
19346 # and all subsequent libraries and executables linked against it.
19347 hardcode_automatic=$hardcode_automatic_RC
19348
19349 # Variables whose values should be saved in libtool wrapper scripts and
19350 # restored at relink time.
19351 variables_saved_for_relink="$variables_saved_for_relink"
19352
19353 # Whether libtool must link a program against all its dependency libraries.
19354 link_all_deplibs=$link_all_deplibs_RC
19355
19356 # Compile-time system search path for libraries
19357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19358
19359 # Run-time system search path for libraries
19360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19361
19362 # Fix the shell variable \$srcfile for the compiler.
19363 fix_srcfile_path="$fix_srcfile_path_RC"
19364
19365 # Set to yes if exported symbols are required.
19366 always_export_symbols=$always_export_symbols_RC
19367
19368 # The commands to list exported symbols.
19369 export_symbols_cmds=$lt_export_symbols_cmds_RC
19370
19371 # The commands to extract the exported symbol list from a shared archive.
19372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19373
19374 # Symbols that should not be listed in the preloaded symbols.
19375 exclude_expsyms=$lt_exclude_expsyms_RC
19376
19377 # Symbols that must always be exported.
19378 include_expsyms=$lt_include_expsyms_RC
19379
19380 # ### END LIBTOOL TAG CONFIG: $tagname
19381
19382 __EOF__
19383
19384
19385 else
19386   # If there is no Makefile yet, we rely on a make rule to execute
19387   # `config.status --recheck' to rerun these tests and create the
19388   # libtool script then.
19389   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19390   if test -f "$ltmain_in"; then
19391     test -f Makefile && make "$ltmain"
19392   fi
19393 fi
19394
19395
19396 ac_ext=c
19397 ac_cpp='$CPP $CPPFLAGS'
19398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19401
19402 CC="$lt_save_CC"
19403
19404         ;;
19405
19406       *)
19407         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19408 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19409    { (exit 1); exit 1; }; }
19410         ;;
19411       esac
19412
19413       # Append the new tag name to the list of available tags.
19414       if test -n "$tagname" ; then
19415       available_tags="$available_tags $tagname"
19416     fi
19417     fi
19418   done
19419   IFS="$lt_save_ifs"
19420
19421   # Now substitute the updated list of available tags.
19422   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19423     mv "${ofile}T" "$ofile"
19424     chmod +x "$ofile"
19425   else
19426     rm -f "${ofile}T"
19427     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19428 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19429    { (exit 1); exit 1; }; }
19430   fi
19431 fi
19432
19433
19434
19435 # This can be used to rebuild libtool when needed
19436 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19437
19438 # Always use our own libtool.
19439 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19440
19441 # Prevent multiple expansion
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454 # Check whether --with-system-libtool was given.
19455 if test "${with_system_libtool+set}" = set; then
19456   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19457 set dummy libtool; ac_word=$2
19458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19460 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19461   echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463   case $LIBTOOL in
19464   [\\/]* | ?:[\\/]*)
19465   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19466   ;;
19467   *)
19468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469 as_dummy="$PATH:/usr/local/bin"
19470 for as_dir in $as_dummy
19471 do
19472   IFS=$as_save_IFS
19473   test -z "$as_dir" && as_dir=.
19474   for ac_exec_ext in '' $ac_executable_extensions; do
19475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19476     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19478     break 2
19479   fi
19480 done
19481 done
19482 IFS=$as_save_IFS
19483
19484   ;;
19485 esac
19486 fi
19487 LIBTOOL=$ac_cv_path_LIBTOOL
19488 if test -n "$LIBTOOL"; then
19489   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19490 echo "${ECHO_T}$LIBTOOL" >&6; }
19491 else
19492   { echo "$as_me:$LINENO: result: no" >&5
19493 echo "${ECHO_T}no" >&6; }
19494 fi
19495
19496
19497 else
19498
19499   LIBTOOL="`pwd`/libtool"
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514 fi
19515
19516
19517
19518
19519 # Check whether --enable-strict-dependencies was given.
19520 if test "${enable_strict_dependencies+set}" = set; then
19521   enableval=$enable_strict_dependencies;
19522 fi
19523
19524
19525 docdir='${datadir}/doc/freeradius'
19526 { echo "$as_me:$LINENO: checking docdir" >&5
19527 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19528
19529 # Check whether --with-docdir was given.
19530 if test "${with_docdir+set}" = set; then
19531   withval=$with_docdir;  case "$withval" in
19532     no)
19533         docdir=no
19534         ;;
19535     yes)
19536         ;;
19537     [\\/$]* | ?:[\\/]* )
19538         docdir="$withval"
19539         ;;
19540     *)
19541         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19542 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19543    { (exit 1); exit 1; }; }
19544         ;;
19545   esac
19546
19547 fi
19548
19549
19550 { echo "$as_me:$LINENO: result: $docdir" >&5
19551 echo "${ECHO_T}$docdir" >&6; }
19552 if test "x$docdir" = xno; then
19553         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19554 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19555 fi
19556
19557 logdir='${localstatedir}/log/radius'
19558 { echo "$as_me:$LINENO: checking logdir" >&5
19559 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19560
19561 # Check whether --with-logdir was given.
19562 if test "${with_logdir+set}" = set; then
19563   withval=$with_logdir;  case "$withval" in
19564     no)
19565         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19566 echo "$as_me: error: Need logdir" >&2;}
19567    { (exit 1); exit 1; }; }
19568         ;;
19569     yes)
19570         ;;
19571     [\\/$]* | ?:[\\/]* )
19572         logdir="$withval"
19573         ;;
19574     *)
19575         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19576 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19577    { (exit 1); exit 1; }; }
19578         ;;
19579   esac
19580
19581 fi
19582
19583
19584 { echo "$as_me:$LINENO: result: $logdir" >&5
19585 echo "${ECHO_T}$logdir" >&6; }
19586
19587 radacctdir='${logdir}/radacct'
19588 { echo "$as_me:$LINENO: checking radacctdir" >&5
19589 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19590
19591 # Check whether --with-radacctdir was given.
19592 if test "${with_radacctdir+set}" = set; then
19593   withval=$with_radacctdir;  case "$withval" in
19594     no)
19595         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19596 echo "$as_me: error: Need radacctdir" >&2;}
19597    { (exit 1); exit 1; }; }
19598         ;;
19599     yes)
19600         ;;
19601     [\\/$]* | ?:[\\/]* )
19602         radacctdir="$withval"
19603         ;;
19604     *)
19605         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19606 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19607    { (exit 1); exit 1; }; }
19608         ;;
19609   esac
19610
19611 fi
19612
19613
19614 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19615 echo "${ECHO_T}$radacctdir" >&6; }
19616
19617 raddbdir='${sysconfdir}/raddb'
19618 { echo "$as_me:$LINENO: checking raddbdir" >&5
19619 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19620
19621 # Check whether --with-raddbdir was given.
19622 if test "${with_raddbdir+set}" = set; then
19623   withval=$with_raddbdir;  case "$withval" in
19624     no)
19625         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19626 echo "$as_me: error: Need raddbdir" >&2;}
19627    { (exit 1); exit 1; }; }
19628         ;;
19629     yes)
19630         ;;
19631     [\\/$]* | ?:[\\/]* )
19632         raddbdir="$withval"
19633         ;;
19634     *)
19635         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19636 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19637    { (exit 1); exit 1; }; }
19638         ;;
19639   esac
19640
19641 fi
19642
19643
19644 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19645 echo "${ECHO_T}$raddbdir" >&6; }
19646
19647 ASCEND_BINARY=yes
19648
19649 # Check whether --with-ascend-binary was given.
19650 if test "${with_ascend_binary+set}" = set; then
19651   withval=$with_ascend_binary;  case "$withval" in
19652     yes)
19653         ;;
19654     *)
19655         ASCEND_BINARY=""
19656   esac
19657
19658 fi
19659
19660 if test "X$ASCEND_BINARY" = "Xyes"; then
19661
19662 cat >>confdefs.h <<\_ACEOF
19663 #define ASCEND_BINARY
19664 _ACEOF
19665
19666 fi
19667
19668 WITH_THREADS=yes
19669
19670 # Check whether --with-threads was given.
19671 if test "${with_threads+set}" = set; then
19672   withval=$with_threads;  case "$withval" in
19673     yes)
19674         ;;
19675     *)
19676         WITH_THREADS=""
19677   esac
19678
19679 fi
19680
19681
19682 WITH_SNMP=yes
19683
19684 # Check whether --with-snmp was given.
19685 if test "${with_snmp+set}" = set; then
19686   withval=$with_snmp;  case "$withval" in
19687     yes)
19688         ;;
19689     *)
19690         WITH_SNMP=no
19691   esac
19692
19693 fi
19694
19695
19696
19697 # Check whether --with-snmp-include-dir was given.
19698 if test "${with_snmp_include_dir+set}" = set; then
19699   withval=$with_snmp_include_dir;  case "$withval" in
19700     *)
19701         ;;
19702   esac
19703
19704 fi
19705
19706
19707 WITH_VMPS=yes
19708
19709 # Check whether --with-vmps was given.
19710 if test "${with_vmps+set}" = set; then
19711   withval=$with_vmps;  case "$withval" in
19712     yes)
19713         ;;
19714     *)
19715         WITH_VMPS=no
19716   esac
19717
19718 fi
19719
19720 if test "x$WITH_VMPS" = "xyes"; then
19721
19722 cat >>confdefs.h <<\_ACEOF
19723 #define WITH_VMPS 1
19724 _ACEOF
19725
19726 fi
19727
19728
19729 # Check whether --with-dhcp was given.
19730 if test "${with_dhcp+set}" = set; then
19731   withval=$with_dhcp;  case "$withval" in
19732     yes)
19733
19734 cat >>confdefs.h <<\_ACEOF
19735 #define WITH_DHCP 1
19736 _ACEOF
19737
19738         ;;
19739     *)
19740         ;;
19741   esac
19742
19743 fi
19744
19745
19746
19747 STATIC_MODULES=
19748
19749 # Check whether --with-static_modules was given.
19750 if test "${with_static_modules+set}" = set; then
19751   withval=$with_static_modules;
19752   for i in $withval; do
19753     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19754   done
19755
19756 fi
19757
19758
19759 MODULES=
19760
19761 # Check whether --with-modules was given.
19762 if test "${with_modules+set}" = set; then
19763   withval=$with_modules;
19764  for i in $withval; do
19765    MODULES="$MODULES $i"
19766  done
19767
19768 fi
19769
19770
19771 # Check whether --enable-developer was given.
19772 if test "${enable_developer+set}" = set; then
19773   enableval=$enable_developer;  case "$enableval" in
19774     no)
19775         developer=no
19776         ;;
19777     *)
19778         developer=yes
19779   esac
19780
19781 fi
19782
19783
19784 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19785     developer="yes"
19786 fi
19787
19788 EXPERIMENTAL=
19789
19790 # Check whether --with-experimental-modules was given.
19791 if test "${with_experimental_modules+set}" = set; then
19792   withval=$with_experimental_modules;  case "$withval" in
19793     yes)
19794         EXPERIMENTAL=yes
19795         ;;
19796     *)
19797   esac
19798
19799 fi
19800
19801
19802 WITH_OPENSSL=yes
19803
19804 # Check whether --with-openssl was given.
19805 if test "${with_openssl+set}" = set; then
19806   withval=$with_openssl;  case "$withval" in
19807     no)
19808         WITH_OPENSSL=no
19809         ;;
19810     *)
19811         WITH_OPENSSL=yes
19812         ;;
19813   esac
19814
19815 fi
19816
19817
19818 OPENSSL_INCLUDE_DIR=
19819
19820 # Check whether --with-openssl-includes was given.
19821 if test "${with_openssl_includes+set}" = set; then
19822   withval=$with_openssl_includes;  case "$withval" in
19823     *) OPENSSL_INCLUDE_DIR="$withval"
19824         ;;
19825   esac
19826
19827 fi
19828
19829
19830 OPENSSL_LIB_DIR=
19831
19832 # Check whether --with-openssl-libraries was given.
19833 if test "${with_openssl_libraries+set}" = set; then
19834   withval=$with_openssl_libraries;  case "$withval" in
19835     *) OPENSSL_LIB_DIR="$withval"
19836         ;;
19837   esac
19838
19839 fi
19840
19841
19842
19843
19844 # Check whether --with-rlm-FOO-lib-dir was given.
19845 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19846   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19847     *)
19848         ;;
19849   esac
19850
19851 fi
19852
19853
19854
19855 # Check whether --with-rlm-FOO-include-dir was given.
19856 if test "${with_rlm_FOO_include_dir+set}" = set; then
19857   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19858     *)
19859         ;;
19860   esac
19861
19862 fi
19863
19864
19865
19866 WITH_UDPFROMTO=no
19867
19868 # Check whether --with-udpfromto was given.
19869 if test "${with_udpfromto+set}" = set; then
19870   withval=$with_udpfromto;  case "$withval" in
19871     yes)
19872         WITH_UDPFROMTO=yes
19873         ;;
19874     *)
19875         WITH_UDPFROMTO=no
19876   esac
19877
19878 fi
19879
19880
19881 if test "x$WITH_UDPFROMTO" = "xyes"; then
19882
19883 cat >>confdefs.h <<\_ACEOF
19884 #define WITH_UDPFROMTO
19885 _ACEOF
19886
19887 fi
19888
19889
19890 CHECKRAD=checkrad.pl
19891 # Extract the first word of "perl", so it can be a program name with args.
19892 set dummy perl; ac_word=$2
19893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19895 if test "${ac_cv_path_PERL+set}" = set; then
19896   echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898   case $PERL in
19899   [\\/]* | ?:[\\/]*)
19900   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19901   ;;
19902   *)
19903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904 for as_dir in $PATH
19905 do
19906   IFS=$as_save_IFS
19907   test -z "$as_dir" && as_dir=.
19908   for ac_exec_ext in '' $ac_executable_extensions; do
19909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19910     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19912     break 2
19913   fi
19914 done
19915 done
19916 IFS=$as_save_IFS
19917
19918   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19919   ;;
19920 esac
19921 fi
19922 PERL=$ac_cv_path_PERL
19923 if test -n "$PERL"; then
19924   { echo "$as_me:$LINENO: result: $PERL" >&5
19925 echo "${ECHO_T}$PERL" >&6; }
19926 else
19927   { echo "$as_me:$LINENO: result: no" >&5
19928 echo "${ECHO_T}no" >&6; }
19929 fi
19930
19931
19932 if test "x$ac_cv_path_PERL" = "x"; then
19933   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19934 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19935 fi
19936 # Extract the first word of "snmpget", so it can be a program name with args.
19937 set dummy snmpget; ac_word=$2
19938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19940 if test "${ac_cv_path_SNMPGET+set}" = set; then
19941   echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943   case $SNMPGET in
19944   [\\/]* | ?:[\\/]*)
19945   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19946   ;;
19947   *)
19948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19949 for as_dir in $PATH
19950 do
19951   IFS=$as_save_IFS
19952   test -z "$as_dir" && as_dir=.
19953   for ac_exec_ext in '' $ac_executable_extensions; do
19954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19955     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19957     break 2
19958   fi
19959 done
19960 done
19961 IFS=$as_save_IFS
19962
19963   ;;
19964 esac
19965 fi
19966 SNMPGET=$ac_cv_path_SNMPGET
19967 if test -n "$SNMPGET"; then
19968   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19969 echo "${ECHO_T}$SNMPGET" >&6; }
19970 else
19971   { echo "$as_me:$LINENO: result: no" >&5
19972 echo "${ECHO_T}no" >&6; }
19973 fi
19974
19975
19976 if test "x$ac_cv_path_SNMPGET" = "x"; then
19977   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19978 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19979 fi
19980
19981 # Extract the first word of "snmpwalk", so it can be a program name with args.
19982 set dummy snmpwalk; ac_word=$2
19983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19985 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988   case $SNMPWALK in
19989   [\\/]* | ?:[\\/]*)
19990   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19991   ;;
19992   *)
19993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19994 for as_dir in $PATH
19995 do
19996   IFS=$as_save_IFS
19997   test -z "$as_dir" && as_dir=.
19998   for ac_exec_ext in '' $ac_executable_extensions; do
19999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20000     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20002     break 2
20003   fi
20004 done
20005 done
20006 IFS=$as_save_IFS
20007
20008   ;;
20009 esac
20010 fi
20011 SNMPWALK=$ac_cv_path_SNMPWALK
20012 if test -n "$SNMPWALK"; then
20013   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20014 echo "${ECHO_T}$SNMPWALK" >&6; }
20015 else
20016   { echo "$as_me:$LINENO: result: no" >&5
20017 echo "${ECHO_T}no" >&6; }
20018 fi
20019
20020
20021 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20022   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20023 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20024 fi
20025
20026 # Extract the first word of "rusers", so it can be a program name with args.
20027 set dummy rusers; ac_word=$2
20028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20030 if test "${ac_cv_path_RUSERS+set}" = set; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033   case $RUSERS in
20034   [\\/]* | ?:[\\/]*)
20035   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20036   ;;
20037   *)
20038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20039 for as_dir in $PATH
20040 do
20041   IFS=$as_save_IFS
20042   test -z "$as_dir" && as_dir=.
20043   for ac_exec_ext in '' $ac_executable_extensions; do
20044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20045     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20047     break 2
20048   fi
20049 done
20050 done
20051 IFS=$as_save_IFS
20052
20053   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20054   ;;
20055 esac
20056 fi
20057 RUSERS=$ac_cv_path_RUSERS
20058 if test -n "$RUSERS"; then
20059   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20060 echo "${ECHO_T}$RUSERS" >&6; }
20061 else
20062   { echo "$as_me:$LINENO: result: no" >&5
20063 echo "${ECHO_T}no" >&6; }
20064 fi
20065
20066
20067
20068 missing_dir=`cd $ac_aux_dir && pwd`
20069 # expand $ac_aux_dir to an absolute path
20070 am_aux_dir=`cd $ac_aux_dir && pwd`
20071
20072 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20073 # Use eval to expand $SHELL
20074 if eval "$MISSING --run true"; then
20075   am_missing_run="$MISSING --run "
20076 else
20077   am_missing_run=
20078   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20079 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20080 fi
20081
20082
20083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20084
20085
20086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20087
20088
20089 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20090
20091
20092 # Extract the first word of "locate", so it can be a program name with args.
20093 set dummy locate; ac_word=$2
20094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20096 if test "${ac_cv_path_LOCATE+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099   case $LOCATE in
20100   [\\/]* | ?:[\\/]*)
20101   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20102   ;;
20103   *)
20104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20105 for as_dir in $PATH
20106 do
20107   IFS=$as_save_IFS
20108   test -z "$as_dir" && as_dir=.
20109   for ac_exec_ext in '' $ac_executable_extensions; do
20110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20111     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20113     break 2
20114   fi
20115 done
20116 done
20117 IFS=$as_save_IFS
20118
20119   ;;
20120 esac
20121 fi
20122 LOCATE=$ac_cv_path_LOCATE
20123 if test -n "$LOCATE"; then
20124   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20125 echo "${ECHO_T}$LOCATE" >&6; }
20126 else
20127   { echo "$as_me:$LINENO: result: no" >&5
20128 echo "${ECHO_T}no" >&6; }
20129 fi
20130
20131
20132 # Extract the first word of "dirname", so it can be a program name with args.
20133 set dummy dirname; ac_word=$2
20134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20136 if test "${ac_cv_path_DIRNAME+set}" = set; then
20137   echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139   case $DIRNAME in
20140   [\\/]* | ?:[\\/]*)
20141   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20142   ;;
20143   *)
20144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20145 for as_dir in $PATH
20146 do
20147   IFS=$as_save_IFS
20148   test -z "$as_dir" && as_dir=.
20149   for ac_exec_ext in '' $ac_executable_extensions; do
20150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20151     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20153     break 2
20154   fi
20155 done
20156 done
20157 IFS=$as_save_IFS
20158
20159   ;;
20160 esac
20161 fi
20162 DIRNAME=$ac_cv_path_DIRNAME
20163 if test -n "$DIRNAME"; then
20164   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20165 echo "${ECHO_T}$DIRNAME" >&6; }
20166 else
20167   { echo "$as_me:$LINENO: result: no" >&5
20168 echo "${ECHO_T}no" >&6; }
20169 fi
20170
20171
20172 # Extract the first word of "grep", so it can be a program name with args.
20173 set dummy grep; ac_word=$2
20174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20176 if test "${ac_cv_path_GREP+set}" = set; then
20177   echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179   case $GREP in
20180   [\\/]* | ?:[\\/]*)
20181   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20182   ;;
20183   *)
20184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20185 for as_dir in $PATH
20186 do
20187   IFS=$as_save_IFS
20188   test -z "$as_dir" && as_dir=.
20189   for ac_exec_ext in '' $ac_executable_extensions; do
20190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20191     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20193     break 2
20194   fi
20195 done
20196 done
20197 IFS=$as_save_IFS
20198
20199   ;;
20200 esac
20201 fi
20202 GREP=$ac_cv_path_GREP
20203 if test -n "$GREP"; then
20204   { echo "$as_me:$LINENO: result: $GREP" >&5
20205 echo "${ECHO_T}$GREP" >&6; }
20206 else
20207   { echo "$as_me:$LINENO: result: no" >&5
20208 echo "${ECHO_T}no" >&6; }
20209 fi
20210
20211
20212
20213
20214 old_CFLAGS=$CFLAGS
20215 if test "x$WITH_THREADS" = "xyes"; then
20216   if test $ac_cv_prog_suncc = "yes"; then
20217     CFLAGS="$CFLAGS -mt"
20218   fi
20219
20220
20221 for ac_header in pthread.h
20222 do
20223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20225   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20228   echo $ECHO_N "(cached) $ECHO_C" >&6
20229 fi
20230 ac_res=`eval echo '${'$as_ac_Header'}'`
20231                { echo "$as_me:$LINENO: result: $ac_res" >&5
20232 echo "${ECHO_T}$ac_res" >&6; }
20233 else
20234   # Is the header compilable?
20235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20237 cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 $ac_includes_default
20244 #include <$ac_header>
20245 _ACEOF
20246 rm -f conftest.$ac_objext
20247 if { (ac_try="$ac_compile"
20248 case "(($ac_try" in
20249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250   *) ac_try_echo=$ac_try;;
20251 esac
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253   (eval "$ac_compile") 2>conftest.er1
20254   ac_status=$?
20255   grep -v '^ *+' conftest.er1 >conftest.err
20256   rm -f conftest.er1
20257   cat conftest.err >&5
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } && {
20260          test -z "$ac_c_werror_flag" ||
20261          test ! -s conftest.err
20262        } && test -s conftest.$ac_objext; then
20263   ac_header_compiler=yes
20264 else
20265   echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268         ac_header_compiler=no
20269 fi
20270
20271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20273 echo "${ECHO_T}$ac_header_compiler" >&6; }
20274
20275 # Is the header present?
20276 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h.  */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h.  */
20284 #include <$ac_header>
20285 _ACEOF
20286 if { (ac_try="$ac_cpp conftest.$ac_ext"
20287 case "(($ac_try" in
20288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289   *) ac_try_echo=$ac_try;;
20290 esac
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20293   ac_status=$?
20294   grep -v '^ *+' conftest.er1 >conftest.err
20295   rm -f conftest.er1
20296   cat conftest.err >&5
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); } >/dev/null && {
20299          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20300          test ! -s conftest.err
20301        }; then
20302   ac_header_preproc=yes
20303 else
20304   echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20306
20307   ac_header_preproc=no
20308 fi
20309
20310 rm -f conftest.err conftest.$ac_ext
20311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20312 echo "${ECHO_T}$ac_header_preproc" >&6; }
20313
20314 # So?  What about this header?
20315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20316   yes:no: )
20317     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20321     ac_header_preproc=yes
20322     ;;
20323   no:yes:* )
20324     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20326     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20327 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20328     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20330     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20331 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20334     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20336
20337     ;;
20338 esac
20339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20342   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344   eval "$as_ac_Header=\$ac_header_preproc"
20345 fi
20346 ac_res=`eval echo '${'$as_ac_Header'}'`
20347                { echo "$as_me:$LINENO: result: $ac_res" >&5
20348 echo "${ECHO_T}$ac_res" >&6; }
20349
20350 fi
20351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20352   cat >>confdefs.h <<_ACEOF
20353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20354 _ACEOF
20355
20356 else
20357    WITH_THREADS="no"
20358 fi
20359
20360 done
20361
20362
20363   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20364 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20365 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20366   echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368   ac_check_lib_save_LIBS=$LIBS
20369 LIBS="-lpthread  $LIBS"
20370 cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h.  */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h.  */
20376
20377 /* Override any GCC internal prototype to avoid an error.
20378    Use char because int might match the return type of a GCC
20379    builtin and then its argument prototype would still apply.  */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 char pthread_create ();
20384 int
20385 main ()
20386 {
20387 return pthread_create ();
20388   ;
20389   return 0;
20390 }
20391 _ACEOF
20392 rm -f conftest.$ac_objext conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396   *) ac_try_echo=$ac_try;;
20397 esac
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399   (eval "$ac_link") 2>conftest.er1
20400   ac_status=$?
20401   grep -v '^ *+' conftest.er1 >conftest.err
20402   rm -f conftest.er1
20403   cat conftest.err >&5
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); } && {
20406          test -z "$ac_c_werror_flag" ||
20407          test ! -s conftest.err
20408        } && test -s conftest$ac_exeext &&
20409        $as_test_x conftest$ac_exeext; then
20410   ac_cv_lib_pthread_pthread_create=yes
20411 else
20412   echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415         ac_cv_lib_pthread_pthread_create=no
20416 fi
20417
20418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20419       conftest$ac_exeext conftest.$ac_ext
20420 LIBS=$ac_check_lib_save_LIBS
20421 fi
20422 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20423 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20424 if test $ac_cv_lib_pthread_pthread_create = yes; then
20425    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20426                   LIBS="$LIBS -lpthread"
20427 else
20428   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20429 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20430 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20431   echo $ECHO_N "(cached) $ECHO_C" >&6
20432 else
20433   ac_check_lib_save_LIBS=$LIBS
20434 LIBS="-lc_r  $LIBS"
20435 cat >conftest.$ac_ext <<_ACEOF
20436 /* confdefs.h.  */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h.  */
20441
20442 /* Override any GCC internal prototype to avoid an error.
20443    Use char because int might match the return type of a GCC
20444    builtin and then its argument prototype would still apply.  */
20445 #ifdef __cplusplus
20446 extern "C"
20447 #endif
20448 char pthread_create ();
20449 int
20450 main ()
20451 {
20452 return pthread_create ();
20453   ;
20454   return 0;
20455 }
20456 _ACEOF
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461   *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464   (eval "$ac_link") 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } && {
20471          test -z "$ac_c_werror_flag" ||
20472          test ! -s conftest.err
20473        } && test -s conftest$ac_exeext &&
20474        $as_test_x conftest$ac_exeext; then
20475   ac_cv_lib_c_r_pthread_create=yes
20476 else
20477   echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480         ac_cv_lib_c_r_pthread_create=no
20481 fi
20482
20483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20484       conftest$ac_exeext conftest.$ac_ext
20485 LIBS=$ac_check_lib_save_LIBS
20486 fi
20487 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20488 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20489 if test $ac_cv_lib_c_r_pthread_create = yes; then
20490    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20491 else
20492    WITH_THREADS="no"
20493
20494 fi
20495
20496
20497 fi
20498
20499 fi
20500
20501 if test "x$WITH_THREADS" != "xyes"; then
20502   CFLAGS=$old_CFLAGS
20503   ac_cv_header_pthread_h="no"
20504   WITH_THREADS=no
20505 else
20506
20507   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20508 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20509 if test "${ac_cv_search_sem_init+set}" = set; then
20510   echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512   ac_func_search_save_LIBS=$LIBS
20513 cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h.  */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h.  */
20519
20520 /* Override any GCC internal prototype to avoid an error.
20521    Use char because int might match the return type of a GCC
20522    builtin and then its argument prototype would still apply.  */
20523 #ifdef __cplusplus
20524 extern "C"
20525 #endif
20526 char sem_init ();
20527 int
20528 main ()
20529 {
20530 return sem_init ();
20531   ;
20532   return 0;
20533 }
20534 _ACEOF
20535 for ac_lib in '' pthread sem posix4 rt semaphore; do
20536   if test -z "$ac_lib"; then
20537     ac_res="none required"
20538   else
20539     ac_res=-l$ac_lib
20540     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20541   fi
20542   rm -f conftest.$ac_objext conftest$ac_exeext
20543 if { (ac_try="$ac_link"
20544 case "(($ac_try" in
20545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546   *) ac_try_echo=$ac_try;;
20547 esac
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549   (eval "$ac_link") 2>conftest.er1
20550   ac_status=$?
20551   grep -v '^ *+' conftest.er1 >conftest.err
20552   rm -f conftest.er1
20553   cat conftest.err >&5
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); } && {
20556          test -z "$ac_c_werror_flag" ||
20557          test ! -s conftest.err
20558        } && test -s conftest$ac_exeext &&
20559        $as_test_x conftest$ac_exeext; then
20560   ac_cv_search_sem_init=$ac_res
20561 else
20562   echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565
20566 fi
20567
20568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20569       conftest$ac_exeext
20570   if test "${ac_cv_search_sem_init+set}" = set; then
20571   break
20572 fi
20573 done
20574 if test "${ac_cv_search_sem_init+set}" = set; then
20575   :
20576 else
20577   ac_cv_search_sem_init=no
20578 fi
20579 rm conftest.$ac_ext
20580 LIBS=$ac_func_search_save_LIBS
20581 fi
20582 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20583 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20584 ac_res=$ac_cv_search_sem_init
20585 if test "$ac_res" != no; then
20586   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20587
20588 else
20589   { { 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
20590 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;}
20591    { (exit 1); exit 1; }; }
20592
20593 fi
20594
20595 fi
20596
20597
20598 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20599 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20600 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603   ac_check_lib_save_LIBS=$LIBS
20604 LIBS="-lsocket  $LIBS"
20605 cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h.  */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h.  */
20611
20612 /* Override any GCC internal prototype to avoid an error.
20613    Use char because int might match the return type of a GCC
20614    builtin and then its argument prototype would still apply.  */
20615 #ifdef __cplusplus
20616 extern "C"
20617 #endif
20618 char getsockname ();
20619 int
20620 main ()
20621 {
20622 return getsockname ();
20623   ;
20624   return 0;
20625 }
20626 _ACEOF
20627 rm -f conftest.$ac_objext conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_link") 2>conftest.er1
20635   ac_status=$?
20636   grep -v '^ *+' conftest.er1 >conftest.err
20637   rm -f conftest.er1
20638   cat conftest.err >&5
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); } && {
20641          test -z "$ac_c_werror_flag" ||
20642          test ! -s conftest.err
20643        } && test -s conftest$ac_exeext &&
20644        $as_test_x conftest$ac_exeext; then
20645   ac_cv_lib_socket_getsockname=yes
20646 else
20647   echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20649
20650         ac_cv_lib_socket_getsockname=no
20651 fi
20652
20653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654       conftest$ac_exeext conftest.$ac_ext
20655 LIBS=$ac_check_lib_save_LIBS
20656 fi
20657 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20658 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20659 if test $ac_cv_lib_socket_getsockname = yes; then
20660   cat >>confdefs.h <<_ACEOF
20661 #define HAVE_LIBSOCKET 1
20662 _ACEOF
20663
20664   LIBS="-lsocket $LIBS"
20665
20666 fi
20667
20668
20669
20670 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20671 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20672 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 else
20675   ac_check_lib_save_LIBS=$LIBS
20676 LIBS="-lresolv  $LIBS"
20677 cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683
20684 /* Override any GCC internal prototype to avoid an error.
20685    Use char because int might match the return type of a GCC
20686    builtin and then its argument prototype would still apply.  */
20687 #ifdef __cplusplus
20688 extern "C"
20689 #endif
20690 char inet_aton ();
20691 int
20692 main ()
20693 {
20694 return inet_aton ();
20695   ;
20696   return 0;
20697 }
20698 _ACEOF
20699 rm -f conftest.$ac_objext conftest$ac_exeext
20700 if { (ac_try="$ac_link"
20701 case "(($ac_try" in
20702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703   *) ac_try_echo=$ac_try;;
20704 esac
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706   (eval "$ac_link") 2>conftest.er1
20707   ac_status=$?
20708   grep -v '^ *+' conftest.er1 >conftest.err
20709   rm -f conftest.er1
20710   cat conftest.err >&5
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); } && {
20713          test -z "$ac_c_werror_flag" ||
20714          test ! -s conftest.err
20715        } && test -s conftest$ac_exeext &&
20716        $as_test_x conftest$ac_exeext; then
20717   ac_cv_lib_resolv_inet_aton=yes
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722         ac_cv_lib_resolv_inet_aton=no
20723 fi
20724
20725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20726       conftest$ac_exeext conftest.$ac_ext
20727 LIBS=$ac_check_lib_save_LIBS
20728 fi
20729 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20730 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20731 if test $ac_cv_lib_resolv_inet_aton = yes; then
20732   cat >>confdefs.h <<_ACEOF
20733 #define HAVE_LIBRESOLV 1
20734 _ACEOF
20735
20736   LIBS="-lresolv $LIBS"
20737
20738 fi
20739
20740
20741
20742 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20743 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20744 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20745   echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747   ac_check_lib_save_LIBS=$LIBS
20748 LIBS="-lnsl  $LIBS"
20749 cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h.  */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h.  */
20755
20756 /* Override any GCC internal prototype to avoid an error.
20757    Use char because int might match the return type of a GCC
20758    builtin and then its argument prototype would still apply.  */
20759 #ifdef __cplusplus
20760 extern "C"
20761 #endif
20762 char inet_ntoa ();
20763 int
20764 main ()
20765 {
20766 return inet_ntoa ();
20767   ;
20768   return 0;
20769 }
20770 _ACEOF
20771 rm -f conftest.$ac_objext conftest$ac_exeext
20772 if { (ac_try="$ac_link"
20773 case "(($ac_try" in
20774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775   *) ac_try_echo=$ac_try;;
20776 esac
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778   (eval "$ac_link") 2>conftest.er1
20779   ac_status=$?
20780   grep -v '^ *+' conftest.er1 >conftest.err
20781   rm -f conftest.er1
20782   cat conftest.err >&5
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); } && {
20785          test -z "$ac_c_werror_flag" ||
20786          test ! -s conftest.err
20787        } && test -s conftest$ac_exeext &&
20788        $as_test_x conftest$ac_exeext; then
20789   ac_cv_lib_nsl_inet_ntoa=yes
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794         ac_cv_lib_nsl_inet_ntoa=no
20795 fi
20796
20797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20798       conftest$ac_exeext conftest.$ac_ext
20799 LIBS=$ac_check_lib_save_LIBS
20800 fi
20801 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20802 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20803 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20804   cat >>confdefs.h <<_ACEOF
20805 #define HAVE_LIBNSL 1
20806 _ACEOF
20807
20808   LIBS="-lnsl $LIBS"
20809
20810 fi
20811
20812
20813 OPENSSL_LIBS=
20814 if test "x$WITH_OPENSSL" = xyes; then
20815   old_LIBS=$LIBS
20816   if test "x$OPENSSL_LIB_DIR" != "x"; then
20817     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20818   fi
20819   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20820 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20821 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20822   echo $ECHO_N "(cached) $ECHO_C" >&6
20823 else
20824   ac_check_lib_save_LIBS=$LIBS
20825 LIBS="-lcrypto  $LIBS"
20826 cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h.  */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h.  */
20832
20833 /* Override any GCC internal prototype to avoid an error.
20834    Use char because int might match the return type of a GCC
20835    builtin and then its argument prototype would still apply.  */
20836 #ifdef __cplusplus
20837 extern "C"
20838 #endif
20839 char DH_new ();
20840 int
20841 main ()
20842 {
20843 return DH_new ();
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (ac_try="$ac_link"
20850 case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855   (eval "$ac_link") 2>conftest.er1
20856   ac_status=$?
20857   grep -v '^ *+' conftest.er1 >conftest.err
20858   rm -f conftest.er1
20859   cat conftest.err >&5
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } && {
20862          test -z "$ac_c_werror_flag" ||
20863          test ! -s conftest.err
20864        } && test -s conftest$ac_exeext &&
20865        $as_test_x conftest$ac_exeext; then
20866   ac_cv_lib_crypto_DH_new=yes
20867 else
20868   echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871         ac_cv_lib_crypto_DH_new=no
20872 fi
20873
20874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20875       conftest$ac_exeext conftest.$ac_ext
20876 LIBS=$ac_check_lib_save_LIBS
20877 fi
20878 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20879 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20880 if test $ac_cv_lib_crypto_DH_new = yes; then
20881
20882         LIBS="-lcrypto $LIBS"
20883
20884 cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_LIBCRYPTO 1
20886 _ACEOF
20887
20888         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20889 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20890 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20891   echo $ECHO_N "(cached) $ECHO_C" >&6
20892 else
20893   ac_check_lib_save_LIBS=$LIBS
20894 LIBS="-lssl  $LIBS"
20895 cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h.  */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h.  */
20901
20902 /* Override any GCC internal prototype to avoid an error.
20903    Use char because int might match the return type of a GCC
20904    builtin and then its argument prototype would still apply.  */
20905 #ifdef __cplusplus
20906 extern "C"
20907 #endif
20908 char SSL_new ();
20909 int
20910 main ()
20911 {
20912 return SSL_new ();
20913   ;
20914   return 0;
20915 }
20916 _ACEOF
20917 rm -f conftest.$ac_objext conftest$ac_exeext
20918 if { (ac_try="$ac_link"
20919 case "(($ac_try" in
20920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921   *) ac_try_echo=$ac_try;;
20922 esac
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924   (eval "$ac_link") 2>conftest.er1
20925   ac_status=$?
20926   grep -v '^ *+' conftest.er1 >conftest.err
20927   rm -f conftest.er1
20928   cat conftest.err >&5
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); } && {
20931          test -z "$ac_c_werror_flag" ||
20932          test ! -s conftest.err
20933        } && test -s conftest$ac_exeext &&
20934        $as_test_x conftest$ac_exeext; then
20935   ac_cv_lib_ssl_SSL_new=yes
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940         ac_cv_lib_ssl_SSL_new=no
20941 fi
20942
20943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20944       conftest$ac_exeext conftest.$ac_ext
20945 LIBS=$ac_check_lib_save_LIBS
20946 fi
20947 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20948 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20949 if test $ac_cv_lib_ssl_SSL_new = yes; then
20950
20951
20952 cat >>confdefs.h <<\_ACEOF
20953 #define HAVE_LIBSSL 1
20954 _ACEOF
20955
20956                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20957                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20958                 fi
20959                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20960
20961 fi
20962
20963
20964 fi
20965
20966   LIBS=$old_LIBS
20967 fi
20968
20969
20970 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20971 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20972 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20973   echo $ECHO_N "(cached) $ECHO_C" >&6
20974 else
20975   ac_check_lib_save_LIBS=$LIBS
20976 LIBS="-lws2_32  $LIBS"
20977 cat >conftest.$ac_ext <<_ACEOF
20978 /* confdefs.h.  */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h.  */
20983
20984 /* Override any GCC internal prototype to avoid an error.
20985    Use char because int might match the return type of a GCC
20986    builtin and then its argument prototype would still apply.  */
20987 #ifdef __cplusplus
20988 extern "C"
20989 #endif
20990 char htonl ();
20991 int
20992 main ()
20993 {
20994 return htonl ();
20995   ;
20996   return 0;
20997 }
20998 _ACEOF
20999 rm -f conftest.$ac_objext conftest$ac_exeext
21000 if { (ac_try="$ac_link"
21001 case "(($ac_try" in
21002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003   *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006   (eval "$ac_link") 2>conftest.er1
21007   ac_status=$?
21008   grep -v '^ *+' conftest.er1 >conftest.err
21009   rm -f conftest.er1
21010   cat conftest.err >&5
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); } && {
21013          test -z "$ac_c_werror_flag" ||
21014          test ! -s conftest.err
21015        } && test -s conftest$ac_exeext &&
21016        $as_test_x conftest$ac_exeext; then
21017   ac_cv_lib_ws2_32_htonl=yes
21018 else
21019   echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022         ac_cv_lib_ws2_32_htonl=no
21023 fi
21024
21025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21026       conftest$ac_exeext conftest.$ac_ext
21027 LIBS=$ac_check_lib_save_LIBS
21028 fi
21029 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21030 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21031 if test $ac_cv_lib_ws2_32_htonl = yes; then
21032   cat >>confdefs.h <<_ACEOF
21033 #define HAVE_LIBWS2_32 1
21034 _ACEOF
21035
21036   LIBS="-lws2_32 $LIBS"
21037
21038 fi
21039
21040
21041 PCAP_LIBS=
21042 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21043 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21044 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21045   echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047   ac_check_lib_save_LIBS=$LIBS
21048 LIBS="-lpcap  $LIBS"
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h.  */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h.  */
21055
21056 /* Override any GCC internal prototype to avoid an error.
21057    Use char because int might match the return type of a GCC
21058    builtin and then its argument prototype would still apply.  */
21059 #ifdef __cplusplus
21060 extern "C"
21061 #endif
21062 char pcap_open_live ();
21063 int
21064 main ()
21065 {
21066 return pcap_open_live ();
21067   ;
21068   return 0;
21069 }
21070 _ACEOF
21071 rm -f conftest.$ac_objext conftest$ac_exeext
21072 if { (ac_try="$ac_link"
21073 case "(($ac_try" in
21074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075   *) ac_try_echo=$ac_try;;
21076 esac
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078   (eval "$ac_link") 2>conftest.er1
21079   ac_status=$?
21080   grep -v '^ *+' conftest.er1 >conftest.err
21081   rm -f conftest.er1
21082   cat conftest.err >&5
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); } && {
21085          test -z "$ac_c_werror_flag" ||
21086          test ! -s conftest.err
21087        } && test -s conftest$ac_exeext &&
21088        $as_test_x conftest$ac_exeext; then
21089   ac_cv_lib_pcap_pcap_open_live=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         ac_cv_lib_pcap_pcap_open_live=no
21095 fi
21096
21097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21098       conftest$ac_exeext conftest.$ac_ext
21099 LIBS=$ac_check_lib_save_LIBS
21100 fi
21101 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21102 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21103 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21104    PCAP_LIBS="-lpcap"
21105
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_LIBPCAP 1
21108 _ACEOF
21109
21110
21111 else
21112    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21113 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21114 fi
21115
21116
21117
21118 case "$host" in
21119 *-interix*)
21120         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21121         ;;
21122 *-darwin*)
21123         CFLAGS="$CFLAGS -DDARWIN"
21124         LIBS="-framework DirectoryService $LIBS"
21125         ;;
21126 esac
21127
21128
21129
21130
21131
21132
21133 ac_header_dirent=no
21134 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21135   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21136 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21137 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21139   echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141   cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147 #include <sys/types.h>
21148 #include <$ac_hdr>
21149
21150 int
21151 main ()
21152 {
21153 if ((DIR *) 0)
21154 return 0;
21155   ;
21156   return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163   *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166   (eval "$ac_compile") 2>conftest.er1
21167   ac_status=$?
21168   grep -v '^ *+' conftest.er1 >conftest.err
21169   rm -f conftest.er1
21170   cat conftest.err >&5
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); } && {
21173          test -z "$ac_c_werror_flag" ||
21174          test ! -s conftest.err
21175        } && test -s conftest.$ac_objext; then
21176   eval "$as_ac_Header=yes"
21177 else
21178   echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181         eval "$as_ac_Header=no"
21182 fi
21183
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 fi
21186 ac_res=`eval echo '${'$as_ac_Header'}'`
21187                { echo "$as_me:$LINENO: result: $ac_res" >&5
21188 echo "${ECHO_T}$ac_res" >&6; }
21189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21190   cat >>confdefs.h <<_ACEOF
21191 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21192 _ACEOF
21193
21194 ac_header_dirent=$ac_hdr; break
21195 fi
21196
21197 done
21198 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21199 if test $ac_header_dirent = dirent.h; then
21200   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21201 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21202 if test "${ac_cv_search_opendir+set}" = set; then
21203   echo $ECHO_N "(cached) $ECHO_C" >&6
21204 else
21205   ac_func_search_save_LIBS=$LIBS
21206 cat >conftest.$ac_ext <<_ACEOF
21207 /* confdefs.h.  */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h.  */
21212
21213 /* Override any GCC internal prototype to avoid an error.
21214    Use char because int might match the return type of a GCC
21215    builtin and then its argument prototype would still apply.  */
21216 #ifdef __cplusplus
21217 extern "C"
21218 #endif
21219 char opendir ();
21220 int
21221 main ()
21222 {
21223 return opendir ();
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 for ac_lib in '' dir; do
21229   if test -z "$ac_lib"; then
21230     ac_res="none required"
21231   else
21232     ac_res=-l$ac_lib
21233     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21234   fi
21235   rm -f conftest.$ac_objext conftest$ac_exeext
21236 if { (ac_try="$ac_link"
21237 case "(($ac_try" in
21238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239   *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242   (eval "$ac_link") 2>conftest.er1
21243   ac_status=$?
21244   grep -v '^ *+' conftest.er1 >conftest.err
21245   rm -f conftest.er1
21246   cat conftest.err >&5
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); } && {
21249          test -z "$ac_c_werror_flag" ||
21250          test ! -s conftest.err
21251        } && test -s conftest$ac_exeext &&
21252        $as_test_x conftest$ac_exeext; then
21253   ac_cv_search_opendir=$ac_res
21254 else
21255   echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21257
21258
21259 fi
21260
21261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21262       conftest$ac_exeext
21263   if test "${ac_cv_search_opendir+set}" = set; then
21264   break
21265 fi
21266 done
21267 if test "${ac_cv_search_opendir+set}" = set; then
21268   :
21269 else
21270   ac_cv_search_opendir=no
21271 fi
21272 rm conftest.$ac_ext
21273 LIBS=$ac_func_search_save_LIBS
21274 fi
21275 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21276 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21277 ac_res=$ac_cv_search_opendir
21278 if test "$ac_res" != no; then
21279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21280
21281 fi
21282
21283 else
21284   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21285 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21286 if test "${ac_cv_search_opendir+set}" = set; then
21287   echo $ECHO_N "(cached) $ECHO_C" >&6
21288 else
21289   ac_func_search_save_LIBS=$LIBS
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h.  */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h.  */
21296
21297 /* Override any GCC internal prototype to avoid an error.
21298    Use char because int might match the return type of a GCC
21299    builtin and then its argument prototype would still apply.  */
21300 #ifdef __cplusplus
21301 extern "C"
21302 #endif
21303 char opendir ();
21304 int
21305 main ()
21306 {
21307 return opendir ();
21308   ;
21309   return 0;
21310 }
21311 _ACEOF
21312 for ac_lib in '' x; do
21313   if test -z "$ac_lib"; then
21314     ac_res="none required"
21315   else
21316     ac_res=-l$ac_lib
21317     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21318   fi
21319   rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (ac_try="$ac_link"
21321 case "(($ac_try" in
21322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323   *) ac_try_echo=$ac_try;;
21324 esac
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326   (eval "$ac_link") 2>conftest.er1
21327   ac_status=$?
21328   grep -v '^ *+' conftest.er1 >conftest.err
21329   rm -f conftest.er1
21330   cat conftest.err >&5
21331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332   (exit $ac_status); } && {
21333          test -z "$ac_c_werror_flag" ||
21334          test ! -s conftest.err
21335        } && test -s conftest$ac_exeext &&
21336        $as_test_x conftest$ac_exeext; then
21337   ac_cv_search_opendir=$ac_res
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342
21343 fi
21344
21345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21346       conftest$ac_exeext
21347   if test "${ac_cv_search_opendir+set}" = set; then
21348   break
21349 fi
21350 done
21351 if test "${ac_cv_search_opendir+set}" = set; then
21352   :
21353 else
21354   ac_cv_search_opendir=no
21355 fi
21356 rm conftest.$ac_ext
21357 LIBS=$ac_func_search_save_LIBS
21358 fi
21359 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21360 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21361 ac_res=$ac_cv_search_opendir
21362 if test "$ac_res" != no; then
21363   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21364
21365 fi
21366
21367 fi
21368
21369 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21370 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21371 if test "${ac_cv_header_stdc+set}" = set; then
21372   echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374   cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h.  */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h.  */
21380 #include <stdlib.h>
21381 #include <stdarg.h>
21382 #include <string.h>
21383 #include <float.h>
21384
21385 int
21386 main ()
21387 {
21388
21389   ;
21390   return 0;
21391 }
21392 _ACEOF
21393 rm -f conftest.$ac_objext
21394 if { (ac_try="$ac_compile"
21395 case "(($ac_try" in
21396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397   *) ac_try_echo=$ac_try;;
21398 esac
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400   (eval "$ac_compile") 2>conftest.er1
21401   ac_status=$?
21402   grep -v '^ *+' conftest.er1 >conftest.err
21403   rm -f conftest.er1
21404   cat conftest.err >&5
21405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406   (exit $ac_status); } && {
21407          test -z "$ac_c_werror_flag" ||
21408          test ! -s conftest.err
21409        } && test -s conftest.$ac_objext; then
21410   ac_cv_header_stdc=yes
21411 else
21412   echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21414
21415         ac_cv_header_stdc=no
21416 fi
21417
21418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419
21420 if test $ac_cv_header_stdc = yes; then
21421   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21422   cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h.  */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h.  */
21428 #include <string.h>
21429
21430 _ACEOF
21431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21432   $EGREP "memchr" >/dev/null 2>&1; then
21433   :
21434 else
21435   ac_cv_header_stdc=no
21436 fi
21437 rm -f conftest*
21438
21439 fi
21440
21441 if test $ac_cv_header_stdc = yes; then
21442   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21443   cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449 #include <stdlib.h>
21450
21451 _ACEOF
21452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21453   $EGREP "free" >/dev/null 2>&1; then
21454   :
21455 else
21456   ac_cv_header_stdc=no
21457 fi
21458 rm -f conftest*
21459
21460 fi
21461
21462 if test $ac_cv_header_stdc = yes; then
21463   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21464   if test "$cross_compiling" = yes; then
21465   :
21466 else
21467   cat >conftest.$ac_ext <<_ACEOF
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473 #include <ctype.h>
21474 #include <stdlib.h>
21475 #if ((' ' & 0x0FF) == 0x020)
21476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21478 #else
21479 # define ISLOWER(c) \
21480                    (('a' <= (c) && (c) <= 'i') \
21481                      || ('j' <= (c) && (c) <= 'r') \
21482                      || ('s' <= (c) && (c) <= 'z'))
21483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21484 #endif
21485
21486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21487 int
21488 main ()
21489 {
21490   int i;
21491   for (i = 0; i < 256; i++)
21492     if (XOR (islower (i), ISLOWER (i))
21493         || toupper (i) != TOUPPER (i))
21494       return 2;
21495   return 0;
21496 }
21497 _ACEOF
21498 rm -f conftest$ac_exeext
21499 if { (ac_try="$ac_link"
21500 case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_link") 2>&5
21506   ac_status=$?
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21509   { (case "(($ac_try" in
21510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511   *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514   (eval "$ac_try") 2>&5
21515   ac_status=$?
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); }; }; then
21518   :
21519 else
21520   echo "$as_me: program exited with status $ac_status" >&5
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21523
21524 ( exit $ac_status )
21525 ac_cv_header_stdc=no
21526 fi
21527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21528 fi
21529
21530
21531 fi
21532 fi
21533 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21534 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21535 if test $ac_cv_header_stdc = yes; then
21536
21537 cat >>confdefs.h <<\_ACEOF
21538 #define STDC_HEADERS 1
21539 _ACEOF
21540
21541 fi
21542
21543 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21544 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21545 if test "${ac_cv_header_time+set}" = set; then
21546   echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548   cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h.  */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h.  */
21554 #include <sys/types.h>
21555 #include <sys/time.h>
21556 #include <time.h>
21557
21558 int
21559 main ()
21560 {
21561 if ((struct tm *) 0)
21562 return 0;
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571   *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574   (eval "$ac_compile") 2>conftest.er1
21575   ac_status=$?
21576   grep -v '^ *+' conftest.er1 >conftest.err
21577   rm -f conftest.er1
21578   cat conftest.err >&5
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); } && {
21581          test -z "$ac_c_werror_flag" ||
21582          test ! -s conftest.err
21583        } && test -s conftest.$ac_objext; then
21584   ac_cv_header_time=yes
21585 else
21586   echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589         ac_cv_header_time=no
21590 fi
21591
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593 fi
21594 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21595 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21596 if test $ac_cv_header_time = yes; then
21597
21598 cat >>confdefs.h <<\_ACEOF
21599 #define TIME_WITH_SYS_TIME 1
21600 _ACEOF
21601
21602 fi
21603
21604 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21605 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21606 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21607   echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609   cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h.  */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h.  */
21615 #include <sys/types.h>
21616 #include <sys/wait.h>
21617 #ifndef WEXITSTATUS
21618 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21619 #endif
21620 #ifndef WIFEXITED
21621 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21622 #endif
21623
21624 int
21625 main ()
21626 {
21627   int s;
21628   wait (&s);
21629   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21630   ;
21631   return 0;
21632 }
21633 _ACEOF
21634 rm -f conftest.$ac_objext
21635 if { (ac_try="$ac_compile"
21636 case "(($ac_try" in
21637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638   *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641   (eval "$ac_compile") 2>conftest.er1
21642   ac_status=$?
21643   grep -v '^ *+' conftest.er1 >conftest.err
21644   rm -f conftest.er1
21645   cat conftest.err >&5
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); } && {
21648          test -z "$ac_c_werror_flag" ||
21649          test ! -s conftest.err
21650        } && test -s conftest.$ac_objext; then
21651   ac_cv_header_sys_wait_h=yes
21652 else
21653   echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21655
21656         ac_cv_header_sys_wait_h=no
21657 fi
21658
21659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 fi
21661 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21662 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21663 if test $ac_cv_header_sys_wait_h = yes; then
21664
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_SYS_WAIT_H 1
21667 _ACEOF
21668
21669 fi
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705 for ac_header in \
21706         unistd.h \
21707         crypt.h \
21708         errno.h \
21709         resource.h \
21710         sys/resource.h \
21711         getopt.h \
21712         malloc.h \
21713         utmp.h \
21714         utmpx.h \
21715         signal.h \
21716         sys/select.h \
21717         syslog.h \
21718         inttypes.h \
21719         stdint.h \
21720         stdio.h \
21721         netdb.h \
21722         semaphore.h \
21723         arpa/inet.h \
21724         netinet/in.h \
21725         sys/types.h \
21726         sys/socket.h \
21727         winsock.h \
21728         sys/time.h \
21729         sys/wait.h \
21730         sys/security.h \
21731         fcntl.h \
21732         sys/fcntl.h \
21733         sys/prctl.h \
21734         prot.h \
21735         pwd.h \
21736         grp.h \
21737         sia.h \
21738         siad.h
21739
21740 do
21741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21746   echo $ECHO_N "(cached) $ECHO_C" >&6
21747 fi
21748 ac_res=`eval echo '${'$as_ac_Header'}'`
21749                { echo "$as_me:$LINENO: result: $ac_res" >&5
21750 echo "${ECHO_T}$ac_res" >&6; }
21751 else
21752   # Is the header compilable?
21753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761 $ac_includes_default
21762 #include <$ac_header>
21763 _ACEOF
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768   *) ac_try_echo=$ac_try;;
21769 esac
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771   (eval "$ac_compile") 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } && {
21778          test -z "$ac_c_werror_flag" ||
21779          test ! -s conftest.err
21780        } && test -s conftest.$ac_objext; then
21781   ac_header_compiler=yes
21782 else
21783   echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786         ac_header_compiler=no
21787 fi
21788
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21791 echo "${ECHO_T}$ac_header_compiler" >&6; }
21792
21793 # Is the header present?
21794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21796 cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 #include <$ac_header>
21803 _ACEOF
21804 if { (ac_try="$ac_cpp conftest.$ac_ext"
21805 case "(($ac_try" in
21806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807   *) ac_try_echo=$ac_try;;
21808 esac
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } >/dev/null && {
21817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21818          test ! -s conftest.err
21819        }; then
21820   ac_header_preproc=yes
21821 else
21822   echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825   ac_header_preproc=no
21826 fi
21827
21828 rm -f conftest.err conftest.$ac_ext
21829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21830 echo "${ECHO_T}$ac_header_preproc" >&6; }
21831
21832 # So?  What about this header?
21833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21834   yes:no: )
21835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21839     ac_header_preproc=yes
21840     ;;
21841   no:yes:* )
21842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21854
21855     ;;
21856 esac
21857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21860   echo $ECHO_N "(cached) $ECHO_C" >&6
21861 else
21862   eval "$as_ac_Header=\$ac_header_preproc"
21863 fi
21864 ac_res=`eval echo '${'$as_ac_Header'}'`
21865                { echo "$as_me:$LINENO: result: $ac_res" >&5
21866 echo "${ECHO_T}$ac_res" >&6; }
21867
21868 fi
21869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21870   cat >>confdefs.h <<_ACEOF
21871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21872 _ACEOF
21873
21874 fi
21875
21876 done
21877
21878
21879
21880 for ac_header in net/if.h
21881 do
21882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21886   echo $ECHO_N "(cached) $ECHO_C" >&6
21887 else
21888   cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894 #ifdef HAVE_SYS_SOCKET_H
21895 # include <sys/socket.h>
21896 # endif
21897
21898
21899 #include <$ac_header>
21900 _ACEOF
21901 rm -f conftest.$ac_objext
21902 if { (ac_try="$ac_compile"
21903 case "(($ac_try" in
21904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905   *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908   (eval "$ac_compile") 2>conftest.er1
21909   ac_status=$?
21910   grep -v '^ *+' conftest.er1 >conftest.err
21911   rm -f conftest.er1
21912   cat conftest.err >&5
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); } && {
21915          test -z "$ac_c_werror_flag" ||
21916          test ! -s conftest.err
21917        } && test -s conftest.$ac_objext; then
21918   eval "$as_ac_Header=yes"
21919 else
21920   echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923         eval "$as_ac_Header=no"
21924 fi
21925
21926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927 fi
21928 ac_res=`eval echo '${'$as_ac_Header'}'`
21929                { echo "$as_me:$LINENO: result: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21932   cat >>confdefs.h <<_ACEOF
21933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21934 _ACEOF
21935
21936 fi
21937
21938 done
21939
21940
21941 REGEX=no
21942 if test "${ac_cv_header_regex_h+set}" = set; then
21943   { echo "$as_me:$LINENO: checking for regex.h" >&5
21944 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21945 if test "${ac_cv_header_regex_h+set}" = set; then
21946   echo $ECHO_N "(cached) $ECHO_C" >&6
21947 fi
21948 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21949 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21950 else
21951   # Is the header compilable?
21952 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21953 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21954 cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h.  */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h.  */
21960 $ac_includes_default
21961 #include <regex.h>
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967   *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970   (eval "$ac_compile") 2>conftest.er1
21971   ac_status=$?
21972   grep -v '^ *+' conftest.er1 >conftest.err
21973   rm -f conftest.er1
21974   cat conftest.err >&5
21975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976   (exit $ac_status); } && {
21977          test -z "$ac_c_werror_flag" ||
21978          test ! -s conftest.err
21979        } && test -s conftest.$ac_objext; then
21980   ac_header_compiler=yes
21981 else
21982   echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985         ac_header_compiler=no
21986 fi
21987
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21990 echo "${ECHO_T}$ac_header_compiler" >&6; }
21991
21992 # Is the header present?
21993 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21994 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001 #include <regex.h>
22002 _ACEOF
22003 if { (ac_try="$ac_cpp conftest.$ac_ext"
22004 case "(($ac_try" in
22005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006   *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22010   ac_status=$?
22011   grep -v '^ *+' conftest.er1 >conftest.err
22012   rm -f conftest.er1
22013   cat conftest.err >&5
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } >/dev/null && {
22016          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22017          test ! -s conftest.err
22018        }; then
22019   ac_header_preproc=yes
22020 else
22021   echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024   ac_header_preproc=no
22025 fi
22026
22027 rm -f conftest.err conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22029 echo "${ECHO_T}$ac_header_preproc" >&6; }
22030
22031 # So?  What about this header?
22032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22033   yes:no: )
22034     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22035 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22036     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22037 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22038     ac_header_preproc=yes
22039     ;;
22040   no:yes:* )
22041     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22042 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22043     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22044 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22045     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22046 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22047     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22048 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22049     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22050 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22051     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22052 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22053
22054     ;;
22055 esac
22056 { echo "$as_me:$LINENO: checking for regex.h" >&5
22057 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22058 if test "${ac_cv_header_regex_h+set}" = set; then
22059   echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22061   ac_cv_header_regex_h=$ac_header_preproc
22062 fi
22063 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22064 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22065
22066 fi
22067 if test $ac_cv_header_regex_h = yes; then
22068
22069 cat >>confdefs.h <<\_ACEOF
22070 #define HAVE_REGEX_H
22071 _ACEOF
22072
22073 fi
22074
22075
22076 if test "x$ac_cv_header_regex_h" = "xyes"; then
22077   REGEX_EXTENDED=no
22078   REGEX=yes
22079   cat >conftest.$ac_ext <<_ACEOF
22080 /* confdefs.h.  */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h.  */
22085 #include <regex.h>
22086      #ifdef REG_EXTENDED
22087        yes
22088      #endif
22089
22090 _ACEOF
22091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22092   $EGREP "yes" >/dev/null 2>&1; then
22093
22094 cat >>confdefs.h <<\_ACEOF
22095 #define HAVE_REG_EXTENDED
22096 _ACEOF
22097  REGEX_EXTENDED=yes
22098 fi
22099 rm -f conftest*
22100
22101 fi
22102
22103
22104
22105 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22106 then
22107
22108 cat >>confdefs.h <<\_ACEOF
22109 #define OSFC2
22110 _ACEOF
22111
22112 fi
22113
22114 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22115 then
22116
22117 cat >>confdefs.h <<\_ACEOF
22118 #define OSFSIA
22119 _ACEOF
22120
22121 fi
22122
22123 OPENSSL_INCLUDE="-DNO_OPENSSL"
22124 if test "x$WITH_OPENSSL" = xyes; then
22125   if test "x$OPENSSL_LIBS" = "x"; then
22126     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22127 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22128   else
22129     old_CPPFLAGS=$CPPFLAGS
22130     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22131         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22132     fi
22133         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22134
22135
22136
22137
22138
22139 for ac_header in \
22140         openssl/ssl.h \
22141         openssl/crypto.h \
22142         openssl/err.h \
22143         openssl/evp.h \
22144         openssl/engine.h
22145 do
22146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22148   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22151   echo $ECHO_N "(cached) $ECHO_C" >&6
22152 fi
22153 ac_res=`eval echo '${'$as_ac_Header'}'`
22154                { echo "$as_me:$LINENO: result: $ac_res" >&5
22155 echo "${ECHO_T}$ac_res" >&6; }
22156 else
22157   # Is the header compilable?
22158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22160 cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h.  */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h.  */
22166 $ac_includes_default
22167 #include <$ac_header>
22168 _ACEOF
22169 rm -f conftest.$ac_objext
22170 if { (ac_try="$ac_compile"
22171 case "(($ac_try" in
22172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173   *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176   (eval "$ac_compile") 2>conftest.er1
22177   ac_status=$?
22178   grep -v '^ *+' conftest.er1 >conftest.err
22179   rm -f conftest.er1
22180   cat conftest.err >&5
22181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182   (exit $ac_status); } && {
22183          test -z "$ac_c_werror_flag" ||
22184          test ! -s conftest.err
22185        } && test -s conftest.$ac_objext; then
22186   ac_header_compiler=yes
22187 else
22188   echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22190
22191         ac_header_compiler=no
22192 fi
22193
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22196 echo "${ECHO_T}$ac_header_compiler" >&6; }
22197
22198 # Is the header present?
22199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22201 cat >conftest.$ac_ext <<_ACEOF
22202 /* confdefs.h.  */
22203 _ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h.  */
22207 #include <$ac_header>
22208 _ACEOF
22209 if { (ac_try="$ac_cpp conftest.$ac_ext"
22210 case "(($ac_try" in
22211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212   *) ac_try_echo=$ac_try;;
22213 esac
22214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22216   ac_status=$?
22217   grep -v '^ *+' conftest.er1 >conftest.err
22218   rm -f conftest.er1
22219   cat conftest.err >&5
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); } >/dev/null && {
22222          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22223          test ! -s conftest.err
22224        }; then
22225   ac_header_preproc=yes
22226 else
22227   echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22229
22230   ac_header_preproc=no
22231 fi
22232
22233 rm -f conftest.err conftest.$ac_ext
22234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22235 echo "${ECHO_T}$ac_header_preproc" >&6; }
22236
22237 # So?  What about this header?
22238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22239   yes:no: )
22240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22244     ac_header_preproc=yes
22245     ;;
22246   no:yes:* )
22247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22259
22260     ;;
22261 esac
22262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22265   echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267   eval "$as_ac_Header=\$ac_header_preproc"
22268 fi
22269 ac_res=`eval echo '${'$as_ac_Header'}'`
22270                { echo "$as_me:$LINENO: result: $ac_res" >&5
22271 echo "${ECHO_T}$ac_res" >&6; }
22272
22273 fi
22274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22275   cat >>confdefs.h <<_ACEOF
22276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22277 _ACEOF
22278
22279 else
22280   OPENSSL_LIBS=
22281
22282 fi
22283
22284 done
22285
22286     if test "x$OPENSSL_LIBS" != "x"; then
22287         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22288 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22289         cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295 #include <openssl/crypto.h>
22296              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22297              yes
22298              #endif
22299
22300 _ACEOF
22301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22302   $EGREP "yes" >/dev/null 2>&1; then
22303   goodssl="yes"
22304 fi
22305 rm -f conftest*
22306
22307         if test "x$goodssl" != "xyes"; then
22308             { echo "$as_me:$LINENO: result: no" >&5
22309 echo "${ECHO_T}no" >&6; }
22310             OPENSSL_LIBS=
22311         else
22312             { echo "$as_me:$LINENO: result: yes" >&5
22313 echo "${ECHO_T}yes" >&6; }
22314             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22315                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22316             else
22317                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22318             fi
22319         fi
22320     fi
22321     CPPFLAGS=$old_CPPFLAGS
22322   fi
22323 fi
22324
22325
22326 export OPENSSL_LIBS
22327
22328 if test "x$PCAP_LIBS" = x; then
22329     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22330 echo "$as_me: skipping test for pcap.h." >&6;}
22331 else
22332     if test "${ac_cv_header_pcap_h+set}" = set; then
22333   { echo "$as_me:$LINENO: checking for pcap.h" >&5
22334 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22335 if test "${ac_cv_header_pcap_h+set}" = set; then
22336   echo $ECHO_N "(cached) $ECHO_C" >&6
22337 fi
22338 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22339 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22340 else
22341   # Is the header compilable?
22342 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22343 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22344 cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 $ac_includes_default
22351 #include <pcap.h>
22352 _ACEOF
22353 rm -f conftest.$ac_objext
22354 if { (ac_try="$ac_compile"
22355 case "(($ac_try" in
22356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357   *) ac_try_echo=$ac_try;;
22358 esac
22359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22360   (eval "$ac_compile") 2>conftest.er1
22361   ac_status=$?
22362   grep -v '^ *+' conftest.er1 >conftest.err
22363   rm -f conftest.er1
22364   cat conftest.err >&5
22365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); } && {
22367          test -z "$ac_c_werror_flag" ||
22368          test ! -s conftest.err
22369        } && test -s conftest.$ac_objext; then
22370   ac_header_compiler=yes
22371 else
22372   echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22374
22375         ac_header_compiler=no
22376 fi
22377
22378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22380 echo "${ECHO_T}$ac_header_compiler" >&6; }
22381
22382 # Is the header present?
22383 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22384 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22385 cat >conftest.$ac_ext <<_ACEOF
22386 /* confdefs.h.  */
22387 _ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h.  */
22391 #include <pcap.h>
22392 _ACEOF
22393 if { (ac_try="$ac_cpp conftest.$ac_ext"
22394 case "(($ac_try" in
22395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396   *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22400   ac_status=$?
22401   grep -v '^ *+' conftest.er1 >conftest.err
22402   rm -f conftest.er1
22403   cat conftest.err >&5
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); } >/dev/null && {
22406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22407          test ! -s conftest.err
22408        }; then
22409   ac_header_preproc=yes
22410 else
22411   echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414   ac_header_preproc=no
22415 fi
22416
22417 rm -f conftest.err conftest.$ac_ext
22418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22419 echo "${ECHO_T}$ac_header_preproc" >&6; }
22420
22421 # So?  What about this header?
22422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22423   yes:no: )
22424     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22425 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22426     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22427 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22428     ac_header_preproc=yes
22429     ;;
22430   no:yes:* )
22431     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22432 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22433     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
22434 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
22435     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22436 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22437     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
22438 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22439     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22440 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22441     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22442 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22443
22444     ;;
22445 esac
22446 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22447 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22448 if test "${ac_cv_header_pcap_h+set}" = set; then
22449   echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451   ac_cv_header_pcap_h=$ac_header_preproc
22452 fi
22453 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22454 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22455
22456 fi
22457 if test $ac_cv_header_pcap_h = yes; then
22458
22459 cat >>confdefs.h <<\_ACEOF
22460 #define HAVE_PCAP_H 1
22461 _ACEOF
22462
22463 else
22464    PCAP_LIBS=
22465         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22466 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22467
22468 fi
22469
22470
22471 fi
22472
22473
22474
22475 { echo "$as_me:$LINENO: checking for off_t" >&5
22476 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22477 if test "${ac_cv_type_off_t+set}" = set; then
22478   echo $ECHO_N "(cached) $ECHO_C" >&6
22479 else
22480   cat >conftest.$ac_ext <<_ACEOF
22481 /* confdefs.h.  */
22482 _ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h.  */
22486 $ac_includes_default
22487 typedef off_t ac__type_new_;
22488 int
22489 main ()
22490 {
22491 if ((ac__type_new_ *) 0)
22492   return 0;
22493 if (sizeof (ac__type_new_))
22494   return 0;
22495   ;
22496   return 0;
22497 }
22498 _ACEOF
22499 rm -f conftest.$ac_objext
22500 if { (ac_try="$ac_compile"
22501 case "(($ac_try" in
22502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503   *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506   (eval "$ac_compile") 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } && {
22513          test -z "$ac_c_werror_flag" ||
22514          test ! -s conftest.err
22515        } && test -s conftest.$ac_objext; then
22516   ac_cv_type_off_t=yes
22517 else
22518   echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521         ac_cv_type_off_t=no
22522 fi
22523
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 fi
22526 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22527 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22528 if test $ac_cv_type_off_t = yes; then
22529   :
22530 else
22531
22532 cat >>confdefs.h <<_ACEOF
22533 #define off_t long int
22534 _ACEOF
22535
22536 fi
22537
22538 { echo "$as_me:$LINENO: checking for pid_t" >&5
22539 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22540 if test "${ac_cv_type_pid_t+set}" = set; then
22541   echo $ECHO_N "(cached) $ECHO_C" >&6
22542 else
22543   cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h.  */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h.  */
22549 $ac_includes_default
22550 typedef pid_t ac__type_new_;
22551 int
22552 main ()
22553 {
22554 if ((ac__type_new_ *) 0)
22555   return 0;
22556 if (sizeof (ac__type_new_))
22557   return 0;
22558   ;
22559   return 0;
22560 }
22561 _ACEOF
22562 rm -f conftest.$ac_objext
22563 if { (ac_try="$ac_compile"
22564 case "(($ac_try" in
22565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566   *) ac_try_echo=$ac_try;;
22567 esac
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569   (eval "$ac_compile") 2>conftest.er1
22570   ac_status=$?
22571   grep -v '^ *+' conftest.er1 >conftest.err
22572   rm -f conftest.er1
22573   cat conftest.err >&5
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); } && {
22576          test -z "$ac_c_werror_flag" ||
22577          test ! -s conftest.err
22578        } && test -s conftest.$ac_objext; then
22579   ac_cv_type_pid_t=yes
22580 else
22581   echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22583
22584         ac_cv_type_pid_t=no
22585 fi
22586
22587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588 fi
22589 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22590 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22591 if test $ac_cv_type_pid_t = yes; then
22592   :
22593 else
22594
22595 cat >>confdefs.h <<_ACEOF
22596 #define pid_t int
22597 _ACEOF
22598
22599 fi
22600
22601 { echo "$as_me:$LINENO: checking for size_t" >&5
22602 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22603 if test "${ac_cv_type_size_t+set}" = set; then
22604   echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606   cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h.  */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h.  */
22612 $ac_includes_default
22613 typedef size_t ac__type_new_;
22614 int
22615 main ()
22616 {
22617 if ((ac__type_new_ *) 0)
22618   return 0;
22619 if (sizeof (ac__type_new_))
22620   return 0;
22621   ;
22622   return 0;
22623 }
22624 _ACEOF
22625 rm -f conftest.$ac_objext
22626 if { (ac_try="$ac_compile"
22627 case "(($ac_try" in
22628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629   *) ac_try_echo=$ac_try;;
22630 esac
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632   (eval "$ac_compile") 2>conftest.er1
22633   ac_status=$?
22634   grep -v '^ *+' conftest.er1 >conftest.err
22635   rm -f conftest.er1
22636   cat conftest.err >&5
22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638   (exit $ac_status); } && {
22639          test -z "$ac_c_werror_flag" ||
22640          test ! -s conftest.err
22641        } && test -s conftest.$ac_objext; then
22642   ac_cv_type_size_t=yes
22643 else
22644   echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22646
22647         ac_cv_type_size_t=no
22648 fi
22649
22650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651 fi
22652 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22653 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22654 if test $ac_cv_type_size_t = yes; then
22655   :
22656 else
22657
22658 cat >>confdefs.h <<_ACEOF
22659 #define size_t unsigned int
22660 _ACEOF
22661
22662 fi
22663
22664 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22665 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22666 if test "${ac_cv_type_uid_t+set}" = set; then
22667   echo $ECHO_N "(cached) $ECHO_C" >&6
22668 else
22669   cat >conftest.$ac_ext <<_ACEOF
22670 /* confdefs.h.  */
22671 _ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h.  */
22675 #include <sys/types.h>
22676
22677 _ACEOF
22678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22679   $EGREP "uid_t" >/dev/null 2>&1; then
22680   ac_cv_type_uid_t=yes
22681 else
22682   ac_cv_type_uid_t=no
22683 fi
22684 rm -f conftest*
22685
22686 fi
22687 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22688 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22689 if test $ac_cv_type_uid_t = no; then
22690
22691 cat >>confdefs.h <<\_ACEOF
22692 #define uid_t int
22693 _ACEOF
22694
22695
22696 cat >>confdefs.h <<\_ACEOF
22697 #define gid_t int
22698 _ACEOF
22699
22700 fi
22701
22702
22703
22704   { echo "$as_me:$LINENO: checking for socklen_t" >&5
22705 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22706 if test "${ac_cv_type_socklen_t+set}" = set; then
22707   echo $ECHO_N "(cached) $ECHO_C" >&6
22708 else
22709    ac_cv_type_socklen_t=no
22710       cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716 #ifdef HAVE_SYS_TYPES_H
22717 #include <sys/types.h>
22718 #endif
22719 #ifdef HAVE_SYS_SOCKET_H
22720 #include <sys/socket.h>
22721 #endif
22722
22723 int
22724 main ()
22725 {
22726 socklen_t foo
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 rm -f conftest.$ac_objext
22732 if { (ac_try="$ac_compile"
22733 case "(($ac_try" in
22734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735   *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738   (eval "$ac_compile") 2>conftest.er1
22739   ac_status=$?
22740   grep -v '^ *+' conftest.er1 >conftest.err
22741   rm -f conftest.er1
22742   cat conftest.err >&5
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); } && {
22745          test -z "$ac_c_werror_flag" ||
22746          test ! -s conftest.err
22747        } && test -s conftest.$ac_objext; then
22748   ac_cv_type_socklen_t=yes
22749 else
22750   echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22752
22753
22754 fi
22755
22756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22757
22758
22759 fi
22760 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22761 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22762
22763   if test "$ac_cv_type_socklen_t" != "yes"; then
22764
22765 cat >>confdefs.h <<\_ACEOF
22766 #define socklen_t int
22767 _ACEOF
22768
22769   fi
22770
22771
22772
22773   { echo "$as_me:$LINENO: checking for uint8_t" >&5
22774 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22775 if test "${ac_cv_type_uint8_t+set}" = set; then
22776   echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778    ac_cv_type_uint8_t=no
22779       cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h.  */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h.  */
22785 #ifdef HAVE_INTTYPES_H
22786 #include <inttypes.h>
22787 #endif
22788 #ifdef HAVE_STDINT_H
22789 #include <stdint.h>
22790 #endif
22791
22792 int
22793 main ()
22794 {
22795 uint8_t foo
22796   ;
22797   return 0;
22798 }
22799 _ACEOF
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
22802 case "(($ac_try" in
22803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804   *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807   (eval "$ac_compile") 2>conftest.er1
22808   ac_status=$?
22809   grep -v '^ *+' conftest.er1 >conftest.err
22810   rm -f conftest.er1
22811   cat conftest.err >&5
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); } && {
22814          test -z "$ac_c_werror_flag" ||
22815          test ! -s conftest.err
22816        } && test -s conftest.$ac_objext; then
22817   ac_cv_type_uint8_t=yes
22818 else
22819   echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22821
22822
22823 fi
22824
22825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22826
22827
22828 fi
22829 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22830 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22831
22832   if test "$ac_cv_type_uint8_t" != "yes"; then
22833
22834 cat >>confdefs.h <<\_ACEOF
22835 #define uint8_t unsigned char
22836 _ACEOF
22837
22838   fi
22839
22840
22841
22842   { echo "$as_me:$LINENO: checking for uint16_t" >&5
22843 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22844 if test "${ac_cv_type_uint16_t+set}" = set; then
22845   echo $ECHO_N "(cached) $ECHO_C" >&6
22846 else
22847    ac_cv_type_uint16_t=no
22848       cat >conftest.$ac_ext <<_ACEOF
22849 /* confdefs.h.  */
22850 _ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h.  */
22854 #ifdef HAVE_INTTYPES_H
22855 #include <inttypes.h>
22856 #endif
22857 #ifdef HAVE_STDINT_H
22858 #include <stdint.h>
22859 #endif
22860
22861 int
22862 main ()
22863 {
22864 uint16_t foo
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_compile") 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } && {
22883          test -z "$ac_c_werror_flag" ||
22884          test ! -s conftest.err
22885        } && test -s conftest.$ac_objext; then
22886   ac_cv_type_uint16_t=yes
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891
22892 fi
22893
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895
22896
22897 fi
22898 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22899 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22900
22901   if test "$ac_cv_type_uint16_t" != "yes"; then
22902
22903 cat >>confdefs.h <<\_ACEOF
22904 #define uint16_t unsigned short
22905 _ACEOF
22906
22907   fi
22908
22909
22910
22911   { echo "$as_me:$LINENO: checking for uint32_t" >&5
22912 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22913 if test "${ac_cv_type_uint32_t+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916    ac_cv_type_uint32_t=no
22917       cat >conftest.$ac_ext <<_ACEOF
22918 /* confdefs.h.  */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h.  */
22923 #ifdef HAVE_INTTYPES_H
22924 #include <inttypes.h>
22925 #endif
22926 #ifdef HAVE_STDINT_H
22927 #include <stdint.h>
22928 #endif
22929
22930 int
22931 main ()
22932 {
22933 uint32_t foo
22934   ;
22935   return 0;
22936 }
22937 _ACEOF
22938 rm -f conftest.$ac_objext
22939 if { (ac_try="$ac_compile"
22940 case "(($ac_try" in
22941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942   *) ac_try_echo=$ac_try;;
22943 esac
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945   (eval "$ac_compile") 2>conftest.er1
22946   ac_status=$?
22947   grep -v '^ *+' conftest.er1 >conftest.err
22948   rm -f conftest.er1
22949   cat conftest.err >&5
22950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951   (exit $ac_status); } && {
22952          test -z "$ac_c_werror_flag" ||
22953          test ! -s conftest.err
22954        } && test -s conftest.$ac_objext; then
22955   ac_cv_type_uint32_t=yes
22956 else
22957   echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22959
22960
22961 fi
22962
22963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964
22965
22966 fi
22967 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22968 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22969
22970   if test "$ac_cv_type_uint32_t" != "yes"; then
22971
22972 cat >>confdefs.h <<\_ACEOF
22973 #define uint32_t unsigned int
22974 _ACEOF
22975
22976   fi
22977
22978
22979 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22980 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22981 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22982   echo $ECHO_N "(cached) $ECHO_C" >&6
22983 else
22984   cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h.  */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h.  */
22990
22991 #ifdef HAVE_NETINET_IN_H
22992 #include <netinet/in.h>
22993 #endif
22994
22995
22996 typedef struct in6_addr ac__type_new_;
22997 int
22998 main ()
22999 {
23000 if ((ac__type_new_ *) 0)
23001   return 0;
23002 if (sizeof (ac__type_new_))
23003   return 0;
23004   ;
23005   return 0;
23006 }
23007 _ACEOF
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012   *) ac_try_echo=$ac_try;;
23013 esac
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015   (eval "$ac_compile") 2>conftest.er1
23016   ac_status=$?
23017   grep -v '^ *+' conftest.er1 >conftest.err
23018   rm -f conftest.er1
23019   cat conftest.err >&5
23020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021   (exit $ac_status); } && {
23022          test -z "$ac_c_werror_flag" ||
23023          test ! -s conftest.err
23024        } && test -s conftest.$ac_objext; then
23025   ac_cv_type_struct_in6_addr=yes
23026 else
23027   echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030         ac_cv_type_struct_in6_addr=no
23031 fi
23032
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 fi
23035 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23036 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
23037 if test $ac_cv_type_struct_in6_addr = yes; then
23038
23039 cat >>confdefs.h <<\_ACEOF
23040 #define HAVE_STRUCT_IN6_ADDR 1
23041 _ACEOF
23042
23043 fi
23044
23045
23046 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23047 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23048 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23049   echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051   cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h.  */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h.  */
23057
23058 #ifdef HAVE_NETINET_IN_H
23059 #include <netinet/in.h>
23060 #endif
23061 #ifdef HAVE_SYS_SOCKET_H
23062 #include <sys/socket.h>
23063 #endif
23064
23065
23066 typedef struct sockaddr_storage ac__type_new_;
23067 int
23068 main ()
23069 {
23070 if ((ac__type_new_ *) 0)
23071   return 0;
23072 if (sizeof (ac__type_new_))
23073   return 0;
23074   ;
23075   return 0;
23076 }
23077 _ACEOF
23078 rm -f conftest.$ac_objext
23079 if { (ac_try="$ac_compile"
23080 case "(($ac_try" in
23081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082   *) ac_try_echo=$ac_try;;
23083 esac
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085   (eval "$ac_compile") 2>conftest.er1
23086   ac_status=$?
23087   grep -v '^ *+' conftest.er1 >conftest.err
23088   rm -f conftest.er1
23089   cat conftest.err >&5
23090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091   (exit $ac_status); } && {
23092          test -z "$ac_c_werror_flag" ||
23093          test ! -s conftest.err
23094        } && test -s conftest.$ac_objext; then
23095   ac_cv_type_struct_sockaddr_storage=yes
23096 else
23097   echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100         ac_cv_type_struct_sockaddr_storage=no
23101 fi
23102
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 fi
23105 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23106 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23107 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23108
23109 cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23111 _ACEOF
23112
23113 fi
23114
23115
23116 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23117 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23118 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23119   echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121   cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127
23128 #ifdef HAVE_NETINET_IN_H
23129 #include <netinet/in.h>
23130 #endif
23131
23132
23133 typedef struct sockaddr_in6 ac__type_new_;
23134 int
23135 main ()
23136 {
23137 if ((ac__type_new_ *) 0)
23138   return 0;
23139 if (sizeof (ac__type_new_))
23140   return 0;
23141   ;
23142   return 0;
23143 }
23144 _ACEOF
23145 rm -f conftest.$ac_objext
23146 if { (ac_try="$ac_compile"
23147 case "(($ac_try" in
23148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149   *) ac_try_echo=$ac_try;;
23150 esac
23151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152   (eval "$ac_compile") 2>conftest.er1
23153   ac_status=$?
23154   grep -v '^ *+' conftest.er1 >conftest.err
23155   rm -f conftest.er1
23156   cat conftest.err >&5
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); } && {
23159          test -z "$ac_c_werror_flag" ||
23160          test ! -s conftest.err
23161        } && test -s conftest.$ac_objext; then
23162   ac_cv_type_struct_sockaddr_in6=yes
23163 else
23164   echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23166
23167         ac_cv_type_struct_sockaddr_in6=no
23168 fi
23169
23170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171 fi
23172 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23173 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23174 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23175
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_STRUCT_SOCKADDR_IN6 1
23178 _ACEOF
23179
23180 fi
23181
23182
23183 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23184 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23185 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23186   echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188   cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h.  */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h.  */
23194
23195 #ifdef HAVE_SYS_TYPES_H
23196 #include <sys/types.h>
23197 #endif
23198 #ifdef HAVE_SYS_SOCKET_H
23199 #include <sys/socket.h>
23200 #endif
23201 #ifdef HAVE_NETDB_H
23202 #include <netdb.h>
23203 #endif
23204
23205
23206 typedef struct addrinfo ac__type_new_;
23207 int
23208 main ()
23209 {
23210 if ((ac__type_new_ *) 0)
23211   return 0;
23212 if (sizeof (ac__type_new_))
23213   return 0;
23214   ;
23215   return 0;
23216 }
23217 _ACEOF
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222   *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225   (eval "$ac_compile") 2>conftest.er1
23226   ac_status=$?
23227   grep -v '^ *+' conftest.er1 >conftest.err
23228   rm -f conftest.er1
23229   cat conftest.err >&5
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); } && {
23232          test -z "$ac_c_werror_flag" ||
23233          test ! -s conftest.err
23234        } && test -s conftest.$ac_objext; then
23235   ac_cv_type_struct_addrinfo=yes
23236 else
23237   echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23239
23240         ac_cv_type_struct_addrinfo=no
23241 fi
23242
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23244 fi
23245 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23246 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23247 if test $ac_cv_type_struct_addrinfo = yes; then
23248
23249 cat >>confdefs.h <<\_ACEOF
23250 #define HAVE_STRUCT_ADDRINFO 1
23251 _ACEOF
23252
23253 fi
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284 for ac_func in \
23285         getopt_long \
23286         lockf \
23287         strsignal \
23288         sigaction \
23289         sigprocmask \
23290         pthread_sigmask \
23291         snprintf \
23292         vsnprintf \
23293         setsid \
23294         strncasecmp \
23295         strcasecmp \
23296         localtime_r \
23297         ctime_r \
23298         gmtime_r \
23299         strsep \
23300         inet_aton \
23301         inet_pton \
23302         inet_ntop \
23303         setlinebuf \
23304         setvbuf \
23305         getusershell \
23306         initgroups \
23307         getaddrinfo \
23308         getnameinfo \
23309         closefrom \
23310         gettimeofday \
23311         strlcat \
23312         strlcpy
23313
23314 do
23315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23319   echo $ECHO_N "(cached) $ECHO_C" >&6
23320 else
23321   cat >conftest.$ac_ext <<_ACEOF
23322 /* confdefs.h.  */
23323 _ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h.  */
23327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23329 #define $ac_func innocuous_$ac_func
23330
23331 /* System header to define __stub macros and hopefully few prototypes,
23332     which can conflict with char $ac_func (); below.
23333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23334     <limits.h> exists even on freestanding compilers.  */
23335
23336 #ifdef __STDC__
23337 # include <limits.h>
23338 #else
23339 # include <assert.h>
23340 #endif
23341
23342 #undef $ac_func
23343
23344 /* Override any GCC internal prototype to avoid an error.
23345    Use char because int might match the return type of a GCC
23346    builtin and then its argument prototype would still apply.  */
23347 #ifdef __cplusplus
23348 extern "C"
23349 #endif
23350 char $ac_func ();
23351 /* The GNU C library defines this for functions which it implements
23352     to always fail with ENOSYS.  Some functions are actually named
23353     something starting with __ and the normal name is an alias.  */
23354 #if defined __stub_$ac_func || defined __stub___$ac_func
23355 choke me
23356 #endif
23357
23358 int
23359 main ()
23360 {
23361 return $ac_func ();
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest.$ac_objext conftest$ac_exeext
23367 if { (ac_try="$ac_link"
23368 case "(($ac_try" in
23369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370   *) ac_try_echo=$ac_try;;
23371 esac
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373   (eval "$ac_link") 2>conftest.er1
23374   ac_status=$?
23375   grep -v '^ *+' conftest.er1 >conftest.err
23376   rm -f conftest.er1
23377   cat conftest.err >&5
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } && {
23380          test -z "$ac_c_werror_flag" ||
23381          test ! -s conftest.err
23382        } && test -s conftest$ac_exeext &&
23383        $as_test_x conftest$ac_exeext; then
23384   eval "$as_ac_var=yes"
23385 else
23386   echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389         eval "$as_ac_var=no"
23390 fi
23391
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393       conftest$ac_exeext conftest.$ac_ext
23394 fi
23395 ac_res=`eval echo '${'$as_ac_var'}'`
23396                { echo "$as_me:$LINENO: result: $ac_res" >&5
23397 echo "${ECHO_T}$ac_res" >&6; }
23398 if test `eval echo '${'$as_ac_var'}'` = yes; then
23399   cat >>confdefs.h <<_ACEOF
23400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23401 _ACEOF
23402
23403 fi
23404 done
23405
23406 for ac_func in \
23407         crypt \
23408         strncasecmp \
23409         strcasecmp \
23410         inet_aton \
23411         setlinebuf \
23412         getusershell \
23413         endusershell
23414
23415 do
23416 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23417 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23418 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23419   echo $ECHO_N "(cached) $ECHO_C" >&6
23420 else
23421   cat >conftest.$ac_ext <<_ACEOF
23422 /* confdefs.h.  */
23423 _ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h.  */
23427
23428 #include <stdio.h>
23429 #include <string.h>
23430 #ifdef HAVE_UNISTD_H
23431 #include <unistd.h>
23432 #endif
23433 #ifdef HAVE_CRYPT_H
23434 #include <crypt.h>
23435 #endif
23436 #ifdef HAVE_ERRNO_H
23437 #include <errno.h>
23438 #endif
23439 #ifdef HAVE_RESOURCE_H
23440 #include <resource.h>
23441 #endif
23442 #ifdef HAVE_GETOPT_H
23443 #include <getopt.h>
23444 #endif
23445 #ifdef HAVE_MALLOC_H
23446 #include <malloc.h>
23447 #endif
23448 #ifdef HAVE_UTMP_H
23449 #include <utmp.h>
23450 #endif
23451 #ifdef HAVE_UTMPX_H
23452 #include <utmpx.h>
23453 #endif
23454 #ifdef HAVE_SYS_SELECT_H
23455 #include <sys/select.h>
23456 #endif
23457 #ifdef HAVE_DLFCN_H
23458 #include <dlfcn.h>
23459 #endif
23460 #ifdef HAVE_REGEX_H
23461 #include <regex.h>
23462 #endif
23463 #ifdef HAVE_SYSLOG_H
23464 #include <syslog.h>
23465 #endif
23466 #ifdef HAVE_INTTYPES_H
23467 #include <inttypes.h>
23468 #endif
23469 #ifdef HAVE_STDINT_H
23470 #include <stdint.h>
23471 #endif
23472 #ifdef HAVE_ARPA_INET_H
23473 #include <arpa/inet.h>
23474 #endif
23475
23476 int
23477 main ()
23478 {
23479 char *(*pfn) = (char *(*)) $ac_func
23480   ;
23481   return 0;
23482 }
23483 _ACEOF
23484 rm -f conftest.$ac_objext
23485 if { (ac_try="$ac_compile"
23486 case "(($ac_try" in
23487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488   *) ac_try_echo=$ac_try;;
23489 esac
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491   (eval "$ac_compile") 2>conftest.er1
23492   ac_status=$?
23493   grep -v '^ *+' conftest.er1 >conftest.err
23494   rm -f conftest.er1
23495   cat conftest.err >&5
23496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); } && {
23498          test -z "$ac_c_werror_flag" ||
23499          test ! -s conftest.err
23500        } && test -s conftest.$ac_objext; then
23501   eval "radius_cv_decl_needed_$ac_func=no"
23502 else
23503   echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23505
23506         eval "radius_cv_decl_needed_$ac_func=yes"
23507 fi
23508
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23510 fi
23511
23512 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23513   { echo "$as_me:$LINENO: result: yes" >&5
23514 echo "${ECHO_T}yes" >&6; }
23515   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23516   cat >>confdefs.h <<_ACEOF
23517 #define $radius_tr_decl 1
23518 _ACEOF
23519
23520 else
23521   { echo "$as_me:$LINENO: result: no" >&5
23522 echo "${ECHO_T}no" >&6; }
23523 fi
23524
23525 done
23526
23527
23528 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23529 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23530 if test "${ac_cv_type_signal+set}" = set; then
23531   echo $ECHO_N "(cached) $ECHO_C" >&6
23532 else
23533   cat >conftest.$ac_ext <<_ACEOF
23534 /* confdefs.h.  */
23535 _ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h.  */
23539 #include <sys/types.h>
23540 #include <signal.h>
23541
23542 int
23543 main ()
23544 {
23545 return *(signal (0, 0)) (0) == 1;
23546   ;
23547   return 0;
23548 }
23549 _ACEOF
23550 rm -f conftest.$ac_objext
23551 if { (ac_try="$ac_compile"
23552 case "(($ac_try" in
23553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554   *) ac_try_echo=$ac_try;;
23555 esac
23556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23557   (eval "$ac_compile") 2>conftest.er1
23558   ac_status=$?
23559   grep -v '^ *+' conftest.er1 >conftest.err
23560   rm -f conftest.er1
23561   cat conftest.err >&5
23562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563   (exit $ac_status); } && {
23564          test -z "$ac_c_werror_flag" ||
23565          test ! -s conftest.err
23566        } && test -s conftest.$ac_objext; then
23567   ac_cv_type_signal=int
23568 else
23569   echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23571
23572         ac_cv_type_signal=void
23573 fi
23574
23575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576 fi
23577 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23578 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23579
23580 cat >>confdefs.h <<_ACEOF
23581 #define RETSIGTYPE $ac_cv_type_signal
23582 _ACEOF
23583
23584
23585
23586 if test "x$ac_cv_header_utmpx_h" = "xyes"
23587 then
23588
23589   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23590 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23591
23592
23593   cat >conftest.$ac_ext <<_ACEOF
23594 /* confdefs.h.  */
23595 _ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h.  */
23599
23600 #include <utmpx.h>
23601 #ifndef offsetof
23602 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23603 #endif
23604
23605 int
23606 main ()
23607 {
23608  int foo = offsetof(struct utmpx, ut_xtime)
23609   ;
23610   return 0;
23611 }
23612 _ACEOF
23613 rm -f conftest.$ac_objext
23614 if { (ac_try="$ac_compile"
23615 case "(($ac_try" in
23616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617   *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620   (eval "$ac_compile") 2>conftest.er1
23621   ac_status=$?
23622   grep -v '^ *+' conftest.er1 >conftest.err
23623   rm -f conftest.er1
23624   cat conftest.err >&5
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); } && {
23627          test -z "$ac_c_werror_flag" ||
23628          test ! -s conftest.err
23629        } && test -s conftest.$ac_objext; then
23630   has_element=" "
23631 else
23632   echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23634
23635         has_element=
23636 fi
23637
23638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23639
23640   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23641   if test "x$has_element" != "x"; then
23642     { echo "$as_me:$LINENO: result: yes" >&5
23643 echo "${ECHO_T}yes" >&6; }
23644     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23645   else
23646     { echo "$as_me:$LINENO: result: no" >&5
23647 echo "${ECHO_T}no" >&6; }
23648     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23649  fi
23650
23651  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23652  then
23653
23654 cat >>confdefs.h <<\_ACEOF
23655 #define ut_xtime ut_tv.tv_sec
23656 _ACEOF
23657
23658  fi
23659 fi
23660
23661
23662   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23663 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23664
23665
23666   cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h.  */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h.  */
23672
23673 #include <netinet/in.h>
23674 #ifndef offsetof
23675 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23676 #endif
23677
23678 int
23679 main ()
23680 {
23681  int foo = offsetof(struct in_pktinfo, ipi_addr)
23682   ;
23683   return 0;
23684 }
23685 _ACEOF
23686 rm -f conftest.$ac_objext
23687 if { (ac_try="$ac_compile"
23688 case "(($ac_try" in
23689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690   *) ac_try_echo=$ac_try;;
23691 esac
23692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23693   (eval "$ac_compile") 2>conftest.er1
23694   ac_status=$?
23695   grep -v '^ *+' conftest.er1 >conftest.err
23696   rm -f conftest.er1
23697   cat conftest.err >&5
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); } && {
23700          test -z "$ac_c_werror_flag" ||
23701          test ! -s conftest.err
23702        } && test -s conftest.$ac_objext; then
23703   has_element=" "
23704 else
23705   echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708         has_element=
23709 fi
23710
23711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712
23713   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23714   if test "x$has_element" != "x"; then
23715     { echo "$as_me:$LINENO: result: yes" >&5
23716 echo "${ECHO_T}yes" >&6; }
23717     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23718   else
23719     { echo "$as_me:$LINENO: result: no" >&5
23720 echo "${ECHO_T}no" >&6; }
23721     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23722  fi
23723
23724 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23725 then
23726
23727 cat >>confdefs.h <<\_ACEOF
23728 #define HAVE_IP_PKTINFO
23729 _ACEOF
23730
23731 fi
23732
23733
23734   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23735 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
23736
23737
23738   cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h.  */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h.  */
23744
23745 #include <netinet/in.h>
23746 #ifndef offsetof
23747 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23748 #endif
23749
23750 int
23751 main ()
23752 {
23753  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23754   ;
23755   return 0;
23756 }
23757 _ACEOF
23758 rm -f conftest.$ac_objext
23759 if { (ac_try="$ac_compile"
23760 case "(($ac_try" in
23761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762   *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765   (eval "$ac_compile") 2>conftest.er1
23766   ac_status=$?
23767   grep -v '^ *+' conftest.er1 >conftest.err
23768   rm -f conftest.er1
23769   cat conftest.err >&5
23770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771   (exit $ac_status); } && {
23772          test -z "$ac_c_werror_flag" ||
23773          test ! -s conftest.err
23774        } && test -s conftest.$ac_objext; then
23775   has_element=" "
23776 else
23777   echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780         has_element=
23781 fi
23782
23783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23784
23785   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23786   if test "x$has_element" != "x"; then
23787     { echo "$as_me:$LINENO: result: yes" >&5
23788 echo "${ECHO_T}yes" >&6; }
23789     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23790   else
23791     { echo "$as_me:$LINENO: result: no" >&5
23792 echo "${ECHO_T}no" >&6; }
23793     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23794  fi
23795
23796 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23797 then
23798
23799 cat >>confdefs.h <<\_ACEOF
23800 #define HAVE_IN6_PKTINFO
23801 _ACEOF
23802
23803 fi
23804
23805
23806 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23807 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23808 if test "${ac_cv_c_const+set}" = set; then
23809   echo $ECHO_N "(cached) $ECHO_C" >&6
23810 else
23811   cat >conftest.$ac_ext <<_ACEOF
23812 /* confdefs.h.  */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h.  */
23817
23818 int
23819 main ()
23820 {
23821 /* FIXME: Include the comments suggested by Paul. */
23822 #ifndef __cplusplus
23823   /* Ultrix mips cc rejects this.  */
23824   typedef int charset[2];
23825   const charset cs;
23826   /* SunOS 4.1.1 cc rejects this.  */
23827   char const *const *pcpcc;
23828   char **ppc;
23829   /* NEC SVR4.0.2 mips cc rejects this.  */
23830   struct point {int x, y;};
23831   static struct point const zero = {0,0};
23832   /* AIX XL C 1.02.0.0 rejects this.
23833      It does not let you subtract one const X* pointer from another in
23834      an arm of an if-expression whose if-part is not a constant
23835      expression */
23836   const char *g = "string";
23837   pcpcc = &g + (g ? g-g : 0);
23838   /* HPUX 7.0 cc rejects these. */
23839   ++pcpcc;
23840   ppc = (char**) pcpcc;
23841   pcpcc = (char const *const *) ppc;
23842   { /* SCO 3.2v4 cc rejects this.  */
23843     char *t;
23844     char const *s = 0 ? (char *) 0 : (char const *) 0;
23845
23846     *t++ = 0;
23847     if (s) return 0;
23848   }
23849   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23850     int x[] = {25, 17};
23851     const int *foo = &x[0];
23852     ++foo;
23853   }
23854   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23855     typedef const int *iptr;
23856     iptr p = 0;
23857     ++p;
23858   }
23859   { /* AIX XL C 1.02.0.0 rejects this saying
23860        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23861     struct s { int j; const int *ap[3]; };
23862     struct s *b; b->j = 5;
23863   }
23864   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23865     const int foo = 10;
23866     if (!foo) return 0;
23867   }
23868   return !cs[0] && !zero.x;
23869 #endif
23870
23871   ;
23872   return 0;
23873 }
23874 _ACEOF
23875 rm -f conftest.$ac_objext
23876 if { (ac_try="$ac_compile"
23877 case "(($ac_try" in
23878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23879   *) ac_try_echo=$ac_try;;
23880 esac
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882   (eval "$ac_compile") 2>conftest.er1
23883   ac_status=$?
23884   grep -v '^ *+' conftest.er1 >conftest.err
23885   rm -f conftest.er1
23886   cat conftest.err >&5
23887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888   (exit $ac_status); } && {
23889          test -z "$ac_c_werror_flag" ||
23890          test ! -s conftest.err
23891        } && test -s conftest.$ac_objext; then
23892   ac_cv_c_const=yes
23893 else
23894   echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23896
23897         ac_cv_c_const=no
23898 fi
23899
23900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23901 fi
23902 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23903 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23904 if test $ac_cv_c_const = no; then
23905
23906 cat >>confdefs.h <<\_ACEOF
23907 #define const
23908 _ACEOF
23909
23910 fi
23911
23912
23913 { echo "$as_me:$LINENO: checking type of OS" >&5
23914 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23915 OS=`uname -s`
23916 { echo "$as_me:$LINENO: result: $OS" >&5
23917 echo "${ECHO_T}$OS" >&6; }
23918 if test "$OS" = "OS/2"; then
23919         LIBPREFIX=
23920 else
23921         LIBPREFIX=lib
23922 fi
23923
23924
23925 if test "x$GCC" = "xyes"; then
23926     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23927 fi
23928
23929 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23930 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23931 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23932   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23933   CFLAGS="$CFLAGS $devflags"
23934   INSTALLSTRIP=""
23935   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23936 echo "${ECHO_T}yes.  Using $devflags" >&6; }
23937 else
23938   devflags=""
23939   CFLAGS="$CFLAGS -DNDEBUG"
23940   INSTALLSTRIP=""
23941   { echo "$as_me:$LINENO: result: no." >&5
23942 echo "${ECHO_T}no." >&6; }
23943 fi
23944
23945
23946 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23947 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23948 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23949   echo $ECHO_N "(cached) $ECHO_C" >&6
23950 else
23951   ac_check_lib_save_LIBS=$LIBS
23952 LIBS="-lcrypt  $LIBS"
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959
23960 /* Override any GCC internal prototype to avoid an error.
23961    Use char because int might match the return type of a GCC
23962    builtin and then its argument prototype would still apply.  */
23963 #ifdef __cplusplus
23964 extern "C"
23965 #endif
23966 char crypt ();
23967 int
23968 main ()
23969 {
23970 return crypt ();
23971   ;
23972   return 0;
23973 }
23974 _ACEOF
23975 rm -f conftest.$ac_objext conftest$ac_exeext
23976 if { (ac_try="$ac_link"
23977 case "(($ac_try" in
23978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979   *) ac_try_echo=$ac_try;;
23980 esac
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982   (eval "$ac_link") 2>conftest.er1
23983   ac_status=$?
23984   grep -v '^ *+' conftest.er1 >conftest.err
23985   rm -f conftest.er1
23986   cat conftest.err >&5
23987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988   (exit $ac_status); } && {
23989          test -z "$ac_c_werror_flag" ||
23990          test ! -s conftest.err
23991        } && test -s conftest$ac_exeext &&
23992        $as_test_x conftest$ac_exeext; then
23993   ac_cv_lib_crypt_crypt=yes
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998         ac_cv_lib_crypt_crypt=no
23999 fi
24000
24001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24002       conftest$ac_exeext conftest.$ac_ext
24003 LIBS=$ac_check_lib_save_LIBS
24004 fi
24005 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24006 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24007 if test $ac_cv_lib_crypt_crypt = yes; then
24008   CRYPTLIB="-lcrypt"
24009
24010 fi
24011
24012 if test "$CRYPTLIB" != ""; then
24013
24014 cat >>confdefs.h <<\_ACEOF
24015 #define HAVE_CRYPT
24016 _ACEOF
24017
24018 else
24019   { echo "$as_me:$LINENO: checking for crypt" >&5
24020 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24021 if test "${ac_cv_func_crypt+set}" = set; then
24022   echo $ECHO_N "(cached) $ECHO_C" >&6
24023 else
24024   cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h.  */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h.  */
24030 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24032 #define crypt innocuous_crypt
24033
24034 /* System header to define __stub macros and hopefully few prototypes,
24035     which can conflict with char crypt (); below.
24036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24037     <limits.h> exists even on freestanding compilers.  */
24038
24039 #ifdef __STDC__
24040 # include <limits.h>
24041 #else
24042 # include <assert.h>
24043 #endif
24044
24045 #undef crypt
24046
24047 /* Override any GCC internal prototype to avoid an error.
24048    Use char because int might match the return type of a GCC
24049    builtin and then its argument prototype would still apply.  */
24050 #ifdef __cplusplus
24051 extern "C"
24052 #endif
24053 char crypt ();
24054 /* The GNU C library defines this for functions which it implements
24055     to always fail with ENOSYS.  Some functions are actually named
24056     something starting with __ and the normal name is an alias.  */
24057 #if defined __stub_crypt || defined __stub___crypt
24058 choke me
24059 #endif
24060
24061 int
24062 main ()
24063 {
24064 return crypt ();
24065   ;
24066   return 0;
24067 }
24068 _ACEOF
24069 rm -f conftest.$ac_objext conftest$ac_exeext
24070 if { (ac_try="$ac_link"
24071 case "(($ac_try" in
24072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073   *) ac_try_echo=$ac_try;;
24074 esac
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076   (eval "$ac_link") 2>conftest.er1
24077   ac_status=$?
24078   grep -v '^ *+' conftest.er1 >conftest.err
24079   rm -f conftest.er1
24080   cat conftest.err >&5
24081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); } && {
24083          test -z "$ac_c_werror_flag" ||
24084          test ! -s conftest.err
24085        } && test -s conftest$ac_exeext &&
24086        $as_test_x conftest$ac_exeext; then
24087   ac_cv_func_crypt=yes
24088 else
24089   echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24091
24092         ac_cv_func_crypt=no
24093 fi
24094
24095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24096       conftest$ac_exeext conftest.$ac_ext
24097 fi
24098 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24099 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24100 if test $ac_cv_func_crypt = yes; then
24101
24102 cat >>confdefs.h <<\_ACEOF
24103 #define HAVE_CRYPT
24104 _ACEOF
24105
24106 fi
24107
24108 fi
24109
24110 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24111 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24112 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24113   echo $ECHO_N "(cached) $ECHO_C" >&6
24114 else
24115   ac_check_lib_save_LIBS=$LIBS
24116 LIBS="-lcipher  $LIBS"
24117 cat >conftest.$ac_ext <<_ACEOF
24118 /* confdefs.h.  */
24119 _ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h.  */
24123
24124 /* Override any GCC internal prototype to avoid an error.
24125    Use char because int might match the return type of a GCC
24126    builtin and then its argument prototype would still apply.  */
24127 #ifdef __cplusplus
24128 extern "C"
24129 #endif
24130 char setkey ();
24131 int
24132 main ()
24133 {
24134 return setkey ();
24135   ;
24136   return 0;
24137 }
24138 _ACEOF
24139 rm -f conftest.$ac_objext conftest$ac_exeext
24140 if { (ac_try="$ac_link"
24141 case "(($ac_try" in
24142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24143   *) ac_try_echo=$ac_try;;
24144 esac
24145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24146   (eval "$ac_link") 2>conftest.er1
24147   ac_status=$?
24148   grep -v '^ *+' conftest.er1 >conftest.err
24149   rm -f conftest.er1
24150   cat conftest.err >&5
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); } && {
24153          test -z "$ac_c_werror_flag" ||
24154          test ! -s conftest.err
24155        } && test -s conftest$ac_exeext &&
24156        $as_test_x conftest$ac_exeext; then
24157   ac_cv_lib_cipher_setkey=yes
24158 else
24159   echo "$as_me: failed program was:" >&5
24160 sed 's/^/| /' conftest.$ac_ext >&5
24161
24162         ac_cv_lib_cipher_setkey=no
24163 fi
24164
24165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24166       conftest$ac_exeext conftest.$ac_ext
24167 LIBS=$ac_check_lib_save_LIBS
24168 fi
24169 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24170 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24171 if test $ac_cv_lib_cipher_setkey = yes; then
24172   CRYPTLIB="${CRYPTLIB} -lcipher"
24173
24174 fi
24175
24176
24177
24178 if test "x$WITH_SNMP" = "xyes"; then
24179
24180
24181
24182
24183 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24184 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24185
24186 cat >conftest.$ac_ext <<_ACEOF
24187 /* confdefs.h.  */
24188 _ACEOF
24189 cat confdefs.h >>conftest.$ac_ext
24190 cat >>conftest.$ac_ext <<_ACEOF
24191 /* end confdefs.h.  */
24192
24193 #ifdef HAVE_SYS_TYPES_H
24194 #include <sys/types.h>
24195 #endif
24196 #ifdef HAVE_STDINT_H
24197 #include <stdint.h>
24198 #endif
24199 #ifdef HAVE_STDIO_H
24200 #include <stdio.h>
24201 #endif
24202 #ifdef HAVE_NETDB_H
24203 #include <netdb.h>
24204 #endif
24205 #ifdef HAVE_UNISTD_H
24206 #include <unistd.h>
24207 #endif
24208 #include <ucd-snmp/ucd-snmp-config.h>
24209 #include <ucd-snmp/asn1.h>
24210 #include <ucd-snmp/snmp.h>
24211 #include <ucd-snmp/snmp_impl.h>
24212 int
24213 main ()
24214 {
24215  int a = 1;
24216   ;
24217   return 0;
24218 }
24219 _ACEOF
24220 rm -f conftest.$ac_objext
24221 if { (ac_try="$ac_compile"
24222 case "(($ac_try" in
24223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24224   *) ac_try_echo=$ac_try;;
24225 esac
24226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24227   (eval "$ac_compile") 2>conftest.er1
24228   ac_status=$?
24229   grep -v '^ *+' conftest.er1 >conftest.err
24230   rm -f conftest.er1
24231   cat conftest.err >&5
24232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233   (exit $ac_status); } && {
24234          test -z "$ac_c_werror_flag" ||
24235          test ! -s conftest.err
24236        } && test -s conftest.$ac_objext; then
24237   SNMP_INCLUDE="";ucdsnmp=yes
24238 else
24239   echo "$as_me: failed program was:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24241
24242         ucdsnmp=
24243 fi
24244
24245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246
24247 if test "x$ucdsnmp" = "x"; then
24248   old_CFLAGS="$CFLAGS"
24249   for try in /usr/include /usr/local/include $snmp_include_dir; do
24250     CFLAGS="$old_CFLAGS -I$try"
24251     cat >conftest.$ac_ext <<_ACEOF
24252 /* confdefs.h.  */
24253 _ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h.  */
24257
24258 #ifdef HAVE_SYS_TYPES_H
24259 #include <sys/types.h>
24260 #endif
24261 #ifdef HAVE_STDINT_H
24262 #include <stdint.h>
24263 #endif
24264 #ifdef HAVE_STDIO_H
24265 #include <stdio.h>
24266 #endif
24267 #ifdef HAVE_NETDB_H
24268 #include <netdb.h>
24269 #endif
24270 #ifdef HAVE_UNISTD_H
24271 #include <unistd.h>
24272 #endif
24273 #include <ucd-snmp/ucd-snmp-config.h>
24274 #include <ucd-snmp/asn1.h>
24275 #include <ucd-snmp/snmp.h>
24276 #include <ucd-snmp/snmp_impl.h>
24277 int
24278 main ()
24279 {
24280  int a = 1;
24281   ;
24282   return 0;
24283 }
24284 _ACEOF
24285 rm -f conftest.$ac_objext
24286 if { (ac_try="$ac_compile"
24287 case "(($ac_try" in
24288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289   *) ac_try_echo=$ac_try;;
24290 esac
24291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292   (eval "$ac_compile") 2>conftest.er1
24293   ac_status=$?
24294   grep -v '^ *+' conftest.er1 >conftest.err
24295   rm -f conftest.er1
24296   cat conftest.err >&5
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); } && {
24299          test -z "$ac_c_werror_flag" ||
24300          test ! -s conftest.err
24301        } && test -s conftest.$ac_objext; then
24302   SNMP_INCLUDE="-I$try";ucdsnmp=yes
24303 else
24304   echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24306
24307         ucdsnmp=
24308 fi
24309
24310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311     if test "x$ucdsnmp" != "x"; then
24312       break;
24313     fi
24314   done
24315   CFLAGS="$old_CFLAGS"
24316 fi
24317
24318 if test "x$ucdsnmp" = "x"; then
24319   old_CFLAGS="$CFLAGS"
24320   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24321     CFLAGS="$old_CFLAGS -I$try"
24322 cat >conftest.$ac_ext <<_ACEOF
24323 /* confdefs.h.  */
24324 _ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h.  */
24328
24329 #ifdef HAVE_SYS_TYPES_H
24330 #include <sys/types.h>
24331 #endif
24332 #ifdef HAVE_STDINT_H
24333 #include <stdint.h>
24334 #endif
24335 #ifdef HAVE_STDIO_H
24336 #include <stdio.h>
24337 #endif
24338 #ifdef HAVE_NETDB_H
24339 #include <netdb.h>
24340 #endif
24341 #ifdef HAVE_UNISTD_H
24342 #include <unistd.h>
24343 #endif
24344 #include <asn1.h>
24345 #include <snmp.h>
24346 #include <snmp_impl.h>
24347 int
24348 main ()
24349 {
24350  int a = 1;
24351   ;
24352   return 0;
24353 }
24354 _ACEOF
24355 rm -f conftest.$ac_objext
24356 if { (ac_try="$ac_compile"
24357 case "(($ac_try" in
24358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359   *) ac_try_echo=$ac_try;;
24360 esac
24361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24362   (eval "$ac_compile") 2>conftest.er1
24363   ac_status=$?
24364   grep -v '^ *+' conftest.er1 >conftest.err
24365   rm -f conftest.er1
24366   cat conftest.err >&5
24367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); } && {
24369          test -z "$ac_c_werror_flag" ||
24370          test ! -s conftest.err
24371        } && test -s conftest.$ac_objext; then
24372   SNMP_INCLUDE="";ucdsnmp=no
24373 else
24374   echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24376
24377         ucdsnmp=
24378 fi
24379
24380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24381     if test "x$ucdsnmp" != "x"; then
24382       break;
24383     fi
24384   done
24385   CFLAGS="$old_CFLAGS"
24386 fi
24387
24388 if test "x$ucdsnmp" = "x"; then
24389   old_CFLAGS="$CFLAGS"
24390   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24391     CFLAGS="$old_CFLAGS -I$try"
24392     cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h.  */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h.  */
24398
24399 #ifdef HAVE_SYS_TYPES_H
24400 #include <sys/types.h>
24401 #endif
24402 #ifdef HAVE_STDINT_H
24403 #include <stdint.h>
24404 #endif
24405 #ifdef HAVE_STDIO_H
24406 #include <stdio.h>
24407 #endif
24408 #ifdef HAVE_NETDB_H
24409 #include <netdb.h>
24410 #endif
24411 #ifdef HAVE_UNISTD_H
24412 #include <unistd.h>
24413 #endif
24414 #include <asn1.h>
24415 #include <snmp.h>
24416 #include <snmp_impl.h>
24417 int
24418 main ()
24419 {
24420  int a = 1;
24421   ;
24422   return 0;
24423 }
24424 _ACEOF
24425 rm -f conftest.$ac_objext
24426 if { (ac_try="$ac_compile"
24427 case "(($ac_try" in
24428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429   *) ac_try_echo=$ac_try;;
24430 esac
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432   (eval "$ac_compile") 2>conftest.er1
24433   ac_status=$?
24434   grep -v '^ *+' conftest.er1 >conftest.err
24435   rm -f conftest.er1
24436   cat conftest.err >&5
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); } && {
24439          test -z "$ac_c_werror_flag" ||
24440          test ! -s conftest.err
24441        } && test -s conftest.$ac_objext; then
24442   SNMP_INCLUDE="-I$try";ucdsnmp=no
24443 else
24444   echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24446
24447         ucdsnmp=
24448 fi
24449
24450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24451     if test "x$ucdsnmp" != "x"; then
24452       break;
24453     fi
24454   done
24455   CFLAGS="$old_CFLAGS"
24456 fi
24457
24458 if test "x$ucdsnmp" = "x"; then
24459   { echo "$as_me:$LINENO: result: no" >&5
24460 echo "${ECHO_T}no" >&6; }
24461 else
24462   if test "x$ucdsnmp" = "xyes"; then
24463     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24464 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24465
24466 cat >>confdefs.h <<\_ACEOF
24467 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24468 _ACEOF
24469
24470   else
24471     { echo "$as_me:$LINENO: result: yes" >&5
24472 echo "${ECHO_T}yes" >&6; }
24473
24474 cat >>confdefs.h <<\_ACEOF
24475 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24476 _ACEOF
24477
24478   fi
24479   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24480 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24481
24482   old_LIBS="$LIBS"
24483   LIBS="$old_LIBS -lsnmp"
24484   cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h.  */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h.  */
24490 extern char snmp_build_var_op();
24491 int
24492 main ()
24493 {
24494  snmp_build_var_op()
24495   ;
24496   return 0;
24497 }
24498 _ACEOF
24499 rm -f conftest.$ac_objext conftest$ac_exeext
24500 if { (ac_try="$ac_link"
24501 case "(($ac_try" in
24502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503   *) ac_try_echo=$ac_try;;
24504 esac
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506   (eval "$ac_link") 2>conftest.er1
24507   ac_status=$?
24508   grep -v '^ *+' conftest.er1 >conftest.err
24509   rm -f conftest.er1
24510   cat conftest.err >&5
24511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512   (exit $ac_status); } && {
24513          test -z "$ac_c_werror_flag" ||
24514          test ! -s conftest.err
24515        } && test -s conftest$ac_exeext &&
24516        $as_test_x conftest$ac_exeext; then
24517   SNMP_LIBS="-lsnmp"
24518 else
24519   echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24521
24522         SNMP_LIBS=
24523 fi
24524
24525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24526       conftest$ac_exeext conftest.$ac_ext
24527
24528   if test "x$SNMP_LIBS" = "x"; then
24529     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24530       LIBS="$old_LIBS -L$try -lsnmp"
24531       cat >conftest.$ac_ext <<_ACEOF
24532 /* confdefs.h.  */
24533 _ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h.  */
24537 extern char snmp_build_var_op();
24538 int
24539 main ()
24540 {
24541  snmp_build_var_op()
24542   ;
24543   return 0;
24544 }
24545 _ACEOF
24546 rm -f conftest.$ac_objext conftest$ac_exeext
24547 if { (ac_try="$ac_link"
24548 case "(($ac_try" in
24549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550   *) ac_try_echo=$ac_try;;
24551 esac
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553   (eval "$ac_link") 2>conftest.er1
24554   ac_status=$?
24555   grep -v '^ *+' conftest.er1 >conftest.err
24556   rm -f conftest.er1
24557   cat conftest.err >&5
24558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); } && {
24560          test -z "$ac_c_werror_flag" ||
24561          test ! -s conftest.err
24562        } && test -s conftest$ac_exeext &&
24563        $as_test_x conftest$ac_exeext; then
24564   SNMP_LIBS="-L$try -lsnmp"
24565 else
24566   echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568
24569         SNMP_LIBS=
24570 fi
24571
24572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24573       conftest$ac_exeext conftest.$ac_ext
24574       if test "x$SNMP_LIBS" != "x"; then
24575         break;
24576       fi
24577       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24578       cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h.  */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h.  */
24584 extern char snmp_build_var_op();
24585 int
24586 main ()
24587 {
24588  snmp_build_var_op()
24589   ;
24590   return 0;
24591 }
24592 _ACEOF
24593 rm -f conftest.$ac_objext conftest$ac_exeext
24594 if { (ac_try="$ac_link"
24595 case "(($ac_try" in
24596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597   *) ac_try_echo=$ac_try;;
24598 esac
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600   (eval "$ac_link") 2>conftest.er1
24601   ac_status=$?
24602   grep -v '^ *+' conftest.er1 >conftest.err
24603   rm -f conftest.er1
24604   cat conftest.err >&5
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } && {
24607          test -z "$ac_c_werror_flag" ||
24608          test ! -s conftest.err
24609        } && test -s conftest$ac_exeext &&
24610        $as_test_x conftest$ac_exeext; then
24611   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24612 else
24613   echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24615
24616         SNMP_LIBS=
24617 fi
24618
24619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24620       conftest$ac_exeext conftest.$ac_ext
24621       if test "x$SNMP_LIBS" != "x"; then
24622         break;
24623       fi
24624       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24625       cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h.  */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h.  */
24631 extern char snmp_build_var_op();
24632 int
24633 main ()
24634 {
24635  snmp_build_var_op()
24636   ;
24637   return 0;
24638 }
24639 _ACEOF
24640 rm -f conftest.$ac_objext conftest$ac_exeext
24641 if { (ac_try="$ac_link"
24642 case "(($ac_try" in
24643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644   *) ac_try_echo=$ac_try;;
24645 esac
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647   (eval "$ac_link") 2>conftest.er1
24648   ac_status=$?
24649   grep -v '^ *+' conftest.er1 >conftest.err
24650   rm -f conftest.er1
24651   cat conftest.err >&5
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); } && {
24654          test -z "$ac_c_werror_flag" ||
24655          test ! -s conftest.err
24656        } && test -s conftest$ac_exeext &&
24657        $as_test_x conftest$ac_exeext; then
24658   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24659 else
24660   echo "$as_me: failed program was:" >&5
24661 sed 's/^/| /' conftest.$ac_ext >&5
24662
24663         SNMP_LIBS=
24664 fi
24665
24666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24667       conftest$ac_exeext conftest.$ac_ext
24668       if test "x$SNMP_LIBS" != "x"; then
24669         break;
24670       fi
24671     done
24672   fi
24673   LIBS="$old_LIBS"
24674
24675           CFLAGS="$old_CFLAGS"
24676   if test "x$SNMP_LIBS" = "x"; then
24677     { echo "$as_me:$LINENO: result: no" >&5
24678 echo "${ECHO_T}no" >&6; }
24679     SNMP_INCLUDE=
24680   else
24681     { echo "$as_me:$LINENO: result: yes" >&5
24682 echo "${ECHO_T}yes" >&6; }
24683
24684 cat >>confdefs.h <<\_ACEOF
24685 #define WITH_SNMP
24686 _ACEOF
24687
24688
24689 cat >>confdefs.h <<\_ACEOF
24690 #define HAVE_LIBSNMP
24691 _ACEOF
24692
24693   fi
24694 fi
24695
24696 fi
24697
24698
24699 cat >>confdefs.h <<\_ACEOF
24700 #define GNUSTYLE 1
24701 _ACEOF
24702
24703
24704 cat >>confdefs.h <<\_ACEOF
24705 #define SYSVSTYLE 2
24706 _ACEOF
24707
24708
24709 cat >>confdefs.h <<\_ACEOF
24710 #define BSDSTYLE 3
24711 _ACEOF
24712
24713 gethostbyaddrrstyle=""
24714 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24715 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24716 case "$host" in
24717 *-freebsd*)
24718         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24719 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24720 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24721   echo $ECHO_N "(cached) $ECHO_C" >&6
24722 else
24723   cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h.  */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h.  */
24729
24730 #ifdef HAVE_NETDB_H
24731 #include <netdb.h>
24732 #endif
24733
24734
24735 int
24736 main ()
24737 {
24738 #ifndef gethostbyaddr_r
24739   (void) gethostbyaddr_r;
24740 #endif
24741
24742   ;
24743   return 0;
24744 }
24745 _ACEOF
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
24748 case "(($ac_try" in
24749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750   *) ac_try_echo=$ac_try;;
24751 esac
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753   (eval "$ac_compile") 2>conftest.er1
24754   ac_status=$?
24755   grep -v '^ *+' conftest.er1 >conftest.err
24756   rm -f conftest.er1
24757   cat conftest.err >&5
24758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759   (exit $ac_status); } && {
24760          test -z "$ac_c_werror_flag" ||
24761          test ! -s conftest.err
24762        } && test -s conftest.$ac_objext; then
24763   ac_cv_have_decl_gethostbyaddr_r=yes
24764 else
24765   echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24767
24768         ac_cv_have_decl_gethostbyaddr_r=no
24769 fi
24770
24771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24772 fi
24773 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24774 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24775 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24776
24777 cat >>confdefs.h <<_ACEOF
24778 #define HAVE_DECL_GETHOSTBYADDR_R 1
24779 _ACEOF
24780
24781
24782 else
24783   cat >>confdefs.h <<_ACEOF
24784 #define HAVE_DECL_GETHOSTBYADDR_R 0
24785 _ACEOF
24786
24787
24788
24789 cat >>confdefs.h <<\_ACEOF
24790 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24791 _ACEOF
24792
24793                 gethostbyaddrrstyle=BSD
24794                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24795 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24796
24797 fi
24798
24799
24800         ;;
24801 esac
24802 if test "x$gethostbyaddrrstyle" = "x"; then
24803         cat >conftest.$ac_ext <<_ACEOF
24804 /* confdefs.h.  */
24805 _ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h.  */
24809
24810 #include <stdio.h>
24811 #include <netdb.h>
24812
24813 int
24814 main ()
24815 {
24816  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24817   ;
24818   return 0;
24819 }
24820 _ACEOF
24821 rm -f conftest.$ac_objext conftest$ac_exeext
24822 if { (ac_try="$ac_link"
24823 case "(($ac_try" in
24824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825   *) ac_try_echo=$ac_try;;
24826 esac
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828   (eval "$ac_link") 2>conftest.er1
24829   ac_status=$?
24830   grep -v '^ *+' conftest.er1 >conftest.err
24831   rm -f conftest.er1
24832   cat conftest.err >&5
24833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834   (exit $ac_status); } && {
24835          test -z "$ac_c_werror_flag" ||
24836          test ! -s conftest.err
24837        } && test -s conftest$ac_exeext &&
24838        $as_test_x conftest$ac_exeext; then
24839
24840
24841 cat >>confdefs.h <<\_ACEOF
24842 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24843 _ACEOF
24844
24845         gethostbyaddrrstyle=GNU
24846
24847 else
24848   echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24850
24851
24852 fi
24853
24854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24855       conftest$ac_exeext conftest.$ac_ext
24856 fi
24857 if test "x$gethostbyaddrrstyle" = "x"; then
24858         cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864
24865 #include <stdio.h>
24866 #include <netdb.h>
24867
24868 int
24869 main ()
24870 {
24871  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24872   ;
24873   return 0;
24874 }
24875 _ACEOF
24876 rm -f conftest.$ac_objext conftest$ac_exeext
24877 if { (ac_try="$ac_link"
24878 case "(($ac_try" in
24879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880   *) ac_try_echo=$ac_try;;
24881 esac
24882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883   (eval "$ac_link") 2>conftest.er1
24884   ac_status=$?
24885   grep -v '^ *+' conftest.er1 >conftest.err
24886   rm -f conftest.er1
24887   cat conftest.err >&5
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); } && {
24890          test -z "$ac_c_werror_flag" ||
24891          test ! -s conftest.err
24892        } && test -s conftest$ac_exeext &&
24893        $as_test_x conftest$ac_exeext; then
24894
24895
24896 cat >>confdefs.h <<\_ACEOF
24897 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24898 _ACEOF
24899
24900                 gethostbyaddrrstyle=SYSV
24901
24902 else
24903   echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24905
24906
24907 fi
24908
24909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24910       conftest$ac_exeext conftest.$ac_ext
24911 fi
24912 if test "x$gethostbyaddrrstyle" = "x"; then
24913         cat >conftest.$ac_ext <<_ACEOF
24914 /* confdefs.h.  */
24915 _ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h.  */
24919
24920 #include <stdio.h>
24921 #include <netdb.h>
24922
24923 int
24924 main ()
24925 {
24926  gethostbyaddr(NULL, 0, 0)
24927   ;
24928   return 0;
24929 }
24930 _ACEOF
24931 rm -f conftest.$ac_objext conftest$ac_exeext
24932 if { (ac_try="$ac_link"
24933 case "(($ac_try" in
24934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935   *) ac_try_echo=$ac_try;;
24936 esac
24937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938   (eval "$ac_link") 2>conftest.er1
24939   ac_status=$?
24940   grep -v '^ *+' conftest.er1 >conftest.err
24941   rm -f conftest.er1
24942   cat conftest.err >&5
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); } && {
24945          test -z "$ac_c_werror_flag" ||
24946          test ! -s conftest.err
24947        } && test -s conftest$ac_exeext &&
24948        $as_test_x conftest$ac_exeext; then
24949
24950
24951 cat >>confdefs.h <<\_ACEOF
24952 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24953 _ACEOF
24954
24955                 gethostbyaddrrstyle=BSD
24956
24957 else
24958   echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24960
24961
24962 fi
24963
24964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24965       conftest$ac_exeext conftest.$ac_ext
24966 fi
24967
24968 if test "x$gethostbyaddrrstyle" = "x"; then
24969         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24970 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24971 else
24972         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24973 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24974 fi
24975
24976 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24977         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24978 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24979 fi
24980
24981 gethostbynamerstyle=""
24982 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24983 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24984 cat >conftest.$ac_ext <<_ACEOF
24985 /* confdefs.h.  */
24986 _ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h.  */
24990
24991 #include <stdio.h>
24992 #include <netdb.h>
24993
24994 int
24995 main ()
24996 {
24997  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24998   ;
24999   return 0;
25000 }
25001 _ACEOF
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (ac_try="$ac_link"
25004 case "(($ac_try" in
25005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006   *) ac_try_echo=$ac_try;;
25007 esac
25008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009   (eval "$ac_link") 2>conftest.er1
25010   ac_status=$?
25011   grep -v '^ *+' conftest.er1 >conftest.err
25012   rm -f conftest.er1
25013   cat conftest.err >&5
25014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015   (exit $ac_status); } && {
25016          test -z "$ac_c_werror_flag" ||
25017          test ! -s conftest.err
25018        } && test -s conftest$ac_exeext &&
25019        $as_test_x conftest$ac_exeext; then
25020
25021
25022 cat >>confdefs.h <<\_ACEOF
25023 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25024 _ACEOF
25025
25026         gethostbynamerstyle=GNU
25027
25028 else
25029   echo "$as_me: failed program was:" >&5
25030 sed 's/^/| /' conftest.$ac_ext >&5
25031
25032
25033 fi
25034
25035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25036       conftest$ac_exeext conftest.$ac_ext
25037 if test "x$gethostbynamerstyle" = "x"; then
25038         cat >conftest.$ac_ext <<_ACEOF
25039 /* confdefs.h.  */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h.  */
25044
25045 #include <stdio.h>
25046 #include <netdb.h>
25047
25048 int
25049 main ()
25050 {
25051  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25052   ;
25053   return 0;
25054 }
25055 _ACEOF
25056 rm -f conftest.$ac_objext conftest$ac_exeext
25057 if { (ac_try="$ac_link"
25058 case "(($ac_try" in
25059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060   *) ac_try_echo=$ac_try;;
25061 esac
25062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25063   (eval "$ac_link") 2>conftest.er1
25064   ac_status=$?
25065   grep -v '^ *+' conftest.er1 >conftest.err
25066   rm -f conftest.er1
25067   cat conftest.err >&5
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); } && {
25070          test -z "$ac_c_werror_flag" ||
25071          test ! -s conftest.err
25072        } && test -s conftest$ac_exeext &&
25073        $as_test_x conftest$ac_exeext; then
25074
25075
25076 cat >>confdefs.h <<\_ACEOF
25077 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25078 _ACEOF
25079
25080                 gethostbynamerstyle=SYSV
25081
25082 else
25083   echo "$as_me: failed program was:" >&5
25084 sed 's/^/| /' conftest.$ac_ext >&5
25085
25086
25087 fi
25088
25089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25090       conftest$ac_exeext conftest.$ac_ext
25091 fi
25092 if test "x$gethostbynamerstyle" = "x"; then
25093         cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h.  */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h.  */
25099
25100 #include <stdio.h>
25101 #include <netdb.h>
25102
25103 int
25104 main ()
25105 {
25106  gethostbyname(NULL)
25107   ;
25108   return 0;
25109 }
25110 _ACEOF
25111 rm -f conftest.$ac_objext conftest$ac_exeext
25112 if { (ac_try="$ac_link"
25113 case "(($ac_try" in
25114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115   *) ac_try_echo=$ac_try;;
25116 esac
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118   (eval "$ac_link") 2>conftest.er1
25119   ac_status=$?
25120   grep -v '^ *+' conftest.er1 >conftest.err
25121   rm -f conftest.er1
25122   cat conftest.err >&5
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); } && {
25125          test -z "$ac_c_werror_flag" ||
25126          test ! -s conftest.err
25127        } && test -s conftest$ac_exeext &&
25128        $as_test_x conftest$ac_exeext; then
25129
25130
25131 cat >>confdefs.h <<\_ACEOF
25132 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25133 _ACEOF
25134
25135                 gethostbynamerstyle=BSD
25136
25137 else
25138   echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25140
25141
25142 fi
25143
25144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25145       conftest$ac_exeext conftest.$ac_ext
25146 fi
25147
25148 if test "x$gethostbynamerstyle" = "x"; then
25149         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25150 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25151 else
25152         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25153 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25154 fi
25155
25156 if test "x$gethostbynamerstyle" = "xBSD"; then
25157         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25158 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25159 fi
25160
25161
25162 cat >>confdefs.h <<\_ACEOF
25163 #define POSIXSTYLE 1
25164 _ACEOF
25165
25166
25167 cat >>confdefs.h <<\_ACEOF
25168 #define SOLARISSTYLE 2
25169 _ACEOF
25170
25171 ctimerstyle=""
25172 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25173 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25174 cat >conftest.$ac_ext <<_ACEOF
25175 /* confdefs.h.  */
25176 _ACEOF
25177 cat confdefs.h >>conftest.$ac_ext
25178 cat >>conftest.$ac_ext <<_ACEOF
25179 /* end confdefs.h.  */
25180
25181 #include <time.h>
25182
25183 int
25184 main ()
25185 {
25186  ctime_r(NULL, NULL, 0)
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (ac_try="$ac_link"
25193 case "(($ac_try" in
25194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195   *) ac_try_echo=$ac_try;;
25196 esac
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198   (eval "$ac_link") 2>conftest.er1
25199   ac_status=$?
25200   grep -v '^ *+' conftest.er1 >conftest.err
25201   rm -f conftest.er1
25202   cat conftest.err >&5
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); } && {
25205          test -z "$ac_c_werror_flag" ||
25206          test ! -s conftest.err
25207        } && test -s conftest$ac_exeext &&
25208        $as_test_x conftest$ac_exeext; then
25209
25210
25211 cat >>confdefs.h <<\_ACEOF
25212 #define CTIMERSTYLE SOLARISSTYLE
25213 _ACEOF
25214
25215         ctimerstyle="SOLARIS"
25216
25217 else
25218   echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25220
25221
25222 fi
25223
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25225       conftest$ac_exeext conftest.$ac_ext
25226 if test "x$ctimerstyle" = "x"; then
25227         cat >conftest.$ac_ext <<_ACEOF
25228 /* confdefs.h.  */
25229 _ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h.  */
25233
25234 #include <time.h>
25235
25236 int
25237 main ()
25238 {
25239  ctime_r(NULL, NULL)
25240   ;
25241   return 0;
25242 }
25243 _ACEOF
25244 rm -f conftest.$ac_objext conftest$ac_exeext
25245 if { (ac_try="$ac_link"
25246 case "(($ac_try" in
25247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25248   *) ac_try_echo=$ac_try;;
25249 esac
25250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25251   (eval "$ac_link") 2>conftest.er1
25252   ac_status=$?
25253   grep -v '^ *+' conftest.er1 >conftest.err
25254   rm -f conftest.er1
25255   cat conftest.err >&5
25256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); } && {
25258          test -z "$ac_c_werror_flag" ||
25259          test ! -s conftest.err
25260        } && test -s conftest$ac_exeext &&
25261        $as_test_x conftest$ac_exeext; then
25262
25263
25264 cat >>confdefs.h <<\_ACEOF
25265 #define CTIMERSTYLE POSIXSTYLE
25266 _ACEOF
25267
25268                 ctimerstyle="POSIX"
25269
25270 else
25271   echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25273
25274
25275 fi
25276
25277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25278       conftest$ac_exeext conftest.$ac_ext
25279 fi
25280
25281 if test "x$ctimerstyle" = "x"; then
25282         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25283 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25284 else
25285         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25286 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25287 fi
25288
25289 HOSTINFO=$host
25290
25291
25292
25293 top_builddir=`pwd`
25294 export top_builddir
25295 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25296 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25297
25298
25299
25300
25301
25302 mysubdirs="$LIBLTDLPATH"
25303 if test "x$EXPERIMENTAL" = "xyes"; then
25304   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25305     mysubdirs=`echo $mysubdirs $bar`
25306 else
25307         for bar in `cat "${srcdir}"/src/modules/stable`; do
25308     if test -f "${srcdir}"/src/modules/$bar/configure; then
25309       mysubdirs="$mysubdirs src/modules/$bar"
25310     fi
25311   done
25312 fi
25313
25314 if test "x$EXPERIMENTAL" = "xyes"; then
25315   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25316     MODULES="$MODULES $foo"
25317   done
25318 else
25319             for foo in `cat "${srcdir}"/src/modules/stable`; do
25320     MODULES="$MODULES $foo"
25321    done
25322 fi
25323
25324 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25325
25326
25327
25328
25329 ac_config_commands="$ac_config_commands stamp-h"
25330
25331 ac_config_commands="$ac_config_commands build-radpaths-h"
25332
25333 ac_config_commands="$ac_config_commands main-chmod"
25334
25335 ac_config_commands="$ac_config_commands scripts-chmod"
25336
25337
25338
25339
25340
25341 USE_SHARED_LIBS=$enable_shared
25342
25343 USE_STATIC_LIBS=$enable_static
25344
25345
25346
25347
25348
25349
25350
25351   unset ac_cv_env_LIBS_set
25352   unset ac_cv_env_LIBS_value
25353
25354   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
25355
25356 cat >confcache <<\_ACEOF
25357 # This file is a shell script that caches the results of configure
25358 # tests run on this system so they can be shared between configure
25359 # scripts and configure runs, see configure's option --config-cache.
25360 # It is not useful on other systems.  If it contains results you don't
25361 # want to keep, you may remove or edit it.
25362 #
25363 # config.status only pays attention to the cache file if you give it
25364 # the --recheck option to rerun configure.
25365 #
25366 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25367 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25368 # following values.
25369
25370 _ACEOF
25371
25372 # The following way of writing the cache mishandles newlines in values,
25373 # but we know of no workaround that is simple, portable, and efficient.
25374 # So, we kill variables containing newlines.
25375 # Ultrix sh set writes to stderr and can't be redirected directly,
25376 # and sets the high bit in the cache file unless we assign to the vars.
25377 (
25378   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25379     eval ac_val=\$$ac_var
25380     case $ac_val in #(
25381     *${as_nl}*)
25382       case $ac_var in #(
25383       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25384 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25385       esac
25386       case $ac_var in #(
25387       _ | IFS | as_nl) ;; #(
25388       *) $as_unset $ac_var ;;
25389       esac ;;
25390     esac
25391   done
25392
25393   (set) 2>&1 |
25394     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25395     *${as_nl}ac_space=\ *)
25396       # `set' does not quote correctly, so add quotes (double-quote
25397       # substitution turns \\\\ into \\, and sed turns \\ into \).
25398       sed -n \
25399         "s/'/'\\\\''/g;
25400           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25401       ;; #(
25402     *)
25403       # `set' quotes correctly as required by POSIX, so do not add quotes.
25404       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25405       ;;
25406     esac |
25407     sort
25408 ) |
25409   sed '
25410      /^ac_cv_env_/b end
25411      t clear
25412      :clear
25413      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25414      t end
25415      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25416      :end' >>confcache
25417 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25418   if test -w "$cache_file"; then
25419     test "x$cache_file" != "x/dev/null" &&
25420       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25421 echo "$as_me: updating cache $cache_file" >&6;}
25422     cat confcache >$cache_file
25423   else
25424     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25425 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25426   fi
25427 fi
25428 rm -f confcache
25429
25430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25431 # Let make expand exec_prefix.
25432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25433
25434 DEFS=-DHAVE_CONFIG_H
25435
25436 ac_libobjs=
25437 ac_ltlibobjs=
25438 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25439   # 1. Remove the extension, and $U if already installed.
25440   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25441   ac_i=`echo "$ac_i" | sed "$ac_script"`
25442   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25443   #    will be set to the directory where LIBOBJS objects are built.
25444   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25445   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25446 done
25447 LIBOBJS=$ac_libobjs
25448
25449 LTLIBOBJS=$ac_ltlibobjs
25450
25451
25452
25453 : ${CONFIG_STATUS=./config.status}
25454 ac_clean_files_save=$ac_clean_files
25455 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25456 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25457 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25458 cat >$CONFIG_STATUS <<_ACEOF
25459 #! $SHELL
25460 # Generated by $as_me.
25461 # Run this file to recreate the current configuration.
25462 # Compiler output produced by configure, useful for debugging
25463 # configure, is in config.log if it exists.
25464
25465 debug=false
25466 ac_cs_recheck=false
25467 ac_cs_silent=false
25468 SHELL=\${CONFIG_SHELL-$SHELL}
25469 _ACEOF
25470
25471 cat >>$CONFIG_STATUS <<\_ACEOF
25472 ## --------------------- ##
25473 ## M4sh Initialization.  ##
25474 ## --------------------- ##
25475
25476 # Be more Bourne compatible
25477 DUALCASE=1; export DUALCASE # for MKS sh
25478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25479   emulate sh
25480   NULLCMD=:
25481   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25482   # is contrary to our usage.  Disable this feature.
25483   alias -g '${1+"$@"}'='"$@"'
25484   setopt NO_GLOB_SUBST
25485 else
25486   case `(set -o) 2>/dev/null` in
25487   *posix*) set -o posix ;;
25488 esac
25489
25490 fi
25491
25492
25493
25494
25495 # PATH needs CR
25496 # Avoid depending upon Character Ranges.
25497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25500 as_cr_digits='0123456789'
25501 as_cr_alnum=$as_cr_Letters$as_cr_digits
25502
25503 # The user is always right.
25504 if test "${PATH_SEPARATOR+set}" != set; then
25505   echo "#! /bin/sh" >conf$$.sh
25506   echo  "exit 0"   >>conf$$.sh
25507   chmod +x conf$$.sh
25508   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25509     PATH_SEPARATOR=';'
25510   else
25511     PATH_SEPARATOR=:
25512   fi
25513   rm -f conf$$.sh
25514 fi
25515
25516 # Support unset when possible.
25517 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25518   as_unset=unset
25519 else
25520   as_unset=false
25521 fi
25522
25523
25524 # IFS
25525 # We need space, tab and new line, in precisely that order.  Quoting is
25526 # there to prevent editors from complaining about space-tab.
25527 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25528 # splitting by setting IFS to empty value.)
25529 as_nl='
25530 '
25531 IFS=" ""        $as_nl"
25532
25533 # Find who we are.  Look in the path if we contain no directory separator.
25534 case $0 in
25535   *[\\/]* ) as_myself=$0 ;;
25536   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25537 for as_dir in $PATH
25538 do
25539   IFS=$as_save_IFS
25540   test -z "$as_dir" && as_dir=.
25541   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25542 done
25543 IFS=$as_save_IFS
25544
25545      ;;
25546 esac
25547 # We did not find ourselves, most probably we were run as `sh COMMAND'
25548 # in which case we are not to be found in the path.
25549 if test "x$as_myself" = x; then
25550   as_myself=$0
25551 fi
25552 if test ! -f "$as_myself"; then
25553   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25554   { (exit 1); exit 1; }
25555 fi
25556
25557 # Work around bugs in pre-3.0 UWIN ksh.
25558 for as_var in ENV MAIL MAILPATH
25559 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25560 done
25561 PS1='$ '
25562 PS2='> '
25563 PS4='+ '
25564
25565 # NLS nuisances.
25566 for as_var in \
25567   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25568   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25569   LC_TELEPHONE LC_TIME
25570 do
25571   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25572     eval $as_var=C; export $as_var
25573   else
25574     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25575   fi
25576 done
25577
25578 # Required to use basename.
25579 if expr a : '\(a\)' >/dev/null 2>&1 &&
25580    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25581   as_expr=expr
25582 else
25583   as_expr=false
25584 fi
25585
25586 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25587   as_basename=basename
25588 else
25589   as_basename=false
25590 fi
25591
25592
25593 # Name of the executable.
25594 as_me=`$as_basename -- "$0" ||
25595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25596          X"$0" : 'X\(//\)$' \| \
25597          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25598 echo X/"$0" |
25599     sed '/^.*\/\([^/][^/]*\)\/*$/{
25600             s//\1/
25601             q
25602           }
25603           /^X\/\(\/\/\)$/{
25604             s//\1/
25605             q
25606           }
25607           /^X\/\(\/\).*/{
25608             s//\1/
25609             q
25610           }
25611           s/.*/./; q'`
25612
25613 # CDPATH.
25614 $as_unset CDPATH
25615
25616
25617
25618   as_lineno_1=$LINENO
25619   as_lineno_2=$LINENO
25620   test "x$as_lineno_1" != "x$as_lineno_2" &&
25621   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25622
25623   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25624   # uniformly replaced by the line number.  The first 'sed' inserts a
25625   # line-number line after each line using $LINENO; the second 'sed'
25626   # does the real work.  The second script uses 'N' to pair each
25627   # line-number line with the line containing $LINENO, and appends
25628   # trailing '-' during substitution so that $LINENO is not a special
25629   # case at line end.
25630   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25631   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25632   # E. McMahon (1931-1989) for sed's syntax.  :-)
25633   sed -n '
25634     p
25635     /[$]LINENO/=
25636   ' <$as_myself |
25637     sed '
25638       s/[$]LINENO.*/&-/
25639       t lineno
25640       b
25641       :lineno
25642       N
25643       :loop
25644       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25645       t loop
25646       s/-\n.*//
25647     ' >$as_me.lineno &&
25648   chmod +x "$as_me.lineno" ||
25649     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25650    { (exit 1); exit 1; }; }
25651
25652   # Don't try to exec as it changes $[0], causing all sort of problems
25653   # (the dirname of $[0] is not the place where we might find the
25654   # original and so on.  Autoconf is especially sensitive to this).
25655   . "./$as_me.lineno"
25656   # Exit status is that of the last command.
25657   exit
25658 }
25659
25660
25661 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25662   as_dirname=dirname
25663 else
25664   as_dirname=false
25665 fi
25666
25667 ECHO_C= ECHO_N= ECHO_T=
25668 case `echo -n x` in
25669 -n*)
25670   case `echo 'x\c'` in
25671   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25672   *)   ECHO_C='\c';;
25673   esac;;
25674 *)
25675   ECHO_N='-n';;
25676 esac
25677
25678 if expr a : '\(a\)' >/dev/null 2>&1 &&
25679    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25680   as_expr=expr
25681 else
25682   as_expr=false
25683 fi
25684
25685 rm -f conf$$ conf$$.exe conf$$.file
25686 if test -d conf$$.dir; then
25687   rm -f conf$$.dir/conf$$.file
25688 else
25689   rm -f conf$$.dir
25690   mkdir conf$$.dir
25691 fi
25692 echo >conf$$.file
25693 if ln -s conf$$.file conf$$ 2>/dev/null; then
25694   as_ln_s='ln -s'
25695   # ... but there are two gotchas:
25696   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25697   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25698   # In both cases, we have to default to `cp -p'.
25699   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25700     as_ln_s='cp -p'
25701 elif ln conf$$.file conf$$ 2>/dev/null; then
25702   as_ln_s=ln
25703 else
25704   as_ln_s='cp -p'
25705 fi
25706 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25707 rmdir conf$$.dir 2>/dev/null
25708
25709 if mkdir -p . 2>/dev/null; then
25710   as_mkdir_p=:
25711 else
25712   test -d ./-p && rmdir ./-p
25713   as_mkdir_p=false
25714 fi
25715
25716 if test -x / >/dev/null 2>&1; then
25717   as_test_x='test -x'
25718 else
25719   if ls -dL / >/dev/null 2>&1; then
25720     as_ls_L_option=L
25721   else
25722     as_ls_L_option=
25723   fi
25724   as_test_x='
25725     eval sh -c '\''
25726       if test -d "$1"; then
25727         test -d "$1/.";
25728       else
25729         case $1 in
25730         -*)set "./$1";;
25731         esac;
25732         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25733         ???[sx]*):;;*)false;;esac;fi
25734     '\'' sh
25735   '
25736 fi
25737 as_executable_p=$as_test_x
25738
25739 # Sed expression to map a string onto a valid CPP name.
25740 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25741
25742 # Sed expression to map a string onto a valid variable name.
25743 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25744
25745
25746 exec 6>&1
25747
25748 # Save the log message, to keep $[0] and so on meaningful, and to
25749 # report actual input values of CONFIG_FILES etc. instead of their
25750 # values after options handling.
25751 ac_log="
25752 This file was extended by $as_me, which was
25753 generated by GNU Autoconf 2.61.  Invocation command line was
25754
25755   CONFIG_FILES    = $CONFIG_FILES
25756   CONFIG_HEADERS  = $CONFIG_HEADERS
25757   CONFIG_LINKS    = $CONFIG_LINKS
25758   CONFIG_COMMANDS = $CONFIG_COMMANDS
25759   $ $0 $@
25760
25761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25762 "
25763
25764 _ACEOF
25765
25766 cat >>$CONFIG_STATUS <<_ACEOF
25767 # Files that config.status was made for.
25768 config_files="$ac_config_files"
25769 config_headers="$ac_config_headers"
25770 config_commands="$ac_config_commands"
25771
25772 _ACEOF
25773
25774 cat >>$CONFIG_STATUS <<\_ACEOF
25775 ac_cs_usage="\
25776 \`$as_me' instantiates files from templates according to the
25777 current configuration.
25778
25779 Usage: $0 [OPTIONS] [FILE]...
25780
25781   -h, --help       print this help, then exit
25782   -V, --version    print version number and configuration settings, then exit
25783   -q, --quiet      do not print progress messages
25784   -d, --debug      don't remove temporary files
25785       --recheck    update $as_me by reconfiguring in the same conditions
25786   --file=FILE[:TEMPLATE]
25787                    instantiate the configuration file FILE
25788   --header=FILE[:TEMPLATE]
25789                    instantiate the configuration header FILE
25790
25791 Configuration files:
25792 $config_files
25793
25794 Configuration headers:
25795 $config_headers
25796
25797 Configuration commands:
25798 $config_commands
25799
25800 Report bugs to <bug-autoconf@gnu.org>."
25801
25802 _ACEOF
25803 cat >>$CONFIG_STATUS <<_ACEOF
25804 ac_cs_version="\\
25805 config.status
25806 configured by $0, generated by GNU Autoconf 2.61,
25807   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25808
25809 Copyright (C) 2006 Free Software Foundation, Inc.
25810 This config.status script is free software; the Free Software Foundation
25811 gives unlimited permission to copy, distribute and modify it."
25812
25813 ac_pwd='$ac_pwd'
25814 srcdir='$srcdir'
25815 _ACEOF
25816
25817 cat >>$CONFIG_STATUS <<\_ACEOF
25818 # If no file are specified by the user, then we need to provide default
25819 # value.  By we need to know if files were specified by the user.
25820 ac_need_defaults=:
25821 while test $# != 0
25822 do
25823   case $1 in
25824   --*=*)
25825     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25826     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25827     ac_shift=:
25828     ;;
25829   *)
25830     ac_option=$1
25831     ac_optarg=$2
25832     ac_shift=shift
25833     ;;
25834   esac
25835
25836   case $ac_option in
25837   # Handling of the options.
25838   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25839     ac_cs_recheck=: ;;
25840   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25841     echo "$ac_cs_version"; exit ;;
25842   --debug | --debu | --deb | --de | --d | -d )
25843     debug=: ;;
25844   --file | --fil | --fi | --f )
25845     $ac_shift
25846     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25847     ac_need_defaults=false;;
25848   --header | --heade | --head | --hea )
25849     $ac_shift
25850     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25851     ac_need_defaults=false;;
25852   --he | --h)
25853     # Conflict between --help and --header
25854     { echo "$as_me: error: ambiguous option: $1
25855 Try \`$0 --help' for more information." >&2
25856    { (exit 1); exit 1; }; };;
25857   --help | --hel | -h )
25858     echo "$ac_cs_usage"; exit ;;
25859   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25860   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25861     ac_cs_silent=: ;;
25862
25863   # This is an error.
25864   -*) { echo "$as_me: error: unrecognized option: $1
25865 Try \`$0 --help' for more information." >&2
25866    { (exit 1); exit 1; }; } ;;
25867
25868   *) ac_config_targets="$ac_config_targets $1"
25869      ac_need_defaults=false ;;
25870
25871   esac
25872   shift
25873 done
25874
25875 ac_configure_extra_args=
25876
25877 if $ac_cs_silent; then
25878   exec 6>/dev/null
25879   ac_configure_extra_args="$ac_configure_extra_args --silent"
25880 fi
25881
25882 _ACEOF
25883 cat >>$CONFIG_STATUS <<_ACEOF
25884 if \$ac_cs_recheck; then
25885   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25886   CONFIG_SHELL=$SHELL
25887   export CONFIG_SHELL
25888   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25889 fi
25890
25891 _ACEOF
25892 cat >>$CONFIG_STATUS <<\_ACEOF
25893 exec 5>>config.log
25894 {
25895   echo
25896   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25897 ## Running $as_me. ##
25898 _ASBOX
25899   echo "$ac_log"
25900 } >&5
25901
25902 _ACEOF
25903 cat >>$CONFIG_STATUS <<_ACEOF
25904 _ACEOF
25905
25906 cat >>$CONFIG_STATUS <<\_ACEOF
25907
25908 # Handling of arguments.
25909 for ac_config_target in $ac_config_targets
25910 do
25911   case $ac_config_target in
25912     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25913     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25914     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25915     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25916     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25917     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25918     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25919     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25920     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25921     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25922     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25923     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25924     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25925     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25926     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25927     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25928     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25929     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25930
25931   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25933    { (exit 1); exit 1; }; };;
25934   esac
25935 done
25936
25937
25938 # If the user did not use the arguments to specify the items to instantiate,
25939 # then the envvar interface is used.  Set only those that are not.
25940 # We use the long form for the default assignment because of an extremely
25941 # bizarre bug on SunOS 4.1.3.
25942 if $ac_need_defaults; then
25943   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25944   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25945   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25946 fi
25947
25948 # Have a temporary directory for convenience.  Make it in the build tree
25949 # simply because there is no reason against having it here, and in addition,
25950 # creating and moving files from /tmp can sometimes cause problems.
25951 # Hook for its removal unless debugging.
25952 # Note that there is a small window in which the directory will not be cleaned:
25953 # after its creation but before its name has been assigned to `$tmp'.
25954 $debug ||
25955 {
25956   tmp=
25957   trap 'exit_status=$?
25958   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25959 ' 0
25960   trap '{ (exit 1); exit 1; }' 1 2 13 15
25961 }
25962 # Create a (secure) tmp directory for tmp files.
25963
25964 {
25965   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25966   test -n "$tmp" && test -d "$tmp"
25967 }  ||
25968 {
25969   tmp=./conf$$-$RANDOM
25970   (umask 077 && mkdir "$tmp")
25971 } ||
25972 {
25973    echo "$me: cannot create a temporary directory in ." >&2
25974    { (exit 1); exit 1; }
25975 }
25976
25977 #
25978 # Set up the sed scripts for CONFIG_FILES section.
25979 #
25980
25981 # No need to generate the scripts if there are no CONFIG_FILES.
25982 # This happens for instance when ./config.status config.h
25983 if test -n "$CONFIG_FILES"; then
25984
25985 _ACEOF
25986
25987
25988
25989 ac_delim='%!_!# '
25990 for ac_last_try in false false false false false :; do
25991   cat >conf$$subs.sed <<_ACEOF
25992 SHELL!$SHELL$ac_delim
25993 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25994 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25995 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25996 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25997 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25998 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25999 exec_prefix!$exec_prefix$ac_delim
26000 prefix!$prefix$ac_delim
26001 program_transform_name!$program_transform_name$ac_delim
26002 bindir!$bindir$ac_delim
26003 sbindir!$sbindir$ac_delim
26004 libexecdir!$libexecdir$ac_delim
26005 datarootdir!$datarootdir$ac_delim
26006 datadir!$datadir$ac_delim
26007 sysconfdir!$sysconfdir$ac_delim
26008 sharedstatedir!$sharedstatedir$ac_delim
26009 localstatedir!$localstatedir$ac_delim
26010 includedir!$includedir$ac_delim
26011 oldincludedir!$oldincludedir$ac_delim
26012 docdir!$docdir$ac_delim
26013 infodir!$infodir$ac_delim
26014 htmldir!$htmldir$ac_delim
26015 dvidir!$dvidir$ac_delim
26016 pdfdir!$pdfdir$ac_delim
26017 psdir!$psdir$ac_delim
26018 libdir!$libdir$ac_delim
26019 localedir!$localedir$ac_delim
26020 mandir!$mandir$ac_delim
26021 DEFS!$DEFS$ac_delim
26022 ECHO_C!$ECHO_C$ac_delim
26023 ECHO_N!$ECHO_N$ac_delim
26024 ECHO_T!$ECHO_T$ac_delim
26025 LIBS!$LIBS$ac_delim
26026 build_alias!$build_alias$ac_delim
26027 host_alias!$host_alias$ac_delim
26028 target_alias!$target_alias$ac_delim
26029 CC!$CC$ac_delim
26030 CFLAGS!$CFLAGS$ac_delim
26031 LDFLAGS!$LDFLAGS$ac_delim
26032 CPPFLAGS!$CPPFLAGS$ac_delim
26033 ac_ct_CC!$ac_ct_CC$ac_delim
26034 EXEEXT!$EXEEXT$ac_delim
26035 OBJEXT!$OBJEXT$ac_delim
26036 CXX!$CXX$ac_delim
26037 CXXFLAGS!$CXXFLAGS$ac_delim
26038 ac_ct_CXX!$ac_ct_CXX$ac_delim
26039 CPP!$CPP$ac_delim
26040 GREP!$GREP$ac_delim
26041 EGREP!$EGREP$ac_delim
26042 RANLIB!$RANLIB$ac_delim
26043 GMAKE!$GMAKE$ac_delim
26044 MAKE!$MAKE$ac_delim
26045 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26046 LIBTOOL!$LIBTOOL$ac_delim
26047 build!$build$ac_delim
26048 build_cpu!$build_cpu$ac_delim
26049 build_vendor!$build_vendor$ac_delim
26050 build_os!$build_os$ac_delim
26051 host!$host$ac_delim
26052 host_cpu!$host_cpu$ac_delim
26053 host_vendor!$host_vendor$ac_delim
26054 host_os!$host_os$ac_delim
26055 LN_S!$LN_S$ac_delim
26056 ECHO!$ECHO$ac_delim
26057 AR!$AR$ac_delim
26058 STRIP!$STRIP$ac_delim
26059 CXXCPP!$CXXCPP$ac_delim
26060 F77!$F77$ac_delim
26061 FFLAGS!$FFLAGS$ac_delim
26062 ac_ct_F77!$ac_ct_F77$ac_delim
26063 logdir!$logdir$ac_delim
26064 radacctdir!$radacctdir$ac_delim
26065 raddbdir!$raddbdir$ac_delim
26066 PERL!$PERL$ac_delim
26067 SNMPGET!$SNMPGET$ac_delim
26068 SNMPWALK!$SNMPWALK$ac_delim
26069 RUSERS!$RUSERS$ac_delim
26070 ACLOCAL!$ACLOCAL$ac_delim
26071 AUTOCONF!$AUTOCONF$ac_delim
26072 AUTOHEADER!$AUTOHEADER$ac_delim
26073 LOCATE!$LOCATE$ac_delim
26074 DIRNAME!$DIRNAME$ac_delim
26075 REGEX!$REGEX$ac_delim
26076 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26077 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26078 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26079 PCAP_LIBS!$PCAP_LIBS$ac_delim
26080 LIBPREFIX!$LIBPREFIX$ac_delim
26081 CRYPTLIB!$CRYPTLIB$ac_delim
26082 SNMP_LIBS!$SNMP_LIBS$ac_delim
26083 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26084 HOSTINFO!$HOSTINFO$ac_delim
26085 LIBLTDL!$LIBLTDL$ac_delim
26086 INCLTDL!$INCLTDL$ac_delim
26087 subdirs!$subdirs$ac_delim
26088 MODULES!$MODULES$ac_delim
26089 _ACEOF
26090
26091   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26092     break
26093   elif $ac_last_try; then
26094     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26096    { (exit 1); exit 1; }; }
26097   else
26098     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26099   fi
26100 done
26101
26102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26103 if test -n "$ac_eof"; then
26104   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26105   ac_eof=`expr $ac_eof + 1`
26106 fi
26107
26108 cat >>$CONFIG_STATUS <<_ACEOF
26109 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26111 _ACEOF
26112 sed '
26113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26114 s/^/s,@/; s/!/@,|#_!!_#|/
26115 :n
26116 t n
26117 s/'"$ac_delim"'$/,g/; t
26118 s/$/\\/; p
26119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26120 ' >>$CONFIG_STATUS <conf$$subs.sed
26121 rm -f conf$$subs.sed
26122 cat >>$CONFIG_STATUS <<_ACEOF
26123 CEOF$ac_eof
26124 _ACEOF
26125
26126
26127 ac_delim='%!_!# '
26128 for ac_last_try in false false false false false :; do
26129   cat >conf$$subs.sed <<_ACEOF
26130 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26131 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26132 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26133 STATIC_MODULES!$STATIC_MODULES$ac_delim
26134 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26135 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26136 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26137 LIBOBJS!$LIBOBJS$ac_delim
26138 LTLIBOBJS!$LTLIBOBJS$ac_delim
26139 _ACEOF
26140
26141   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
26142     break
26143   elif $ac_last_try; then
26144     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26145 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26146    { (exit 1); exit 1; }; }
26147   else
26148     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26149   fi
26150 done
26151
26152 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26153 if test -n "$ac_eof"; then
26154   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26155   ac_eof=`expr $ac_eof + 1`
26156 fi
26157
26158 cat >>$CONFIG_STATUS <<_ACEOF
26159 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26161 _ACEOF
26162 sed '
26163 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26164 s/^/s,@/; s/!/@,|#_!!_#|/
26165 :n
26166 t n
26167 s/'"$ac_delim"'$/,g/; t
26168 s/$/\\/; p
26169 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26170 ' >>$CONFIG_STATUS <conf$$subs.sed
26171 rm -f conf$$subs.sed
26172 cat >>$CONFIG_STATUS <<_ACEOF
26173 :end
26174 s/|#_!!_#|//g
26175 CEOF$ac_eof
26176 _ACEOF
26177
26178
26179 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26180 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26181 # trailing colons and then remove the whole line if VPATH becomes empty
26182 # (actually we leave an empty line to preserve line numbers).
26183 if test "x$srcdir" = x.; then
26184   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26185 s/:*\$(srcdir):*/:/
26186 s/:*\${srcdir}:*/:/
26187 s/:*@srcdir@:*/:/
26188 s/^\([^=]*=[     ]*\):*/\1/
26189 s/:*$//
26190 s/^[^=]*=[       ]*$//
26191 }'
26192 fi
26193
26194 cat >>$CONFIG_STATUS <<\_ACEOF
26195 fi # test -n "$CONFIG_FILES"
26196
26197
26198 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26199 do
26200   case $ac_tag in
26201   :[FHLC]) ac_mode=$ac_tag; continue;;
26202   esac
26203   case $ac_mode$ac_tag in
26204   :[FHL]*:*);;
26205   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26206 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26207    { (exit 1); exit 1; }; };;
26208   :[FH]-) ac_tag=-:-;;
26209   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26210   esac
26211   ac_save_IFS=$IFS
26212   IFS=:
26213   set x $ac_tag
26214   IFS=$ac_save_IFS
26215   shift
26216   ac_file=$1
26217   shift
26218
26219   case $ac_mode in
26220   :L) ac_source=$1;;
26221   :[FH])
26222     ac_file_inputs=
26223     for ac_f
26224     do
26225       case $ac_f in
26226       -) ac_f="$tmp/stdin";;
26227       *) # Look for the file first in the build tree, then in the source tree
26228          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26229          # because $ac_f cannot contain `:'.
26230          test -f "$ac_f" ||
26231            case $ac_f in
26232            [\\/$]*) false;;
26233            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26234            esac ||
26235            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26236 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26237    { (exit 1); exit 1; }; };;
26238       esac
26239       ac_file_inputs="$ac_file_inputs $ac_f"
26240     done
26241
26242     # Let's still pretend it is `configure' which instantiates (i.e., don't
26243     # use $as_me), people would be surprised to read:
26244     #    /* config.h.  Generated by config.status.  */
26245     configure_input="Generated from "`IFS=:
26246           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26247     if test x"$ac_file" != x-; then
26248       configure_input="$ac_file.  $configure_input"
26249       { echo "$as_me:$LINENO: creating $ac_file" >&5
26250 echo "$as_me: creating $ac_file" >&6;}
26251     fi
26252
26253     case $ac_tag in
26254     *:-:* | *:-) cat >"$tmp/stdin";;
26255     esac
26256     ;;
26257   esac
26258
26259   ac_dir=`$as_dirname -- "$ac_file" ||
26260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26261          X"$ac_file" : 'X\(//\)[^/]' \| \
26262          X"$ac_file" : 'X\(//\)$' \| \
26263          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26264 echo X"$ac_file" |
26265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26266             s//\1/
26267             q
26268           }
26269           /^X\(\/\/\)[^/].*/{
26270             s//\1/
26271             q
26272           }
26273           /^X\(\/\/\)$/{
26274             s//\1/
26275             q
26276           }
26277           /^X\(\/\).*/{
26278             s//\1/
26279             q
26280           }
26281           s/.*/./; q'`
26282   { as_dir="$ac_dir"
26283   case $as_dir in #(
26284   -*) as_dir=./$as_dir;;
26285   esac
26286   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26287     as_dirs=
26288     while :; do
26289       case $as_dir in #(
26290       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26291       *) as_qdir=$as_dir;;
26292       esac
26293       as_dirs="'$as_qdir' $as_dirs"
26294       as_dir=`$as_dirname -- "$as_dir" ||
26295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26296          X"$as_dir" : 'X\(//\)[^/]' \| \
26297          X"$as_dir" : 'X\(//\)$' \| \
26298          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26299 echo X"$as_dir" |
26300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26301             s//\1/
26302             q
26303           }
26304           /^X\(\/\/\)[^/].*/{
26305             s//\1/
26306             q
26307           }
26308           /^X\(\/\/\)$/{
26309             s//\1/
26310             q
26311           }
26312           /^X\(\/\).*/{
26313             s//\1/
26314             q
26315           }
26316           s/.*/./; q'`
26317       test -d "$as_dir" && break
26318     done
26319     test -z "$as_dirs" || eval "mkdir $as_dirs"
26320   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26321 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26322    { (exit 1); exit 1; }; }; }
26323   ac_builddir=.
26324
26325 case "$ac_dir" in
26326 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26327 *)
26328   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26329   # A ".." for each directory in $ac_dir_suffix.
26330   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26331   case $ac_top_builddir_sub in
26332   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26333   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26334   esac ;;
26335 esac
26336 ac_abs_top_builddir=$ac_pwd
26337 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26338 # for backward compatibility:
26339 ac_top_builddir=$ac_top_build_prefix
26340
26341 case $srcdir in
26342   .)  # We are building in place.
26343     ac_srcdir=.
26344     ac_top_srcdir=$ac_top_builddir_sub
26345     ac_abs_top_srcdir=$ac_pwd ;;
26346   [\\/]* | ?:[\\/]* )  # Absolute name.
26347     ac_srcdir=$srcdir$ac_dir_suffix;
26348     ac_top_srcdir=$srcdir
26349     ac_abs_top_srcdir=$srcdir ;;
26350   *) # Relative name.
26351     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26352     ac_top_srcdir=$ac_top_build_prefix$srcdir
26353     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26354 esac
26355 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26356
26357
26358   case $ac_mode in
26359   :F)
26360   #
26361   # CONFIG_FILE
26362   #
26363
26364 _ACEOF
26365
26366 cat >>$CONFIG_STATUS <<\_ACEOF
26367 # If the template does not know about datarootdir, expand it.
26368 # FIXME: This hack should be removed a few years after 2.60.
26369 ac_datarootdir_hack=; ac_datarootdir_seen=
26370
26371 case `sed -n '/datarootdir/ {
26372   p
26373   q
26374 }
26375 /@datadir@/p
26376 /@docdir@/p
26377 /@infodir@/p
26378 /@localedir@/p
26379 /@mandir@/p
26380 ' $ac_file_inputs` in
26381 *datarootdir*) ac_datarootdir_seen=yes;;
26382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26383   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26384 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26385 _ACEOF
26386 cat >>$CONFIG_STATUS <<_ACEOF
26387   ac_datarootdir_hack='
26388   s&@datadir@&$datadir&g
26389   s&@docdir@&$docdir&g
26390   s&@infodir@&$infodir&g
26391   s&@localedir@&$localedir&g
26392   s&@mandir@&$mandir&g
26393     s&\\\${datarootdir}&$datarootdir&g' ;;
26394 esac
26395 _ACEOF
26396
26397 # Neutralize VPATH when `$srcdir' = `.'.
26398 # Shell code in configure.ac might set extrasub.
26399 # FIXME: do we really want to maintain this feature?
26400 cat >>$CONFIG_STATUS <<_ACEOF
26401   sed "$ac_vpsub
26402 $extrasub
26403 _ACEOF
26404 cat >>$CONFIG_STATUS <<\_ACEOF
26405 :t
26406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26407 s&@configure_input@&$configure_input&;t t
26408 s&@top_builddir@&$ac_top_builddir_sub&;t t
26409 s&@srcdir@&$ac_srcdir&;t t
26410 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26411 s&@top_srcdir@&$ac_top_srcdir&;t t
26412 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26413 s&@builddir@&$ac_builddir&;t t
26414 s&@abs_builddir@&$ac_abs_builddir&;t t
26415 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26416 $ac_datarootdir_hack
26417 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26418
26419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26420   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26421   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26422   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26423 which seems to be undefined.  Please make sure it is defined." >&5
26424 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26425 which seems to be undefined.  Please make sure it is defined." >&2;}
26426
26427   rm -f "$tmp/stdin"
26428   case $ac_file in
26429   -) cat "$tmp/out"; rm -f "$tmp/out";;
26430   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26431   esac
26432  ;;
26433   :H)
26434   #
26435   # CONFIG_HEADER
26436   #
26437 _ACEOF
26438
26439 # Transform confdefs.h into a sed script `conftest.defines', that
26440 # substitutes the proper values into config.h.in to produce config.h.
26441 rm -f conftest.defines conftest.tail
26442 # First, append a space to every undef/define line, to ease matching.
26443 echo 's/$/ /' >conftest.defines
26444 # Then, protect against being on the right side of a sed subst, or in
26445 # an unquoted here document, in config.status.  If some macros were
26446 # called several times there might be several #defines for the same
26447 # symbol, which is useless.  But do not sort them, since the last
26448 # AC_DEFINE must be honored.
26449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26450 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26451 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26452 # PARAMS is the parameter list in the macro definition--in most cases, it's
26453 # just an empty string.
26454 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26455 ac_dB='\\)[      (].*,\\1define\\2'
26456 ac_dC=' '
26457 ac_dD=' ,'
26458
26459 uniq confdefs.h |
26460   sed -n '
26461         t rset
26462         :rset
26463         s/^[     ]*#[    ]*define[       ][      ]*//
26464         t ok
26465         d
26466         :ok
26467         s/[\\&,]/\\&/g
26468         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26469         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26470   ' >>conftest.defines
26471
26472 # Remove the space that was appended to ease matching.
26473 # Then replace #undef with comments.  This is necessary, for
26474 # example, in the case of _POSIX_SOURCE, which is predefined and required
26475 # on some systems where configure will not decide to define it.
26476 # (The regexp can be short, since the line contains either #define or #undef.)
26477 echo 's/ $//
26478 s,^[     #]*u.*,/* & */,' >>conftest.defines
26479
26480 # Break up conftest.defines:
26481 ac_max_sed_lines=50
26482
26483 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26484 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26485 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26486 # et cetera.
26487 ac_in='$ac_file_inputs'
26488 ac_out='"$tmp/out1"'
26489 ac_nxt='"$tmp/out2"'
26490
26491 while :
26492 do
26493   # Write a here document:
26494     cat >>$CONFIG_STATUS <<_ACEOF
26495     # First, check the format of the line:
26496     cat >"\$tmp/defines.sed" <<\\CEOF
26497 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26498 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26499 b
26500 :def
26501 _ACEOF
26502   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26503   echo 'CEOF
26504     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26505   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26506   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26507   grep . conftest.tail >/dev/null || break
26508   rm -f conftest.defines
26509   mv conftest.tail conftest.defines
26510 done
26511 rm -f conftest.defines conftest.tail
26512
26513 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26514 cat >>$CONFIG_STATUS <<\_ACEOF
26515   if test x"$ac_file" != x-; then
26516     echo "/* $configure_input  */" >"$tmp/config.h"
26517     cat "$ac_result" >>"$tmp/config.h"
26518     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26519       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26520 echo "$as_me: $ac_file is unchanged" >&6;}
26521     else
26522       rm -f $ac_file
26523       mv "$tmp/config.h" $ac_file
26524     fi
26525   else
26526     echo "/* $configure_input  */"
26527     cat "$ac_result"
26528   fi
26529   rm -f "$tmp/out12"
26530  ;;
26531
26532   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26533 echo "$as_me: executing $ac_file commands" >&6;}
26534  ;;
26535   esac
26536
26537
26538   case $ac_file$ac_mode in
26539     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26540     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26541     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26542     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26543
26544   esac
26545 done # for ac_tag
26546
26547
26548 { (exit 0); exit 0; }
26549 _ACEOF
26550 chmod +x $CONFIG_STATUS
26551 ac_clean_files=$ac_clean_files_save
26552
26553
26554 # configure is writing to config.log, and then calls config.status.
26555 # config.status does its own redirection, appending to config.log.
26556 # Unfortunately, on DOS this fails, as config.log is still kept open
26557 # by configure, so config.status won't be able to write to it; its
26558 # output is simply discarded.  So we exec the FD to /dev/null,
26559 # effectively closing config.log, so it can be properly (re)opened and
26560 # appended to by config.status.  When coming back to configure, we
26561 # need to make the FD available again.
26562 if test "$no_create" != yes; then
26563   ac_cs_success=:
26564   ac_config_status_args=
26565   test "$silent" = yes &&
26566     ac_config_status_args="$ac_config_status_args --quiet"
26567   exec 5>/dev/null
26568   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26569   exec 5>>config.log
26570   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26571   # would make configure fail if this is the last instruction.
26572   $ac_cs_success || { (exit 1); exit 1; }
26573 fi
26574
26575 #
26576 # CONFIG_SUBDIRS section.
26577 #
26578 if test "$no_recursion" != yes; then
26579
26580   # Remove --cache-file and --srcdir arguments so they do not pile up.
26581   ac_sub_configure_args=
26582   ac_prev=
26583   eval "set x $ac_configure_args"
26584   shift
26585   for ac_arg
26586   do
26587     if test -n "$ac_prev"; then
26588       ac_prev=
26589       continue
26590     fi
26591     case $ac_arg in
26592     -cache-file | --cache-file | --cache-fil | --cache-fi \
26593     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26594       ac_prev=cache_file ;;
26595     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26596     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26597     | --c=*)
26598       ;;
26599     --config-cache | -C)
26600       ;;
26601     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26602       ac_prev=srcdir ;;
26603     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26604       ;;
26605     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26606       ac_prev=prefix ;;
26607     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26608       ;;
26609     *)
26610       case $ac_arg in
26611       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26612       esac
26613       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26614     esac
26615   done
26616
26617   # Always prepend --prefix to ensure using the same prefix
26618   # in subdir configurations.
26619   ac_arg="--prefix=$prefix"
26620   case $ac_arg in
26621   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26622   esac
26623   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26624
26625   # Pass --silent
26626   if test "$silent" = yes; then
26627     ac_sub_configure_args="--silent $ac_sub_configure_args"
26628   fi
26629
26630   ac_popdir=`pwd`
26631   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26632
26633     # Do not complain, so a configure script can configure whichever
26634     # parts of a large source tree are present.
26635     test -d "$srcdir/$ac_dir" || continue
26636
26637     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26638     echo "$as_me:$LINENO: $ac_msg" >&5
26639     echo "$ac_msg" >&6
26640     { as_dir="$ac_dir"
26641   case $as_dir in #(
26642   -*) as_dir=./$as_dir;;
26643   esac
26644   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26645     as_dirs=
26646     while :; do
26647       case $as_dir in #(
26648       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26649       *) as_qdir=$as_dir;;
26650       esac
26651       as_dirs="'$as_qdir' $as_dirs"
26652       as_dir=`$as_dirname -- "$as_dir" ||
26653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26654          X"$as_dir" : 'X\(//\)[^/]' \| \
26655          X"$as_dir" : 'X\(//\)$' \| \
26656          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26657 echo X"$as_dir" |
26658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26659             s//\1/
26660             q
26661           }
26662           /^X\(\/\/\)[^/].*/{
26663             s//\1/
26664             q
26665           }
26666           /^X\(\/\/\)$/{
26667             s//\1/
26668             q
26669           }
26670           /^X\(\/\).*/{
26671             s//\1/
26672             q
26673           }
26674           s/.*/./; q'`
26675       test -d "$as_dir" && break
26676     done
26677     test -z "$as_dirs" || eval "mkdir $as_dirs"
26678   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26679 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26680    { (exit 1); exit 1; }; }; }
26681     ac_builddir=.
26682
26683 case "$ac_dir" in
26684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26685 *)
26686   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26687   # A ".." for each directory in $ac_dir_suffix.
26688   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26689   case $ac_top_builddir_sub in
26690   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26691   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26692   esac ;;
26693 esac
26694 ac_abs_top_builddir=$ac_pwd
26695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26696 # for backward compatibility:
26697 ac_top_builddir=$ac_top_build_prefix
26698
26699 case $srcdir in
26700   .)  # We are building in place.
26701     ac_srcdir=.
26702     ac_top_srcdir=$ac_top_builddir_sub
26703     ac_abs_top_srcdir=$ac_pwd ;;
26704   [\\/]* | ?:[\\/]* )  # Absolute name.
26705     ac_srcdir=$srcdir$ac_dir_suffix;
26706     ac_top_srcdir=$srcdir
26707     ac_abs_top_srcdir=$srcdir ;;
26708   *) # Relative name.
26709     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26710     ac_top_srcdir=$ac_top_build_prefix$srcdir
26711     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26712 esac
26713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26714
26715
26716     cd "$ac_dir"
26717
26718     # Check for guested configure; otherwise get Cygnus style configure.
26719     if test -f "$ac_srcdir/configure.gnu"; then
26720       ac_sub_configure=$ac_srcdir/configure.gnu
26721     elif test -f "$ac_srcdir/configure"; then
26722       ac_sub_configure=$ac_srcdir/configure
26723     elif test -f "$ac_srcdir/configure.in"; then
26724       # This should be Cygnus configure.
26725       ac_sub_configure=$ac_aux_dir/configure
26726     else
26727       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26728 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26729       ac_sub_configure=
26730     fi
26731
26732     # The recursion is here.
26733     if test -n "$ac_sub_configure"; then
26734       # Make the cache file name correct relative to the subdirectory.
26735       case $cache_file in
26736       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26737       *) # Relative name.
26738         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26739       esac
26740
26741       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26742 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26743       # The eval makes quoting arguments work.
26744       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26745            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26746         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26747 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26748    { (exit 1); exit 1; }; }
26749     fi
26750
26751     cd "$ac_popdir"
26752   done
26753 fi
26754
26755